소스 검색

案例,资讯新增发布,取消发布功能

qymljy 1 년 전
부모
커밋
d0ed18ac9c
2개의 변경된 파일40개의 추가작업 그리고 0개의 파일을 삭제
  1. 20 0
      src/WebsiteManagement/caseManage/modules/detailInfo.vue
  2. 20 0
      src/WebsiteManagement/consultManage/modules/detailInfo.vue

+ 20 - 0
src/WebsiteManagement/caseManage/modules/detailInfo.vue

@@ -34,6 +34,14 @@
             :disabled="form.status == '发布'"
             >删除</el-button
           >
+          <el-button
+              size="small"
+              type="primary"
+              style="margin-right: 25px!important;"
+              @click="statusChange"
+              v-if="tool.checkAuth($route.name, 'update')"
+          >{{ form.status == '新建' ? "发布" : "取消发布" }}</el-button
+          >
         </div>
       </div>
       <div class="drawer__panel" style="margin-bottom: 0px !important">
@@ -308,6 +316,18 @@ export default {
           });
         });
     },
+    async statusChange() {
+      const res = await this.$api.requested({
+        id: "20240925161803",
+        content: {
+          "sat_sharematerialid": this.data.sat_sharematerialid,
+          "isrecheck":this.form.status == '新建'?1:0,
+        },
+      });
+      this.tool.showMessage(res, () => {
+        this.detailBtn();
+      });
+    },
     async productData() {
       const res = await this.$api.requested(this.productParam);
       this.list = res.data;

+ 20 - 0
src/WebsiteManagement/consultManage/modules/detailInfo.vue

@@ -34,6 +34,14 @@
             :disabled="form.status == '发布'"
             >删除</el-button
           >
+          <el-button
+              size="small"
+              type="primary"
+              style="margin-right: 25px!important;"
+              @click="statusChange"
+              v-if="tool.checkAuth($route.name, 'update')"
+          >{{ form.status == '新建' ? "发布" : "取消发布" }}</el-button
+          >
         </div>
       </div>
       <div class="drawer__panel" style="margin-bottom: 0 !important">
@@ -357,6 +365,18 @@ export default {
           });
         });
     },
+    async statusChange() {
+      const res = await this.$api.requested({
+        id: "20240925161703",
+        content: {
+          "sat_noticeid": this.form.sat_noticeid,
+          "isrecheck":this.form.status == '新建'?1:0,
+        },
+      });
+      this.tool.showMessage(res, () => {
+        this.detailBtn();
+      });
+    },
   },
   mounted() {},
 };