| | |
| | | >选择</el-button |
| | | > |
| | | <p class="show"></p> |
| | | |
| | | <el-button |
| | | v-if="btnStatus.upload" |
| | | @click="uploadFile" |
| | | icon="el-icon-thumb" |
| | | type="success" |
| | |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | | pageNum: 1, |
| | | btnStatus: { |
| | | select: false, |
| | | delete: false, |
| | | upload: false, |
| | | download: false, |
| | | insert: false, |
| | | update: false, |
| | | }, |
| | | }; |
| | | }, |
| | | |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getMetaData(10, 1); |
| | | this.getMetaCount(""); |
| | | // this.getMetaData(10, 1); |
| | | // this.getMetaCount(""); |
| | | this.showPermsBtn(); |
| | | }, |
| | | methods: { |
| | | showPermsBtn() { |
| | | let currentPerms = this.$store.state.currentPerms; |
| | | let permsEntity = this.$store.state.permsEntity; |
| | | permsEntity |
| | | .filter((item) => item.perms == currentPerms) |
| | | .map((item) => (this.btnStatus[item.tag.substr(1)] = true)); |
| | | }, |
| | | // 请求数据 |
| | | getMetaData(size, index) { |
| | | queryUploadData(size, index).then((res) => { |