| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- <dataAcquisitionConfig v-if="showData"/>--> |
| | | <dataAcquisitionConfig v-if="showData" :tableList="tableList"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from '../tool/value-table.vue' |
| | | // import dataAcquisitionConfig from '../do/b6-device-management/b6-data-acquisition-config.vue' |
| | | import dataAcquisitionConfig from '../do/b6-device-management/b6-data-acquisition-config.vue' |
| | | export default { |
| | | components: { |
| | | ValueTable, |
| | | // dataAcquisitionConfig |
| | | dataAcquisitionConfig |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | dialogVisible2: false, |
| | | addPower: false, |
| | | showData: false, // 数采配置页面 |
| | | tableList: [], |
| | | componentData: { |
| | | entity: { |
| | | deviceStatus: null, |
| | |
| | | id: 'handleConfig', |
| | | font: '数采配置', |
| | | type: 'text', |
| | | method: 'handleConfig' |
| | | method: 'handleConfig', |
| | | disabFun: (row, index) => { |
| | | return row.insProductItem === '' |
| | | } |
| | | }], |
| | | headNoShow:['enDeviceName'], |
| | | tagField: { |
| | |
| | | if (power[i].menuMethod == 'addDeviceParameter') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'numberCollect') { |
| | | if (power[i].menuMethod == 'saveDataAcquisitionConfiguration') { |
| | | config = true |
| | | } |
| | | } |
| | | if (!config) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | if (!config) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | // 获取字典 |
| | | selectEnumByCategory() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | |
| | | }) |
| | | }, |
| | | handleConfig(row){ |
| | | this.configForm = {} |
| | | this.dialogVisible3 = true |
| | | this.$axios.post(this.$api.deviceScope.getNumberCollect+'?id='+row.id).then(res => { |
| | | this.configForm = res.data |
| | | // this.configForm = {} |
| | | // this.dialogVisible3 = true |
| | | // this.$axios.post(this.$api.deviceScope.getNumberCollect+'?id='+row.id).then(res => { |
| | | // this.configForm = res.data |
| | | // }) |
| | | this.showData = true |
| | | const list = row.insProductItem.split(';') |
| | | let list2 = [] |
| | | list.map((item) => { |
| | | const obj = Object.assign({ |
| | | deviceId: row.id, |
| | | insProductItem: item, |
| | | }) |
| | | list2.push(obj) |
| | | }) |
| | | // this.showData = true |
| | | // console.log('?????', this.showData) |
| | | this.tableList = list2 |
| | | }, |
| | | // closeDataVue () { |
| | | // this.showData = false |
| | | // }, |
| | | closeDataVue () { |
| | | this.showData = false |
| | | }, |
| | | submitForm3(){ |
| | | if(!this.configForm.ip){ |
| | | this.$message.error('请填写IP'); |