| | |
| | | <!-- |
| | | * @Date: 2025-06-20 20:48:17 |
| | | * @LastEditors: 李喆(开发组) lzhe@yxqiche.com |
| | | * @LastEditTime: 2025-08-11 15:59:15 |
| | | * @LastEditTime: 2025-08-11 16:34:15 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue |
| | | --> |
| | | <template> |
| | |
| | | </avue-crud> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="已办" name="completed"> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange" |
| | | <avue-crud :option="optionCompleted" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"> |
| | | <template #menu-left> |
| | | <!-- <el-button type="primary" plain @click="exportWebSite">导出回传涉密网</el-button> --> |
| | |
| | | searchSpan: 8, |
| | | }, |
| | | ], |
| | | }, |
| | | optionCompleted: { |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | viewBtn: true, |
| | | columnBtn: false, |
| | | tip: false, |
| | | // simplePage: true, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | dialogWidth: '60%', |
| | | // tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | // viewBtn: true, |
| | | menuWidth: 200, |
| | | menu: false, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: '流程标题', |
| | | prop: 'title', |
| | | }, |
| | | { |
| | | label: '图号', |
| | | prop: 'drawingNo', |
| | | }, |
| | | { |
| | | label: '图号版次', |
| | | prop: 'drawingNoEdition', |
| | | }, |
| | | { |
| | | label: '工序名称', |
| | | prop: 'processName', |
| | | }, |
| | | { |
| | | label: '程序名称', |
| | | prop: 'name', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '通过时间', |
| | | prop: 'createTime', |
| | | }, |
| | | { |
| | | label: '已办时间', |
| | | prop: 'updateTime', |
| | | }, |
| | | { |
| | | label: '通过时间', |
| | | prop: 'passTime', |
| | | search: true, |
| | | hide: true, |
| | | type: 'datetime', |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | searchRange: true, |
| | | searchSpan: 8, |
| | | }, |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | methods: { |
| | | tabsClick(tab,event) { |
| | | //this.onLoad(this.page, this.query); |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | selectionChange(list) { |
| | | this.selection = list; |
| | |
| | | {}, |
| | | {ids: this.selection.map(item => item.id)}, |
| | | ).then(res => { |
| | | let name = res.headers['content-disposition'].split('filename=')[1] |
| | | console.log(res.headers['content-disposition'].split('filename=')[1]); |
| | | downloadFile(res.data, `${name}`); |
| | | //console.log('status='+res.status) |
| | | if(res.status == 200){ |
| | | //console.log(res.data); |
| | | |
| | | let name = res.headers['content-disposition'].split('filename=')[1] |
| | | //console.log(res.headers['content-disposition'].split('filename=')[1]); |
| | | downloadFile(res.data, `${name}`); |
| | | |
| | | }else{ |
| | | this.$message.error('导出错误'); |
| | | console.log(res); |
| | | } |
| | | NProgress.done(); |
| | | this.onLoad(this.page, this.query); |
| | | }); |
| | | }); |
| | | }, |