Commit 6a69da12 authored by Xuguangxing's avatar Xuguangxing

feat: 升级业务库

parent bb53dbb0
......@@ -143,6 +143,7 @@ export default {
},
watch: {
value(val) {
console.log(val, '122')
this.dataValue = val;
},
dataValue: {
......@@ -224,12 +225,12 @@ export default {
const list = res.records || [];
list.map(item => {
if (this.dataValue.type == 'category') {
if (this.selectCategoryCollect.indexOf(item.sceneId) > -1) {
if (this.selectCategoryCollect.indexOf(String(item.sceneId)) > -1) {
item._checked = true;
}
}
if (this.dataValue.type == 'brand') {
if (this.selectBrandCollect.indexOf(item.sceneId) > -1) {
if (this.selectBrandCollect.indexOf(String(item.sceneId)) > -1) {
item._checked = true;
}
}
......@@ -276,6 +277,12 @@ export default {
}
} else {
this.dataValue = this.value;
if (this.dataValue.type == 'category') {
this.selectCategoryCollect = this.dataValue.categoryId ? this.dataValue.categoryId.split() : [];
}
if (this.dataValue.type == 'brand') {
this.selectBrandCollect = this.dataValue.brandId ? this.dataValue.brandId.split() : [];
}
}
}
}
......
......@@ -2176,9 +2176,9 @@
}
},
"@qg/citrus-ui": {
"version": "0.3.56-beta5",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.56-beta5.tgz",
"integrity": "sha512-B4KQboY9ipM0R4bI1gb2guJ8S5y14iNZ6ithbSunZ6o2uJEt4xX45SOVkUg53YukXpfdxchJx/HeNI8SCQ+1pw==",
"version": "0.3.56-beta1",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.56-beta1.tgz",
"integrity": "sha512-iB7MBNHV1DoQ6rH0ZLn8nb7AvpM5Mkgfnwk4Y1dZnMFB/2peQ0YEWEwbOPutj0I9pFZMmJWPvyzcsA5bTUjLdg==",
"requires": {
"@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.23.9",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment