退火提交

This commit is contained in:
shijing 2024-01-31 09:29:55 +08:00
parent e2015236e7
commit 29b64b9a2a
1 changed files with 9 additions and 2 deletions

View File

@ -31,10 +31,12 @@
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="180">
<template #default="scope">
<el-button link type="primary" @click="table_edit(scope.row)" v-auth="'mlog.update'">
<el-button link type="primary" :disabled="scope.row.submit_user != null"
@click="table_edit(scope.row)" v-auth="'mlog.update'">
编辑
</el-button>
<el-button link type="success" @click="table_submit(scope.row)" v-auth="'mlog.submit'">
<el-button link type="success" v-if="scope.row.submit_user == null"
@click="table_submit(scope.row)" v-auth="'mlog.submit'">
提交
</el-button>
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'mlog.delete'">
@ -257,6 +259,11 @@ export default {
tomio() {
this.$router.push({ name: "halfgood_mio" });
},
table_submit(row) {
this.$API.wpm.mlog.submit.req(row.id).then(res => {
this.$refs.table.refresh();
})
},
async table_del(row) {
this.$confirm(`确定删除吗?`, "提示", {
type: "warning",