| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <div v-if="upType == 1"> |
| | | <div v-if="upType == 2"> |
| | | <el-col :span="5" :offset="1"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="upTimeStart" style="width: 100%" value-format="yyyy-MM-dd"></el-date-picker> |
| | | </el-col> |
| | |
| | | <el-table-column prop="ADDRESS" label="地点" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="HOST" label="主持人" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="CONFERENCE_PROFESSIONAL" label="会议专业" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="meeting_content" show-overflow-tooltip label="会议摘要" align="center"></el-table-column> |
| | | <el-table-column prop="meeting_content" label="会议摘要" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-popover trigger="hover" placement="top"> |
| | | <p>{{ scope.row.meeting_content }}</p> |
| | | <div slot="reference" class="name-wrapper">{{ |
| | | scope.row.meeting_content != null && scope.row.meeting_content.length > 20 ? scope.row.meeting_content.substring(0, 18) + "...." : scope.row.meeting_content |
| | | }} |
| | | </div> |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="realFileName" label="会议纪要" align="center"> |
| | | <template slot-scope="scope" > |
| | | |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getPageList,addOrEdit, del, revoke, put} from "@/api/sgyhpczl/troubleshooting"; |
| | | import {getPageList,addOrEdit, del, revoke, upload_do} from "@/api/sgyhpczl/troubleshooting"; |
| | | import {uploadFile} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {deepClone} from '@/utils' |
| | | import {downloadFile} from "@/api/sgyhpczl/fileUtils"; |
| | |
| | | listLoading: false, |
| | | // fileList:[{name:'aa.doc',url:'sssss.doc'}], |
| | | fileList:[], |
| | | upTypeList:[{label:"按勾选上报",value:0},{label:"按时间上报",value:1}], |
| | | upTypeList:[{label:"按勾选上报",value:0},{label:"按时间上报",value:2}], |
| | | upType:0, |
| | | upTimeStart:'', |
| | | upTimeEnd:'', |
| | |
| | | }, |
| | | changeUpType(val){ |
| | | this.upType = val; |
| | | if (val == 1){ |
| | | if (val == 2){ |
| | | this.offset = 2; |
| | | }else { |
| | | this.offset = 14; |
| | |
| | | }, |
| | | //重置 |
| | | reset() { |
| | | this.listQuery.form = {}; |
| | | this.listQuery.form = { |
| | | CONFERENCE_PROFESSIONAL: '0' |
| | | }; |
| | | this.getPageList(); |
| | | }, |
| | | handleSizeChange(val) { |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | // revoke(ids).then(() => { |
| | | // this.getPageList() |
| | | // this.$notify({ |
| | | // title: "成功", |
| | | // message: "撤销成功", |
| | | // type: "success", |
| | | // duration: 2000, |
| | | // }); |
| | | // }); |
| | | let data = { |
| | | id:ids |
| | | } |
| | | revoke(data).then(() => { |
| | | this.getPageList() |
| | | this.$notify({ |
| | | title: "成功", |
| | | message: "撤销成功", |
| | | type: "success", |
| | | duration: 2000, |
| | | }); |
| | | }); |
| | | }).catch(error => { |
| | | }); |
| | | }, |
| | | //上报 |
| | | putBatch() { |
| | | if (this.selectedList == null || this.selectedList.length == 0) { |
| | | this.$message({type: 'warning', message: '至少选中一条数据', duration: 3000}) |
| | | return |
| | | let data = {} |
| | | if (this.upType == 0){ |
| | | if (this.selectedList == null || this.selectedList.length == 0) { |
| | | this.$message({type: 'warning', message: '至少选中一条数据', duration: 3000}) |
| | | return |
| | | } |
| | | var ids = this.selectedList.map((obj) => { |
| | | return obj.id |
| | | }).join(",") |
| | | data = { |
| | | type: this.upType, |
| | | id: ids, |
| | | } |
| | | }else { |
| | | data = { |
| | | type: this.upType, |
| | | time: this.upTimeStart+'至'+this.upTimeEnd, |
| | | } |
| | | } |
| | | var ids = this.selectedList.map((obj) => { |
| | | return obj.id |
| | | }).join(",") |
| | | this.$confirm('确认上报吗', '提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | // put(ids).then(() => { |
| | | // this.getPageList() |
| | | // this.$notify({ |
| | | // title: "成功", |
| | | // message: "上报成功", |
| | | // type: "success", |
| | | // duration: 2000, |
| | | // }); |
| | | // }); |
| | | upload_do(data).then(() => { |
| | | this.getPageList() |
| | | this.$notify({ |
| | | title: "成功", |
| | | message: "上报成功", |
| | | type: "success", |
| | | duration: 2000, |
| | | }); |
| | | }); |
| | | }).catch(error => { |
| | | }); |
| | | }, |