perf: dc代码提交

This commit is contained in:
chenjinsong
2020-07-16 17:33:20 +08:00
parent 44769006d0
commit 98aa99f66d
9 changed files with 270 additions and 395 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="right-box right-box-prom" v-clickoutside="clickos">
<div class="right-box right-box-prom" v-clickoutside="clickOutside">
<!-- begin--顶部按钮-->
<div class="right-box-top-btns">
<button type="button" v-if="editPromServer.id" @click="del"
@@ -91,15 +91,13 @@
}
},
methods: {
clickos() {
this.esc(false);
},
/*关闭弹框*/
esc(refresh) {
this.$emit("close", refresh);
},
clickOutside() {
this.esc(false);
},
/*保存*/
save() {
this.$refs.promServerForm.validate(valid => {
@@ -111,7 +109,6 @@
this.esc(true);
} else {
this.$message.error(response.msg);
this.esc(false);
}
});
} else {
@@ -121,7 +118,6 @@
this.esc(true);
} else {
this.$message.error(response.msg);
this.esc(false);
}
});
}