田源
2024-04-18 b8d7b6603f8d5018655e4e6f8098be90ca443e17
整合更新代码
已修改2个文件
13 ■■■■ 文件已修改
Source/UBCS-WEB/src/views/integration/integrationIndex.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/integration/vciAttribute.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/integration/integrationIndex.vue
@@ -309,7 +309,6 @@
          // const groupReturnData = res.data && res.data.data ? res.data.data.map(item => item.groupAttrKey) : [];
          const groupReturnData = res.data.data;
          // 过滤匹配
          // console.log(groupReturnData)
          this.mappingData.forEach(mappingItem => {
            groupReturnData.forEach(groupItem => {
              if (mappingItem.sourceAttrKey === groupItem.groupAttrKey) {
@@ -329,7 +328,6 @@
          this.$message.success('自动填充成功,请确认属性后点击保存!');
        })
        .catch(error => {
          console.log(error)
          this.$message.error('填充失败,请稍后再试!');
        });
    },
@@ -440,7 +438,6 @@
      this.rangeData = []
      const response = await gridAttrRanges({meatId: oid})
      if (response.status === 200) {
        // console.log(response.data)
        this.rangeData = response.data.data
      }
    },
@@ -581,7 +578,6 @@
      }
    },
    handelTransferSave(event) {
      // console.log(event)
      let that = this
      const transferValue = event.value
      if (Object.keys(that.mappingForm).length == 0) {
@@ -693,7 +689,7 @@
          });
        }
      } catch (error) {
        console.error('处理映射更新时出错:', error);
        this.$message.error(error)
      } finally {
        done();
      }
@@ -710,7 +706,7 @@
      }
    },
    setCurrentRow(selection, row) {
      console.log(selection, row)
      this.mappingForm = row
      this.disabledPush = false
    },
Source/UBCS-WEB/src/views/integration/vciAttribute.vue
@@ -129,7 +129,6 @@
  },
  methods: {
    searchHandler() {
      console.log(this.searchSelect)
      const params = {
        [`conditionMap[${this.searchSelect}_like]`]: this.searchValue,
        page: this.page.currentPage,
@@ -191,12 +190,9 @@
      // row.codeMetaAttrName因为下拉框value值原因绑定为codeMetaAttrOid
      let updataList = []
      // console.log(this.ChangeName)
      // console.log(row.codeMetaAttrName)
      // if (this.ChangeName && this.ChangeName === row.codeMetaAttrName) {
      //   updataList = this.codeMetaColumn.dicData.find(item => item.codeMetaAttrOid === row.codeMetaAttrOid)
      // } else {
      //   console.log('2')
      //     updataList = this.codeMetaColumn.dicData.find(item => item.codeMetaAttrOid === row.codeMetaAttrName)
      // }
      updataList = this.codeMetaColumn.dicData.find(item => item.codeMetaAttrOid === row.codeMetaAttrName)
@@ -266,7 +262,6 @@
          this.$message.success('保存成功!')
          await this.onLoad()
        }
      }
    },
    async syncHandler() {