From b4d09a09d2a8ffc939e97f8b400ff94a64d13eb7 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期一, 04 三月 2024 17:46:01 +0800 Subject: [PATCH] 优化用户管理页面表单填写界面选择设备功能,车间重新选择后重置选择设备 --- src/views/system/modules/SelectDeviceModal.vue | 22 ---------------------- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/src/views/system/modules/SelectDeviceModal.vue b/src/views/system/modules/SelectDeviceModal.vue index 4b28bc2..599de84 100644 --- a/src/views/system/modules/SelectDeviceModal.vue +++ b/src/views/system/modules/SelectDeviceModal.vue @@ -103,36 +103,16 @@ this.autoExpandParent = false }, queryTreeData(value) { - // this.loading = true - // this.cardLoading = true - // this.QueryProduction().then(res => { - // if (res.success) { - // this.dataList = [] - // this.allTreeKeys = [] - // this.getTreeDataSouce(res.result) - // this.treeDataSource = res.result - // this.generateList(this.treeDataSource) - // console.log('treeDataSource', this.treeDataSource) - // this.expandedKeys = this.allTreeKeys - // } else { - // this.$message.warn(res.message) - // } - // }).finally(() => { - // this.loading = false - // this.cardLoading = false - // }) this.loading = true this.selectedWorkshopIds = value getAction(this.url.getDeviceTree, { ids: value }) .then(res => { - console.log('res===============', res) if (res.success) { this.dataList = [] this.allTreeKeys = [] this.getTreeDataSouce(res.result) this.treeDataSource = res.result this.generateList(this.treeDataSource) - console.log('treeDataSource', this.treeDataSource) this.expandedKeys = this.allTreeKeys } else { this.$notification.warning({ @@ -188,9 +168,7 @@ }, onCheck(value, obj) { this.checkedKeys = value - console.log('obj,', obj) this.deviceNodes = obj.checkedNodes.filter(item => item.data.props.equipmentId).map(item => item.data.props.equipmentId) - console.log(this.deviceNodes) }, handleCancel() { this.visible = false -- Gitblit v1.9.3