| | |
| | | ></el-tree> |
| | | </div> |
| | | </div> |
| | | <div class="box-right" v-if="list == '' ? false : true"> |
| | | <div class="box-right" v-if="lists == '' ? false : true"> |
| | | <div class="btns"> |
| | | <el-button type="primary" class="btn" @click="open(0)" |
| | | >添加</el-button |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog title="添加" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%"> |
| | | <el-dialog :title="id" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%"> |
| | | <el-form ref="form" :rules="rules" :model="form" label-width="110px"> |
| | | <el-form-item label="自查清单名称" prop="name"> |
| | | <el-input v-model="form.inspectionName"></el-input> |
| | |
| | | safetySelfInspectionInfo({ id: id }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.form = res.data.result; |
| | | console.log(res.data.result); |
| | | this.list = res.data.result; |
| | | var trees = []; |
| | | for (var i = 0; i < this.list.itemList.length; i++) { |
| | |
| | | cser.push(capB) |
| | | } |
| | | arr[i].id=cser |
| | | console.log('tag', capB) |
| | | arr[i].child = this.checkSameData(arr[i].child); |
| | | } |
| | | this.lists = arr; |
| | | console.log(this.lists); |
| | | } |
| | | }); |
| | | }, |