fix:日志提交后刷新列表

This commit is contained in:
shijing 2025-09-26 14:03:16 +08:00
parent 4b50910cdd
commit c49d086970
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<!-- 日志详情 mlog信息以及mlogb --> <!-- 日志详情 mlog信息以及mlogb -->
<template> <template>
<el-drawer v-model="visible" :size="'95%'" :show-close="false"> <el-drawer v-model="visible" :size="'95%'" :show-close="false" destroy-on-close="true">
<template #header> <template #header>
<h4>日志详情</h4> <h4>日志详情</h4>
<el-button type="danger" @click="closedPage()">关闭</el-button> <el-button type="danger" @click="closedPage()">关闭</el-button>
@ -557,8 +557,10 @@ export default {
}, },
mounted() { mounted() {
let that = this; let that = this;
that.mlogItem = {};
this.paramsIn.mlog = ""; this.paramsIn.mlog = "";
this.paramsOut.mlog = ""; this.paramsOut.mlog = "";
this.apiObj = "";
this.route_code = this.$route.path.split("/")[2]; this.route_code = this.$route.path.split("/")[2];
this.paramsIn.mlog = this.mlogId; this.paramsIn.mlog = this.mlogId;
this.paramsOut.mlog = this.mlogId; this.paramsOut.mlog = this.mlogId;
@ -925,6 +927,7 @@ export default {
that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => { that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => {
that.isSaveing = false; that.isSaveing = false;
that.visible = false; that.visible = false;
that.$emit('closed',false);
that.$message.success("操作成功"); that.$message.success("操作成功");
}).catch(() => { }).catch(() => {
that.isSaveing = false; that.isSaveing = false;