Browse Source

流程模型 流程分类显示问题

gexinzhineng/gxzn27 2 years ago
parent
commit
d8e540ee54
2 changed files with 10 additions and 1 deletions
  1. 4 0
      src/views/bpm/model/index.vue
  2. 6 1
      src/views/bpm/model/model.data.ts

+ 4 - 0
src/views/bpm/model/index.vue

@@ -24,6 +24,10 @@
       <template #name_default="{ row }">
         <XTextButton :title="row.name" @click="handleBpmnDetail(row.id)" />
       </template>
+      <!-- 流程分类 -->
+      <template #category_default="{ row }">
+        <DictTag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="Number(row?.category)" />
+      </template>
       <!-- 表单信息 -->
       <template #formId_default="{ row }">
         <XTextButton

+ 6 - 1
src/views/bpm/model/model.data.ts

@@ -44,7 +44,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
       field: 'category',
       dictType: DICT_TYPE.BPM_MODEL_CATEGORY,
       dictClass: 'number',
-      isSearch: true
+      isSearch: true,
+      table: {
+        slots: {
+          default: 'category_default'
+        }
+      }
     },
     {
       title: '表单信息',