|
|
@@ -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;
|