LiuJ 1 nedēļu atpakaļ
vecāks
revīzija
240abc88fa
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. 7 1
      src/views/news/addGood.vue

+ 7 - 1
src/views/news/addGood.vue

@@ -528,7 +528,9 @@ export default {
     //1.2 提交表单
     addToServe() {
 
-      this.form.website_id = getWebSiteId();
+      if (this.userType != 10000) {
+        this.form.website_id = getWebSiteId()
+      }
       console.log("提交时获取网站id:", this.form.website_id)
       //先进行验证
       this.$refs.form.validate(valid => {
@@ -571,6 +573,7 @@ export default {
             console.log("用户身份为其他用户,提交到审核!")
             this.form.status = 1;
           }
+          return;
           this.$store.dispatch('news/addGood', this.form).then(res => {
             if (res.code == 200) {
               //汇报结果
@@ -832,6 +835,9 @@ export default {
     'form.website_id': {
       handler(newVal, oldVal) {
         if (newVal !== oldVal) {
+          console.log('website_id变化了', newVal);
+          console.log('website_id变化了', oldVal);
+          console.log('website_id变化了', this.form.cat_arr_id);
           this.form.cat_arr_id = [];
           this.form.catid = "";
           this.parentKey += 1;