| | |
| | | </el-form-item> |
| | | <el-form-item label="通道" prop="memoryDir"> |
| | | <el-select v-model="form.memoryDir" placeholder="请选择"> |
| | | <el-option :label="item" :value="item" v-for="(item, index) in channel" :key="index"></el-option> |
| | | <el-option v-for="(a, ai) in dict.type.domestic_network_analyzers" :key="ai" :label="a.label" |
| | | :value="a.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | import { |
| | | queryDataAcquisitionConfigurationTwo, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { |
| | | getTCPValuesNew |
| | | } from "@/api/business/inspectionTask.js"; |
| | | export default { |
| | | dicts: ['domestic_network_analyzers'], |
| | | props: ['itemList', 'param', 'equipOptions'], |
| | | data() { |
| | | return { |
| | |
| | | itemListNew: [], |
| | | dialogVisible: false, |
| | | form: {}, |
| | | channel: [], |
| | | // channel: [], |
| | | rules: { |
| | | memoryDir: [ |
| | | { required: true, message: '请选择通道', trigger: 'change' } |
| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | console.log(222222, this.param) |
| | | this.itemListNew = this.HaveJson(this.itemList) |
| | | let equip = null; |
| | | for (let n in this.param) { |
| | | let obj = this.equipOptions.find(m => m.value == this.param[n].equipValue[0].v.v) |
| | | let obj = this.equipOptions.find(m => this.param[n].equipValue && this.param[n].equipValue.length > 0 && (m.value == this.param[n].equipValue[0].v.v)) |
| | | if (obj && obj.label && obj.label.indexOf('网络分析仪') > -1) { |
| | | equip = obj |
| | | this.isShowBtn = true |
| | |
| | | serverPort: equip.port, |
| | | memoryDir: null |
| | | } |
| | | this.channel = equip.channel ? equip.channel.split(',') : [] |
| | | // this.channel = equip.channel ? equip.channel.split(',') : [] |
| | | this.dialogVisible = true |
| | | } |
| | | }, |