| | |
| | | <el-table :data="tableList.slice((page.current - 1) * page.size, page.current * page.size)" |
| | | border tooltip-effect="dark" style="width: 100%;" height="100%"> |
| | | <el-table-column type="index" label="序号" align="center" width="65"></el-table-column> |
| | | <el-table-column prop="insProductItem" align="center" label="检验项目"> |
| | | <el-table-column prop="inspectionItemSubclass" align="center" label="检验项"></el-table-column> |
| | | <el-table-column prop="insProductItem" align="center" label="检验项子项"> |
| | | </el-table-column> |
| | | <el-table-column prop="section" label="操作" width="120"> |
| | | <template slot-scope="scope"> |
| | |
| | | this.tableList.forEach(i => { |
| | | let data = i.insProductItem.split(',') |
| | | i.insProductItem = data[data.length - 1] |
| | | i.inspectionItemSubclass = data[data.length - 2] |
| | | }) |
| | | }, |
| | | data() { |
| | |
| | | const index = this.domains.indexOf(item) |
| | | if (index !== -1 && this.domains.length > 1) { |
| | | if(item.id){ |
| | | this.$axios.get(this.$api.deviceScope.deleteDataAcquisitionConfiguration + "?id=" + item.id).then(res => { |
| | | this.$axios.delete(this.$api.deviceScope.deleteDataAcquisitionConfiguration + "?id=" + item.id).then(res => { |
| | | if(res.code == 200) { |
| | | this.domains.splice(index, 1) |
| | | } |