fix: asset弹框内交互bug修复

dc联动、各种操作点击交互bug
This commit is contained in:
chenjinsong
2020-01-08 09:16:34 +08:00
parent aaf608bb7d
commit 1763eee5df
8 changed files with 106 additions and 80 deletions

View File

@@ -26,7 +26,7 @@
<el-input type="text" placeholder="" v-model="idc.location" size="mini"></el-input>
</el-form-item>
<el-form-item :label="$t('asset.createAssetTab.principal')" prop="principal">
<el-select v-model="idc.principal" clearable size="mini">
<el-select v-model="idc.principal" clearable size="mini" placeholder="">
<el-option v-for="item in principals" :key="item.id" :label="item.username" :value="item.userId"></el-option>
</el-select>
</el-form-item>
@@ -108,7 +108,6 @@
}
},
openBox:function(){
console.log("show")
this.popBox.show=true;
},
getUserData() {
@@ -125,7 +124,6 @@
if(valide){
const h = temp.$createElement;
if(!temp.idc.id){
console.log("save")
temp.$post('idc', temp.idc).then(response => {
if (response.code === 200) {
temp.$message({duration: 1000, type: 'success', message: temp.$t("tip.deleteSuccess")});
@@ -136,7 +134,6 @@
}
})
}else{
console.log("edit")
this.$put('idc', temp.idc).then(response => {
if (response.code === 200) {
temp.$message({duration: 1000, type: 'success', message: temp.$t("tip.deleteSuccess")});
@@ -201,7 +198,6 @@
this.title = this.$t('asset.createAssetTab.AddIdcTab.title');
this.popBox.isEdit=false;
this.resetData();
console.log("reset")
}
}
},