田源
2023-12-11 f8c2838f7318af220b53ef4c509cfe9b2382f770
Source/UBCS-WEB/src/views/integration/integrationIndex.vue
@@ -47,8 +47,8 @@
                            </template>
                        </avue-crud>
                    </el-card>
                    <el-card :style="{ marginTop: '20px' }">
                        <avue-crud :data="rangeData" :option="optinoRange" ref="crudRange" @row-update="handleUpdate"
                    <el-card :style="{ marginTop: '20px'}">
                        <avue-crud :style="{ marginTop: '-20px'}" :data="rangeData" :option="optinoRange" ref="crudRange" @row-update="handleUpdate"
                            @row-dblclick="handleRowClick">
                        </avue-crud>
                    </el-card>
@@ -221,7 +221,7 @@
            if (response.status === 200) {
                this.loading = false
                this.mappingData = response.data.data
                console.log(this.filtermapping)
                // console.log(this.filtermapping)
            }
        },
        // 接口获取属性映射取值范围
@@ -229,7 +229,7 @@
            this.rangeData = []
            const response = await gridAttrRanges({ meatId: oid })
            if (response.status === 200) {
                console.log(response.data)
                // console.log(response.data)
                this.rangeData = response.data.data
            }
        },
@@ -269,9 +269,7 @@
        },
        // 保存按钮
        async handleSave() {
            console.log(this.mappingData)
            const response = await batchAddSave({ dockingPreAttrMappingVOList: this.mappingData })
            console.log(response)
            if (response.status === 200) {
                this.$message({
                    type: "success",
@@ -291,7 +289,6 @@
                    message: "请选择一条集团分类"
                });
            } else {
                console.log(param)
                const response = await syncClassifyModel(param)
                if (response.status === 200) {
                    console.log(response)
@@ -300,7 +297,6 @@
        },
        handelTransferSave(event) {
            let that = this
            console.log(event)
            const transferValue = event.value
            if (Object.keys(that.mappingForm).length == 0) {
                this.$message({
@@ -364,13 +360,9 @@
        },
        // 属性取值范围单元格编辑后
        handleUpdate(row, index, done) {
            console.log(row)
            console.log(index)
            const findRow = this.mappingData.findIndex(item => item.metaListId === row.metaListId)
            this.rangeData[index] = row
            console.log(this.rangeData)
            this.mappingData[findRow].dockingPreAttrRangeVoList = (this.rangeData)
            console.log('修改后', row)
            this.$message({
                showClose: true,
                message: "修改成功",
@@ -380,8 +372,6 @@
        },
        // 属性取值范围单元格编辑后
        handleMapingUpdate(row, index, done) {
            console.log(row)
            console.log('修改后', row)
            this.$message({
                showClose: true,
                message: "修改成功",
@@ -391,8 +381,6 @@
        },
        // 集团映射属性选择(单选)
        selectionChange(selection) {
            console.log(selection)
            console.log(this.mappingForm)
            if (selection.length > 1) {
                const nowVal = selection.shift();
                this.$refs.crudMapping.toggleRowSelection(nowVal, false);
@@ -403,12 +391,10 @@
            }
        },
        setCurrentRow(selection, row) {
            console.log(row)
            this.mappingForm = row
            this.disabledPush = false
        },
        handleSelectAll(selection) {
            console.log(selection)
            this.$refs.crudMapping.toggleSelection()
        }
    }
@@ -439,4 +425,4 @@
::v-deep(.el-transfer-panel) {
    width: 270px;
}
</style>
</style>