|
|
|
@ -66,7 +66,7 @@
|
|
|
|
|
<Icon icon="ep:circle-plus" class="mr-5px" /> 新增 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="success" |
|
|
|
|
type="primary" |
|
|
|
|
plain |
|
|
|
|
@click="handleExport" |
|
|
|
|
:loading="exportLoading" |
|
|
|
@ -82,25 +82,25 @@
|
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
<el-table-column label="任务名称" align="left" prop="title" width="200" /> |
|
|
|
|
<el-table-column label="任务类型" align="left" prop="taskType"> |
|
|
|
|
<el-table-column label="任务名称" align="left" prop="title" width="300" /> |
|
|
|
|
<el-table-column label="任务类型" align="left" prop="taskType" width="150"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
{{ scope.row.taskTypeName }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="发布部门" align="left" prop="deptName" /> |
|
|
|
|
<el-table-column label="任务状态" align="left" prop="status"> |
|
|
|
|
<el-table-column label="发布部门" align="left" prop="deptName" width="150"/> |
|
|
|
|
<el-table-column label="任务状态" align="left" prop="status" width="150"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<dict-tag :type="DICT_TYPE.TASK_STATE" :value="scope.row.status" /> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="执法对象" align="left" min-width="100px"> |
|
|
|
|
<el-table-column label="执法对象" align="left" min-width="180"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
{{ new Set(scope.row.enterpriseIdes?.map((e) => e.type)).size }}个区域 , |
|
|
|
|
{{ scope.row.enterpriseIdes.length }}家企业 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="执行时间" align="left" prop="startDate"> |
|
|
|
|
<el-table-column label="执行时间" align="left" prop="startDate" width="200"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
{{ scope.row.startDate }} |
|
|
|
|
{{ getDictLabel(DICT_TYPE.TASK_NOTICE_TIME, scope.row.execCycle) }} |
|
|
|
@ -112,30 +112,7 @@
|
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="primary" |
|
|
|
|
@click=" |
|
|
|
|
push({ |
|
|
|
|
path: 'create', |
|
|
|
|
query: { |
|
|
|
|
id: scope.row.id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
" |
|
|
|
|
v-hasPermi="['system:task-info:update']" |
|
|
|
|
> |
|
|
|
|
修改 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="primary" |
|
|
|
|
@click=" |
|
|
|
|
push({ |
|
|
|
|
path: 'detail', |
|
|
|
|
query: { |
|
|
|
|
id: scope.row.id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
" |
|
|
|
|
v-hasPermi="['system:task-info:update']" |
|
|
|
|
@click="pushUrl(scope.row)" |
|
|
|
|
> |
|
|
|
|
详情 |
|
|
|
|
</el-button> |
|
|
|
@ -169,7 +146,9 @@ import { TaskInfoApi, TaskInfoVO } from '@/api/system/taskinfo'
|
|
|
|
|
import TaskInfoForm from './TaskInfoForm.vue' |
|
|
|
|
import { TagLibraryApi } from '@/api/system/taglibrary' |
|
|
|
|
import { deptByMenu } from '@/api/system/user' |
|
|
|
|
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
|
// 假设你有一个全局状态管理库来存储用户信息,比如 Pinia 或 Vuex |
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
/** 任务表,用于存储所有的任务信息,任务可由不同用户创建并管理。 列表 */ |
|
|
|
|
defineOptions({ name: 'TaskList' }) |
|
|
|
|
|
|
|
|
@ -225,6 +204,17 @@ const getList = async () => {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const pushUrl = (row: any) => { |
|
|
|
|
console.log(row) |
|
|
|
|
if ((row.status == 1 || row.status == 0) && row.creator == userStore.user.id) { |
|
|
|
|
push({ path: `/task/create`, query: { id: row.id} }) |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
push({ path: `/task/detail`, query: { id: row.id} }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 搜索按钮操作 */ |
|
|
|
|
const handleQuery = () => { |
|
|
|
|
queryParams.pageNo = 1 |
|
|
|
|