feat: v3版疗休养优化6

This commit is contained in:
2026-10-26 17:33:07 +08:00
parent 56cc3fee91
commit 6ea864cb64
5 changed files with 50 additions and 18 deletions
@@ -821,6 +821,13 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
const valid = await this.$validateForm(this.$refs['form'])
if (!valid) return
const confirm = await this.$confirmAction('确定保存该线路吗?', '保存确认', {
confirmButtonText: '确认保存',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm !== 'confirm') return
loading = this.$loading({
lock: true,
text: '提交中',
@@ -829,18 +836,16 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
});
delete this.formData.travelAgency
const resp = await $.post(loc() + '/doSubmit', this.formData)
loading.close()
loading = null
if (resp.code === 0) {
this.$message.success(resp.msg)
await this.$confirm('需要将该线路设置为出行线路吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
cancelButtonText: '返回列表',
type: 'warning'
}).then(async () => {
if ("${@com.budwk.app.zhgh.staffbenefit.therapyRecuperation.support.TherapyContext.hasRole('sysadmin')||@com.budwk.app.zhgh.staffbenefit.therapyRecuperation.support.TherapyContext.hasRole('A06')}" === 'true') {
sublime.jumpPagePjax('/platform/inclusiveTherapyV3/lineXghSelect?mode=2')
} else {
sublime.jumpPagePjax('/platform/inclusiveTherapyV3/lineFghSelect?mode=1')
}
window.top.location.href = '/platform/inclusiveTherapyV3?screen=schoolSelect'
}).catch(() => {
this.$refs.guava.index()
this.pageData()
@@ -145,16 +145,17 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
v-model="row.isDisabled">
</el-switch>
</template>-->
<template slot-scope="{row:{signUpMode}}" v-if="column.prop==='signUpMode'">
{{signUpModeName(signUpMode)}}
<template slot-scope="{row}">
<template v-if="column.prop==='signUpMode'">
{{signUpModeName(row.signUpMode)}}
</template>
<template slot-scope="{row:{createMode}}" v-else-if="column.prop==='createMode'">
{{createModeName(createMode)}}
<template v-else-if="column.prop==='createMode'">
{{createModeName(row.createMode)}}
</template>
<template slot-scope="{row}" v-else-if="column.prop==='belongUnionName'">
<template v-else-if="column.prop==='belongUnionName'">
{{pageForm.mode == 2 && pageForm.selectStatus == 1 ? '校工会' : row.belongUnionName}}
</template>
<template slot-scope="{row}" v-else-if="column.prop==='playTime'">
<template v-else-if="column.prop==='playTime'">
<template v-if="row.playTimes">
<!--<el-tooltip placement="top">
<div slot="content">
@@ -183,13 +184,14 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
选择并设置出行时间段
</el-button>
</template>
<template slot-scope="{row}" v-else-if="column.prop==='createUnionName'">
<template v-else-if="column.prop==='createUnionName'">
<span v-if="!row.isSelect">
{{row.createUnionName}}
</span>
<span v-else>{{row.belongUnionName}}</span>
</template>
<template slot-scope="{row}" v-else>{{row[column.prop]}}</template>
<template v-else>{{row[column.prop]}}</template>
</template>
</el-table-column>
<el-table-column label="操作" width="100px">