linweizeng 3 lat temu
rodzic
commit
25251befad
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      src/views/platform/bpmn/bpmTaskChange/list.vue

+ 5 - 5
src/views/platform/bpmn/bpmTaskChange/list.vue

@@ -96,14 +96,14 @@ export default {
         // 表格字段配置
         columns: [
           { prop: 'taskSubject', label: '事务名称', link: 'dialog' },
-          { prop: 'taskSubjectName', label: '事务名称' },
+          { prop: 'taskSubjectName', label: '事务说明', width: 350 },
           { prop: 'executorName', label: '代理人', width: 120},
           { prop: 'createTime', label: '事务创建时间', width: 150 },
         //   { prop: 'taskName', label: '任务名称', width: 250 },
           { prop: 'status', label: '状态', tags: statusOptions, width: 150 },
           { prop: 'ownerName', label: '委托人', width: 120},
         //   { prop: 'createTime', label: '创建时间', width: 150 }
-          { prop: 'startTime', label: '代理时间', width: 150 },
+          { prop: 'startTime', label: '代理生效时间', width: 150 },
           { prop: 'endTime', label: '代理截止时间', width: 150 },
           { prop: 'changeType', label: '更改类型', tags: typeOptions, width: 120 },
         ],
@@ -143,7 +143,7 @@ export default {
             item.taskSubject = taskSubject[0]
             this.$set(item, 'taskSubjectName', taskSubject[1]);
             if(item.changeType == 'assignee' && item.ownerId && item.executorId){
-                this.getDaiLi(item.ownerId,item.executorId,(ruselt)=>{
+                this.getDaiLi(item.ownerId,item.executorId,item.createTime,(ruselt)=>{
                     if(ruselt.length > 0){
                         this.$set(item,'startTime',dayjs(ruselt[0].EFFECTIVE_TIME_).format('YYYY-MM-DD'))
                         this.$set(item,'endTime',dayjs(ruselt[0].EXPIRY_TIME).format('YYYY-MM-DD'))
@@ -158,8 +158,8 @@ export default {
       })
     },
     //反查代理数据
-    getDaiLi(val1,val2,callback){
-        let sql =   `select * from ibps_bpm_agent where DELEGATOR_ID_ = '${val1}' and AGENTER_ID_ = '${val2}' and IS_ENABLED_ = 'enabled'`
+    getDaiLi(val1,val2,createTime,callback){
+        let sql =   `select * from ibps_bpm_agent where DELEGATOR_ID_ = '${val1}' and AGENTER_ID_ = '${val2}' and IS_ENABLED_ = 'enabled' and '${createTime}' BETWEEN EFFECTIVE_TIME_ and EXPIRY_TIME_`
         curdPost('sql',sql).then((res)=> {
             if(res.state == 200){
                 let datas = res.variables.data