Admin
2022-12-05 e758d9de9f415ec580e7d88ec32fac6b6eec4dea
修改判断条件
已修改1个文件
29 ■■■■ 文件已修改
src/views/selfCheck/index.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>
@@ -86,12 +86,13 @@
                pageTotal: 0,
                currentPage: 1,
                tableKey: 0,
                checkData: []
                checkData: [],
                unitType: null
            }
        },
        created() {
            const t = this
            // t.getCheckUnitType()
            t.getCheckUnitType()
            t.getUncheckList()
        },
        mounted() {
@@ -114,17 +115,15 @@
                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)
            // },
            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