| | |
| | | :before-open="beforeOpen" |
| | | :permission="permissionList" |
| | | v-model="form" |
| | | :height="options.height || 200" |
| | | ref="crud" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | |
| | | import {validatenull} from "@/util/validate"; |
| | | |
| | | export default { |
| | | props: ["options","visible"], |
| | | props: ["options","visible","ownbizOid"], |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | | params:{}, |
| | | loading: false, |
| | | hasPage:this.options.hasPage||false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | mounted() { |
| | | |
| | | }, |
| | | watch:{ |
| | | ownbizOid(val){ |
| | | this.setParams() |
| | | this.refreshChange() |
| | | } |
| | | }, |
| | | methods: { |
| | | setFormItem(){ |
| | | /*this.options.formItems=[{ |
| | |
| | | setParams() { |
| | | var queryMap = { |
| | | currentButtonKey: 'VIEW', |
| | | ownbizOid:this.options.ownbizOid || "share", |
| | | ownBtmName:this.options.ownbizBtm || "share", |
| | | fileDocClassify: this.options.fileDocClassify|| "ADMIN_SHARE", |
| | | ownbizOid: this.options.ownbizOid || "share", |
| | | ownBtmName: this.options.ownbizBtm || "share", |
| | | fileDocClassify: this.options.fileDocClassify || "ADMIN_SHARE", |
| | | fileDocClassifyName: this.options.fileDocClassifyName || "管理员共享文件" |
| | | }; |
| | | if (this.options.where) { |
| | |
| | | } |
| | | this.page.pageSize = this.options.pageObject.limit; |
| | | this.page.currentPage = this.options.pageObject.page; |
| | | |
| | | this.attachOption.column[1].data.ownbizOid = this.options.ownbizOid || "share"; |
| | | this.attachOption.column[1].data.ownBtmName = this.options.ownbizBtm || "share"; |
| | | this.attachOption.column[1].data.fileDocClassify = this.options.fileDocClassify || "ADMIN_SHARE"; |
| | | this.attachOption.column[1].data.fileDocClassifyName = this.options.fileDocClassifyName || "管理员共享文件" |
| | | |
| | | }, |
| | | handleUpload() { |
| | | this.attachOption.column[1].data.fileOid=''; |
| | |
| | | this.page.pageSize = pageSize; |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | this.onLoad(this.page); |
| | | }, |
| | | onLoad(page, params={}) { |
| | | this.loading = true; |