2 次代碼提交 a4291f5cf8 ... 9cb433096b

作者 SHA1 備註 提交日期
  LiuJ 9cb433096b Merge branch 'pre' of http://git.bjzxtw.org.cn:3000/zxt/admin_home into pre 1 周之前
  LiuJ 240abc88fa 1 1 周之前
共有 1 個文件被更改,包括 7 次插入1 次删除
  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;