2 Commits ccb13d5e90 ... 62608bd85b

Auteur SHA1 Bericht Datum
  reloaded 62608bd85b 合并 4 jaren geleden
  reloaded d42da0f452 is_del 4 jaren geleden

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

@@ -125,47 +125,47 @@ export default {
     ...news({ newsQuery: 'query', newsFetch: 'fetch' }),
     async search() {
       if (this.columnName == '平台建设') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '平台建设', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '平台建设', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `achievementsDetail`, res.data[0]);
         }
       } else if (this.columnName == '项目成果') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '项目成果', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '项目成果', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `projectDetail`, res.data[0]);
         }
       } else if (this.columnName == '知识产权') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '知识产权', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '知识产权', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `knowledgeDetail`, res.data[0]);
         }
       } else if (this.columnName == '科技支撑') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '科技支撑', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '科技支撑', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `technologyDetail`, res.data[0]);
         }
       } else if (this.columnName == '超算联盟') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '超算联盟', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '超算联盟', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `supercomputingDetail`, res.data[0]);
         }
       } else if (this.columnName == '国家网格') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '国家网格', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '国家网格', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `countryDetail`, res.data[0]);
         }
       } else if (this.columnName == '数学中心') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '数学中心', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '数学中心', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `teachingtDetail`, res.data[0]);
         }
       } else if (this.columnName == '创新基地') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '创新基地', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '创新基地', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `entrepreneurshipDetail`, res.data[0]);
         }
       } else if (this.columnName == '软件中心') {
-        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '软件中心', status: 2 });
+        let res = await this.newsQuery({ skip: 0, limit: 1, col_name: '软件中心', status: 2, is_del: 0 });
         if (this.$checkRes(res)) {
           this.$set(this, `softwareDetail`, res.data[0]);
         }

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

@@ -77,16 +77,16 @@ 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);
       this.$set(this, `ztytTotal`, res.total);
-      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);
       this.$set(this, `jswdTotal`, res.total);
-      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);
       this.$set(this, `hyyjTotal`, res.total);
-      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);
       this.$set(this, `kjpxTotal`, res.total);
     },

+ 3 - 3
src/views/communication/list.vue

@@ -153,7 +153,7 @@ 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);
@@ -164,12 +164,12 @@ export default {
         let res = await this.newsFetch(this.id);
         if (this.$checkRes(res)) this.$set(this, `details`, res.data);
       } else {
-        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>