管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2022-12-21 a7311a5147d0f2190e2f62728cb652a0f721dd7a
src/views/Archive/index.vue
@@ -10,14 +10,17 @@
        <el-form :inline="true" :model="formInline" class="demo-form-inline">
          <el-form-item>
            <el-input
              v-model="formInline.user"
              v-model="formInline.tab"
              suffix-icon="el-icon-search"
              :placeholder="$t('common.pleaseInput')"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button icon="el-icon-search" class="primaries">{{
            <el-button icon="el-icon-search" @click="searchDataLibSelectTabs" class="primaries">{{
              $t('common.iquery')
            }}</el-button>
               <el-button icon="el-icon-refresh" @click="restDataLibSelectTabs" type="info">{{
              $t('common.reset')
            }}</el-button>
          </el-form-item>
          <el-form-item>
@@ -28,7 +31,7 @@
        </el-form>
      </div>
    </div>
<!--
    <div class="box_item">
      <div class="box_left">资料类别</div>
      <div class="box_cont">
@@ -70,10 +73,10 @@
          <i class="el-icon-plus"></i> {{ $t('synthesis.Multiplechoice') }}
        </div>
      </div>
    </div>
    </div> -->
    <div  class="bottom_content">
      <div class="bottom_left">
        <div class="box_div">当前搜索关键词:</div>
        <!-- <div class="box_div">当前搜索关键词:</div> -->
        <div>
          <ul>
            <li>搜索类型</li>
@@ -116,10 +119,10 @@
            }"
   ></el-cascader>
  </el-form-item>
  <el-form-item :label="$t('dataManage.vmobj.keyword')" >
  <!-- <el-form-item :label="$t('dataManage.vmobj.keyword')" >
    <el-input v-model="queryForm.name" :placeholder="$t('common.pleaseInput')"></el-input>
  </el-form-item>
  <el-form-item>
  </el-form-item> -->
  <!-- <el-form-item>
  <el-button
            @click="queryInfo()"
            icon="el-icon-search"
@@ -127,8 +130,8 @@
            size="small"
            >{{ $t('common.iquery') }}</el-button
          >
        </el-form-item>
        <el-form-item>
        </el-form-item> -->
        <!-- <el-form-item>
          <el-button
            @click="resetInfo('queryForm')"
            icon="el-icon-refresh"
@@ -136,7 +139,7 @@
            size="small"
            >{{ $t('common.reset') }}</el-button
          >
        </el-form-item>
        </el-form-item> -->
        <el-form-item  >
          <el-button
            type="danger"
@@ -160,7 +163,7 @@
            :data="tableData1"
            style="width: 100%"
            @selection-change="handleSelectionChange1"
            height="86%"
            height="500px"
          >
            <el-table-column type="selection" width="55" />
            <el-table-column prop="name" :label="$t('dataManage.vmobj.name')" />
@@ -225,7 +228,7 @@
          </el-table>
      </div>
    </div>
    <div class="panerPage">
    <div class="panerPage" >
      <div class="pagination_box">
        <el-pagination
          @size-change="handleSizeChange"
@@ -534,7 +537,7 @@
      queryForm:{
        dirid:null,
      },
      formInline: {},
      formInline: {tab:''},
      codeForm: {
        password: '',
        repassword: '',
@@ -576,6 +579,7 @@
      listData: {
        pageIndex: 1,
        pageSize: 10,
        tab:''
      },
      count: 0,
      count1: 0,
@@ -590,6 +594,10 @@
          { validator: repasswordValidator, trigger: 'blur' },
        ],
      },
      upAttach:{
        tabName:null,
        eventid:null,
      }
    };
  },
  computed: {
@@ -644,12 +652,26 @@
      this.showMapVisible =true;
      this.$store.state.mapMenuBoolean = true;
      this.$store.state.mapMenuBoxFlag = '1';
       this.$store.state.mapPopBoolean = false;
        this.$store.state.mapPopBoxFlag = null;
      this.$store.state.download = true;
    },
    handleMapClose(){
   this.dialogMapVisible =false;
   this.$confirm('确认关闭?')
        .then((_) => {
          this.closeMapDown();
        })
        .catch((_) => {});
    },
    closeMapDown(){
      this.dialogMapVisible =false;
      this.showMapVisible =false;
      this.$store.state.mapMenuBoolean = false;
      this.$store.state.mapMenuBoxFlag = null;
      this.$store.state.download = false;
       this.$store.state.mapPopBoolean = false;
        this.$store.state.mapPopBoxFlag = null;
    },
    moreEvent(res) {
      switch (res) {
@@ -672,10 +694,12 @@
      }
    },
    getMenuChange(res) {
      this.listData.pageSize = 10;
      this.listData.pageIndex = 1;
      this.formInline.tab=""
      switch (res) {
        case 1:
             this.listData.pageIndex = 1;
      this.listData.pageSize = 10;
            this.getDataLibSelectTabs();
          this.isMenuActive = true;
@@ -699,9 +723,8 @@
    },
        // 查询
    queryInfo() {
      this.listData.name = this.queryForm.name.trim();
      this.listData.pageSize = 10;
      this.listData.pageIndex = 1;
      this.listData.name = this.formInline.tab;
      this.getMetaData();
    },
     // 重置查询
@@ -755,7 +778,6 @@
      for (var i in this.multipleSelection1) {
        std.push(this.multipleSelection1[i].id)
      }
      debugger
      var obj = {
        pwd: encrypt.encrypt(this.codeForm.repassword),
        ids: std
@@ -771,9 +793,8 @@
        guid: res.result,
        pwd: encodeURIComponent(encrypt.encrypt(this.codeForm.repassword))
      }
      debugger
      const data = await dataLib_selectDownloadFile(downObj)
      const data = await dataLib_selectDownloadFile(downObj)
      if (data.code != 200) {
        this.$message.error('下载请求失败');
        return
@@ -812,15 +833,28 @@
        return father.pid == 0; // 返回一级菜单
      });
    },
    searchDataLibSelectTabs(){
          if(this.isMenuActive == true){
            this.getDataLibSelectTabs()
          }else{
              this.queryInfo();
          }
    },
restDataLibSelectTabs(){
  this.formInline.tab=""
  this.listData.pageIndex =1;
  this.listData.pageSize=10
  this.searchDataLibSelectTabs();
},
    async getDataLibSelectTabs() {
      const data = await dataLib_selectTabs();
      this.listData.tab = this.formInline.tab
      const data = await dataLib_selectTabs(this.listData);
      if (data.code != 200) {
        this.$message.error('列表调用失败');
        return;
      }
      this.count = data.result.length;
      this.count =data.count;
      this.dataType = data.result;
    },
    showDetail1(row){
@@ -856,6 +890,7 @@
      this.listTypeData.pageIndex = 1;
      this.listTypeData.pageSize = 10;
      this.dialogtitle = res.tabDesc + '(' + res.tab + ')';
      this.upAttach.tabName= res.ns+"."+res.tab;
      this.filedsLayer = this.getCollapseDomFiled();
      this.getCollapseTable(this.filedsLayer);
@@ -877,7 +912,12 @@
      this.itemdetail = std;
      this.innerVisible = true;
    },
    getAttachTable() {
    getAttachTable(index, row) {
      if(row.eventid != null){
        this.upAttach.eventid = row.eventid;
      }else{
        this.upAttach.eventid ="";
      }
      this.outerVisible = true;
      this.getAttacthFlieList();
    },
@@ -905,7 +945,7 @@
        formData.append('file', fs.files[i]); // fs.files[i].name,file
      }
      $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName=lf.sys_style&eventid=fa25979a5ef8b43ba82a0be35b3fb0d4", {
      $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName="+this.upAttach.tabName+"&eventid="+this.upAttach.eventid, {
        type: "post",
        data: formData,
        async: true,
@@ -918,13 +958,16 @@
            type: 'success'
          });
          document.getElementById("insertFile").value = "";
          this.formInline = {
          this.fromfile = {
            file: '',
          }
          this.getAttacthFlieList();
        },
        error: (e) => {
          document.getElementById("insertFile").value = "";
            this.fromfile = {
            file: '',
          }
          this.$message.error('附件添加失败');
        }
      });
@@ -932,10 +975,7 @@
   async getAttacthFlieList(){
  var obj = {
        tabName: 'lf.sys_style',
        eventid: 'fa25979a5ef8b43ba82a0be35b3fb0d4'
      }
  var obj =this.upAttach;
      const res = await dataLib_selectFiles(obj);
      if (res.code != 200) {
        this.$message.error('列表调用失败');
@@ -967,9 +1007,9 @@
        this.attributeData = val;
      });
      if (this.ruleForm.name != null) {
        this.listData.filter = 'name like ' + this.ruleForm.name;
        this.listTypeData.filter = 'name like ' + this.ruleForm.name;
      } else {
        this.listData.filter = null;
        this.listTypeData.filter = null;
      }
      const data = await dataLib_selectByPage(this.listTypeData);
@@ -977,8 +1017,10 @@
        this.$message.error('调用列表失败,请联系工作人员!');
        return;
      }
      var res_val = this.attributeData;
      this.count1 = data.count;
      for (var i in data.result) {
        let val_Data = data.result[i];
@@ -1012,9 +1054,11 @@
        this.$message.error('列表调用失败');
        return;
      }
      const domains = await dataLib_selectDomains({
        name: this.listTypeData.name,
      });
      if (domains.code != 200) {
        this.$message.error('列表调用失败');
        return;
@@ -1032,15 +1076,23 @@
      }
      return std;
    },
  //值域字段匹配
    getDomainNaFild(res, result) {
      for (var i in result) {
        if (result[i].domName == res) {
          return result[i].codeDesc;
        }
      }
      return null;
    },
    handleSizeChange(res) {
                   this.listData.pageIndex = 1;
      this.listData.pageSize = res;
      if(this.isMenuActive == false){this.getMetaData()}
      if(this.isMenuActive == false){this.getMetaData()}else{this.getDataLibSelectTabs()}
    },
    handleCurrentChange(res) {
         this.listData.pageIndex = res;
          if(this.isMenuActive == false){this.getMetaData()}
          if(this.isMenuActive == false){this.getMetaData()}else{this.getDataLibSelectTabs()}
    },
     async signGetPublicKey() {
      const res = await sign_getPublicKey();
@@ -1232,7 +1284,7 @@
    .bottom_right {
      width: calc(100% - 320px);
      padding: 0px 20px;
      max-height: 460px;
      max-height: 600px;
      overflow-y: auto;
      color: white;
      li {