heyang 1 år sedan
förälder
incheckning
05664cae8e
1 ändrade filer med 21 tillägg och 0 borttagningar
  1. 21 0
      src/views/safetyCheck/startInspection/index.vue

+ 21 - 0
src/views/safetyCheck/startInspection/index.vue

@@ -128,6 +128,20 @@
 
             </div>
           </div>
+          <div class="bottom-form-box" >
+            <div class="bottom-form-title-box">
+              <p>检查项</p>
+              <p>隐患数:{{addForm.checkHazardDtoList.length}}</p>
+            </div>
+            <div class="dept-table-max-box">
+              <el-table ref="leftDeviceTable" border :data="deviceTableList" @selection-change="deviceChange" :row-key="getRowKeys">
+                <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
+                <el-table-column label="名称" align="center" prop="chName" show-overflow-tooltip/>
+                <el-table-column label="型号" align="center" prop="code" show-overflow-tooltip width="150"/>
+                <el-table-column label="类型" align="center" prop="hazardTypeMode" show-overflow-tooltip width="168"/>
+              </el-table>
+            </div>
+          </div>
           <div class="bottom-form-box" v-if="addForm.checkResult === 0">
             <div class="bottom-form-title-box">
               <p>不符合项</p>
@@ -285,6 +299,7 @@
         hazardCheckCount:0,
         //上传用名称保存
         upDataName:"",
+        deviceTableList:[{}],
         //检查类型
         inspectCategoryList:[{id:'1',name:'综合检查'},{id:'2',name:'专项检查'}],
         // 表单校验
@@ -356,6 +371,12 @@
       this.buildFloorGetlist();
     },
     methods:{
+      getRowKeys(row) {
+        return row.id
+      },
+      deviceChange(selection){
+        console.log(selection)
+      },
       //获取权限范围
       getGentle(){
         getGentle().then(response => {