fix(richedit): 修复操作前未保存的问题

在退改、复审和撤审操作前添加保存逻辑,确保数据一致性
This commit is contained in:
34701892@qq.com 2025-09-27 19:54:08 +08:00
parent 6d73e0a063
commit 727582c07c
1 changed files with 11 additions and 3 deletions

View File

@ -152,12 +152,10 @@
<el-button v-else-if="data?.status == 3" type="primary" @click="doApprovalFn()">撤审</el-button> <el-button v-else-if="data?.status == 3" type="primary" @click="doApprovalFn()">撤审</el-button>
</div> --> </div> -->
<el-button <el-button v-if="data?.status == 2 && form.deleted && Session.get('userInfoLocal').userType == '01'"
v-if="data?.status == 2 && !form.deleted && Session.get('userInfoLocal').userType == '01'"
type="primary" style="margin-right: 30px;margin-bottom: 20px;" type="primary" style="margin-right: 30px;margin-bottom: 20px;"
@click="doNewsPublishFn(data, 1)">撤稿</el-button> @click="doNewsPublishFn(data, 1)">撤稿</el-button>
<el-button type="primary" @click="doNewCheckFn(data)" <el-button type="primary" @click="doNewCheckFn(data)"
v-if="data?.status != 2 && !form.deleted && Session.get('userInfoLocal').userType == '02'">复审</el-button> v-if="data?.status != 2 && !form.deleted && Session.get('userInfoLocal').userType == '02'">复审</el-button>
@ -386,6 +384,10 @@ watch(
// 退 // 退
async function doNewReturnFn(item) { async function doNewReturnFn(item) {
//
await submit(1, false)
let { code, data } = await doNewReturn({ let { code, data } = await doNewReturn({
id: item.id, id: item.id,
}); });
@ -396,6 +398,10 @@ async function doNewReturnFn(item) {
} }
// //
async function doNewCheckFn(item) { async function doNewCheckFn(item) {
//
await submit(1, false)
let { code, data } = await doNewCheck({ let { code, data } = await doNewCheck({
id: item.id, id: item.id,
}); });
@ -689,6 +695,8 @@ async function doApprovalFn() {
type: 'warning', type: 'warning',
}) })
.then(async () => { .then(async () => {
//
await submit(1, false)
let { code } = props.data.status == 3 || props.data.status == 4 ? await doNewRevoke({ let { code } = props.data.status == 3 || props.data.status == 4 ? await doNewRevoke({
id: props.data.id, id: props.data.id,