|
40 | 40 | />
|
41 | 41 | </el-select>
|
42 | 42 | </el-form-item>
|
43 |
| - |
44 | 43 | <el-form-item label="" prop="status" class="absolute right-[130px]">
|
45 | 44 | <el-select
|
46 | 45 | v-model="queryParams.status"
|
|
78 | 77 | label-position="top"
|
79 | 78 | prop="processDefinitionKey"
|
80 | 79 | >
|
81 |
| - <el-input |
| 80 | + <el-select |
82 | 81 | v-model="queryParams.processDefinitionKey"
|
83 |
| - placeholder="请输入流程定义的标识" |
| 82 | + placeholder="请选择流程定义" |
84 | 83 | clearable
|
85 |
| - @keyup.enter="handleQuery" |
86 | 84 | class="!w-390px"
|
87 |
| - /> |
| 85 | + @change="handleQuery" |
| 86 | + > |
| 87 | + <el-option |
| 88 | + v-for="item in processDefinitionList" |
| 89 | + :key="item.key" |
| 90 | + :label="item.name" |
| 91 | + :value="item.key" |
| 92 | + /> |
| 93 | + </el-select> |
88 | 94 | </el-form-item>
|
89 | 95 | <el-form-item label="发起时间" class="font-bold" label-position="top" prop="createTime">
|
90 | 96 | <el-date-picker
|
|
113 | 119 | <ContentWrap>
|
114 | 120 | <el-table v-loading="loading" :data="list">
|
115 | 121 | <el-table-column label="流程名称" align="center" prop="name" min-width="200px" fixed="left" />
|
116 |
| - <el-table-column label="摘要" prop="summary" min-width="180" fixed="left"> |
| 122 | + <el-table-column label="摘要" prop="summary" width="180" fixed="left"> |
117 | 123 | <template #default="scope">
|
118 | 124 | <div class="flex flex-col" v-if="scope.row.summary && scope.row.summary.length > 0">
|
119 | 125 | <div v-for="(item, index) in scope.row.summary" :key="index">
|
@@ -229,6 +235,7 @@ const { t } = useI18n() // 国际化
|
229 | 235 | const loading = ref(true) // 列表的加载中
|
230 | 236 | const total = ref(0) // 列表的总页数
|
231 | 237 | const list = ref([]) // 列表的数据
|
| 238 | +const processDefinitionList = ref<any[]>([]) // 流程定义列表 |
232 | 239 | const queryParams = reactive({
|
233 | 240 | pageNo: 1,
|
234 | 241 | pageSize: 10,
|
@@ -320,5 +327,7 @@ onActivated(() => {
|
320 | 327 | onMounted(async () => {
|
321 | 328 | await getList()
|
322 | 329 | categoryList.value = await CategoryApi.getCategorySimpleList()
|
| 330 | + // 获取流程定义列表 |
| 331 | + processDefinitionList.value = await DefinitionApi.getSimpleProcessDefinitionList() |
323 | 332 | })
|
324 | 333 | </script>
|
0 commit comments