| | |
| | | return this |
| | | }, |
| | | getDetailList(params) { |
| | | |
| | | |
| | | this.$HTTP.get(`/api/smart-collect/tpl/typelist`, {}, { params }).then(res => { |
| | | |
| | | this.typeList = res.data || []; |
| | | // return res |
| | | }).finally(() => { |
| | | this.getList(params) |
| | | }) |
| | | |
| | | }, |
| | | getList(params) { |
| | | this.$HTTP.get(`/api/blade-cps/workstation/listDatapointsByWorkstationId`, {}, { params }).then(res => { |
| | | // res.data.records = res?.data?.records.map(v => { |
| | | // return { |
| | |
| | | this.tabledata = res.data.dpConfig || []; |
| | | // return res |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | //表单提交方法 |
| | | submit() { |
| | |
| | | dpConfig: JSON.stringify(this.tabledata), |
| | | workstationId: this.params.id, |
| | | type: this.type |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.getList({ |
| | | workstationId: this.params.id, |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |