{{ item.key }} : {{ item.value }}
@@ -170,7 +177,12 @@
{{ formatPast2(scope.row.durationInMillis) }}
-
+
@@ -192,6 +204,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter, formatPast2 } from '@/utils/formatTime'
import * as TaskApi from '@/api/bpm/task'
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
+import * as DefinitionApi from '@/api/bpm/definition'
defineOptions({ name: 'BpmDoneTask' })
@@ -200,17 +213,19 @@ const { push } = useRouter() // 路由
const loading = ref(true) // 列表的加载中
const total = ref(0) // 列表的总页数
const list = ref([]) // 列表的数据
+const processDefinitionList = ref([]) // 流程定义列表
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
name: '',
category: undefined,
status: undefined,
+ processDefinitionKey: '',
createTime: []
})
const queryFormRef = ref() // 搜索的表单
const categoryList = ref([]) // 流程分类列表
-const showPopover = ref(false)
+const showPopover = ref(false) // 高级筛选是否展示
/** 查询任务列表 */
const getList = async () => {
@@ -251,5 +266,7 @@ const handleAudit = (row: any) => {
onMounted(async () => {
await getList()
categoryList.value = await CategoryApi.getCategorySimpleList()
+ // 获取流程定义列表
+ processDefinitionList.value = await DefinitionApi.getSimpleProcessDefinitionList()
})
diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue
index 58d78c8d..45a2eb44 100644
--- a/src/views/bpm/task/todo/index.vue
+++ b/src/views/bpm/task/todo/index.vue
@@ -31,8 +31,7 @@
搜索
-
-
+
-
-
+
-
+
高级筛选
-
-
-
+
+
-
- 确认
- 取消
- 清空
-
+
+
+ 清空
+ 取消
+ 确认
+
+
-
@@ -105,9 +109,12 @@
-
+
-
+
{{ item.key }} : {{ item.value }}
@@ -135,7 +142,12 @@
prop="createTime"
width="180"
/>
-
+
@@ -157,6 +169,7 @@
import { dateFormatter } from '@/utils/formatTime'
import * as TaskApi from '@/api/bpm/task'
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
+import * as DefinitionApi from '@/api/bpm/definition'
defineOptions({ name: 'BpmTodoTask' })
@@ -165,15 +178,18 @@ const { push } = useRouter() // 路由
const loading = ref(true) // 列表的加载中
const total = ref(0) // 列表的总页数
const list = ref([]) // 列表的数据
+const processDefinitionList = ref([]) // 流程定义列表
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
name: '',
category: undefined,
+ processDefinitionKey: '',
createTime: []
})
const queryFormRef = ref() // 搜索的表单
const categoryList = ref([]) // 流程分类列表
+const showPopover = ref(false) // 高级筛选是否展示
/** 查询任务列表 */
const getList = async () => {
@@ -187,8 +203,6 @@ const getList = async () => {
}
}
-const showPopover = ref(false)
-
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.pageNo = 1
@@ -216,5 +230,7 @@ const handleAudit = (row: any) => {
onMounted(async () => {
await getList()
categoryList.value = await CategoryApi.getCategorySimpleList()
+ // 获取流程定义列表
+ processDefinitionList.value = await DefinitionApi.getSimpleProcessDefinitionList()
})