退火日志撤回
This commit is contained in:
parent
29b64b9a2a
commit
57daa1bc19
|
@ -39,6 +39,10 @@
|
|||
@click="table_submit(scope.row)" v-auth="'mlog.submit'">
|
||||
提交
|
||||
</el-button>
|
||||
<el-button link type="warning" v-else @click="table_revert(scope.row)"
|
||||
v-auth="'mlog.submit'">
|
||||
撤回
|
||||
</el-button>
|
||||
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'mlog.delete'">
|
||||
删除
|
||||
</el-button>
|
||||
|
@ -261,9 +265,18 @@ export default {
|
|||
},
|
||||
table_submit(row) {
|
||||
this.$API.wpm.mlog.submit.req(row.id).then(res => {
|
||||
this.$message.success("提交成功");
|
||||
this.$refs.table.refresh();
|
||||
this.$refs.table_wm.refresh();
|
||||
})
|
||||
},
|
||||
table_revert(row) {
|
||||
this.$API.wpm.mlog.revert.req(row.id).then(res => {
|
||||
this.$message.success("撤回成功");
|
||||
this.$refs.table.refresh();
|
||||
this.$refs.table_wm.refresh();
|
||||
}).catch(e => { })
|
||||
},
|
||||
async table_del(row) {
|
||||
this.$confirm(`确定删除吗?`, "提示", {
|
||||
type: "warning",
|
||||
|
|
Loading…
Reference in New Issue