diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 46372c9..ca336d8 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -119,4 +119,9 @@ word-break: keep-all; white-space: nowrap; text-overflow: ellipsis; -} \ No newline at end of file +} + +// 表格滚动条样式的修改 +/deep/.ant-table-body { + overflow: auto!important; +} diff --git a/src/components/detailPage/MeetingList.vue b/src/components/detailPage/MeetingList.vue index 8cab954..d9e4ecf 100644 --- a/src/components/detailPage/MeetingList.vue +++ b/src/components/detailPage/MeetingList.vue @@ -1,3 +1,4 @@ + \ No newline at end of file +.action-btn + .action-btn { + margin-left: 10px; + padding: 0 10px; +} +.action-btn.action-text{ + color: #00A0E9; + cursor: default; +} + diff --git a/src/enums/EsEnum.js b/src/enums/EsEnum.js new file mode 100644 index 0000000..7699133 --- /dev/null +++ b/src/enums/EsEnum.js @@ -0,0 +1,103 @@ +export default class EsEnum { + constructor(val) { + if (!val) { + return + } + Object.keys(val).forEach(key => { + const item = val[key] + this.addAll(key, item) + }) + return this + } + + /** + * 添加枚举 + * @param key + * @param item + */ + addAll(key, item) { + this[key] = item + } + + /** + * 获取所有枚举值列表 + * @params decend --是否是降序输出 + * @returns {Array} + */ + getItemList(decend) { + const optionList = [] + for (const i in this) { + const item = this[i] + const option = {} + Object.assign(option, item) + option.key = i + optionList.push(option) + } + optionList.sort((a, b) => { + const value1 = a['index'] + const value2 = b['index'] + return decend && (value2 - value1) || (value1 - value2) + }) + return optionList + } + + /** + * 获取需要排除的枚举值后的所有枚举值列表 + * @param val 需要排除的枚举值或枚举值数组 + */ + getItemListExcept(val) { + let valueArr = [] + if (val) { + if (Array.isArray(val)) { + valueArr = val + } else { + valueArr.push(val) + } + } + const optionList = [] + for (const i in this) { + const item = this[i] + if (!valueArr.includes(item.name)) { + const option = {} + Object.assign(option, item) + option.key = i + optionList.push(option) + } + } + return optionList + } + + /** + * 根据name获取index + * @param name + */ + indexOfName(name) { + if (name) { + for (const i in this) { + const e = this[i] + if (e.name.toString() === name.toString()) { + return (e.index) + } + } + } + return null + } + + /** + * 根据index获取name + * @param index + * @returns {*} + */ + nameOfIndex(index) { + if (index === null) { + return '--' + } + for (const i in this) { + const e = this[i] + if (e.index !== undefined && e.index !== null && e.index.toString() === index.toString()) { + return e.name + } + } + return '--' + } +} diff --git a/src/enums/commonEnum.js b/src/enums/commonEnum.js new file mode 100644 index 0000000..ab36a3a --- /dev/null +++ b/src/enums/commonEnum.js @@ -0,0 +1,21 @@ +import EsEnums from './EsEnum' + +/** + * 是/否枚举 + * @type {EsEnum} + */ +export const YesOrNoEnum = new EsEnums({ + NO: { name: '否', index: 0 }, + YES: { name: '是', index: 1 } +}) + +export const SignUpStatusEnum = { + pendingReviewReportInfo: { name: '报名信息待审核', index: 1 }, + pendingReviewVoucher: { name: '凭证待审核', index: 2 }, + noParticipation: { name: '不可参会', index: 3 }, + pendingUploadVoucher: { name: '待上传凭证', index: 4 }, + rejectedVoucher: { name: '凭证被拒绝', index: 5 }, + pendingSignIn: { name: '待签到', index: 6 }, + finishSignIn: { name: '已签到', index: 7 }, + canReport: { name: '可报名', index: 8 } +} diff --git a/src/views/MessagePage/MeetingDetailModal.vue b/src/views/MessagePage/MeetingDetailModal.vue index ffc5c0a..162e13d 100644 --- a/src/views/MessagePage/MeetingDetailModal.vue +++ b/src/views/MessagePage/MeetingDetailModal.vue @@ -4,117 +4,119 @@ :width="width" :visible="visible" switchFullscreen + fullscreen @cancel="handleCancel" cancelText="关闭"> - -
-

会议信息

- - - - - - - - - - - - - - {{ model.startTime + '~' + model.endTime }} - - - - - - - - - - - - - - - - - - - - - - - - + + +
+

会议信息

+ + + + + + + + + + + + + + {{ model.startTime + '~' + model.endTime }} + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - {{ model.meetingCosts }} 元/人 - - - - {{ model.meetingCostsVip }} 元/人 - - - - + + + + + + {{ model.meetingCosts }} 元/人 + + + + {{ model.meetingCostsVip }} 元/人 + + + + nothing show - - - - - - + + + + + + nothing show - - - - - - - - -
- - -
-

开票邮寄信息

-
+ + + + + + + + +
+ + +
+

开票邮寄信息

+
{{ showMoreInfo ? '收起' : '查看' }} -
-
- +
+
+ 查看物流 - - - - -
-
- + + + + + +
+ + + - -

报名信息

@@ -161,7 +163,8 @@ - + @@ -196,7 +199,8 @@ - + @@ -508,7 +512,8 @@ - + @@ -667,20 +672,29 @@ export default { methods: { async open(param) { this.visible = true + this.situationInfoLoading = true + this.showMoreInfo = false // 通过id查询项目详情 - queryCommonProjectById({ id: param.situationId }).then(res => { - if (res.success) { - console.log(res.result, 'res.result') - // 到账信息 - this.paymentInfoList = res.result.paymentRecord - // 开票邮寄信息 - this.logisticsInfoList = res.result.mailBill - } else { - console.log('未查到相应的信息') - } - }) + if(!param.situationId) { + queryCommonProjectById({ id: param.situationId }).then(res => { + if (res.success) { + console.log(res.result, 'res.result') + // 到账信息 + this.paymentInfoList = res.result.paymentRecord + // 开票邮寄信息 + this.logisticsInfoList = res.result.mailBill + } else { + console.log('未查到相应的信息') + } + }) + } else { + this.paymentInfoList = [] + // 开票邮寄信息 + this.logisticsInfoList = [] + } if (param && !this.isMeetingBool) { + // 查询参会人的信息 await this.getSingUpUserInfoFunc(param) // 消息进来的获取会议的详情 this.queryMeetingInfoById(param.id).then(res => { @@ -688,37 +702,33 @@ export default { this.model = Object.assign({}, res) console.log(this.model, 'this.model') }) - // 查询参会人的信息 - // getSingUpUserInfo({ id: param.situationId }).then(res => { - // if (res.success) { - // this.situationInfo = res.result - // } - // }) - - } else { // 会议进来查询的会议信息 this.model = Object.assign({}, param) // 会议进来的查询参会人信息 await this.getSingUpUserInfoFunc(param) - // getSingUpUserInfo({ id: param.situationId }).then(res => { - // if (res.success) { - // this.situationInfo = res.result - // } - // }) } + setTimeout(() => { + this.situationInfoLoading = false + }, 100) }, getSingUpUserInfoFunc(param) { return new Promise(resolve => { - this.situationInfoLoading = true - getSingUpUserInfo({ id: param.situationId }).then(res => { - if (res.success) { - this.situationInfo = res.result - } - }).finally(() => { - this.situationInfoLoading = false + // 存在报名信息 + if(param.situationId) { + getSingUpUserInfo({ id: param.situationId }).then(res => { + if (res.success) { + this.situationInfo = res.result + } else { + this.situationInfo = {} + } + }).finally(() => { + resolve() + }) + } else { + this.situationInfo = {} resolve() - }) + } }) }, close() { @@ -783,7 +793,7 @@ export default { return '标协会议-信息交流会' } break - // return '标协会议' + // return '标协会议' case '3': return '国际研讨会' case '4': diff --git a/src/views/MessagePage/modules/FileTable.vue b/src/views/MessagePage/modules/FileTable.vue index b837e80..8db2094 100644 --- a/src/views/MessagePage/modules/FileTable.vue +++ b/src/views/MessagePage/modules/FileTable.vue @@ -28,18 +28,21 @@ const columns = [ { title: '文件名', align: 'center', - dataIndex: 'name' + dataIndex: 'name', + width: 200 }, { title: '上传时间', align: 'center', - dataIndex: 'createTime' + dataIndex: 'createTime', + width: 100 }, { title: '操作', align: 'center', dataIndex: '', - scopedSlots: {customRender: 'action'} + scopedSlots: {customRender: 'action'}, + width: 100 } ] diff --git a/src/views/standardsAssociation/CouncilDetailPage.vue b/src/views/standardsAssociation/CouncilDetailPage.vue index 8278c26..76b611e 100644 --- a/src/views/standardsAssociation/CouncilDetailPage.vue +++ b/src/views/standardsAssociation/CouncilDetailPage.vue @@ -19,7 +19,7 @@

理事会会议

- +
@@ -45,7 +45,11 @@ export default { // 理事会详情数据 councilDetail: {}, // 文件数据 - fileList: [] + fileList: [], + // 理事会会议的其他字段 + meetingOtherParams: { + councilId: this.$route.query.id + } } }, created() { @@ -64,7 +68,7 @@ export default { getCouncilDetailById(param).then(res => { if (res.success) { this.councilDetail = res.result - this.$refs.fileList.dataSource = res.result.files + this.$refs.fileList.dataSource = res.result.files || [] } else { this.$message.warn(res.message) } @@ -123,4 +127,4 @@ export default { margin-bottom: 5px; } } - \ No newline at end of file + diff --git a/src/views/standardsAssociation/meeting/MeetingList.vue b/src/views/standardsAssociation/meeting/MeetingList.vue index 86d766e..d193841 100644 --- a/src/views/standardsAssociation/meeting/MeetingList.vue +++ b/src/views/standardsAssociation/meeting/MeetingList.vue @@ -101,7 +101,7 @@