| | |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180"> |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200"> |
| | | <template #default="scope"> |
| | | <el-button link type="danger" v-if="isAdmin && scope.row.state === 4 && scope.row.evaluationState" @click="toBack(scope.row)">退回</el-button> |
| | | <el-button link type="primary" @click="toProcess('view',scope.row)">查看</el-button> |
| | | <el-button link type="primary" v-if="scope.row.step !== 4" @click="toProcess('edit',scope.row)">编辑 |
| | | </el-button> |
| | |
| | | // import {delProject, getProjectList, getProjectStatistics} from "@/api/projectManage/project"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import Cookies from "js-cookie" |
| | | import {delProject, exportData, exportExpertData, getProjectList, getProjectNum} from "@/api/projectManage"; |
| | | import {backInfo, delProject, exportData, exportExpertData, getProjectList, getProjectNum} from "@/api/projectManage"; |
| | | // import * as XLSX from 'xlsx'; |
| | | import XLSX from 'xlsx-js-style'; |
| | | import {listDept} from "@/api/system/dept"; |
| | |
| | | const dataList = ref([]); |
| | | const deptList = ref([]) |
| | | const total = ref(0); |
| | | const isAdmin = ref(false); |
| | | const userInfo = ref() |
| | | const isAgency = ref(false); |
| | | onMounted(() => { |
| | | Cookies.remove('projectId') |
| | |
| | | }; |
| | | // const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | // isAgency.value = userInfo.identity === 1; |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | isAdmin.value = userInfo.value.admin |
| | | |
| | | }); |
| | | const chooseType = ref(''); |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | const toBack = (val) => { |
| | | ElMessageBox.confirm( |
| | | '确定退回此条数据?', |
| | | '提示', |
| | | { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }) |
| | | .then(async () => { |
| | | const res = await backInfo({id:val.id}) |
| | | if (res.code == 200) { |
| | | ElMessage.success('数据退回成功') |
| | | await getList() |
| | | await getStatistics() |
| | | |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | } |
| | | }) |
| | | } |
| | | const confirmClick = () => { |
| | | reset() |
| | | showDrawer.value = false; |