|
@@ -581,6 +581,7 @@ export default {
|
|
// this.form.department_arr_id = [];
|
|
// this.form.department_arr_id = [];
|
|
// this.form.city_arr_id = [];
|
|
// this.form.city_arr_id = [];
|
|
this.form.pid_arr = [];
|
|
this.form.pid_arr = [];
|
|
|
|
+ this.form.type = 1;
|
|
}
|
|
}
|
|
if (type == 2) { //type2 全部清理
|
|
if (type == 2) { //type2 全部清理
|
|
this.form.name = "";
|
|
this.form.name = "";
|
|
@@ -593,6 +594,7 @@ export default {
|
|
this.form.seo_keywords = "";
|
|
this.form.seo_keywords = "";
|
|
this.form.seo_description = "";
|
|
this.form.seo_description = "";
|
|
this.form.pid_arr = [];
|
|
this.form.pid_arr = [];
|
|
|
|
+ this.form.type = 1;
|
|
//存在验证的时候再清理
|
|
//存在验证的时候再清理
|
|
if (this.$refs.form && this.$refs.form.fields.some(field => field.validateState === 'error')) {
|
|
if (this.$refs.form && this.$refs.form.fields.some(field => field.validateState === 'error')) {
|
|
this.$refs.form.clearValidate();
|
|
this.$refs.form.clearValidate();
|