| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | | :before-open="beforeOpen" |
| | | :permission="permissionList" |
| | | <avue-crud ref="crud" |
| | | v-model="form" |
| | | ref="crud" |
| | | :before-open="beforeOpen" |
| | | :data="data" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | :table-loading="loading" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="hasUpload" type="primary" |
| | | size="small" |
| | | <el-button v-if="hasUpload" icon="el-icon-upload2" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | size="small" |
| | | type="primary" |
| | | @click="handleUpload">上 传 |
| | | </el-button> |
| | | <el-button v-if="hasEdit" type="primary" |
| | | size="small" |
| | | <el-button v-if="hasEdit" icon="el-icon-edit" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="small" |
| | | type="primary" |
| | | @click="handleEdit">修 改 |
| | | </el-button> |
| | | <el-button v-if="hasDownload" type="primary" |
| | | size="small" |
| | | icon="el-icon-download" |
| | | <el-button v-if="hasDownload" icon="el-icon-download" |
| | | plain |
| | | size="small" |
| | | type="primary" |
| | | @click="handleDownload">下 载 |
| | | </el-button> |
| | | <el-button v-if="hasDel" type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | <el-button v-if="hasDel" icon="el-icon-delete" |
| | | plain |
| | | size="small" |
| | | type="danger" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button v-if="hasDownload" type="text" |
| | | icon="el-icon-download" |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button v-if="hasDownload" icon="el-icon-download" |
| | | size="small" |
| | | type="text" |
| | | @click="handleDownload(scope.row)">下载 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="附件管理" |
| | | <el-dialog :visible.sync="attachBox" |
| | | append-to-body |
| | | :visible.sync="attachBox" |
| | | title="附件管理" |
| | | width="555px"> |
| | | <avue-form ref="form" :option="attachOption" v-model="attachForm" :upload-before="uploadBefore" :upload-after="uploadAfter" :upload-error="uploadError"> |
| | | <avue-form ref="form" v-model="attachForm" :option="attachOption" :upload-after="uploadAfter" |
| | | :upload-before="uploadBefore" :upload-error="uploadError"> |
| | | </avue-form> |
| | | </el-dialog> |
| | | </basic-container> |
| | |
| | | }, |
| | | attachBox: false, |
| | | selectionList: [], |
| | | //默认为null全部是true |
| | | hasUpload:validatenull(this.options.hasUpload) ? true :this.options.hasUpload, |
| | | hasEdit:validatenull(this.options.hasEdit) ? true :this.options.hasEdit, |
| | | hasDel:validatenull(this.options.hasDel) ? true :this.options.hasDel, |
| | |
| | | border: true, |
| | | index: true, |
| | | viewBtn: true, |
| | | refreshBtn: false, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: [ |
| | |
| | | ownbizOid(val){ |
| | | this.setParams() |
| | | this.refreshChange() |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | setFormItem(){ |