xs-common-plugins 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -150,6 +150,10 @@
|
|
|
150
150
|
<HKCascader v-model="inputValue[optionItem.fieldName]" :placeholder="optionItem.defaultValue"
|
|
151
151
|
:style="{ width: optionItem.itemWidth }" :optionItem="optionItem"></HKCascader>
|
|
152
152
|
</el-form-item>
|
|
153
|
+
<el-form-item :label="optionItem.displayName" v-if="optionItem.component "
|
|
154
|
+
:style="{ width: optionItem.itemWidth }" class="dateRange">
|
|
155
|
+
<component :is="optionItem.component" v-model="inputValue[optionItem.fieldName]" :placeholder="optionItem.defaultValue" v-bind="optionItem" />
|
|
156
|
+
</el-form-item>
|
|
153
157
|
</div>
|
|
154
158
|
|
|
155
159
|
<el-form-item v-if="!!getBtnContentIsOut().length">
|
|
@@ -173,7 +177,7 @@
|
|
|
173
177
|
</div>
|
|
174
178
|
<slot name="search_custemBtn" />
|
|
175
179
|
<!-- <div class="buttonBox">
|
|
176
|
-
|
|
180
|
+
|
|
177
181
|
<el-form-item v-if="!!getBtnContentIsOut().length">
|
|
178
182
|
<el-dropdown
|
|
179
183
|
trigger="click"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<span class="title">商品品类</span>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="body">
|
|
11
|
-
<el-radio-group class="product-type" v-model="selectedType" size="mini">
|
|
11
|
+
<el-radio-group class="product-type" v-model="selectedType" size="mini" @change="changeProductType">
|
|
12
12
|
<el-radio
|
|
13
13
|
v-for="typeItem in $enumList.EnumProductType"
|
|
14
14
|
:key="typeItem.Id"
|
|
@@ -391,13 +391,6 @@ export default {
|
|
|
391
391
|
mixins: [MIX_VMODEL],
|
|
392
392
|
components: {},
|
|
393
393
|
watch: {
|
|
394
|
-
selectedType: {
|
|
395
|
-
handler(nVal) {
|
|
396
|
-
this.loadSource();
|
|
397
|
-
},
|
|
398
|
-
immediate: true
|
|
399
|
-
},
|
|
400
|
-
|
|
401
394
|
selectedAreaCode: {
|
|
402
395
|
handler(nVal) {
|
|
403
396
|
console.log(nVal, "=====>");
|
|
@@ -7,7 +7,10 @@ export default {
|
|
|
7
7
|
},
|
|
8
8
|
mountedInit() {
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
// 切换商品品类
|
|
11
|
+
changeProductType (value) {
|
|
12
|
+
this.loadSource();
|
|
13
|
+
},
|
|
11
14
|
checkboxHandle(event, fieldName) {
|
|
12
15
|
this.keys = []
|
|
13
16
|
this.checkboxForm = {
|
|
@@ -36,12 +39,21 @@ export default {
|
|
|
36
39
|
typeId: parseInt(this.selectedType)
|
|
37
40
|
}).then(res => {
|
|
38
41
|
if (res.data) {
|
|
39
|
-
this.areaCodeDicList = res.data.areaCodeDic
|
|
40
|
-
this.arsIdDicList = res.data.arsIdDic
|
|
41
|
-
this.denomIncList = res.data.denomInc
|
|
42
|
+
this.areaCodeDicList = res.data.areaCodeDic // 地区/种类列表
|
|
43
|
+
this.arsIdDicList = res.data.arsIdDic // 运营商类目列表
|
|
44
|
+
this.denomIncList = res.data.denomInc // 面值列表
|
|
42
45
|
} else {
|
|
43
46
|
this.areaCodeDicList = this.arsIdDicList = this.denomIncList = []
|
|
44
47
|
}
|
|
48
|
+
let list = []
|
|
49
|
+
this.areaCodeDicList.forEach(item => { list.push([item.value]) });
|
|
50
|
+
this.selectedAreaCode = list // selectedAreaCode 地区/种类
|
|
51
|
+
this.selectedArsId = this.formatData(this.arsIdDicList) // selectedArsId 运营商类目
|
|
52
|
+
this.selectedDenomInc = Object.values(this.denomIncList) // selectedDenomInc 面值
|
|
53
|
+
this.checkboxHandle()
|
|
45
54
|
})
|
|
55
|
+
},
|
|
56
|
+
formatData (list) {
|
|
57
|
+
return list.map(item => item.value)
|
|
46
58
|
}
|
|
47
59
|
}
|