退火提交
This commit is contained in:
parent
e2015236e7
commit
29b64b9a2a
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue