内外部会议、政策课题模块排序

This commit is contained in:
zyn
2023-10-18 10:35:45 +08:00
parent a57f930011
commit ed92755ff1
4 changed files with 34 additions and 7 deletions
+16 -2
View File
@@ -94,30 +94,35 @@
prop="meetingName"
label="会议名称"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="meetingOrganizer"
label="会议主办单位"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="meetingTime"
label="会议时间"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="meetingAddress"
label="会议地点"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="agendaName"
label="议题名称"
align="center"
sortable="custom"
>
<template slot-scope="scope">
<span>{{ scope.row.meetingTopicList.map(item => item.agendaName).join(',') }}</span>
@@ -226,8 +231,17 @@ export default {
}
},
// 表格排序
sortChange(sortObj) {
sortChange({ column, prop, order }) {
this.searchForm.sortField = prop
this.searchForm.sortMode = 'asc'
if (order === 'descending') {
this.searchForm.sortMode = 'desc'
}
if (!order) {
this.searchForm.sortField = ''
this.searchForm.sortMode = ''
}
this.getData()
},
// 分页点击后方法
pageChange (page) {
@@ -177,7 +177,7 @@
attrField: 'conferenceMaterials'
}"
v-model="form.conferenceMaterials"
:allowType="['.pdf', '.PDF', '.doc','.DOC', '.docx','.DOCX', '.pptx', '.PPTX', '.ppt', '.PPT', '.xls','.XLS', '.xlsx','.XLSX', '.pdg', '.PDG', 'mp3', 'MP3', 'mp4', 'MP4']"
:allowType="['.pdf', '.PDF', '.doc','.DOC', '.docx','.DOCX', '.pptx', '.PPTX', '.ppt', '.PPT', '.xls','.XLS', '.xlsx','.XLSX', '.pdg', '.PDG', '.mp3', '.MP3', '.Ogg', '.Wav', '.mp4', '.MP4', '.WebM']"
:size="2048"
></customFile>
</el-col>
@@ -107,24 +107,28 @@
prop="topicName"
label="课题名称"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="organizer"
label="课题承办单位"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="startTime"
label="启动时间"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="topicStatus"
label="课题状态"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
@@ -243,8 +247,17 @@ export default {
}
},
// 表格排序
sortChange(sortObj) {
sortChange({ column, prop, order }) {
this.searchForm.sortField = prop
this.searchForm.sortMode = 'asc'
if (order === 'descending') {
this.searchForm.sortMode = 'desc'
}
if (!order) {
this.searchForm.sortField = ''
this.searchForm.sortMode = ''
}
this.getData()
},
// 分页点击后方法
pageChange (page) {
@@ -2264,10 +2264,10 @@ export default {
let routeName = ''
switch (row.taskInfo) {
case '内外部会议入库审批':
routeName = 'zcrk2'
routeName = 'hyrk2'
break
case '重新发起内外部会议入库流程':
routeName = 'zcrk1'
routeName = 'hyrk1'
break
}
this.$router.push({