From f88488f015dcf63eeb18a1e285d87250c433b6a1 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Mon, 05 Dec 2022 10:23:03 +0800
Subject: [PATCH] 新增有效期限
---
src/views/selfCheck/index.vue | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/src/views/selfCheck/index.vue b/src/views/selfCheck/index.vue
index 516e47f..fce537d 100644
--- a/src/views/selfCheck/index.vue
+++ b/src/views/selfCheck/index.vue
@@ -17,19 +17,21 @@
<el-table-column label="自查期限(之前)" prop="enterpriseSelfCheckDeadline" align="center"></el-table-column>
<el-table-column label="是否自查" prop="selfcheckStatus" width="130" align="center" sortable>
<template slot-scope="scope">
- <span>{{ scope.row.selfcheckStatus == 0 ? '未自查' : '已自查' }}</span>
+ <span>{{ scope.row.selfcheckStatus == 1 ? '已自查' : '未自查' }}</span>
</template>
</el-table-column>
<el-table-column label="自查时间" prop="selfcheckTime" align="center"></el-table-column>
<el-table-column label="是否隐患" prop="hiddendangerStatus" align="center">
<template slot-scope="scope">
- <span>{{ scope.row.hiddendangerStatus == 0 ? '否' : '是' }}</span>
+ <span>{{ scope.row.hiddendangerStatus == null ? '' : (scope.row.hiddendangerStatus == 1 ?'是':'否') }}</span>
</template>
</el-table-column>
<el-table-column label="整改情况" prop="rectifyStatus" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
- <el-button v-if="scope.row.rectifyStatus == 1" type="text" @click="toRepair(scope.row)">去整改</el-button>
- <span v-else>已完成</span>
+ <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>
+ <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">
@@ -65,8 +67,9 @@
import { getToken } from '@/utils/auth'
import selfReport from "./components/selfReport"
import repair from "./components/repair"
- import checkDetails from "./components/repair"
+ import checkDetails from "./components/checkDetails"
import { getUnDoneCheckTask } from '@/api/selfCheck'
+ import { getCheckUnitType } from "@/api/specialCheck"
export default {
name: "selfCheck",
@@ -88,6 +91,7 @@
},
created() {
const t = this
+ // t.getCheckUnitType()
t.getUncheckList()
},
mounted() {
@@ -110,22 +114,37 @@
this.getUncheckList()
},
+ // async getCheckUnitType(){
+ // const t = this
+ // console.log(t.unitType,5555555)
+ // let res = await getCheckUnitType()
+ // if(res.data.code === "200"){
+ // t.unitType = res.data.result.checkUnitType
+ // }else{
+ // t.unitType = -1
+ // }
+ // console.log(t.unitType,66666666)
+ // },
+
toReport(row){
const t = this
t.$refs.report.dialogVisible = true
t.$refs.report.id = row.id
+ t.$refs.report.getReportInfo()
},
toDetail(row){
const t = this
t.$refs.details.dialogVisible = true
t.$refs.details.id = row.id
+ t.$refs.details.getEnterpriseInfo()
},
toRepair(row){
const t = this
t.$refs.repair.dialogVisible = true
t.$refs.repair.id = row.id
+ t.$refs.repair.getSelfRectifyInfo()
},
async getUncheckList(){
--
Gitblit v1.9.2