管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-03 985b26624b69ad91b9e3a723c19bd4bbf1a36250
src/views/Archive/index.vue
@@ -54,7 +54,7 @@
          >
            <el-option
              v-for="item in categoryOptions"
              :key="item.value"
              :key="item.key"
              :label="item.value"
              :value="item.key"
            >
@@ -551,6 +551,7 @@
            >
              <template slot-scope="scope">
                <el-link
                  v-if="matchState(scope, /[]/)"
                  @click="setAttatchDetail(scope.$index, scope.row)"
                  class="elLink"
                >{{ $t('common.see') }}</el-link>
@@ -1207,6 +1208,15 @@
    this.signGetPublicKey();
  },
  methods: {
    matchState(state = "", reg) {
      var row = state.row;
      var name = row.name;
      if (name.indexOf('.pdf') != -1 || name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) {
        return true;
      }
      return false;
    },
    // 附件=>表格选择
    handleAttatchChange(val) {
      this.attacgSelection = val;
@@ -1967,14 +1977,19 @@
        return;
      }
      var val = data.result;
      val = val.filter((res) => {
      if (val) {
        val = val.filter((res) => {
          res.mold = "数据库"
          res.isShow = false
          return res;
        })
        this.listData.count = data.count;
        this.monthdata = data.result;
      } else {
        this.listData.count = 0;
        this.monthdata = [];
      }
        res.mold = "数据库"
        res.isShow = false
        return res;
      })
      this.listData.count = data.count;
      this.monthdata = data.result;
    },
    //查询文件数据
    async getQueryFileData() {
@@ -1996,16 +2011,22 @@
        this.$message.error('文件数据列表调用失败');
      }
      var val = data.result;
      val = val.filter((res) => {
        var type = "." + res.type;
        res.name = res.name.replaceAll(type, "")
        res.mold = "文件"
        res.isShow = false
        return res;
      })
      if (val) {
        val = val.filter((res) => {
          var type = "." + res.type;
          res.name = res.name.replaceAll(type, "")
          res.mold = "文件"
          res.isShow = false
          return res;
        })
      this.monthdata = val;
      this.listData.count = data.count;
        this.monthdata = val;
        this.listData.count = data.count;
      } else {
        this.monthdata = [];
        this.listData.count = 0;
      }
    },
    //查询数据
    getAllTabesData() {
@@ -2035,6 +2056,7 @@
      if (data.code != 200) {
        this.$message.error('资料类别列表调用失败');
      }
      this.categoryOptions = data.result;
    },
    //关键字查询
@@ -2050,7 +2072,9 @@
    },
    //资料类别下拉框值改变触发
    categorySelectChange(model, prop, options) {
      this.getAllTabesData();
    },
    // 项目名称下拉框值改变触发
    itemSelectChange(model, prop, options) {