15313670163 1 сар өмнө
parent
commit
5c7e08bba7

+ 4 - 111
src/views/company/checkcompanyList.vue

@@ -234,26 +234,6 @@ export default {
         });
       });
     },
-    //1.3 修改网站状态
-    upRow(id, status) {
-      let data = {
-        id: id,
-        status: status
-      }
-      this.$store.dispatch('company/upCompany', data).then(res => {
-        if (res.code == 200) {
-          this.$message({
-            type: 'success',
-            message: '企业状态已修改!'
-          });
-        }
-      }).catch(() => {
-        this.$message({
-          type: 'warning',
-          message: '已取消删除'
-        });
-      });
-    },
     //1.4 列表内容分页
     //直接跳转
     handleSizeChange(val) {
@@ -295,72 +275,7 @@ export default {
         query: data
       });
     },
-    //添加新闻 end ------------------------------------------------------------>
-
-    //3.编辑新闻 start ------------------------------------------------------------>
-    //3.1 打开反选窗口
-    selectRow(cid, row) {
-      console.log(row)
-      this.selectStatusWindow = true;
-      //给与编辑的id
-      this.editId = row.id;
-      //给与编辑的状态
-      this.editStatus = row.status;
-      //把cid转换成数组,然后取出最后一位
-
-      let cidLast = "";
-      // 判断cid是否为数组
-      if (!Array.isArray(cid)) {
-        let cidArr = cid.replace(/[\[\]]/g, '').split(',');
-        cidLast = cidArr[cidArr.length - 1];
-      } else {
-        cidLast = cid[cid.length - 1];
-      }
-      this.getWebsiteNavPoolSite(cidLast, row)
-    },
-    //3.2 获取可选网站列表
-    getWebsiteNavPoolSite(cid, row) {
-      this.loading = true;
-      let ignoreIds = JSON.parse(row.ignore_ids);
-      this.webSiteData = [];
-      this.$store.dispatch('news/getWebsiteNavPoolSite', { category_id: cid }).then(res => {
-        //this.webSiteData = res.data;
-        for (let item of res.data) {
-          if (item.website_name != null) {
-            this.webSiteData.push(item)
-          }
-        }
-
-        //延迟一会返显,否则可能显示不了
-        if (res.data.length > 0 && ignoreIds != null) {
-          setTimeout(() => {
-            for (let index in this.webSiteData) {
-              if (ignoreIds.includes(this.webSiteData[index].website_id)) {
-                //调用回显方法
-                this.toggleSelection([this.webSiteData[index]])
-              }
-            }
-            this.loading = false;
-          }, 500)
-        } else {
-          this.loading = false;
-        }
-      })
-    },
-    //3.3 回显 选中的方法 
-    toggleSelection(rows) {
-      console.log(rows)
-      if (rows) {
-        rows.forEach(row => {
-          this.$refs.multipleTable.toggleRowSelection(row);
-        });
-      } else {
-        this.$refs.multipleTable.clearSelection();
-      }
-    },
-
-
-    },
+    // },
    //1.4 审核温江
    getUpRow(id) {
     //设置待审核的id
@@ -384,8 +299,8 @@ export default {
 
     })
   },
-    //3.5 修改文章状态
-    upRow(id, status) {
+  // //3.5 修改文章状态
+  upRow(id, status) {
       let data = {
         id: id,
         status: status
@@ -401,29 +316,7 @@ export default {
       })
     },
     //3.编辑新闻 end ------------------------------------------------------------>
-    // /1.4 审核温江
-    getUpRow(id) {
-      //设置待审核的id
-      this.editId = id;
-      console.log(id)
-      this.$confirm('将此文章通过审核吗?', '提示', {
-        confirmButtonText: '通过',
-        cancelButtonText: '拒绝',
-        distinguishCancelAndClose: true,  // 关键配置项,用于区分取消和关闭按钮
-        type: 'warning'
-      }).then(() => {
-        this.upRow(id, 1)
-      }).catch((the_reback) => {
-        //输入驳回理由
-        
-        if (the_reback == "cancel") {
-          //输入驳回理由
-          // console.log("驳回" )
-          this.examineWindow = true;
-        }
 
-      })
-    },
     //提交驳回内容
     examineToServe(id) {
       this.$refs.form.validate(valid => {
@@ -449,7 +342,7 @@ export default {
         }
       })
     },
-  
+  },
   mounted() {
     this.creatNews_user_type = getUseType()
     //1.获得初始数据