This commit is contained in:
2025-06-19 03:44:51 +08:00
parent ed46c3e9a4
commit 708097bba0
2 changed files with 29 additions and 5 deletions
@@ -32,7 +32,7 @@ layout("/layouts/platform.html"){
</div> </div>
</el-card> </el-card>
<el-card class="mt10" shadow="never"> <el-card class="mt10" shadow="never">
<table-tool :app="this" label="线路列表"> <vi-title2 title="线路列表">
<template #func> <template #func>
<el-radio-group v-model="pageForm.signUpStateId" @change="doSearch"> <el-radio-group v-model="pageForm.signUpStateId" @change="doSearch">
<el-radio-button label="1">已报名</el-radio-button> <el-radio-button label="1">已报名</el-radio-button>
@@ -40,7 +40,8 @@ layout("/layouts/platform.html"){
<el-radio-button label="3">未参加</el-radio-button> <el-radio-button label="3">未参加</el-radio-button>
</el-radio-group> </el-radio-group>
</template> </template>
</table-tool> </vi-title2>
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder" <el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
align="center" align="center"
header-align="center"> header-align="center">
@@ -123,11 +124,16 @@ layout("/layouts/platform.html"){
</el-dialog> </el-dialog>
<line-sign-up ref="lineSignUpRef"></line-sign-up> <line-sign-up ref="lineSignUpRef"></line-sign-up>
<el-dialog :title="baseName + '报名'" width="60%" :visible.sync="baseVisible" :close-on-click-modal="false" :close-on-press-escape="false">
<base-sign-up ref="baseRef" :config_data="configData" @success="baseSuccess"></base-sign-up>
</el-dialog>
</div> </div>
<script> <script>
<!--#include('../signUp/info.js'){}#--> <!--#include('../signUp/info.js'){}#-->
<!--#include('../signUp/lineSignUp.js'){}#--> <!--#include('../signUp/lineSignUp.js'){}#-->
<!--#include('../signUp/base.js'){}#-->
const vue = new Vue({ const vue = new Vue({
el: '#app', el: '#app',
mixins: [initTableMixins], mixins: [initTableMixins],
@@ -141,14 +147,22 @@ layout("/layouts/platform.html"){
}, },
chooseButton: [], chooseButton: [],
configData: {}, configData: {},
lineDialogVisible: false lineDialogVisible: false,
baseVisible:false,
baseName:""
} }
}, },
components: { components: {
'info': INFO, 'info': INFO,
'line-sign-up': LineSignUp 'line-sign-up': LineSignUp,
'base-sign-up': BASE
}, },
methods: { methods: {
// 定点相关
baseSuccess() {
this.baseVisible = false
this.pageData();
},
edit(o) { edit(o) {
if ([0, 1].includes(this.pageForm.theRapyRecuperationType)) { if ([0, 1].includes(this.pageForm.theRapyRecuperationType)) {
// 线路 // 线路
@@ -158,6 +172,15 @@ layout("/layouts/platform.html"){
}, this.pageForm, this.configData, o.id); }, this.pageForm, this.configData, o.id);
} else if (this.pageForm.theRapyRecuperationType === 3) { } else if (this.pageForm.theRapyRecuperationType === 3) {
// 定点疗休养 // 定点疗休养
const data = {
id: o.takePartInBaseManagementId,
enrollId: o.id,
}
this.baseName = o.baseName
this.baseVisible = true
this.$nextTick(() => {
this.$refs.baseRef.initData(data)
})
} }
}, },
editOther(o) { editOther(o) {
@@ -381,11 +381,12 @@ const BASE = {
this.enrollId = data.enrollId this.enrollId = data.enrollId
this.editOther = data.editOther this.editOther = data.editOther
await this.getData()
if (this.enrollId || this.editOther) { if (this.enrollId || this.editOther) {
await this.findSignUpInfoById() await this.findSignUpInfoById()
} }
await this.getData()
await this.join() await this.join()
}, },
}, },