Quellcode durchsuchen

SAI开项管理:计划完成日期、登记时间表头排序选项

wangggziwen vor 2 Jahren
Ursprung
Commit
b177935249

+ 1 - 1
master/src/main/resources/mybatis/production/TSaiApplyMapper.xml

@@ -47,7 +47,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         d.handler, d.estimate_finish_date, d.actual_finish_date, d.is_recorded, d.record_no, d.reaction, d.need_ve, d.ve_items, d.ve_result
         from t_sai_apply d
         left join sys_dept s on s.dept_id = d.dept_id
-        order by d.APPLY_DATE desc
     </sql>
 
     <select id="selectTSaiApplyList" parameterType="TSaiApply" resultMap="TSaiApplyResult">
@@ -85,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </where>
         <!-- 数据范围过滤 -->
         ${params.dataScope}
+        order by APPLY_DATE desc
     </select>
     
     <select id="selectTSaiApplyById" parameterType="Long" resultMap="TSaiApplyResult">

+ 2 - 2
ui/src/views/production/apply/all/index.vue

@@ -143,12 +143,12 @@
       <el-table-column label="登记人" align="center" prop="applicantName" :show-overflow-tooltip="true"/>
       <el-table-column label="当前处理人" align="center" prop="handlerName" :show-overflow-tooltip="true"/>
       <el-table-column label="整改负责人" align="center" prop="executorName" :show-overflow-tooltip="true"/>
-      <el-table-column label="登记时间" align="center" prop="applyDate" width="100">
+      <el-table-column label="登记时间" align="center" prop="applyDate" width="100" sortable>
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.applyDate, '{y}-{m}-{d}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="预计完成时间" align="center" prop="estimateFinishDate" width="100">
+      <el-table-column label="预计完成时间" align="center" prop="estimateFinishDate" width="100" sortable>
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.estimateFinishDate, '{y}-{m}-{d}') }}</span>
         </template>

+ 2 - 2
ui/src/views/production/apply/mine/index.vue

@@ -143,12 +143,12 @@
       <el-table-column label="登记人" align="center" prop="applicantName" :show-overflow-tooltip="true"/>
       <el-table-column label="当前处理人" align="center" prop="handlerName" :show-overflow-tooltip="true"/>
       <el-table-column label="整改负责人" align="center" prop="executorName" :show-overflow-tooltip="true"/>
-      <el-table-column label="登记时间" align="center" prop="applyDate" width="100">
+      <el-table-column label="登记时间" align="center" prop="applyDate" width="100" sortable>
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.applyDate, '{y}-{m}-{d}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="预计完成时间" align="center" prop="estimateFinishDate" width="100">
+      <el-table-column label="预计完成时间" align="center" prop="estimateFinishDate" width="100" sortable>
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.estimateFinishDate, '{y}-{m}-{d}') }}</span>
         </template>

+ 2 - 2
ui/src/views/production/apply/pending/index.vue

@@ -143,12 +143,12 @@
       <el-table-column label="登记人" align="center" prop="applicantName" :show-overflow-tooltip="true"/>
       <el-table-column label="当前处理人" align="center" prop="handlerName" :show-overflow-tooltip="true"/>
       <el-table-column label="整改负责人" align="center" prop="executorName" :show-overflow-tooltip="true"/>
-      <el-table-column label="登记时间" align="center" prop="applyDate" width="100">
+      <el-table-column label="登记时间" align="center" prop="applyDate" width="100" sortable>
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.applyDate, '{y}-{m}-{d}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="预计完成时间" align="center" prop="estimateFinishDate" width="100">
+      <el-table-column label="预计完成时间" align="center" prop="estimateFinishDate" width="100" sortable>
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.estimateFinishDate, '{y}-{m}-{d}') }}</span>
         </template>