|
@@ -5,7 +5,7 @@
|
|
</template -->
|
|
</template -->
|
|
<template #search>
|
|
<template #search>
|
|
<div class="w-32">
|
|
<div class="w-32">
|
|
- <el-select v-model="searchForm.typeValue" clearable block placeholder="任务类型">
|
|
|
|
|
|
+ <el-select v-model="searchForm.typeValue" clearable block placeholder="任务类型11111111">
|
|
<el-option v-for="item in tasksType" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
<el-option v-for="item in tasksType" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
@@ -87,6 +87,7 @@ const tabsData = [
|
|
{ key: '1', name: '待办任务' },
|
|
{ key: '1', name: '待办任务' },
|
|
{ key: '2', name: '已办任务' },
|
|
{ key: '2', name: '已办任务' },
|
|
{ key: '3', name: '我发起的' },
|
|
{ key: '3', name: '我发起的' },
|
|
|
|
+
|
|
]
|
|
]
|
|
const tabsClick = ({ key }) => {
|
|
const tabsClick = ({ key }) => {
|
|
tabsKey.value = key
|
|
tabsKey.value = key
|
|
@@ -106,13 +107,15 @@ const tasksType = ref([])
|
|
const queryTaskType = async () => {
|
|
const queryTaskType = async () => {
|
|
const { data } = await mainApi.queryTaskType()
|
|
const { data } = await mainApi.queryTaskType()
|
|
tasksType.value = getArrValue(data)
|
|
tasksType.value = getArrValue(data)
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
//获取任务状态
|
|
//获取任务状态
|
|
const tasksStatus = ref([])
|
|
const tasksStatus = ref([])
|
|
const queryTaskStatus = async () => {
|
|
const queryTaskStatus = async () => {
|
|
const { data } = await mainApi.queryTaskStatus({ typeOrStatus: 'task_status' })
|
|
const { data } = await mainApi.queryTaskStatus({ typeOrStatus: 'task_status' })
|
|
- tasksStatus.value = getArrValue(data)
|
|
|
|
|
|
+ // tasksStatus.value = getArrValue(data)
|
|
|
|
+ tasksStatus.value = [{ dictKey: '1', dictValue: '待审批' }, { dictKey: '2', dictValue: '已审批' }, { dictKey: '3', dictValue: '已废除' }, { dictKey: '4', dictValue: '可审批' }]
|
|
}
|
|
}
|
|
|
|
|
|
//日期范围选择
|
|
//日期范围选择
|