wangting
2023-07-12 74f4e2b425aca626122f2e27236774b3b57086bc
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -1,5 +1,7 @@
<template>
  <basic-container>
    <div class="main">
    <div class="top">
    <div class="testbox">
      <div>
        <!-- <el-button plain size="small" type="primary" @click="addvisible = true">增加
@@ -76,15 +78,19 @@
    </div>
    <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible">
    </BatchImport>
    <el-collapse v-model="visibleNames">
    </div>
    <div class="bottom">
      <el-collapse v-model="visibleNames" accordion>
      <el-collapse-item title="附件列表" name="1">
        <fileInHtml :options="fileOptions"></fileInHtml>
      </el-collapse-item>
    </el-collapse>
    </div>
    </div>
  </basic-container>
</template>
<script>
import {MasterTable, TableData, FindData,addSaveCode,editSaveCode} from "@/api/GetItem";
import {MasterTable, TableData, FindData} from "@/api/GetItem";
import {listCodeAttributeByClassId} from "@/api/integration/integration.js";
import integrationTransfer from "@/views/integration/integrationTransfer";
import SetPersonnel from "@/components/template/SetPersonnel";
@@ -158,7 +164,7 @@
          codeClassifyOid: ""
        }
      },
      visibleNames:['1'],
      visibleNames:[],
      visibleFile:false,
      visibleFlow: false,
      transferData: [],
@@ -230,8 +236,7 @@
    codeClassifyOid: {
      handler(newval, oldval) {
        this.codeClassifyOid = newval;
        this.parameter.vars.codeClassifyOid = newval;
        console.log('子',newval)
        this.parameter.vars.codeClassifyOid = newval
      },
      deep: true,
    },
@@ -268,6 +273,7 @@
    templateOid: {
      handler(newval, oldval) {
        this.parameter.code = newval;
        this.fileOptions.ownbizOid="1";
      },
      deep: true,
    },
@@ -443,7 +449,6 @@
    },
    //多选
    handleSelectionChange(row) {
      console.log(row)
      if (this.row) {
        this.rowOid = row[0].oid;
      } else {
@@ -455,6 +460,10 @@
        this.parameter.ids.push(item.oid);
      });
      console.log('  this.parameter.ids', this.parameter.ids)
      this.fileOptions.ownbizOid= row.oid;
      this.fileOptions.ownbizBtm=row.btmname;
    },
    //编辑
    editHandler() {
@@ -508,26 +517,16 @@
      }
    },
    //增加保存
    AddSumbit(val) {
    AddSumbit() {
      this.addvisible = false;
      console.log(val)
      addSaveCode(val).then(res=>{
        console.log(res)
        this.onLoad()
      })
    },
    EditSumbit(val) {
      this.editvisible = false;
      console.log(val)
      editSaveCode(val).then(res=>{
        console.log(res)
        this.onLoad()
      })
    },
    openBatchImport(type) {
      this.batchImportData.visible = true;
      this.batchImportData.type = type;
      this.batchImportData.codeClassifyOid = this.codeClassifyOid;
      this.batchImportData.visible = true
      this.batchImportData.type = type
      this.batchImportData.codeClassifyOid = this.codeClassifyOid
    }
  },
};
@@ -538,6 +537,7 @@
  .el-table--scrollable-x .el-table__body-wrapper {
    overflow: auto !important;
  }
  .el-table__fixed-right-patch {
    background-color: #f5f7fa !important;
  }
@@ -546,4 +546,21 @@
/deep/ .el-button {
  margin: 0 10px 10px 0;
}
.main {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  min-height: 400px;
}
.top {
  overflow-y: scroll;
  min-height: 55%;
}
.bottom {
  margin-top: 20px;
  max-height: 43%;
  overflow-y: scroll;
}
</style>