【update】WASIC 增加日期的分类 和每天只能选择一个活动
This commit is contained in:
@@ -32,9 +32,15 @@
|
||||
<a-row :gutter="24" class="flex-col" v-if="model.isWasic">
|
||||
<a-col :span="12">
|
||||
<label>关联会议:</label>
|
||||
<span>
|
||||
<span class="block-span" v-for="item in (model.linkTopics_dictText || '').split(',')" :key="item">{{item}}</span>
|
||||
</span>
|
||||
<div>
|
||||
<div class="word-beak block-span" v-for="item in wasicLinkTopics" :key="item.name">
|
||||
<div class="topic-title">{{ item.name }}</div>
|
||||
<div v-for="innerItem in item.children" :key="'a_checked_'+ innerItem.value">{{ innerItem.text }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<span>-->
|
||||
<!--<span class="block-span" v-for="item in (model.linkTopics_dictText || '').split(',')" :key="item">{{item}}</span>-->
|
||||
<!--</span>-->
|
||||
</a-col>
|
||||
</a-row>
|
||||
</template>
|
||||
@@ -221,9 +227,15 @@
|
||||
<!--是否为WASIC字段判断-->
|
||||
<a-col :span="12" v-if="model.isWasic">
|
||||
<label>会议名称:</label>
|
||||
<span>
|
||||
<span class="block-span" v-for="item in (situationInfo.choiceTopic_dictText || '').split(',')" :key="item">{{item}}</span>
|
||||
</span>
|
||||
<div>
|
||||
<div class="word-beak block-span" v-for="item in wasicChoiceTopics" :key="item.name">
|
||||
<div class="topic-title">{{ item.name }}</div>
|
||||
<div v-for="innerItem in item.children" :key="'a_checked_'+ innerItem.value">{{ innerItem.text }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<span>-->
|
||||
<!-- <span class="block-span" v-for="item in (situationInfo.choiceTopic_dictText || '').split(',')" :key="item">{{item}}</span>-->
|
||||
<!--</span>-->
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<label>手机号:</label>
|
||||
@@ -742,6 +754,7 @@ import EditSignUpInfo from '@views/meetingActivity/modules/EditSignUpInfo'
|
||||
// 问题征集的表格
|
||||
import ProblemCollectionTable from './modules/ProblemCollectionTable'
|
||||
import FileUploadModal from './modules/FileUploadModal'
|
||||
import WasicTopicData from "./modules/wasicStaticData";
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -836,6 +849,10 @@ export default {
|
||||
|
||||
showDetailBool: true,
|
||||
hasQuestionList: false, // 是否显示问题征集表格
|
||||
// 关联会议展示的字段
|
||||
wasicLinkTopics: [],
|
||||
// 选择的会议展示的信息
|
||||
wasicChoiceTopics: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -870,6 +887,41 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 处理国际研讨会-WASIC-已经选择的数据如何展示
|
||||
handleWasicLinkTopics(currentMeetingInfo, dictKey) {
|
||||
dictKey = dictKey || 'linkTopics'
|
||||
if(currentMeetingInfo[dictKey] && currentMeetingInfo[dictKey + '_dictText']) {
|
||||
let topicArr = currentMeetingInfo[dictKey].split(',')
|
||||
let topicTextArr = currentMeetingInfo[dictKey + '_dictText'].split(',')
|
||||
let opeArr = JSON.parse(JSON.stringify(WasicTopicData))
|
||||
let resultArr = []
|
||||
opeArr.map(tt => {
|
||||
// 先查询子集中
|
||||
tt.allChildren = [...tt.children, ...(tt.radioChildren || [])]
|
||||
let ele = tt.allChildren.find(item => topicArr.includes(item.value))
|
||||
if(ele) {
|
||||
let dateItem = {
|
||||
name: tt.name,
|
||||
date: tt.date,
|
||||
children: []
|
||||
}
|
||||
|
||||
tt.allChildren.map(innerItem => {
|
||||
let index = topicArr.findIndex(a => a === innerItem.value)
|
||||
if(index > -1) {
|
||||
dateItem.children.push({
|
||||
'value': innerItem.value,
|
||||
'text': topicTextArr[index],
|
||||
'title': topicTextArr[index]
|
||||
})
|
||||
}
|
||||
})
|
||||
resultArr.push(dateItem)
|
||||
}
|
||||
})
|
||||
return resultArr
|
||||
}
|
||||
},
|
||||
// 是否显示文件查看
|
||||
async changeShowDetailBool() {
|
||||
// 增加判断,等后端接口开发完成后再做处理
|
||||
@@ -940,6 +992,8 @@ export default {
|
||||
this.queryMeetingInfoById(param.id).then(res => {
|
||||
// 会议详情
|
||||
this.model = Object.assign({}, res)
|
||||
// 处理WASIC关联会议字段的展示信息
|
||||
this.wasicLinkTopics = this.handleWasicLinkTopics(this.model)
|
||||
// if((this.model.checkResult == 1 && this.model.registerCheckResult == 1)){
|
||||
// this.showDetailBool =true
|
||||
// }else{
|
||||
@@ -952,6 +1006,7 @@ export default {
|
||||
this.model = Object.assign({}, param)
|
||||
// 会议进来的查询参会人信息
|
||||
await this.getSingUpUserInfoFunc(param)
|
||||
this.wasicLinkTopics = this.handleWasicLinkTopics(this.model)
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.situationInfoLoading = false
|
||||
@@ -965,6 +1020,8 @@ export default {
|
||||
getSingUpUserInfo({id: param.situationId}).then(res => {
|
||||
if (res.success) {
|
||||
this.situationInfo = res.result
|
||||
// WASIC 对已经选择的会议 做日期等格式的处理
|
||||
this.wasicChoiceTopics = this.handleWasicLinkTopics(this.situationInfo, 'choiceTopic')
|
||||
// 对当前的会议状态做判断,处理当前详情模态框是否显示问题征集 表格
|
||||
let registerProcess = Number(this.situationInfo.registerProcess)
|
||||
// 2022-11-10修改成报名完 就可以提问题
|
||||
|
||||
Reference in New Issue
Block a user