田源
2023-10-30 262ba3da78fae09dcba3a26aa7b9ee49b293c2a9
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -11,7 +11,7 @@
                         v-if="!['PREVIEW', 'DELETEFILE', 'revisefile', 'DOWNLOADFILE', 'UPLOADFILE'].includes(item.uniqueFlag)"
                         :key="index" plain size="small"
                         type="primary"
                         @click="handelBtnClick(item)">{{
                         @click="handleBtnClick(item)">{{
                  item.name
                }}
              </el-button>
@@ -167,6 +167,7 @@
import {validatenull} from "@/util/validate";
import fileInHtml from "@/components/file/inHtml.vue";
import {getUserInfo} from "@/api/system/user";
import func from "@/util/func";
export default {
  components: {
@@ -328,7 +329,7 @@
        oids.push(ele.oid);
      });
      return oids;
    }
    },
  },
  created() {
    // const index = this.$route.query.id.indexOf('@name=') + '@name='.length;
@@ -469,10 +470,10 @@
    openVis(visible) {
      this[visible] = true
    },
    handelBtnClick(event) {
    handleBtnClick(event) {
      const {uniqueFlag} = event
      this.$nextTick(() => {
        if (uniqueFlag === 'CODEADD') return this.addvisible = true
        if (uniqueFlag === 'CODEADD') return this.addSaveHandler()
        if (uniqueFlag === 'CODEEDIT') return this.editHandler()
        if (uniqueFlag === 'CODEBATCHADD') return this.openBatchImport('batchImportApply')
        if (uniqueFlag === 'CODEIMPORTHISTORY') return this.openBatchImport('historyImport')
@@ -497,6 +498,12 @@
        if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply()
        //  相似项查询
        //  if(uniqueFlag === 'CODEEDIT') return this.similarHandler()
      });
    },
    addSaveHandler(){
      this.$nextTick(() => {
        this.addvisible = true;
      });
    },
    //申请集团码数据
@@ -881,6 +888,11 @@
    },
    //增加保存
    AddSumbit(val) {
      //console.log(val)
      if(func.notEmpty(val.ts)) {
        val.ts = func.formattedDateTime(val.ts);
        //console.log(val.ts);
      }
      addSaveCode(val).then(res => {
        this.$nextTick(() => {
          this.addvisible = false;
@@ -940,7 +952,7 @@
<style lang="scss" scoped>
//固定列高度
/deep/ .el-table__fixed {
  height: 565px!important;
  height: calc(100vh - 370px)!important;
}
// 滚动条样式修改
// 滚动条的宽度