Răsfoiți Sursa

增加列表排序

cfort 2 ani în urmă
părinte
comite
fb862d779a

+ 6 - 6
src/views/platform/bo/boDef/list.vue

@@ -168,13 +168,13 @@ export default {
         },
         },
         // 表格字段配置
         // 表格字段配置
         columns: [
         columns: [
-          { prop: 'name', label: '名称', width: 150 },
-          { prop: 'code', label: '编码', width: 150 },
+          { prop: 'name', label: '名称', sortable: true, width: 150 },
+          { prop: 'code', label: '编码', sortable: true, width: 150 },
           { prop: 'versionCount', label: '版本信息', fieldType: 'slot', slotName: 'versionCount' },
           { prop: 'versionCount', label: '版本信息', fieldType: 'slot', slotName: 'versionCount' },
-          {prop:'typeId',label:'归分类型', width: 120 },
-          { prop: 'status', label: '状态', width: 100, tags: statusOptions },
-          { prop: 'boType', label: '对象类型', width: 100, tags: boTypeOptions },
-          { prop: 'isCreateTable', label: '生成表', tags: createTabelOptions, width: 80 }
+          {prop:'typeId',label:'归分类型', sortable: true, width: 120 },
+          { prop: 'status', label: '状态', sortable: true, width: 100, tags: statusOptions },
+          { prop: 'boType', label: '对象类型', sortable: true, width: 100, tags: boTypeOptions },
+          { prop: 'isCreateTable', label: '生成表', sortable: true, tags: createTabelOptions, width: 80 }
         ],
         ],
         // 管理列
         // 管理列
         rowHandle: {
         rowHandle: {

+ 7 - 6
src/views/platform/bpmn/bpmDef/list.vue

@@ -170,7 +170,7 @@ export default {
           forms: [
           forms: [
             { prop: 'Q^name_^SL', label: '名称', width: 150 },
             { prop: 'Q^name_^SL', label: '名称', width: 150 },
             { prop: 'Q^def_key_^SL', label: '业务主键', width: 150 },
             { prop: 'Q^def_key_^SL', label: '业务主键', width: 150 },
-            /* {
+            {
               prop: 'Q^status_^S',
               prop: 'Q^status_^S',
               label: '流程状态',
               label: '流程状态',
               fieldType: 'select',
               fieldType: 'select',
@@ -186,17 +186,18 @@ export default {
               prop: ['Q^CREATE_TIME_^DL', 'Q^CREATE_TIME_^DG'],
               prop: ['Q^CREATE_TIME_^DL', 'Q^CREATE_TIME_^DG'],
               label: '创建时间',
               label: '创建时间',
               fieldType: 'daterange'
               fieldType: 'daterange'
-            } */
+            }
           ]
           ]
         },
         },
         // 表格字段配置
         // 表格字段配置
         columns: [
         columns: [
-          { prop: 'name', label: '流程名称', slotName: 'defName' },
-          { prop: 'defKey', label: '流程业务主键', width: 150 },
+          { prop: 'name', label: '流程名称', slotName: 'defName', sortable: true },
+          { prop: 'defKey', label: '流程业务主键', width: 150, sortable: true },
           { prop: 'status', label: '流程状态', tags: statusOptions, width: 90 },
           { prop: 'status', label: '流程状态', tags: statusOptions, width: 90 },
           { prop: 'testStatus', label: '测试状态', tags: testStatusOptions, width: 90 },
           { prop: 'testStatus', label: '测试状态', tags: testStatusOptions, width: 90 },
-          { prop: 'updateTime', label: '更新时间', width: 150 },
-          { prop: 'version', label: '版本号', width: 90 }
+          { prop: 'createTime', label: '创建时间', width: 150, sortable: true },
+          { prop: 'updateTime', label: '更新时间', width: 150, sortable: true },
+          { prop: 'version', label: '版本号', width: 90, sortable: true }
         ],
         ],
         rowHandle: {
         rowHandle: {
           actions: [
           actions: [

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

@@ -108,10 +108,10 @@ export default {
         },
         },
         // 表格字段配置
         // 表格字段配置
         columns: [
         columns: [
-          { prop: 'name', label: '名称' },
-          { prop: 'key', label: '业务主键' },
-          { prop: 'type', label: '类型', tags: datasetTypeOptions },
-          { prop: 'from', label: '来源' }
+          { prop: 'name', label: '名称', sortable: true },
+          { prop: 'key', label: '业务主键', sortable: true },
+          { prop: 'type', label: '类型', tags: datasetTypeOptions, sortable: true },
+          { prop: 'from', label: '来源', sortable: true }
         ],
         ],
         // 管理列
         // 管理列
         rowHandle: {
         rowHandle: {