diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue
index a1b9ea03..661f116b 100644
--- a/back/src/views/modules/ability/bsabilityai.vue
+++ b/back/src/views/modules/ability/bsabilityai.vue
@@ -156,7 +156,7 @@
:close-on-press-escape='false'
:before-close='clear'
width="50%">
-
+
@@ -48,7 +48,7 @@
@@ -71,7 +71,7 @@ export default {
}
},
methods: {
- add () {
+ add (title) {
const list = this.configure.list
let flag = true
list.forEach((item) => {
@@ -89,11 +89,11 @@ export default {
})
this.data.push(obj)
// console.log(data.value[title])
- // mybus.emit('chageDataFrom', {
- // attrType: title,
- // attrValue: JSON.stringify(data.value[title]),
- // delFlag: 0
- // })
+ this.$emit('changeInfoList', {
+ attrType: title,
+ attrValue: JSON.stringify(this.data),
+ delFlag: 0
+ })
list.forEach((item) => {
item.note1 = ''
})
@@ -101,14 +101,15 @@ export default {
} else {
this.$message.warning('请填写完整')
}
- } // del (title, index) {
- // data.value[title].splice(index, 1)
- // mybus.emit('chageDataFrom', {
- // attrType: title,
- // attrValue: JSON.stringify(data.value[title]),
- // delFlag: 0
- // })
- // }
+ },
+ del (title, index) {
+ this.data.splice(index, 1)
+ this.$emit('changeInfoList', {
+ attrType: title,
+ attrValue: JSON.stringify(this.data),
+ delFlag: 0
+ })
+ }
}
}
diff --git a/back/src/views/modules/putOnTheShelf/index.vue b/back/src/views/modules/putOnTheShelf/index.vue
index 50258260..ba64eb8a 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-08 15:50:06
+ * @LastEditTime: 2022-07-08 17:03:12
* @Description: 告诉大家这是什么
-->
@@ -13,18 +13,18 @@
{{child.name}}
{{ item.name }}
-
-
-
+
-
-
+
@@ -154,6 +154,9 @@ export default {
}
},
methods: {
+ changeInfoList (obj) {
+ this.$emit('changeInfoList', obj)
+ }
}
}