| | |
| | | }, |
| | | beforTree() { |
| | | safetyInspectionItemTree().then((res) => { |
| | | console.log(res); |
| | | this.tree = res.data.result; |
| | | }); |
| | | }, |
| | | safetyInspectionItemL(data) { |
| | | // console.log(data) |
| | | this.listQuery.filter.elementB = data.value; |
| | | safetyInspectionItemList(this.listQuery).then((res) => { |
| | | // console.log(res.data.result.records); |
| | | this.list = res.data.result.records; |
| | | }); |
| | | }, |
| | |
| | | } else { |
| | | this.disabled = true; |
| | | var i = this.list.findIndex((item) => item.id == id); |
| | | console.log(id); |
| | | this.form = this.list[i]; |
| | | } |
| | | }, |
| | |
| | | this.index = this.form.deductionList.findIndex( |
| | | (item) => item.name == val.name |
| | | ); |
| | | this.formInline = val; |
| | | this.formInline=JSON.parse(JSON.stringify(val)); |
| | | } |
| | | }, |
| | | listAdd() { |
| | |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | } |
| | | </style> |
| | | </style> |