| | |
| | | type="primary" size="small">保存</el-button> --> |
| | | <!-- <el-button text type="primary" size="small" |
| | | @click="editDMP">修改DMP配置</el-button> --> |
| | | <el-button style="margin-left: auto;" @click="getExport" |
| | | text type="primary" size="small">导出</el-button> |
| | | <el-button @click="editCollection" text type="primary" |
| | | size="small">数据点编辑</el-button> |
| | | |
| | | </el-header> |
| | | <el-main> |
| | | <!-- <el-table :data="list" height="200px"> |
| | |
| | | this.queryList() |
| | | }, |
| | | methods: { |
| | | // 数据点导出 |
| | | getExport() { |
| | | this.$HTTP.get(`/api/blade-cps/workstation/export-dp?` + this.$TOOL.qsStringify({ |
| | | workstationId: this.previewData.id |
| | | })).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link) |
| | | } |
| | | }) |
| | | }, |
| | | // 数据点编辑 |
| | | editCollection() { |
| | | this.$refs.CollDialog.open('edit', this.previewData) |
| | |
| | | return |
| | | } |
| | | console.log(data, '>>>>>>>>>>>') |
| | | this.$HTTP.get(`/api/blade-cps/workstation/listDmpVariablesByMachineId?machineId=${data.machineId}`).then(res => { |
| | | data.machineId && this.$HTTP.get(`/api/blade-cps/workstation/listDmpVariablesByMachineId?machineId=${data.machineId}`).then(res => { |
| | | this.list = res?.data |
| | | // Object.keys(this.basic).forEach(key => { |
| | | // this.basic[key] = res?.data?.[key] || '-' |