| | |
| | | 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" |
| | |
| | | |
| | | <script> |
| | | import { |
| | | queryMetaData, |
| | | select_meta_ByPageAndCount, |
| | | // queryDataCount, |
| | | updateMetaData, |
| | | dltMetaDatas, |
| | |
| | | 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; |
| | |
| | | pageIndex: num, |
| | | pageSize: size, |
| | | }; |
| | | queryMetaData(params).then((res) => { |
| | | select_meta_ByPageAndCount(params).then((res) => { |
| | | // console.log(res); |
| | | this.tableData = res.result; |
| | | this.count = res.count; |
| | | }); |
| | | }, |
| | | |
| | | |
| | | // 关键字查询 |
| | | submitForm(formName) { |
| | | this.$refs[formName].validate((valid) => { |