diff --git a/src/enums/commonEnum.js b/src/enums/commonEnum.js index a97e13c..cc33483 100644 --- a/src/enums/commonEnum.js +++ b/src/enums/commonEnum.js @@ -62,5 +62,6 @@ export const InvoiceTypeEnums = { // 免费专题 export const LinkTopicsEnums = { free: { name: '免费专题', index: 6 }, + freeTwo: { name: '免费专题', index: 8 }, default: {name: '114/22焦点论坛(默认专题)', index: 99} } diff --git a/src/views/MessagePage/MeetingDetailModal.vue b/src/views/MessagePage/MeetingDetailModal.vue index 492a054..cb1a7d4 100644 --- a/src/views/MessagePage/MeetingDetailModal.vue +++ b/src/views/MessagePage/MeetingDetailModal.vue @@ -32,9 +32,15 @@ - - {{item}} - +
+
+
{{ item.name }}
+
{{ innerItem.text }}
+
+
+ + +
@@ -221,9 +227,15 @@ - - {{item}} - +
+
+
{{ item.name }}
+
{{ innerItem.text }}
+
+
+ + +
@@ -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修改成报名完 就可以提问题 diff --git a/src/views/MessagePage/modules/wasicStaticData.js b/src/views/MessagePage/modules/wasicStaticData.js new file mode 100644 index 0000000..45c9ff7 --- /dev/null +++ b/src/views/MessagePage/modules/wasicStaticData.js @@ -0,0 +1,73 @@ +const WasicTopicData = [ + { + name: '11月27日', + date: '11月27日', + radioKey: 'radioKey', + children: [ + { + 'value': '6', + 'text': '国际发展论坛(09:00-15:00)', + 'title': '国际发展论坛(09:00-15:00)' + } + ], + radioChildren: [ + { + 'value': '5', + 'text': '弱势道路交通参与者(VRU)保护专题(14:00-18:00)', + 'title': '弱势道路交通参与者(VRU)保护专题(14:00-18:00)' + }, + { + 'value': '2', + 'text': '智能网联汽车标准化领航及标准路线图专题(14:00-18:00)', + 'title': '智能网联汽车标准化领航及标准路线图专题(14:00-18:00)' + }, + { + 'value': '4', + 'text': '动力电池安全专题(14:00-18:00)', + 'title': '动力电池安全专题(14:00-18:00)' + } + ] + }, + { + name: '11月28日', + date: '11月28日', + radioKey: 'radioKeyTwo', + children: [ + { + 'value': '99', + 'text': '114/22焦点论坛(08:00-12:00,全体大会)', + 'title': '114/22焦点论坛(08:00-12:00,全体大会)', + 'disabled': true + } + ], + radioChildren: [ + { + 'value': '1', + 'text': '汽车网络安全与数据安全标准合规专题(14:00-18:00)', + 'title': '汽车网络安全与数据安全标准合规专题(14:00-18:00)' + }, + { + 'value': '3', + 'text': '汽车低碳专题(14:00-18:00)', + 'title': '汽车低碳专题(14:00-18:00)' + }, + { + 'value': '7', + 'text': '无人小车专题(14:00-18:00)', + 'title': '无人小车专题(14:00-18:00)' + } + ] + }, + { + name: '11月29日', + date: '11月29日', + children: [ + { + 'value': '8', + 'text': '湾区智联试验场参观(8:30-10:30)', + 'title': '湾区智联试验场参观(8:30-10:30)' + } + ] + } +] +export default WasicTopicData \ No newline at end of file diff --git a/src/views/signUp/SignUpEntrance.vue b/src/views/signUp/SignUpEntrance.vue index 969c907..1218b3c 100644 --- a/src/views/signUp/SignUpEntrance.vue +++ b/src/views/signUp/SignUpEntrance.vue @@ -44,6 +44,27 @@ {{ item.meetingContactsName + (item.meetingContactsPhone ?':': '') + item.meetingContactsPhone + ' ' }} + + + + {{ currentMeetingInfo.hotelName }} + + + {{ currentMeetingInfo.hotelAddress }} + + + + + + + + {{ item.hotelContacts }} {{ item.hotelContacts ? ':' : '' }} {{ item.hotelContactsPhone + ' ' }} + + + @@ -266,7 +317,7 @@