shixr 1 год назад
Родитель
Сommit
57d86c05ec
1 измененных файлов с 27 добавлено и 15 удалено
  1. 27 15
      src/views/system/businessInfoToDo.vue

+ 27 - 15
src/views/system/businessInfoToDo.vue

@@ -85,19 +85,25 @@
               
             </el-tab-pane>
             <el-tab-pane label="文件" name="third">
-              <div class="hello tree-container">
-              <el-tree
-                :data="data"
-                show-checkbox
-                node-key="id"
-                class="tree"
-                :allow-drop="allowDrop"
-                :props="defaultProps"
-                :default-expanded-keys="[2, 3]"
-                :default-checked-keys="[5]">
-              </el-tree>
-            </div>
-              
+              <div class="filed_group_check" v-for='items, index in field_data' :key="index">
+                <div class="titles">
+                  <span> {{ index }} </span>
+                  <button class="hide_button" @click="showDialog(items)"> 选择</button>
+
+                </div>
+
+                <div>
+                  <button class="hide_button" @click='checkedAll(index)' v-show="items.selected"> 全选</button>
+                  <div v-for='value, key in items.data_list' :key="key" v-show="items.selected">
+
+                    <input type="checkbox" class="check_box tui-checkbox" id="index" :checked="value" value="value"
+                          @click='checkedOne(index, key)'>
+                    <label for="value">{{ key }}</label>
+
+                  </div>
+                </div>
+              </div>
+                      
             </el-tab-pane>
             
           </el-tabs>
@@ -150,13 +156,13 @@ export default {
       selected6: false,
       input:'',
       businessNum : this.$route.query.businessNum,
+      reportFileData : [],
 
       data: [{
           id: 1,
           label: '一级 2',
           children: [{
-            id: 3,
-            label: '二级 2-1',}]
+            label: 'aaa',}]
           }],
         defaultProps: {
           // 用于修改节点指定标签的属性值
@@ -183,6 +189,12 @@ export default {
         {
           this.customInfoData=res.data.custom_info;
         }
+    ),
+    reportFileList().then(
+      res=>
+        {
+          this.reportFileData=res.data.report_file_list;
+        }
     )
   },
   beforeUpdate() {},