From 8662474529c048622a366ccac4798595463cb302 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期五, 25 十一月 2022 17:31:39 +0800 Subject: [PATCH] 新增有效期限 --- src/views/selfCheck/index.vue | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/selfCheck/index.vue b/src/views/selfCheck/index.vue index 3908fbc..17fe36c 100644 --- a/src/views/selfCheck/index.vue +++ b/src/views/selfCheck/index.vue @@ -29,14 +29,14 @@ <el-table-column label="整改情况" prop="rectifyStatus" align="center" class-name="small-padding fixed-width"> <template slot-scope="scope"> <span v-if="scope.row.rectifyStatus==0">无需整改</span> - <el-button v-else-if="scope.row.rectifyStatus==1" type="text" @click="toRepair(scope.row)">去整改</el-button> + <el-button v-else-if="scope.row.rectifyStatus==1 && unitType==-1" type="text" @click="toRepair(scope.row)">去整改</el-button> <span v-else-if="scope.row.rectifyStatus==2">已整改</span> <span v-else>--</span> </template> </el-table-column> <el-table-column label="详情" align="center" class-name="small-padding fixed-width"> <template slot-scope="scope"> - <el-button v-if="scope.row.selfcheckStatus == 0" type="text" @click="toReport(scope.row)">自查填报</el-button> + <el-button v-if="scope.row.selfcheckStatus == 0 && unitType==-1" type="text" @click="toReport(scope.row)">自查填报</el-button> <el-button v-else type="text" @click="toDetail(scope.row)">查看详情</el-button> </template> </el-table-column> @@ -69,6 +69,7 @@ import repair from "./components/repair" import checkDetails from "./components/checkDetails" import { getUnDoneCheckTask } from '@/api/selfCheck' + import { getCheckUnitType } from "@/api/specialCheck" export default { name: "selfCheck", @@ -85,6 +86,7 @@ pageTotal: 0, currentPage: 1, tableKey: 0, + unitType: null, checkData: [] } }, @@ -112,6 +114,16 @@ this.getUncheckList() }, + async getCheckUnitType(){ + const t = this + let res = await getCheckUnitType() + if(res.data.code === "200"){ + t.unitType = res.data.result.checkUnitType + }else{ + t.unitType = -1 + } + }, + toReport(row){ const t = this t.$refs.report.dialogVisible = true -- Gitblit v1.9.2