| | |
| | | :model="formInline" |
| | | :header-cell-style="{ background: '#f6f7fa', color: '#909399' }" |
| | | > |
| | | <el-table-column prop="name" label="审批人" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="type" label="审批标题" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="authorUid" label="编写人" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="releaseDate" label="发布实施日期" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="workName" label="审批人" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="title" label="审批标题" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="approvePersonName" label="编写人" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column prop="approveMemo" label="审批意见" show-overflow-tooltip sortable></el-table-column> |
| | | <el-table-column label="操作" width="200" align="center"> |
| | | <template #default="scope"> |
| | | <el-button size="small" text type="primary" @click="onReduction(scope.row.id)">还原</el-button> |
| | |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | searchParams: { |
| | | abolishStatus: true, |
| | | relateType: 1, |
| | | relateId: '', |
| | | startTime: '', |
| | | endTime: '', |
| | | }, |
| | | }); |
| | | // 定义表格数据 |
| | | const tableData = ref([]); |
| | | |
| | | // 列表数据请求 |
| | | const openDialog = async (id: number) => { |
| | | const openDialog = async () => { |
| | | isShowDialog.value = true; |
| | | let res = await emergencyPlanApi().approvalProcessEmergencyPlan(id); |
| | | let res = await emergencyPlanApi().processEmergencyPlan(listQuery); |
| | | if (res.data.code === '200') { |
| | | tableData.value = res.data.data; |
| | | pageIndex.value = res.data.pageIndex; |
| | |
| | | const onCancel = () => { |
| | | closeDialog(); |
| | | }; |
| | | const onReduction = async (id) => { |
| | | const onReduction = async () => { |
| | | isShowDialog.value = false; |
| | | // emergencyPlanApi() |
| | | // .approvalProcessEmergencyPlan(id) |
| | | // .then((res) => { |
| | | // if (res.data.code == 200) { |
| | | // ElMessage({ |
| | | // showClose: true, |
| | | // message: res.data.msg, |
| | | // type: 'success', |
| | | // }); |
| | | // emit('myAdd', true); |
| | | // } else { |
| | | // ElMessage({ |
| | | // showClose: true, |
| | | // message: res.data.msg, |
| | | // type: 'error', |
| | | // }); |
| | | // emit('myAdd', true); |
| | | // openDialog(); |
| | | // } |
| | | // }) |
| | | // .catch(() => {}); |
| | | }; |
| | | // 分页 |
| | | const pageIndex = ref(); |