Przeglądaj źródła

修复快照生成失败不修改状态bug,修改数据集列表默认排序

cfort 2 lat temu
rodzic
commit
c3ee6e83a1

+ 4 - 0
src/business/platform/bpmn/form/action.js

@@ -686,6 +686,10 @@ export default {
                     const fileId = res.data && res.data.id ? res.data.id : ''
                     const fileParams = fileId ? { kuai_zhao_: fileId } : {}
                     this.updateState(id, code, '已完成', fileParams)
+                }).catch(() => {
+                    // 生成快照接口调用失败时,也需要更新状态为已完成
+                    this.$message.error('提交快照生成失败!')
+                    this.updateState(id, code, '已完成')
                 })
             })
         },

+ 2 - 2
src/views/platform/data/dataset/list.vue

@@ -109,7 +109,7 @@ export default {
         },
         // 表格字段配置
         columns: [
-          { prop: 'name', label: '名称', sortable: true },
+          { prop: 'name', label: '名称', sortable: true, minWidth: 200 },
           { prop: 'key', label: '业务主键', sortable: true, width: 120 },
           { prop: 'type', label: '类型', tags: datasetTypeOptions, sortable: true, width: 100 },
           {prop:'typeId', label:'归分类型', sortable: true, width: 120 },
@@ -133,7 +133,7 @@ export default {
         }
       },
       pagination: {},
-      sorts: {}
+      sorts: { CREATE_TIME_: 'DESC' }
 
     }
   },

+ 0 - 3
src/views/platform/org/employee/list.vue

@@ -327,7 +327,6 @@ export default {
                         this.$set(item, 'positionsName', name)
                         // 转换岗位路径
                         const path = this.getPositionsPath(item.positions)
-                        console.log(path)
                         this.$set(item, 'positionsPath', path)
                     }
                 })
@@ -350,7 +349,6 @@ export default {
             return list.join(',')
         },
         getPositionsPath (valueList) {
-            console.log(valueList)
             const postList = valueList.split(',')
             const list = []
             if (!postList.length) {
@@ -359,7 +357,6 @@ export default {
             postList.forEach((item) => {
                 const temp = this.positionsList.find(i => i.ID_ === item)
                 const pathList = temp ? temp.PATH_.split('.') : []
-                console.log(pathList)
                 let p = ''
                 pathList.filter(i => i).forEach(k => {
                     const t = this.positionsList.find(i => i.ID_ === k)