| | |
| | | size="small" |
| | | >重置</el-button |
| | | > |
| | | <!-- <el-button |
| | | <el-button |
| | | v-if="btnStatus.download" |
| | | @click="downFormData" |
| | | icon="el-icon-download" |
| | | type="success" |
| | | size="small" |
| | | >下载</el-button |
| | | > --> |
| | | > |
| | | <!-- <el-button |
| | | @click="downFormData" |
| | | icon="el-icon-download" |
| | |
| | | >下载</el-button |
| | | > --> |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | @click="DelFormData" |
| | | icon="el-icon-delete" |
| | | type="danger" |
| | |
| | | pageSize: 10, |
| | | pageNum: 1, |
| | | searchName: "", |
| | | btnStatus: { |
| | | select: false, |
| | | delete: false, |
| | | upload: false, |
| | | download: false, |
| | | insert: false, |
| | | update: false, |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getMetaData(10, 1, ""); |
| | | 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)); |
| | | }, |
| | | ShowWindowFly(res) { |
| | | console.log(res); |
| | | if (res == "") return; |