|
@@ -617,6 +617,13 @@ export default {
|
|
return _result;
|
|
return _result;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ watch:{
|
|
|
|
+ tagIndex(val){
|
|
|
|
+ if(val !=-2){
|
|
|
|
+ this.tagSubject = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
open(type) {
|
|
open(type) {
|
|
this.tagIndex = type;
|
|
this.tagIndex = type;
|
|
@@ -681,7 +688,6 @@ export default {
|
|
}
|
|
}
|
|
];
|
|
];
|
|
|
|
|
|
- // console.log(this.form)
|
|
|
|
this.formLoading = true;
|
|
this.formLoading = true;
|
|
this.ajax
|
|
this.ajax
|
|
.post(this.$store.state.api + "insert_smodel", params)
|
|
.post(this.$store.state.api + "insert_smodel", params)
|
|
@@ -689,7 +695,6 @@ export default {
|
|
if (typeof res.data == "object") {
|
|
if (typeof res.data == "object") {
|
|
this.$message.warning("该新建的模块名称已存在,请重新输入");
|
|
this.$message.warning("该新建的模块名称已存在,请重新输入");
|
|
} else if (res.data == 1) {
|
|
} else if (res.data == 1) {
|
|
- this.successNew();
|
|
|
|
this.boxType = 0;
|
|
this.boxType = 0;
|
|
this.tagIndex = -1;
|
|
this.tagIndex = -1;
|
|
this.form = {
|
|
this.form = {
|