xiugai
This commit is contained in:
@@ -330,7 +330,7 @@ export default {
|
||||
dataDetail: {},
|
||||
active: 0,
|
||||
list: [], // 企业具有的通用能源系统
|
||||
listValue: [], //企业具有的通用能源系统value值
|
||||
listValue: ['01'], //企业具有的通用能源系统value值
|
||||
list2: [], // 一级计量(进出用能企业)
|
||||
listValue2: ['01'],
|
||||
listValue3: [],
|
||||
@@ -380,6 +380,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
result: function(newVal, oldVal) {
|
||||
console.log(newVal,'12344');
|
||||
if (oldVal != newVal) {
|
||||
if (this.listValue != []) {
|
||||
this.listValue = []
|
||||
@@ -784,9 +785,11 @@ export default {
|
||||
let res1 = await getCode(info1)
|
||||
if (res1.code === 0) {
|
||||
res1.data.forEach(v => {
|
||||
|
||||
this.list.push({ name: v.name, value: v.value })
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
handleClick(){
|
||||
this.doDebounce()
|
||||
@@ -796,7 +799,12 @@ export default {
|
||||
if(this.showForm) {
|
||||
return
|
||||
}
|
||||
console.log(this.listValue2, 'this.listValue2');
|
||||
if( this.listValue.indexOf("01") === -1){
|
||||
this.$toast('通用能源系统必须有配电系统')
|
||||
return
|
||||
}
|
||||
console.log(this.listValue2, 'this.listValue2', this.list);
|
||||
return
|
||||
if( this.listValue2.indexOf("01") === -1){
|
||||
this.$toast('一级计量必须有勾选电')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user