|
@@ -11,11 +11,11 @@
|
|
|
<span>{{editData.Point.LocationFlag.toString() || '--'}}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <span>设备类型</span>
|
|
|
+ <span>对象类型</span>
|
|
|
<span>{{editData.Point.KeyEquipmentType || '--'}}</span>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <span>设备参数</span>
|
|
|
+ <span>对象参数</span>
|
|
|
<span>{{editData.Point.KeyEquipmentParameter || '--'}}</span>
|
|
|
</li>
|
|
|
<li>
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
} else if (this.dictionaryData.length == 4) { //专业系统
|
|
|
basicParams.SpecialtyCode = this.dictionaryData[1]
|
|
|
basicParams.Specialty = this.dictionaryNames[1]
|
|
|
- basicParams.SystemCode = this.dictionaryNames[2]
|
|
|
+ basicParams.SystemCode = this.dictionaryData[2]
|
|
|
basicParams.System = this.dictionaryNames[2]
|
|
|
}
|
|
|
let updateParams = {
|
|
@@ -365,38 +365,40 @@ export default {
|
|
|
},
|
|
|
handleItemChange(val, cb) {
|
|
|
if (val.length == 3) {
|
|
|
- let params = { type: val[2] }
|
|
|
- getQueryProperty(params, res => {
|
|
|
- if (res.Result == 'success') {
|
|
|
- let data = res.Content
|
|
|
- let arr = data
|
|
|
- .filter(item => {
|
|
|
- return item.inputMode == 'L' || item.inputMode == 'M'
|
|
|
+ if(val[2]!='null'){
|
|
|
+ let params = { type: val[2] }
|
|
|
+ getQueryProperty(params, res => {
|
|
|
+ if (res.Result == 'success') {
|
|
|
+ let data = res.Content
|
|
|
+ let arr = data
|
|
|
+ .filter(item => {
|
|
|
+ return item.inputMode == 'L' || item.inputMode == 'M'
|
|
|
+ })
|
|
|
+ .map(item => {
|
|
|
+ return {
|
|
|
+ code: item.infoPointCode,
|
|
|
+ name: item.infoPointName
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.infoDict = {}
|
|
|
+ data.forEach(item => {
|
|
|
+ this.infoDict[item.infoPointCode] = item
|
|
|
})
|
|
|
- .map(item => {
|
|
|
- return {
|
|
|
- code: item.infoPointCode,
|
|
|
- name: item.infoPointName
|
|
|
- }
|
|
|
- })
|
|
|
- this.infoDict = {}
|
|
|
- data.forEach(item => {
|
|
|
- this.infoDict[item.infoPointCode] = item
|
|
|
- })
|
|
|
- this.optionObj = {}
|
|
|
- this.getOptionItem(this.options, val[2])
|
|
|
+ this.optionObj = {}
|
|
|
+ this.getOptionItem(this.options, val[2])
|
|
|
|
|
|
- if (arr.length) {
|
|
|
- this.optionObj.content = arr
|
|
|
- } else {
|
|
|
- this.optionObj.content = undefined
|
|
|
- }
|
|
|
+ if (arr.length) {
|
|
|
+ this.optionObj.content = arr
|
|
|
+ } else {
|
|
|
+ this.optionObj.content = undefined
|
|
|
+ }
|
|
|
|
|
|
- if (typeof cb == 'function') {
|
|
|
- cb()
|
|
|
+ if (typeof cb == 'function') {
|
|
|
+ cb()
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
getOptionItem(arr, code) {
|
|
@@ -435,7 +437,7 @@ export default {
|
|
|
},
|
|
|
//回显数值
|
|
|
async showValue(val) {
|
|
|
- await this.getEqAll()
|
|
|
+ // await this.getEqAll()
|
|
|
let length = val.RelationList.length
|
|
|
let eqMark = this.editData.Point.EquipmentMark
|
|
|
if (length) {
|