diff --git a/src/components/skuTransfer.vue b/src/components/skuTransfer.vue
index 4a9bf3c..31e858a 100644
--- a/src/components/skuTransfer.vue
+++ b/src/components/skuTransfer.vue
@@ -8,7 +8,8 @@ export default {
name: 'skuTransfer',
props: {
tit: String,
- val: Array
+ val: Array,
+ shop_id: String
},
data () {
return {
@@ -18,7 +19,7 @@ export default {
computed: {
// 获取商品sku列表
skuList () {
- return this.$store.state.skuList
+ return this.$store.state.skuList.filter(item => item.shop_id === this.shop_id)
},
// 格式化sku列表
skuListArr () {
@@ -37,6 +38,10 @@ export default {
watch: {
value (val) {
this.updateValue(val)
+ },
+ // 监听父级 "所属商铺"控件 更新时清除sku穿梭框已选值
+ shop_id () {
+ this.value = []
}
},
created () {
diff --git a/src/store/index.js b/src/store/index.js
index 77f5f84..74b571d 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -363,6 +363,7 @@ const store = new Vuex.Store({
}).then(() => {
const params = new URLSearchParams()
params.append('idArr', idArr)
+ console.log(params)
api.post('deleteAir', params).then(res => {
if (res.data.status === 1) {
Message.success(res.data.msg)
diff --git a/src/views/layout/components/main/category/index.vue b/src/views/layout/components/main/category/index.vue
index 2c8ebd7..b0bbefc 100644
--- a/src/views/layout/components/main/category/index.vue
+++ b/src/views/layout/components/main/category/index.vue
@@ -26,7 +26,7 @@
{{ data.name }}