fjl
fujunling
2023-07-10 9b1aa8494aa0706dee84f7bc34cd646cf13d9b64
Source/UBCS-WEB/src/mixins/codeApply.js
@@ -3,6 +3,7 @@
  data() {
    return {
      secVOList: [],
      localSecVOList: [],
      showCodeApply: false,
      selfColumnType: {
        codefixedsec: "combox",
@@ -40,13 +41,10 @@
      codeApplyForm: {},
    }
  },
  created() {
    this.getCodeRule()
  },
  methods: {
    // 获取码值申请数据
    getCodeRule() {
      getCodeRule({ codeClassifyOid: this.codeClassifyOid }).then((res) => {
      getCodeRule({ codeClassifyOid: this.localCodeClassifyOid }).then((res) => {
        if (res.data && res.data.code === 200) {
          const typeList = [
            "codefixedsec",
@@ -55,13 +53,13 @@
            "coderefersec",
          ];
          this.secVOList = res.data.data.secVOList || []
          let localSecVOList = (res.data.data.secVOList || []).filter((item) =>
          this.localSecVOList = (res.data.data.secVOList || []).filter((item) =>
            typeList.includes(item.secType)
          );
          if (localSecVOList.length > 0) {
          if (this.localSecVOList.length > 0) {
            this.showCodeApply = true
            this.$nextTick(() => {
              this.$refs.CodeApply.templateRender(localSecVOList);
              this.$refs.CodeApply.templateRender(this.localSecVOList);
            });
          }
@@ -70,6 +68,7 @@
    },
    getCodeApplyFormData(codeApplyForm) {
      this.codeApplyForm = codeApplyForm;
      this.batchApplyCodeTableData[this.codeRuleOid]["codeApply"] = codeApplyForm
    },
    getType(item) {
      console.log(item.secType, 'item.secType');