马宇豪
2025-01-10 03f0e2a3220106ec2a9dd8f53d3ef5ab824c3ae7
src/views/specialCheck/components/areaEnterprises.vue
@@ -21,7 +21,7 @@
                <el-table-column label="检查单位" prop="checkUnitName" align="center"></el-table-column>
                <el-table-column label="检查层级" prop="checkUnitType" align="center">
                    <template slot-scope="scope">
                        <span>{{ scope.row.checkUnitType ==1?'省级':(scope.row.checkUnitType ==2?'市级':(scope.row.checkUnitType ==3?'区县级':'自查')) }}</span>
                        <span>{{ scope.row.checkUnitType ==1?'省级':(scope.row.checkUnitType ==2?'地(州、市)级':(scope.row.checkUnitType ==3?'区县级':'自查')) }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="隐患总数" prop="hiddendangerSum" align="center"></el-table-column>
@@ -73,7 +73,6 @@
        methods:{
            toCheck(row){
                const t = this
                console.log(row.checkUnitType,'type')
                if(row.checkUnitType == 4){
                    t.$refs.report.id = row.id
                    t.$refs.report.enterpriseType = t.enterpriseType
@@ -81,7 +80,7 @@
                    t.$refs.report.dialogVisible = true
                }else{
                    t.$refs.detail.id = row.id
                    t.$refs.detail.unitType = row.checkUnitType
                    t.$refs.detail.checkUnitType = row.checkUnitType
                    t.$refs.detail.enterpriseType = t.enterpriseType
                    t.$refs.detail.getEnterpriseInfo()
                    t.$refs.detail.dialogVisible = true