perf: dc代码提交
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user