reloaded преди 4 години
родител
ревизия
d42da0f452

+ 1 - 1
src/views/achievement/index.vue

@@ -187,7 +187,7 @@ export default {
     async search() {
       this.columnName = this.col_name;
       if (this.display == '0') {
-        let res = await this.newsQuery({ skip: 0, limit: 16, col_name: this.col_name, status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 16, col_name: this.col_name, status: 2, is_del: 0 });
         if (this.$checkRes(res)) this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       } else {

+ 4 - 4
src/views/communication/index.vue

@@ -96,13 +96,13 @@ export default {
   methods: {
     ...news({ newsQuery: 'query', newsFetch: 'fetch' }),
     async search() {
-      let res = await this.newsQuery({ skip: 0, limit: 16, col_name: '专题研讨', status: 2 });
+      let res = await this.newsQuery({ skip: 0, limit: 16, col_name: '专题研讨', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `ztytList`, res.data);
-      res = await this.newsQuery({ skip: 0, limit: 16, col_name: '技术问答', status: 2 });
+      res = await this.newsQuery({ skip: 0, limit: 16, col_name: '技术问答', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `jswdList`, res.data);
-      res = await this.newsQuery({ skip: 0, limit: 16, col_name: '行业研究', status: 2 });
+      res = await this.newsQuery({ skip: 0, limit: 16, col_name: '行业研究', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `hyyjList`, res.data);
-      res = await this.newsQuery({ skip: 0, limit: 16, col_name: '科技培训', status: 2 });
+      res = await this.newsQuery({ skip: 0, limit: 16, col_name: '科技培训', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `kjpxList`, res.data);
     },
   },

+ 4 - 5
src/views/communication/list.vue

@@ -116,8 +116,7 @@ export default {
       limit: 14,
       newsid: '',
       // 详情
-      details: {
-      },
+      details: {},
     };
   },
   created() {
@@ -157,19 +156,19 @@ export default {
     async changeMenu(name, index) {
       this.menuIndex = index;
       this.columnName = name;
-      let res = await this.newsQuery({ skip: 0, limit: 14, col_name: name, status: 2 });
+      let res = await this.newsQuery({ skip: 0, limit: 14, col_name: name, status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `list`, res.data);
       this.menuColor = 'rgb(5,73,130)';
       this.$set(this, `displays`, 0);
     },
 
     async search() {
-      let res = await this.newsQuery({ skip: 0, limit: 14, col_name: this.col_name, status: 2 });
+      let res = await this.newsQuery({ skip: 0, limit: 14, col_name: this.col_name, status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `list`, res.data);
     },
 
     async searchinfo(skip, limit) {
-      let res = await this.newsQuery({ skip, limit: 14, col_name: this.col_name, status: 2 });
+      let res = await this.newsQuery({ skip, limit: 14, col_name: this.col_name, status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `list`, res.data);
     },
 

+ 3 - 3
src/views/news/index.vue

@@ -61,11 +61,11 @@ export default {
   methods: {
     ...news({ newsQuery: 'query', newsFetch: 'fetch' }),
     async search() {
-      let res = await this.newsQuery({ skip: 0, limit: 8, col_name: '科技资讯', status: 2 });
+      let res = await this.newsQuery({ skip: 0, limit: 8, col_name: '科技资讯', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `oneList`, res.data);
-      res = await this.newsQuery({ skip: 0, limit: 8, col_name: '技术前沿', status: 2 });
+      res = await this.newsQuery({ skip: 0, limit: 8, col_name: '技术前沿', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `twoList`, res.data);
-      res = await this.newsQuery({ skip: 0, limit: 8, col_name: '工作动态', status: 2 });
+      res = await this.newsQuery({ skip: 0, limit: 8, col_name: '工作动态', status: 2, is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `threeList`, res.data);
     },
   },

+ 4 - 4
src/views/partisan/index.vue

@@ -114,13 +114,13 @@ export default {
   methods: {
     ...news({ newsQuery: 'query', newsFetch: 'fetch' }),
     async searchInfo({ skip = 0, limit = 8, status = 2, ...info } = {}) {
-      let res = await this.newsQuery({ skip, limit, status, col_name: '图片新闻' });
+      let res = await this.newsQuery({ skip, limit, status, col_name: '图片新闻', is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `ruleList`, res.data);
-      res = await this.newsQuery({ skip, limit, status, col_name: '党建工作' });
+      res = await this.newsQuery({ skip, limit, status, col_name: '党建工作', is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `workList`, res.data);
-      res = await this.newsQuery({ skip, limit, status, col_name: '学习园地' });
+      res = await this.newsQuery({ skip, limit, status, col_name: '学习园地', is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `stuList`, res.data);
-      res = await this.newsQuery({ skip, limit, status, col_name: '党风廉政' });
+      res = await this.newsQuery({ skip, limit, status, col_name: '党风廉政', is_del: 0 });
       if (this.$checkRes(res)) this.$set(this, `politicsList`, res.data);
     },
   },

+ 4 - 1
src/views/pcenter/parts/infoFrom.vue

@@ -73,7 +73,10 @@
             </el-radio-group>
           </el-form-item>
           <el-col :span="24" style="text-align:center;">
-            <el-button v-if="user.type == '0' || user.type == '1' || (user.type == '4' && form.status == '0')" type="primary" @click="submitDraft('form')"
+            <el-button
+              v-if="user.type == '0' || user.type == '1' || (user.type == '4' && (form.status == '0' || form.status == '1'))"
+              type="primary"
+              @click="submitDraft('form')"
               >保存</el-button
             >
             <el-button type="danger" @click="resetForm()">取消</el-button>