From 2eca6ab7583b1246bdf88dea98da7305ffeb67ae Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Mon, 11 Jul 2022 15:41:18 +0800
Subject: [PATCH 01/16] =?UTF-8?q?=E5=90=8E=E5=8F=B0=20=E4=B8=8A=E6=9E=B6?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
back/public/index.html | 7 +-
.../src/views/modules/ability/bsabilityai.vue | 181 ++++++++++++++----
back/src/views/modules/ability/upload.vue | 4 -
.../views/modules/components/upload/index.vue | 31 ++-
.../components/inputSelectCheckbox.vue | 41 +++-
.../putOnTheShelf/components/special.vue | 18 +-
.../src/views/modules/putOnTheShelf/index.vue | 16 +-
7 files changed, 232 insertions(+), 66 deletions(-)
diff --git a/back/public/index.html b/back/public/index.html
index 4869501d..465e77bf 100644
--- a/back/public/index.html
+++ b/back/public/index.html
@@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2022-04-11 10:11:40
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-08 14:13:20
+ * @LastEditTime: 2022-07-11 12:09:13
* @Description: 告诉大家这是什么
-->
@@ -43,8 +43,9 @@
diff --git a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue
index 9c8395e7..784284be 100644
--- a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue
+++ b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue
@@ -19,7 +19,7 @@ js:
@@ -30,6 +30,21 @@ js:
{{ itemSelect.dictLabel }}
+
+
+ {{ itemSelect.name }}
+
+
{
- console.log(res, 'res')
const dataList = []
res.data.list.forEach((element) => {
dataList.push(element)
- console.log(dataList, 'this.options')
})
this.options = dataList
- console.log(this.options)
})
.catch(() => {})
+ } else if (this.data.name === '归属部门') {
+ this.$http.get('/sys/dept/all').then(res => {
+ const dataList = []
+ res.data.data.forEach((element) => {
+ dataList.push(element)
+ })
+ this.options = dataList
+ if (!this.data.note1) {
+ this.$http.get('/sys/user/info').then(({ data: res }) => {
+ this.data.note1 = res.data.deptId
+ })
+ }
+ })
}
},
chekBoxChange (list) {
@@ -102,10 +127,16 @@ export default {
str += ';'
}
})
- // console.log(str)
this.data.note1 = str
}
},
+ created () {
+ if (this.data.name === '应用领域') {
+ if (this.data.note1) {
+ this.valueCheckBox = this.data.note1.split(';')
+ }
+ }
+ },
mounted () {
this.selectOptions()
}
diff --git a/back/src/views/modules/putOnTheShelf/components/special.vue b/back/src/views/modules/putOnTheShelf/components/special.vue
index 77fa3e34..ee40bfcc 100644
--- a/back/src/views/modules/putOnTheShelf/components/special.vue
+++ b/back/src/views/modules/putOnTheShelf/components/special.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-07-08 09:54:50
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-09 10:54:48
+ * @LastEditTime: 2022-07-11 15:00:24
* @Description: 多条数据特殊处理
-->
@@ -62,7 +62,8 @@ export default {
upload
},
props: {
- configure: Object
+ configure: Object,
+ showData: Object
},
data () {
return {
@@ -75,7 +76,6 @@ export default {
const list = this.configure.list
let flag = true
list.forEach((item) => {
- console.log(item)
if (item.type !== 'number' && !item.note1.length > 0) {
flag = false
} else if (item.type === 'number' && !item.note1 > 0) {
@@ -88,7 +88,6 @@ export default {
obj[item.field] = item.note1
})
this.data.push(obj)
- // console.log(data.value[title])
this.$emit('changeInfoList', {
attrType: title,
attrValue: JSON.stringify(this.data),
@@ -110,6 +109,17 @@ export default {
delFlag: 0
})
}
+ },
+ created () {
+ if (this.configure.name === '计费标准信息' || this.configure.name === '常见问题') {
+ if (this.showData.children[0].note1) {
+ this.data = JSON.parse(this.showData.children[0].note1)
+ }
+ } else {
+ if (this.showData.note1) {
+ this.data = JSON.parse(this.showData.note1)
+ }
+ }
}
}
diff --git a/back/src/views/modules/putOnTheShelf/index.vue b/back/src/views/modules/putOnTheShelf/index.vue
index 5a0e8322..a257dfb0 100644
--- a/back/src/views/modules/putOnTheShelf/index.vue
+++ b/back/src/views/modules/putOnTheShelf/index.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-07-08 09:48:52
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-07-09 10:57:07
+ * @LastEditTime: 2022-07-11 15:11:10
* @Description: 告诉大家这是什么
-->
@@ -13,13 +13,15 @@
{{child.name}}
{{ item.name }}
-
- -->
+
-
+
-
@@ -31,7 +33,7 @@
-
+
From b37b3cafb91f54bac29ec2222f7437b055359045 Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Mon, 11 Jul 2022 16:10:59 +0800
Subject: [PATCH 02/16] =?UTF-8?q?=E6=B8=85=E7=A9=BABUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
back/src/views/modules/ability/bsabilityai.vue | 3 +++
1 file changed, 3 insertions(+)
diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue
index 402b9646..5146961d 100644
--- a/back/src/views/modules/ability/bsabilityai.vue
+++ b/back/src/views/modules/ability/bsabilityai.vue
@@ -385,8 +385,11 @@ export default {
},
// 新上架
clear () {
+ console.log('清空----------------------------------------')
this.showPutOnTheShelfFlag = false
this.showPutOnTheShelfFlag2 = false
+ this.insertList = []
+ this.putOnTheShelfList = []
this.radio = ''
this.submitFrom = {
type: '组件服务',
From a6c9ca295ad2327ecc809764a4fc4d8e829c2319 Mon Sep 17 00:00:00 2001
From: gaoyuanwei <2826352639@qq.com>
Date: Mon, 11 Jul 2022 16:12:59 +0800
Subject: [PATCH 03/16] =?UTF-8?q?=E5=90=8E=E5=8F=B0-=E5=BA=94=E7=94=A8?=
=?UTF-8?q?=E8=B5=84=E6=BA=90=E4=B8=8A=E6=9E=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/modules/ability/bsabilityai.vue | 5 +-
.../modules/ability/bsabilityservice.vue | 544 +++++++++++++-----
.../src/views/modules/putOnTheShelf/index.vue | 5 +-
3 files changed, 410 insertions(+), 144 deletions(-)
diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue
index 402b9646..94705db7 100644
--- a/back/src/views/modules/ability/bsabilityai.vue
+++ b/back/src/views/modules/ability/bsabilityai.vue
@@ -164,7 +164,7 @@
:destroy-on-close='true'
:before-close='clear'
width="50%">
-
+