|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
:model="queryParams" |
|
|
|
|
ref="queryFormRef" |
|
|
|
|
:inline="true" |
|
|
|
|
label-width="68px" |
|
|
|
|
label-width="108px" |
|
|
|
|
> |
|
|
|
|
<el-form-item label="任务标题" prop="title"> |
|
|
|
|
<el-input |
|
|
|
@ -16,7 +16,27 @@
|
|
|
|
|
@keyup.enter="handleQuery" |
|
|
|
|
class="!w-240px" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="任务状态" prop="taskType"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="queryParams.status" |
|
|
|
|
placeholder="请选择任务状态" |
|
|
|
|
clearable |
|
|
|
|
class="!w-240px" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.TASK_STATE)" |
|
|
|
|
:key="dict.value" |
|
|
|
|
:label="dict.label" |
|
|
|
|
:value="dict.value" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="任务类型" prop="taskType"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="queryParams.taskType" |
|
|
|
@ -70,7 +90,7 @@
|
|
|
|
|
<!-- 列表 --> |
|
|
|
|
<ContentWrap> |
|
|
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|
|
|
|
<el-table-column label="编号" align="center" prop="id" /> |
|
|
|
|
<el-table-column label="任务编号" align="center" width="150px" prop="taskNumber" /> |
|
|
|
|
<el-table-column label="任务状态" align="center" prop="status"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<dict-tag :type="DICT_TYPE.TASK_STATE" :value="scope.row.status" /> |
|
|
|
@ -125,10 +145,20 @@
|
|
|
|
|
|
|
|
|
|
<el-table-column label="执法对象" align="center" min-width="120px"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-button link type="primary" @click="selectEnterprise(scope.row.id)"> |
|
|
|
|
已选 0 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
<el-button link type="primary" @click=" |
|
|
|
|
push({ |
|
|
|
|
path: 'create', |
|
|
|
|
query: { |
|
|
|
|
id: scope.row.id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
"> |
|
|
|
|
<el-Tag type="success">{{scope.row.enterpriseIdes.length}}</el-Tag> 家企业 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" min-width="120px"> |
|
|
|
@ -145,19 +175,20 @@
|
|
|
|
|
}) |
|
|
|
|
" |
|
|
|
|
v-hasPermi="['system:task-info:update']" |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
编辑 |
|
|
|
|
详情 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="danger" |
|
|
|
|
@click="handleDelete(scope.row.id)" |
|
|
|
|
v-hasPermi="['system:task-info:delete']" |
|
|
|
|
v-if="scope.row.status == 1" |
|
|
|
|
> |
|
|
|
|
删除 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
<el-button link type="primary" @click="openForm(scope.row.id)"> 详情 </el-button> |
|
|
|
|
<!-- <el-button link type="primary" @click="openForm(scope.row.id)"> 详情 </el-button> --> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -172,6 +203,9 @@
|
|
|
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
|
<TaskInfoForm ref="formRef" @success="getList" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
|