| | |
| | | <div class="role_manage"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">设备工具明细</el-col> |
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;">设备工具明细</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="dialogVisible2 = true">新增</el-button> |
| | | </el-col> |
| | |
| | | </el-row> |
| | | </span> |
| | | </el-dialog> |
| | | <dataAcquisitionConfig v-if="showData"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ValueTable from '../tool/value-table.vue' |
| | | import dataAcquisitionConfig from '../do/b6-device-management/b6-data-acquisition-config.vue' |
| | | export default { |
| | | components: { |
| | | ValueTable |
| | | ValueTable, |
| | | dataAcquisitionConfig |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | dialogVisible: false, |
| | | dialogVisible2: false, |
| | | addPower: false, |
| | | showData: false, // 数采配置页面 |
| | | componentData: { |
| | | entity: { |
| | | deviceStatus: null, |
| | |
| | | }) |
| | | }, |
| | | 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 |
| | | console.log('?????', this.showData) |
| | | }, |
| | | submitForm3(){ |
| | | if(!this.configForm.ip){ |