xs-common-plugins 1.2.4 → 1.2.6
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 +309 -299
- package/common.js +110 -110
- package/index.js +1 -1
- package/package.json +16 -16
- package/src/App.vue +12 -12
- package/src/common/common.js +551 -549
- package/src/common/createMenuId.js +7 -7
- package/src/common/uploadImgToBase64.js +12 -12
- package/src/common/utils.js +95 -95
- package/src/components/Breadcrumb/index.vue +81 -81
- package/src/components/CheckBox_Cmp/index.vue +62 -62
- package/src/components/Col_TableCell/data.js +4 -4
- package/src/components/Col_TableCell/index.scss +77 -77
- package/src/components/Col_TableCell/index.vue +43 -43
- package/src/components/Col_TableCell/methods.js +19 -19
- package/src/components/FormItem/index.vue +92 -92
- package/src/components/Hamburger/index.vue +44 -44
- package/src/components/ReportCmp/data.js +3 -3
- package/src/components/ReportCmp/index.scss +29 -29
- package/src/components/ReportCmp/index.vue +76 -76
- package/src/components/ReportCmp/methods.js +30 -30
- package/src/components/Search/cascader/data.js +3 -3
- package/src/components/Search/cascader/index.scss +17 -17
- package/src/components/Search/cascader/index.vue +96 -96
- package/src/components/Search/cascader/methods.js +41 -41
- package/src/components/Search/data.js +5 -5
- package/src/components/Search/hk_cascader/index.vue +104 -104
- package/src/components/Search/hk_cascader_qudao/index.vue +94 -94
- package/src/components/Search/index.scss +219 -219
- package/src/components/Search/index.vue +410 -410
- package/src/components/Search/methods.js +86 -86
- package/src/components/Search/product_option/data.js +3 -3
- package/src/components/Search/product_option/index.scss +68 -68
- package/src/components/Search/product_option/index.vue +412 -412
- package/src/components/Search/product_option/methods.js +58 -58
- package/src/components/Search/select/data.js +3 -3
- package/src/components/Search/select/index.scss +2 -2
- package/src/components/Search/select/index.vue +114 -114
- package/src/components/Search/select/methods.js +51 -51
- package/src/components/Search_filter/data.js +5 -5
- package/src/components/Search_filter/index.scss +104 -104
- package/src/components/Search_filter/index.vue +88 -88
- package/src/components/Search_filter/methods.js +43 -43
- package/src/components/TableCmp/data.js +3 -3
- package/src/components/TableCmp/index.scss +22 -22
- package/src/components/TableCmp/index.vue +98 -98
- package/src/components/TableCmp/methods.js +35 -35
- package/src/components/TableItem/TableItem.vue +55 -55
- package/src/components/TextOVer/index.vue +55 -55
- package/src/components/UploadImg/index.vue +177 -177
- package/src/components/home/BarChart.vue +118 -118
- package/src/components/home/LineChart.vue +146 -146
- package/src/components/home/Panel.vue +135 -135
- package/src/components/home/PanelGroup.vue +146 -146
- package/src/components/home/PieChart.vue +81 -81
- package/src/components/home/RaddarChart.vue +119 -119
- package/src/components/home/TabLayout.vue +88 -88
- package/src/components/home/TableList.vue +158 -158
- package/src/components/home/Teng.vue +248 -248
- package/src/components/home/TransactionTable.vue +49 -49
- package/src/components/home/mixins/resize.js +55 -55
- package/src/components/im/index.vue +155 -155
- package/src/components/im/methods.js +25 -25
- package/src/components/im/pages/chatList/index.vue +45 -45
- package/src/components/im/pages/chatRoom/index.vue +159 -159
- package/src/components/image-singleUpload/data.js +3 -3
- package/src/components/image-singleUpload/index.scss +26 -26
- package/src/components/image-singleUpload/index.vue +56 -56
- package/src/components/image-singleUpload/methods.js +30 -30
- package/src/components/image-upload/data.js +7 -7
- package/src/components/image-upload/index.vue +41 -41
- package/src/components/image-upload/methods.js +80 -80
- package/src/components/multiple-image-upload/data.js +11 -11
- package/src/components/multiple-image-upload/index.scss +8 -8
- package/src/components/multiple-image-upload/index.vue +63 -63
- package/src/components/multiple-image-upload/methods.js +45 -45
- package/src/components/pro-upload/data.js +3 -3
- package/src/components/pro-upload/index.scss +4 -4
- package/src/components/pro-upload/index.vue +89 -89
- package/src/components/pro-upload/methods.js +86 -86
- package/src/components/report_set/index.scss +44 -44
- package/src/components/report_set/index.vue +153 -153
- package/src/components/search-page/src/index.scss +5 -5
- package/src/components/search-page/src/index.vue +76 -76
- package/src/components/search-page/src/methods.js +36 -36
- package/src/components/xsSelect/index.vue +125 -125
- package/src/mixin/dialog.js +31 -31
- package/src/mixin/dlg.js +46 -46
- package/src/mixin/keepAlive.js +53 -53
- package/src/mixin/newDialog.js +19 -19
- package/src/mixin/report.js +82 -82
- package/src/mixin/table.js +93 -93
- package/src/mixin/tableCell/colTableCell_analysis.js +103 -103
- package/src/mixin/upload.js +22 -22
- package/src/mixin/vmodel.js +26 -26
- package/src/plugins/im/components/chat/index.scss +163 -163
- package/src/plugins/im/components/chat/index.vue +144 -144
- package/src/plugins/im/components/chat/methods.js +149 -149
- package/src/plugins/im/components/conversation-list/index.css +91 -91
- package/src/plugins/im/components/conversation-list/index.json +3 -3
- package/src/plugins/im/components/conversation-list/index.vue +89 -89
- package/src/plugins/im/components/loading/loading.css +69 -69
- package/src/plugins/im/components/loading/loading.json +3 -3
- package/src/plugins/im/components/loading/loading.vue +14 -14
- package/src/plugins/im/components/msg-image/index.json +3 -3
- package/src/plugins/im/components/msg-image/index.vue +40 -40
- package/src/plugins/im/components/msg-text/index.json +3 -3
- package/src/plugins/im/components/msg-text/index.vue +24 -24
- package/src/plugins/im/components/send-msg/index.scss +164 -164
- package/src/plugins/im/components/send-msg/index.vue +107 -107
- package/src/plugins/im/components/send-msg/methods.js +125 -125
- package/src/plugins/im/components/template-message/index.vue +76 -76
- package/src/plugins/im/components/without.vue +19 -19
- package/src/plugins/im/im-plug-in/Protobuf-2.3.7.min.js +1 -1
- package/src/plugins/im/im-plug-in/RongCallLib-3.1.5.min.js +74 -74
- package/src/plugins/im/im-plug-in/RongIMLib-4.1.0.js +17420 -17420
- package/src/plugins/im/im-plug-in/init.js +216 -216
- package/src/plugins/im/im-plug-in/qiniu.js +266 -266
- package/src/plugins/im/im-plug-in/send-data.js +431 -431
- package/src/plugins/im/im-plug-in/upload.js +232 -232
- package/src/plugins/im/index.js +31 -31
- package/src/plugins/im/lib/RongIMEmoji-2.2.6.js +332 -332
- package/src/plugins/im/lib/RongIMLib-3.0.7.2-dev.js +11635 -11635
- package/src/plugins/im/lib/RongIMLib-3.0.7.2-dev.min.js +6 -6
- package/src/plugins/im/utils/services.js +625 -625
- package/src/plugins/im/utils/underscore-1.8.3.js +1531 -1531
- package/src/plugins/im/utils/utils.js +149 -149
- package/src/plugins/index.js +60 -60
- package/src/plugins/row-col-cmp/colCmp/data.js +3 -3
- package/src/plugins/row-col-cmp/colCmp/index.scss +50 -50
- package/src/plugins/row-col-cmp/colCmp/index.vue +53 -53
- package/src/plugins/row-col-cmp/colCmp/methods.js +25 -25
- package/src/plugins/row-col-cmp/index.js +20 -20
- package/src/plugins/row-col-cmp/rowCmp/data.js +3 -3
- package/src/plugins/row-col-cmp/rowCmp/index.scss +3 -3
- package/src/plugins/row-col-cmp/rowCmp/index.vue +43 -43
- package/src/plugins/row-col-cmp/rowCmp/methods.js +29 -29
- package/src/router/index.js +58 -58
- package/src/router/permission.js +126 -126
- package/src/store/getters.js +13 -13
- package/src/store/index.js +60 -60
- package/src/store/modules/app.js +55 -55
- package/src/store/modules/dic.js +74 -74
- package/src/store/modules/oss.js +40 -40
- package/src/store/modules/settings.js +28 -28
- package/src/store/modules/tagsView.js +160 -160
- package/src/store/modules/user.js +94 -94
- package/src/store/modules/widgetdata.js +42 -42
- package/src/styles/element-ui.scss +49 -49
- package/src/styles/index.scss +91 -91
- package/src/styles/mixin.scss +28 -28
- package/src/styles/sidebar.scss +210 -210
- package/src/styles/table.scss +90 -90
- package/src/styles/transition.scss +48 -48
- package/src/styles/variables.scss +25 -25
- package/src/utils/api.js +54 -54
- package/src/utils/auth.js +38 -38
- package/src/utils/concat_batch_btns.js +88 -88
- package/src/utils/enum.js +150 -150
- package/src/utils/filter.js +5 -5
- package/src/utils/filterRules.js +55 -55
- package/src/utils/get-page-title.js +10 -10
- package/src/utils/getMenu.js +82 -82
- package/src/utils/global-config.js +15 -15
- package/src/utils/global_directive.js +10 -10
- package/src/utils/index.js +332 -332
- package/src/utils/localStorage.js +21 -21
- package/src/utils/ossService.js +55 -55
- package/src/utils/prototype.js +46 -46
- package/src/utils/search.js +33 -33
- package/src/utils/signalR.js +24 -24
- package/src/utils/validate.js +20 -20
- package/src/views/callback/index.vue +35 -35
- package/src/views/home/index.vue +25 -25
- package/src/views/layout/components/AllSearch/index.vue +44 -44
- package/src/views/layout/components/AppMain.vue +66 -66
- package/src/views/layout/components/Sidebar/FixiOSBug.js +26 -26
- package/src/views/layout/components/Sidebar/Item.vue +28 -28
- package/src/views/layout/components/Sidebar/Link.vue +34 -34
- package/src/views/layout/components/Sidebar/Logo.vue +79 -79
- package/src/views/layout/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout/components/Sidebar/index.vue +114 -114
- package/src/views/layout/components/TagsView/ScrollPane.vue +94 -94
- package/src/views/layout/components/TagsView/index.vue +330 -330
- package/src/views/layout/components/index.js +3 -3
- package/src/views/layout/index.vue +107 -107
- package/src/views/redirect/index.vue +12 -12
- package/src/views/slienceAuth/index.vue +42 -42
|
@@ -1,413 +1,413 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="product_option-wrapper">
|
|
3
|
-
<el-select v-model="inputValue" collapse-tags clearable multiple clearable:placeholder="optionItem.defaultValue">
|
|
4
|
-
<template slot="empty">
|
|
5
|
-
<div class="select-empty-group">
|
|
6
|
-
<div class="row J_Row">
|
|
7
|
-
<div class="head">
|
|
8
|
-
<span class="title">商品品类</span>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="body">
|
|
11
|
-
<el-radio-group class="product-type" v-model="selectedType" size="mini" @change="changeProductType">
|
|
12
|
-
<el-radio
|
|
13
|
-
v-for="typeItem in $enumList.EnumProductType"
|
|
14
|
-
:key="typeItem.Id"
|
|
15
|
-
:label="typeItem.Id"
|
|
16
|
-
>{{typeItem.Text}}</el-radio>
|
|
17
|
-
</el-radio-group>
|
|
18
|
-
</div>
|
|
19
|
-
<el-divider></el-divider>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div class="row J_Row">
|
|
23
|
-
<div class="head">
|
|
24
|
-
<span class="title">运营商/类目</span>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="body check-width" v-if="arsIdDicList.length">
|
|
27
|
-
<el-checkbox-group
|
|
28
|
-
v-model="selectedArsId"
|
|
29
|
-
@change="checkboxHandle($event,optionItem.fieldName)"
|
|
30
|
-
>
|
|
31
|
-
<el-checkbox
|
|
32
|
-
v-for="(item,index) in arsIdDicList"
|
|
33
|
-
:key="index"
|
|
34
|
-
:label="item.value"
|
|
35
|
-
>{{item.label}}</el-checkbox>
|
|
36
|
-
</el-checkbox-group>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="body-empty" v-else>
|
|
39
|
-
<span>暂无数据</span>
|
|
40
|
-
</div>
|
|
41
|
-
<el-divider></el-divider>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="row J_Row">
|
|
45
|
-
<div class="head">
|
|
46
|
-
<span class="title">地区/种类</span>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="body" v-if="areaCodeDicList.length">
|
|
49
|
-
<el-cascader-panel
|
|
50
|
-
v-model="selectedAreaCode"
|
|
51
|
-
:options="areaCodeDicList"
|
|
52
|
-
:props="props"
|
|
53
|
-
collapse-tags
|
|
54
|
-
@change="checkboxHandle($event,optionItem.fieldName)"
|
|
55
|
-
></el-cascader-panel>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="body-empty" v-else>
|
|
58
|
-
<span>暂无数据</span>
|
|
59
|
-
</div>
|
|
60
|
-
<el-divider></el-divider>
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
<div class="row J_Row">
|
|
64
|
-
<div class="head">
|
|
65
|
-
<span class="title">面值</span>
|
|
66
|
-
</div>
|
|
67
|
-
<div class="body check-width" v-if="denomIncList.length > 0">
|
|
68
|
-
<el-checkbox-group
|
|
69
|
-
v-model="selectedDenomInc"
|
|
70
|
-
@change="checkboxHandle($event,optionItem.fieldName)"
|
|
71
|
-
>
|
|
72
|
-
<el-checkbox
|
|
73
|
-
v-for="(item,index) in denomIncList"
|
|
74
|
-
:key="index"
|
|
75
|
-
:label="item"
|
|
76
|
-
>{{item}}</el-checkbox>
|
|
77
|
-
</el-checkbox-group>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="body-empty" v-else>
|
|
80
|
-
<span>暂无数据</span>
|
|
81
|
-
</div>
|
|
82
|
-
<el-divider></el-divider>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</template>
|
|
86
|
-
</el-select>
|
|
87
|
-
</div>
|
|
88
|
-
</template>
|
|
89
|
-
|
|
90
|
-
<script>
|
|
91
|
-
import data from "./data";
|
|
92
|
-
import methods from "./methods";
|
|
93
|
-
import { MIX_VMODEL } from "@/mixin/vmodel";
|
|
94
|
-
|
|
95
|
-
export default {
|
|
96
|
-
$$route: {
|
|
97
|
-
meta: {
|
|
98
|
-
title: "标题名称",
|
|
99
|
-
icon: "菜单图标"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
props: {
|
|
103
|
-
optionItem: Object
|
|
104
|
-
},
|
|
105
|
-
data() {
|
|
106
|
-
return {
|
|
107
|
-
selectedType: 0, // 选中的商品种类
|
|
108
|
-
|
|
109
|
-
selectedArsId: [], // 选中的运营商/类目
|
|
110
|
-
arsIdDicList: [], // 运营商/类目
|
|
111
|
-
|
|
112
|
-
selectedAreaCode: [], // 选中的地区/种类
|
|
113
|
-
areaCodeDicList: [], //地区/种类
|
|
114
|
-
|
|
115
|
-
selectedDenomInc: [], //面值
|
|
116
|
-
denomIncList: [], //面值
|
|
117
|
-
|
|
118
|
-
props: { multiple: true, checkStrictly: true },
|
|
119
|
-
|
|
120
|
-
options: [
|
|
121
|
-
{
|
|
122
|
-
value: "zhinan",
|
|
123
|
-
label: "指南",
|
|
124
|
-
children: [
|
|
125
|
-
{
|
|
126
|
-
value: "shejiyuanze",
|
|
127
|
-
label: "设计原则",
|
|
128
|
-
children: [
|
|
129
|
-
{
|
|
130
|
-
value: "yizhi",
|
|
131
|
-
label: "一致"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
value: "fankui",
|
|
135
|
-
label: "反馈"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
value: "xiaolv",
|
|
139
|
-
label: "效率"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
value: "kekong",
|
|
143
|
-
label: "可控"
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
value: "daohang",
|
|
149
|
-
label: "导航",
|
|
150
|
-
children: [
|
|
151
|
-
{
|
|
152
|
-
value: "cexiangdaohang",
|
|
153
|
-
label: "侧向导航"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
value: "dingbudaohang",
|
|
157
|
-
label: "顶部导航"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
value: "zujian",
|
|
165
|
-
label: "组件",
|
|
166
|
-
children: [
|
|
167
|
-
{
|
|
168
|
-
value: "basic",
|
|
169
|
-
label: "Basic",
|
|
170
|
-
children: [
|
|
171
|
-
{
|
|
172
|
-
value: "layout",
|
|
173
|
-
label: "Layout 布局"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
value: "color",
|
|
177
|
-
label: "Color 色彩"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
value: "typography",
|
|
181
|
-
label: "Typography 字体"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
value: "icon",
|
|
185
|
-
label: "Icon 图标"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
value: "button",
|
|
189
|
-
label: "Button 按钮"
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
value: "form",
|
|
195
|
-
label: "Form",
|
|
196
|
-
children: [
|
|
197
|
-
{
|
|
198
|
-
value: "radio",
|
|
199
|
-
label: "Radio 单选框"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
value: "checkbox",
|
|
203
|
-
label: "Checkbox 多选框"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
value: "input",
|
|
207
|
-
label: "Input 输入框"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
value: "input-number",
|
|
211
|
-
label: "InputNumber 计数器"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
value: "select",
|
|
215
|
-
label: "Select 选择器"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
value: "cascader",
|
|
219
|
-
label: "Cascader 级联选择器"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
value: "switch",
|
|
223
|
-
label: "Switch 开关"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
value: "slider",
|
|
227
|
-
label: "Slider 滑块"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
value: "time-picker",
|
|
231
|
-
label: "TimePicker 时间选择器"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
value: "date-picker",
|
|
235
|
-
label: "DatePicker 日期选择器"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
value: "datetime-picker",
|
|
239
|
-
label: "DateTimePicker 日期时间选择器"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
value: "upload",
|
|
243
|
-
label: "Upload 上传"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
value: "rate",
|
|
247
|
-
label: "Rate 评分"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
value: "form",
|
|
251
|
-
label: "Form 表单"
|
|
252
|
-
}
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
value: "data",
|
|
257
|
-
label: "Data",
|
|
258
|
-
children: [
|
|
259
|
-
{
|
|
260
|
-
value: "table",
|
|
261
|
-
label: "Table 表格"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
value: "tag",
|
|
265
|
-
label: "Tag 标签"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
value: "progress",
|
|
269
|
-
label: "Progress 进度条"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
value: "tree",
|
|
273
|
-
label: "Tree 树形控件"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
value: "pagination",
|
|
277
|
-
label: "Pagination 分页"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
value: "badge",
|
|
281
|
-
label: "Badge 标记"
|
|
282
|
-
}
|
|
283
|
-
]
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
value: "notice",
|
|
287
|
-
label: "Notice",
|
|
288
|
-
children: [
|
|
289
|
-
{
|
|
290
|
-
value: "alert",
|
|
291
|
-
label: "Alert 警告"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
value: "loading",
|
|
295
|
-
label: "Loading 加载"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
value: "message",
|
|
299
|
-
label: "Message 消息提示"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
value: "message-box",
|
|
303
|
-
label: "MessageBox 弹框"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
value: "notification",
|
|
307
|
-
label: "Notification 通知"
|
|
308
|
-
}
|
|
309
|
-
]
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
value: "navigation",
|
|
313
|
-
label: "Navigation",
|
|
314
|
-
children: [
|
|
315
|
-
{
|
|
316
|
-
value: "menu",
|
|
317
|
-
label: "NavMenu 导航菜单"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
value: "tabs",
|
|
321
|
-
label: "Tabs 标签页"
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
value: "breadcrumb",
|
|
325
|
-
label: "Breadcrumb 面包屑"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
value: "dropdown",
|
|
329
|
-
label: "Dropdown 下拉菜单"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
value: "steps",
|
|
333
|
-
label: "Steps 步骤条"
|
|
334
|
-
}
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
value: "others",
|
|
339
|
-
label: "Others",
|
|
340
|
-
children: [
|
|
341
|
-
{
|
|
342
|
-
value: "dialog",
|
|
343
|
-
label: "Dialog 对话框"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
value: "tooltip",
|
|
347
|
-
label: "Tooltip 文字提示"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
value: "popover",
|
|
351
|
-
label: "Popover 弹出框"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
value: "card",
|
|
355
|
-
label: "Card 卡片"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
value: "carousel",
|
|
359
|
-
label: "Carousel 走马灯"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
value: "collapse",
|
|
363
|
-
label: "Collapse 折叠面板"
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
value: "ziyuan",
|
|
371
|
-
label: "资源",
|
|
372
|
-
children: [
|
|
373
|
-
{
|
|
374
|
-
value: "axure",
|
|
375
|
-
label: "Axure Components"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
value: "sketch",
|
|
379
|
-
label: "Sketch Templates"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
value: "jiaohu",
|
|
383
|
-
label: "组件交互文档"
|
|
384
|
-
}
|
|
385
|
-
]
|
|
386
|
-
}
|
|
387
|
-
]
|
|
388
|
-
};
|
|
389
|
-
},
|
|
390
|
-
methods,
|
|
391
|
-
mixins: [MIX_VMODEL],
|
|
392
|
-
components: {},
|
|
393
|
-
watch: {
|
|
394
|
-
selectedAreaCode: {
|
|
395
|
-
handler(nVal) {
|
|
396
|
-
console.log(nVal, "=====>");
|
|
397
|
-
},
|
|
398
|
-
deep: true
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
computed: {},
|
|
402
|
-
// ------------------------------------------------------------------
|
|
403
|
-
// pragma mark - Life Cycle(生命周期)
|
|
404
|
-
// ------------------------------------------------------------------
|
|
405
|
-
created() {
|
|
406
|
-
this.createdInit();
|
|
407
|
-
},
|
|
408
|
-
mounted() {
|
|
409
|
-
this.mountedInit();
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="product_option-wrapper">
|
|
3
|
+
<el-select v-model="inputValue" collapse-tags clearable multiple clearable:placeholder="optionItem.defaultValue">
|
|
4
|
+
<template slot="empty">
|
|
5
|
+
<div class="select-empty-group">
|
|
6
|
+
<div class="row J_Row">
|
|
7
|
+
<div class="head">
|
|
8
|
+
<span class="title">商品品类</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="body">
|
|
11
|
+
<el-radio-group class="product-type" v-model="selectedType" size="mini" @change="changeProductType">
|
|
12
|
+
<el-radio
|
|
13
|
+
v-for="typeItem in $enumList.EnumProductType"
|
|
14
|
+
:key="typeItem.Id"
|
|
15
|
+
:label="typeItem.Id"
|
|
16
|
+
>{{typeItem.Text}}</el-radio>
|
|
17
|
+
</el-radio-group>
|
|
18
|
+
</div>
|
|
19
|
+
<el-divider></el-divider>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="row J_Row">
|
|
23
|
+
<div class="head">
|
|
24
|
+
<span class="title">运营商/类目</span>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="body check-width" v-if="arsIdDicList.length">
|
|
27
|
+
<el-checkbox-group
|
|
28
|
+
v-model="selectedArsId"
|
|
29
|
+
@change="checkboxHandle($event,optionItem.fieldName)"
|
|
30
|
+
>
|
|
31
|
+
<el-checkbox
|
|
32
|
+
v-for="(item,index) in arsIdDicList"
|
|
33
|
+
:key="index"
|
|
34
|
+
:label="item.value"
|
|
35
|
+
>{{item.label}}</el-checkbox>
|
|
36
|
+
</el-checkbox-group>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="body-empty" v-else>
|
|
39
|
+
<span>暂无数据</span>
|
|
40
|
+
</div>
|
|
41
|
+
<el-divider></el-divider>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="row J_Row">
|
|
45
|
+
<div class="head">
|
|
46
|
+
<span class="title">地区/种类</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="body" v-if="areaCodeDicList.length">
|
|
49
|
+
<el-cascader-panel
|
|
50
|
+
v-model="selectedAreaCode"
|
|
51
|
+
:options="areaCodeDicList"
|
|
52
|
+
:props="props"
|
|
53
|
+
collapse-tags
|
|
54
|
+
@change="checkboxHandle($event,optionItem.fieldName)"
|
|
55
|
+
></el-cascader-panel>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="body-empty" v-else>
|
|
58
|
+
<span>暂无数据</span>
|
|
59
|
+
</div>
|
|
60
|
+
<el-divider></el-divider>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div class="row J_Row">
|
|
64
|
+
<div class="head">
|
|
65
|
+
<span class="title">面值</span>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="body check-width" v-if="denomIncList.length > 0">
|
|
68
|
+
<el-checkbox-group
|
|
69
|
+
v-model="selectedDenomInc"
|
|
70
|
+
@change="checkboxHandle($event,optionItem.fieldName)"
|
|
71
|
+
>
|
|
72
|
+
<el-checkbox
|
|
73
|
+
v-for="(item,index) in denomIncList"
|
|
74
|
+
:key="index"
|
|
75
|
+
:label="item"
|
|
76
|
+
>{{item}}</el-checkbox>
|
|
77
|
+
</el-checkbox-group>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="body-empty" v-else>
|
|
80
|
+
<span>暂无数据</span>
|
|
81
|
+
</div>
|
|
82
|
+
<el-divider></el-divider>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</template>
|
|
86
|
+
</el-select>
|
|
87
|
+
</div>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<script>
|
|
91
|
+
import data from "./data";
|
|
92
|
+
import methods from "./methods";
|
|
93
|
+
import { MIX_VMODEL } from "@/mixin/vmodel";
|
|
94
|
+
|
|
95
|
+
export default {
|
|
96
|
+
$$route: {
|
|
97
|
+
meta: {
|
|
98
|
+
title: "标题名称",
|
|
99
|
+
icon: "菜单图标"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
props: {
|
|
103
|
+
optionItem: Object
|
|
104
|
+
},
|
|
105
|
+
data() {
|
|
106
|
+
return {
|
|
107
|
+
selectedType: 0, // 选中的商品种类
|
|
108
|
+
|
|
109
|
+
selectedArsId: [], // 选中的运营商/类目
|
|
110
|
+
arsIdDicList: [], // 运营商/类目
|
|
111
|
+
|
|
112
|
+
selectedAreaCode: [], // 选中的地区/种类
|
|
113
|
+
areaCodeDicList: [], //地区/种类
|
|
114
|
+
|
|
115
|
+
selectedDenomInc: [], //面值
|
|
116
|
+
denomIncList: [], //面值
|
|
117
|
+
|
|
118
|
+
props: { multiple: true, checkStrictly: true },
|
|
119
|
+
|
|
120
|
+
options: [
|
|
121
|
+
{
|
|
122
|
+
value: "zhinan",
|
|
123
|
+
label: "指南",
|
|
124
|
+
children: [
|
|
125
|
+
{
|
|
126
|
+
value: "shejiyuanze",
|
|
127
|
+
label: "设计原则",
|
|
128
|
+
children: [
|
|
129
|
+
{
|
|
130
|
+
value: "yizhi",
|
|
131
|
+
label: "一致"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: "fankui",
|
|
135
|
+
label: "反馈"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
value: "xiaolv",
|
|
139
|
+
label: "效率"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
value: "kekong",
|
|
143
|
+
label: "可控"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
value: "daohang",
|
|
149
|
+
label: "导航",
|
|
150
|
+
children: [
|
|
151
|
+
{
|
|
152
|
+
value: "cexiangdaohang",
|
|
153
|
+
label: "侧向导航"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
value: "dingbudaohang",
|
|
157
|
+
label: "顶部导航"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
value: "zujian",
|
|
165
|
+
label: "组件",
|
|
166
|
+
children: [
|
|
167
|
+
{
|
|
168
|
+
value: "basic",
|
|
169
|
+
label: "Basic",
|
|
170
|
+
children: [
|
|
171
|
+
{
|
|
172
|
+
value: "layout",
|
|
173
|
+
label: "Layout 布局"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
value: "color",
|
|
177
|
+
label: "Color 色彩"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
value: "typography",
|
|
181
|
+
label: "Typography 字体"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
value: "icon",
|
|
185
|
+
label: "Icon 图标"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
value: "button",
|
|
189
|
+
label: "Button 按钮"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
value: "form",
|
|
195
|
+
label: "Form",
|
|
196
|
+
children: [
|
|
197
|
+
{
|
|
198
|
+
value: "radio",
|
|
199
|
+
label: "Radio 单选框"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
value: "checkbox",
|
|
203
|
+
label: "Checkbox 多选框"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
value: "input",
|
|
207
|
+
label: "Input 输入框"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
value: "input-number",
|
|
211
|
+
label: "InputNumber 计数器"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
value: "select",
|
|
215
|
+
label: "Select 选择器"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
value: "cascader",
|
|
219
|
+
label: "Cascader 级联选择器"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
value: "switch",
|
|
223
|
+
label: "Switch 开关"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
value: "slider",
|
|
227
|
+
label: "Slider 滑块"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
value: "time-picker",
|
|
231
|
+
label: "TimePicker 时间选择器"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
value: "date-picker",
|
|
235
|
+
label: "DatePicker 日期选择器"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
value: "datetime-picker",
|
|
239
|
+
label: "DateTimePicker 日期时间选择器"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
value: "upload",
|
|
243
|
+
label: "Upload 上传"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
value: "rate",
|
|
247
|
+
label: "Rate 评分"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
value: "form",
|
|
251
|
+
label: "Form 表单"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
value: "data",
|
|
257
|
+
label: "Data",
|
|
258
|
+
children: [
|
|
259
|
+
{
|
|
260
|
+
value: "table",
|
|
261
|
+
label: "Table 表格"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
value: "tag",
|
|
265
|
+
label: "Tag 标签"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
value: "progress",
|
|
269
|
+
label: "Progress 进度条"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
value: "tree",
|
|
273
|
+
label: "Tree 树形控件"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
value: "pagination",
|
|
277
|
+
label: "Pagination 分页"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
value: "badge",
|
|
281
|
+
label: "Badge 标记"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
value: "notice",
|
|
287
|
+
label: "Notice",
|
|
288
|
+
children: [
|
|
289
|
+
{
|
|
290
|
+
value: "alert",
|
|
291
|
+
label: "Alert 警告"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
value: "loading",
|
|
295
|
+
label: "Loading 加载"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
value: "message",
|
|
299
|
+
label: "Message 消息提示"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
value: "message-box",
|
|
303
|
+
label: "MessageBox 弹框"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
value: "notification",
|
|
307
|
+
label: "Notification 通知"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
value: "navigation",
|
|
313
|
+
label: "Navigation",
|
|
314
|
+
children: [
|
|
315
|
+
{
|
|
316
|
+
value: "menu",
|
|
317
|
+
label: "NavMenu 导航菜单"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
value: "tabs",
|
|
321
|
+
label: "Tabs 标签页"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
value: "breadcrumb",
|
|
325
|
+
label: "Breadcrumb 面包屑"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
value: "dropdown",
|
|
329
|
+
label: "Dropdown 下拉菜单"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
value: "steps",
|
|
333
|
+
label: "Steps 步骤条"
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
value: "others",
|
|
339
|
+
label: "Others",
|
|
340
|
+
children: [
|
|
341
|
+
{
|
|
342
|
+
value: "dialog",
|
|
343
|
+
label: "Dialog 对话框"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
value: "tooltip",
|
|
347
|
+
label: "Tooltip 文字提示"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
value: "popover",
|
|
351
|
+
label: "Popover 弹出框"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
value: "card",
|
|
355
|
+
label: "Card 卡片"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
value: "carousel",
|
|
359
|
+
label: "Carousel 走马灯"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
value: "collapse",
|
|
363
|
+
label: "Collapse 折叠面板"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
value: "ziyuan",
|
|
371
|
+
label: "资源",
|
|
372
|
+
children: [
|
|
373
|
+
{
|
|
374
|
+
value: "axure",
|
|
375
|
+
label: "Axure Components"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
value: "sketch",
|
|
379
|
+
label: "Sketch Templates"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
value: "jiaohu",
|
|
383
|
+
label: "组件交互文档"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
};
|
|
389
|
+
},
|
|
390
|
+
methods,
|
|
391
|
+
mixins: [MIX_VMODEL],
|
|
392
|
+
components: {},
|
|
393
|
+
watch: {
|
|
394
|
+
selectedAreaCode: {
|
|
395
|
+
handler(nVal) {
|
|
396
|
+
console.log(nVal, "=====>");
|
|
397
|
+
},
|
|
398
|
+
deep: true
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
computed: {},
|
|
402
|
+
// ------------------------------------------------------------------
|
|
403
|
+
// pragma mark - Life Cycle(生命周期)
|
|
404
|
+
// ------------------------------------------------------------------
|
|
405
|
+
created() {
|
|
406
|
+
this.createdInit();
|
|
407
|
+
},
|
|
408
|
+
mounted() {
|
|
409
|
+
this.mountedInit();
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
</script>
|
|
413
413
|
<style lang="scss" src="./index.scss" scoped></style>
|