| | |
| | | :before-open="beforeOpen" |
| | | :permission="permissionList" |
| | | v-model="form" |
| | | :height="options.height || 300" |
| | | ref="crud" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | |
| | | import {mapGetters} from "vuex"; |
| | | import {dateFormat} from "@/util/date"; |
| | | import {validatenull} from "@/util/validate"; |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | | props: ["options","visible","ownbizOid"], |
| | |
| | | hasDel:validatenull(this.options.hasDel) ? true :this.options.hasDel, |
| | | hasDownload:validatenull(this.options.hasDownload) ? true :this.options.hasDownload, |
| | | option: { |
| | | height:(this.options.tableHeight?this.options.tableHeight:'auto'), |
| | | height:(this.options.tableHeight?this.options.tableHeight:'200'), |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: false, |
| | |
| | | let data=new FormData(); |
| | | if(row && row.oid){ |
| | | data.append('fileOids',row.oid) |
| | | download(data) |
| | | this.downloadFile(data); |
| | | }else{ |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | | } |
| | | data.append('fileOids',this.oids) |
| | | download(data); |
| | | this.downloadFile(data); |
| | | } |
| | | }, |
| | | downloadFile(data){ |
| | | download(data).then(res=>{ |
| | | // console.log(res); |
| | | if(res){ |
| | | func.downloadFileByBlobHandler(res); |
| | | } |
| | | }); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择文件删除?", { |
| | | confirmButtonText: "确定", |