lxl
2022-10-26 e3196bc81327e82748c7683c5cad9849b4b228b6
src/views/datamanage/metadataManage.vue
@@ -22,13 +22,14 @@
            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"
@@ -37,6 +38,7 @@
            >下载</el-button
          > -->
          <el-button
            v-if="btnStatus.delete"
            @click="DelFormData"
            icon="el-icon-delete"
            type="danger"
@@ -316,12 +318,28 @@
      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;