From bf56ce5eaa601616ca88aac08b5020524023c3e8 Mon Sep 17 00:00:00 2001
From: gaoyuanwei <2826352639@qq.com>
Date: Tue, 19 Jul 2022 14:45:35 +0800
Subject: [PATCH 01/18] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/PutOnTheShelf.vue | 57 +++++++++----------
1 file changed, 27 insertions(+), 30 deletions(-)
diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
index d6830f7a..9e1f906e 100644
--- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
+++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
@@ -333,7 +333,7 @@
@@ -652,12 +652,13 @@
}
// 来源应用
const visibleAssociatedApplication = ref(false)
+ const visibleAssociatedApplicationOther = ref(false)
const mockData = ref([])
- const mockData2 = ref([])
+ const mockDataOther = ref([])
const titles = ref(['未关联的应用名称', '已关联的应用名称'])
const titleName = ref('来源应用')
const targetKeys = ref([])
- const targetKeys2 = ref([])
+ const targetKeysOther = ref([])
// 上一步关联数据
// const targetKeysBack = ref([])
@@ -704,8 +705,8 @@
const componentsClick = () => {
titles.value = ['未关联的组件名称', '已关联的组件名称']
titleName.value = '关联组件'
- mockData2.value = []
- visibleAssociatedApplication.value = true
+ visibleAssociatedApplicationOther.value = true
+ mockDataOther.value = []
props.dataFrom.infoList.forEach((val) => {
if (val.attrType === '关联组件信息' && val.attrValue != '') {
queryResourceRelByKeyId({
@@ -715,18 +716,18 @@
}).then((res) => {
// console.log(res.data.data.notLinked)
res.data.data.notLinked.forEach((val, index) => {
- mockData2.value.push({
+ mockDataOther.value.push({
key: val.id,
title: val.name,
description: val.id,
})
})
})
- targetKeys2.value = []
+ targetKeysOther.value = []
val.attrValue.split(',').forEach((item) => {
- targetKeys2.value.push(item)
+ targetKeysOther.value.push(item)
})
- console.log(targetKeys2.value)
+ console.log(targetKeysOther.value)
// console.log('wowowo')
} else if (val.attrType === '关联组件信息' && val.attrValue == '') {
queryResourceRelByKeyId({
@@ -736,7 +737,7 @@
}).then((res) => {
// console.log(res.data.data.notLinked)
res.data.data.notLinked.forEach((val, index) => {
- mockData2.value.push({
+ mockDataOther.value.push({
key: val.id,
title: val.name,
description: val.id,
@@ -747,7 +748,7 @@
})
}
const selectedKeys = ref([])
- const selectedKeys2 = ref([])
+ const selectedKeysOther = ref([])
const handleChange = (nextTargetKeys, direction, moveKeys) => {
console.log('targetKeys: ', nextTargetKeys)
@@ -757,38 +758,34 @@
targetKeys.value = moveKeys.filter((item, index) => index === 0)
}
}
- const handleChange1 = (nextTargetKeys1, direction1, moveKeys1) => {
- console.log('targetKeys: ', nextTargetKeys1)
- console.log('direction: ', direction1)
- console.log('moveKeys: ', moveKeys1)
- }
-
const handleSelectChange = (sourceSelectedKeys, targetSelectedKeys) => {
console.log('targetSelectedKeys: ', targetSelectedKeys, sourceSelectedKeys)
- console.log('after', sourceSelectedKeys)
}
- const handleSelectChange1 = (sourceSelectedKeys1, targetSelectedKeys1) => {
- console.log(
- 'targetSelectedKeys: ',
- targetSelectedKeys1,
- sourceSelectedKeys1
- )
+ const handleChangeOther = (nextTargetKeys, direction, moveKeys) => {
+ console.log('targetKeys: ', nextTargetKeys)
+ console.log('direction: ', direction)
+ console.log('moveKeys: ', moveKeys)
+ }
+ const handleSelectChangeOther = (sourceSelectedKeys, targetSelectedKeys) => {
+ console.log('targetSelectedKeys: ', targetSelectedKeys, sourceSelectedKeys)
}
const handleOk = (e) => {
console.log(e)
+ visibleAssociatedApplicationOther.value = false
visibleAssociatedApplication.value = false
// console.log('2222222222222', props.refData)
data.value.list.map((item) => {
if (item.name === '来源应用') {
item.note1 = targetKeys.value + ''
} else if (item.name === '关联组件信息') {
- item.note1 = targetKeys2.value + ''
+ item.note1 = targetKeysOther.value + ''
}
})
}
const handleCancel = (e) => {
console.log(e)
+ visibleAssociatedApplicationOther.value = false
visibleAssociatedApplication.value = false
}
From e770028fbaa2a42ca115863631a9fbde0bf9390e Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Tue, 19 Jul 2022 15:05:37 +0800
Subject: [PATCH 02/18] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E6=94=B6?=
=?UTF-8?q?=E8=97=8F=E5=8A=9F=E8=83=BDBUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Application/ApplicationAssociatedComponents.vue | 2 +-
.../components/Application/ApplicationTopDetails.vue | 6 +++---
.../detailsAll/components/Business/BusinessTopDetails.vue | 6 +++---
.../detailsAll/components/Developer/DeveloperTopDetails.vue | 6 +++---
.../components/LayerService/LayerServiceTopDetails.vue | 6 +++---
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/front/src/views/detailsAll/components/Application/ApplicationAssociatedComponents.vue b/front/src/views/detailsAll/components/Application/ApplicationAssociatedComponents.vue
index 31f47e2a..4fe7a136 100644
--- a/front/src/views/detailsAll/components/Application/ApplicationAssociatedComponents.vue
+++ b/front/src/views/detailsAll/components/Application/ApplicationAssociatedComponents.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 16:06:10
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-06-15 20:44:47
+ * @LastEditTime: 2022-07-19 14:02:54
* @Description: 关联组件
-->
diff --git a/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue b/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue
index 00e3908c..4d978cd6 100644
--- a/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue
+++ b/front/src/views/detailsAll/components/Application/ApplicationTopDetails.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-19 11:09:23
+ * @LastEditTime: 2022-07-19 15:02:23
* @Description: 算法详情页头部
-->
@@ -154,7 +154,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = false
+ props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@@ -167,7 +167,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = true
+ props.dataList.isCollect = 'true'
scFlag2.value = true
}
})
diff --git a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue
index 441204d1..123ae579 100644
--- a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue
+++ b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-19 11:09:52
+ * @LastEditTime: 2022-07-19 15:02:47
* @Description: 算法详情页头部
-->
@@ -137,7 +137,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = false
+ props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@@ -150,7 +150,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = true
+ props.dataList.isCollect = 'true'
scFlag2.value = true
}
})
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue b/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue
index 16bffb1c..de247e25 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperTopDetails.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-19 11:10:06
+ * @LastEditTime: 2022-07-19 15:03:50
* @Description: 开发组件详情页头部
-->
@@ -132,7 +132,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = false
+ props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@@ -145,7 +145,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = true
+ props.dataList.isCollect = 'true'
scFlag2.value = true
}
})
diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue
index 112ee4f4..88bbc7e5 100644
--- a/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue
+++ b/front/src/views/detailsAll/components/LayerService/LayerServiceTopDetails.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:56:28
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-19 11:10:20
+ * @LastEditTime: 2022-07-19 15:04:02
* @Description: 算法详情页头部
-->
@@ -132,7 +132,7 @@
if (res.data.msg === 'success') {
message.success('取消成功')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = false
+ props.dataList.isCollect = 'false'
scFlag2.value = true
}
})
@@ -145,7 +145,7 @@
if (res.data.msg === 'success') {
message.success('添加收藏成功!')
// eslint-disable-next-line vue/no-mutating-props
- props.dataList.isCollect = true
+ props.dataList.isCollect = 'true'
scFlag2.value = true
}
})
From d1692a1f51e5b18b7845bdf1cb16609d0fc9d2a9 Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Tue, 19 Jul 2022 15:06:26 +0800
Subject: [PATCH 03/18] =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/PutOnTheShelf.vue | 250 ++++++++++++------
1 file changed, 168 insertions(+), 82 deletions(-)
diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
index 2af6eee3..7beec4b7 100644
--- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
+++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-17 14:11:08
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-18 14:43:47
+ * @LastEditTime: 2022-07-19 14:50:30
* @Description: 上架
-->
@@ -15,7 +15,7 @@