| | |
| | | // 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) { |
| | |
| | | this.$message.success('自动填充成功,请确认属性后点击保存!'); |
| | | }) |
| | | .catch(error => { |
| | | console.log(error) |
| | | this.$message.error('填充失败,请稍后再试!'); |
| | | }); |
| | | }, |
| | |
| | | this.rangeData = [] |
| | | const response = await gridAttrRanges({meatId: oid}) |
| | | if (response.status === 200) { |
| | | // console.log(response.data) |
| | | this.rangeData = response.data.data |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | handelTransferSave(event) { |
| | | // console.log(event) |
| | | let that = this |
| | | const transferValue = event.value |
| | | if (Object.keys(that.mappingForm).length == 0) { |
| | |
| | | }); |
| | | } |
| | | } catch (error) { |
| | | console.error('处理映射更新时出错:', error); |
| | | this.$message.error(error) |
| | | } finally { |
| | | done(); |
| | | } |
| | |
| | | } |
| | | }, |
| | | setCurrentRow(selection, row) { |
| | | console.log(selection, row) |
| | | |
| | | this.mappingForm = row |
| | | this.disabledPush = false |
| | | }, |