fix: asset弹框新增model,退出后清空已选的vendor

This commit is contained in:
chenjinsong
2020-01-10 20:28:48 +08:00
parent a127516f73
commit 898eee2340
2 changed files with 26 additions and 1 deletions

View File

@@ -134,6 +134,7 @@
v-model="popCompVisible"
:disabled=popState
v-clickoutside="clickOutSide"
@hide="resetVendor"
>
<div class="pop-window-assetType" @click="editQuit()">
<div class="pop-window-assetType-content">
@@ -779,6 +780,18 @@
this.assetData.accounts[0].pwd='';
}
},
//新增型号弹框关闭后重置弹框内容
resetVendor() {
this.addVendorData.value = '';
this.vendorCode = '';
this.vendorCount = '';
this.modelUlData = [];
this.addNewModelData = {
name: '',
vendorCode: '',
typeCode: ''
}
},
addNewData(type) {
if (type === 'IDC') {
this.$post('idc', this.addIdcData).then(res => {