fjl
fujunling
2023-07-11 5bac5571ec6b2bad33069d24ef1b6954f41782df
Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -236,7 +236,10 @@
            if (this.hasResemble) {
              this.activeName = "resembleQuery";
              this.showResembleQuery = true;
            } else {
              this.showResembleQuery = false
            }
            console.log(this.hasResemble, 'this.hasResemblethis.hasResemble');
            this.$nextTick(() => {
              this.$refs.FormTemplate.templateRender(
                res.data.formDefineVO.items
@@ -317,10 +320,13 @@
          return false;
        }
      }
      // 进行相似项查询
      const resembleQueryList = await this.$refs.resembleQueryRef.resembleQuery(
      let resembleQueryList = []
      if (this.$refs.resembleQueryRef) {
        // 进行相似项查询
      resembleQueryList = await this.$refs.resembleQueryRef.resembleQuery(
        this.form
      );
      }
      if (resembleQueryList.length === 0) {
        let resForm = {};
        const { defaultValue, formValue } = this.getDefaultValueAndFormValues(