qj-common 4.3.0 → 4.3.2
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/.babelrc +12 -12
- package/.eslintrc.js +25 -25
- package/.idea/common.iml +11 -11
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/.postcssrc.js +9 -9
- package/.prettierrc.js +7 -7
- package/.project +37 -37
- package/README.md +2 -2
- package/gulpfile.js +20 -20
- package/package.json +18 -18
- package/src/api/apimanage.js +146 -146
- package/src/api/common/index.js +192 -192
- package/src/api/login.js +160 -160
- package/src/api/shopFbu.js +515 -515
- package/src/api/upload.js +8 -8
- package/src/components/Bounced/index.vue +145 -145
- package/src/components/Breadcrumb/index.vue +71 -71
- package/src/components/Checkbox/index.vue +53 -53
- package/src/components/Hamburger/index.vue +48 -48
- package/src/components/Logistics/logic.vue +186 -186
- package/src/components/ScrollBar/index.vue +60 -60
- package/src/components/Sticky/index.vue +76 -76
- package/src/components/SvgIcon/index.vue +42 -42
- package/src/components/ThemePicker/index.vue +243 -243
- package/src/components/Tinymce/components/editorImage.vue +94 -94
- package/src/components/Tinymce/index.vue +166 -166
- package/src/components/Tinymce/plugins.js +7 -7
- package/src/components/Tinymce/toolbar.js +6 -6
- package/src/components/TreeTable/customEval.js +44 -44
- package/src/components/TreeTable/eval.js +29 -29
- package/src/components/TreeTable/index.vue +124 -124
- package/src/components/TreeTable/readme.md +89 -89
- package/src/components/TreeTableApi/customEval.js +49 -49
- package/src/components/TreeTableApi/eval.js +29 -29
- package/src/components/TreeTableApi/index.vue +124 -124
- package/src/components/TreeTableApi/readme.md +89 -89
- package/src/components/Upload/singleImage.vue +123 -123
- package/src/components/Upload/singleImage2.vue +118 -118
- package/src/components/Upload/singleImage3.vue +138 -138
- package/src/components/Upload/upload.vue +295 -295
- package/src/components/workOrderList/index.vue +158 -158
- package/src/dependencies.js +119 -119
- package/src/iconShop/demo.css +539 -539
- package/src/iconShop/demo_index.html +8445 -8445
- package/src/iconShop/iconfont.css +1451 -1451
- package/src/iconShop/iconfont.json +2522 -2522
- package/src/iconShop/iconfont.svg +1070 -1070
- package/src/iconfont/demo.css +539 -539
- package/src/iconfont/demo_index.html +5276 -5276
- package/src/iconfont/iconfont.css +905 -905
- package/src/iconfont/iconfont.json +1563 -1563
- package/src/iconfont/iconfont.svg +692 -692
- package/src/icons/index.js +9 -9
- package/src/lang/e.js +48 -48
- package/src/lang/en.js +48 -48
- package/src/lang/zh.js +48 -48
- package/src/main.js +62 -62
- package/src/permission.js +283 -283
- package/src/permissionForMall.backup.js +375 -375
- package/src/permissionForMall.js +375 -375
- package/src/preset.js +67 -67
- package/src/router/_import_common.js +1 -1
- package/src/router/_import_development.js +1 -1
- package/src/router/_import_production.js +1 -1
- package/src/store/getters.js +39 -39
- package/src/store/index.js +18 -18
- package/src/store/modules/app.js +34 -30
- package/src/store/modules/menu.js +82 -82
- package/src/store/modules/user.js +227 -227
- package/src/styles/element-ui.scss +1368 -1368
- package/src/styles/index.scss +166 -166
- package/src/styles/mixin.scss +27 -27
- package/src/styles/pc-ui.scss +1031 -1031
- package/src/styles/scrollBar.scss +21 -21
- package/src/styles/sidebar.scss +123 -123
- package/src/styles/transition.scss +32 -32
- package/src/styles/variables.scss +44 -44
- package/src/styles/wf-ui.scss +86 -86
- package/src/utils/auth.js +57 -57
- package/src/utils/dom.js +12 -12
- package/src/utils/getQueryString.js +5 -5
- package/src/utils/import.js +5 -5
- package/src/utils/index.js +355 -355
- package/src/utils/interceptor.js +34 -34
- package/src/utils/menu.js +116 -116
- package/src/utils/proapp.js +35 -35
- package/src/utils/query.js +26 -26
- package/src/utils/request.js +366 -366
- package/src/utils/routeMapping.js +39 -39
- package/src/utils/routeMapping.json +310 -310
- package/src/utils/utils.js +84 -84
- package/src/utils/validate.js +102 -102
- package/src/views/404.vue +72 -72
- package/src/views/Layout.vue +106 -106
- package/src/views/imgSwiper/index.vue +34 -34
- package/src/views/layout/Layout.vue +181 -170
- package/src/views/layout/components/AppMain.vue +20 -20
- package/src/views/layout/components/Footer.vue +22 -22
- package/src/views/layout/components/LeftNavbar.vue +318 -310
- package/src/views/layout/components/NavMenu.vue +15 -15
- package/src/views/layout/components/Navbar.vue +664 -661
- package/src/views/layout/components/Sidebar/SidebarItem.vue +116 -113
- package/src/views/layout/components/Sidebar/index.vue +203 -193
- package/src/views/layout/components/index.js +19 -19
- package/src/views/layout/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout/theme/darkBlue/components/LeftNavbar(/345/261/225/347/244/272/345/205/250/351/203/250/350/217/234/345/215/225).vue +448 -448
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.3.vue +191 -191
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.vue +466 -466
- package/src/views/layout/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout/theme/darkBlue/components/Sidebar/SidebarItem.vue +71 -71
- package/src/views/layout/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout/theme/darkBlue/components/index.js +15 -15
- package/src/views/layout-default/Layout.vue +134 -134
- package/src/views/layout-default/components/AppMain.vue +19 -19
- package/src/views/layout-default/components/Footer.vue +22 -22
- package/src/views/layout-default/components/LeftNavbar.vue +164 -164
- package/src/views/layout-default/components/Navbar.vue +295 -295
- package/src/views/layout-default/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout-default/components/Sidebar/index.vue +59 -59
- package/src/views/layout-default/components/index.js +4 -4
- package/src/views/layout-default/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout-default/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout-default/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout-default/theme/darkBlue/components/LeftNavbar.vue +465 -465
- package/src/views/layout-default/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/SidebarItem.vue +69 -69
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout-default/theme/darkBlue/components/index.js +15 -15
- package/src/views/pc/Internationalization.vue +80 -80
- package/src/views/pc/default/Layout.vue +442 -442
- package/src/views/pc/default/LayoutCard.vue +424 -424
- package/src/views/pc/default/assets/flex.scss +99 -99
- package/src/views/pc/default/footer-modules/DgFooter/index.vue +179 -179
- package/src/views/pc/default/footer-modules/DgFooter/indexSDX.vue +187 -187
- package/src/views/pc/default/footer-modules/footer.vue +171 -171
- package/src/views/pc/default/footer-modules/footerAns.vue +167 -167
- package/src/views/pc/default/footer-modules/footerBulk.vue +169 -169
- package/src/views/pc/default/footer-modules/footerDM.vue +254 -254
- package/src/views/pc/default/footer-modules/footerDefault.vue +267 -267
- package/src/views/pc/default/footer-modules/footerDefaultA.vue +270 -270
- package/src/views/pc/default/footer-modules/footerDefaultNew.vue +201 -201
- package/src/views/pc/default/footer-modules/footerHDB.vue +153 -153
- package/src/views/pc/default/footer-modules/footerHy.vue +63 -63
- package/src/views/pc/default/footer-modules/footerKYW.vue +163 -163
- package/src/views/pc/default/footer-modules/footerMh.vue +30 -30
- package/src/views/pc/default/footer-modules/footerNew.vue +116 -116
- package/src/views/pc/default/footer-modules/footer_yzj.vue +169 -169
- package/src/views/pc/default/footer-modules/footerayd.vue +85 -85
- package/src/views/pc/default/footer-modules/ymFooter.vue +154 -154
- package/src/views/pc/default/footer-modules/zgl.vue +250 -250
- package/src/views/pc/default/header-modules/DgHeader/Logo.vue +57 -57
- package/src/views/pc/default/header-modules/DgHeader/Search.vue +135 -135
- package/src/views/pc/default/header-modules/DgHeader/Settleup.vue +46 -46
- package/src/views/pc/default/header-modules/DgHeader/index.vue +38 -38
- package/src/views/pc/default/header-modules/active.vue +177 -177
- package/src/views/pc/default/header-modules/header.vue +97 -97
- package/src/views/pc/default/header-modules/headerA.vue +142 -142
- package/src/views/pc/default/header-modules/headerFLPT.vue +157 -157
- package/src/views/pc/default/header-modules/headerMh.vue +187 -187
- package/src/views/pc/default/header-modules/headerNew.vue +121 -121
- package/src/views/pc/default/header-modules/headerSDX.vue +304 -304
- package/src/views/pc/default/header-modules/headerStyle2.vue +173 -173
- package/src/views/pc/default/header-modules/headerStyle3.vue +190 -190
- package/src/views/pc/default/header-modules/headerStyle4.vue +163 -163
- package/src/views/pc/default/header-modules/headerStyleAns.vue +400 -400
- package/src/views/pc/default/header-modules/headerStyleBulk.vue +427 -427
- package/src/views/pc/default/header-modules/headerStyleDefalut.vue +209 -209
- package/src/views/pc/default/header-modules/headerStyleKYW.vue +435 -435
- package/src/views/pc/default/header-modules/headerStyle_yzj.vue +427 -427
- package/src/views/pc/default/header-modules/headerayd.vue +187 -187
- package/src/views/pc/default/header-modules/index.vue +466 -466
- package/src/views/pc/default/header-modules/ymHeader.vue +292 -292
- package/src/views/pc/default/header-modules/ysHeader.vue +248 -248
- package/src/views/pc/default/header-modules/zgl.vue +855 -855
- package/src/views/pc/default/leftMenu-modules/leftMenu-logo.vue +194 -194
- package/src/views/pc/default/leftMenu-modules/leftMenu-style2.vue +206 -206
- package/src/views/pc/default/leftMenu-modules/leftMenu-style3.vue +207 -207
- package/src/views/pc/default/leftMenu-modules/leftMenu-style4.vue +192 -192
- package/src/views/pc/default/leftMenu-modules/leftMenu.vue +183 -183
- package/src/views/pc/default/leftMenu-modules/leftMenuDefault.vue +212 -212
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultEn.vue +214 -214
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultFLPT.vue +220 -220
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultayd.vue +220 -220
- package/src/views/pc/default/nav-modules/nav.vue +52 -52
- package/src/views/pc/default/nav-modules/navAns.vue +60 -60
- package/src/views/pc/default/nav-modules/navBulk.vue +60 -60
- package/src/views/pc/default/top-modules/DgTopShortcut/index.vue +177 -177
- package/src/views/pc/default/top-modules/Toplg.vue +280 -280
- package/src/views/pc/default/top-modules/topA.vue +136 -136
- package/src/views/pc/default/top-modules/topAns.vue +261 -261
- package/src/views/pc/default/top-modules/topAns_yzj.vue +282 -282
- package/src/views/pc/default/top-modules/topBar.vue +304 -304
- package/src/views/pc/default/top-modules/topBulk.vue +280 -280
- package/src/views/pc/default/top-modules/topDefault.vue +244 -244
- package/src/views/pc/default/top-modules/topDefaultDM.vue +197 -197
- package/src/views/pc/default/top-modules/topDefaultNew.vue +271 -271
- package/src/views/pc/default/top-modules/topFLPT.vue +197 -197
- package/src/views/pc/default/top-modules/topHDB.vue +479 -479
- package/src/views/pc/default/top-modules/topKYW.vue +258 -258
- package/src/views/pc/default/top-modules/topMh.vue +174 -174
- package/src/views/pc/default/top-modules/topNew.vue +97 -97
- package/src/views/pc/default/top-modules/topSDX.vue +298 -298
- package/src/views/pc/default/top-modules/topSimple.vue +247 -247
- package/src/views/pc/default/top-modules/topSimpleHy.vue +256 -256
- package/src/views/pc/default/top-modules/topUcc.vue +264 -264
- package/src/views/pc/default/top-modules/topayd.vue +170 -170
- package/src/views/pc/default/top-modules/ymTop.vue +299 -299
- package/src/views/pc/default/top-modules/zgltop.vue +499 -499
- package/src/views/routerView.vue +9 -9
- package/src/views/templates/components/temp-select.vue +80 -80
- package/src/views/templates/components/temp-upload.vue +233 -233
- package/src/views/templates/readme.md +2 -2
- package/src/views/templates/templateInput.vue +421 -421
- package/src/views/templates/templateReadme.html +588 -588
- package/src/views/templates/templateReadme.md +619 -619
- package/src/views/templates/templateTable.vue +2243 -2243
- package/src/views/templates/templateTableData.vue +1883 -1883
- package/src/views/templates/templateUi/templateTableContent.vue +187 -187
- package/src/views/treeTemplate/index.vue +559 -559
- package/src/views/treeTemplate/treeTemplate.md +274 -274
- package/src/views/uploadDialog/index copy.vue +352 -352
- package/src/views/uploadDialog/index.vue +558 -558
- package/src/views/uploadDialog/indexOlay.vue +582 -582
- package/src/views/uploadDialog/indexPM.vue +578 -578
- package/src/views/uploadDialog/indexUpload.vue +543 -543
- package/src/views/uploadDialog/readme.md +45 -45
|
@@ -1,274 +1,274 @@
|
|
|
1
|
-
|
|
2
|
-
####treeTemplate
|
|
3
|
-
>template都是基于element-ui模板进行封装的
|
|
4
|
-
一、搜索栏 temInput
|
|
5
|
-
>**temInput**是一个Array,里面包含多个对象
|
|
6
|
-
>暂且支持类型:text、select、date、daterange、remoteSelect(下拉框的远程搜索)
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
label:'标题',//可选参数
|
|
10
|
-
type:'text',//类型 暂且支持text/select/data/daterange/autocomplete 类型同element一致
|
|
11
|
-
name:'name', //参数名称
|
|
12
|
-
value:'',//参数值,默认为空
|
|
13
|
-
placeholder:"请输入..." //可选参数,提示用语
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
注意:
|
|
17
|
-
type == select
|
|
18
|
-
参数属性多一个options
|
|
19
|
-
type == daterange
|
|
20
|
-
参数属性name:"startDate,endDate"
|
|
21
|
-
type === textMore
|
|
22
|
-
表示多个
|
|
23
|
-
{
|
|
24
|
-
type: "textMore",
|
|
25
|
-
label: "价格区间",
|
|
26
|
-
children: [
|
|
27
|
-
{
|
|
28
|
-
name: "projectMinprice",
|
|
29
|
-
placeholder: "请输入最小价格",
|
|
30
|
-
value: ""
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "projectMaxprice",
|
|
34
|
-
placeholder: "请输入最大价格",
|
|
35
|
-
value: ""
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
type=== autocomplete //表示text可远程搜索
|
|
40
|
-
{
|
|
41
|
-
type: "autocomplete",
|
|
42
|
-
name: "classtreeName",
|
|
43
|
-
label: "搜索",
|
|
44
|
-
placeholder: "请输入产品编号",
|
|
45
|
-
restaurants: [
|
|
46
|
-
{ value: "三全鲜食(北新泾店)", address: "长宁区新渔路144号" },
|
|
47
|
-
],
|
|
48
|
-
value: ""
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
temInput的按钮操作
|
|
52
|
-
属性名称为btnArray:[]
|
|
53
|
-
{
|
|
54
|
-
type:'primary',//按钮类型,同element-ui的一致
|
|
55
|
-
id:'query',//操作的id id的类型query/search,add
|
|
56
|
-
label:"搜索",
|
|
57
|
-
url:"",//搜索的url暂且是定义的全局
|
|
58
|
-
}
|
|
59
|
-
当id == 'add',表示需要新增模板
|
|
60
|
-
需要添加属性
|
|
61
|
-
template:{
|
|
62
|
-
type: "json", //json类型暂且只支持json类型的
|
|
63
|
-
label: "编辑标题",
|
|
64
|
-
formLabelWidth: "6rem", //长度根据标题长度来,一个字一个rem
|
|
65
|
-
html:[],//具体详见模板二 input
|
|
66
|
-
};
|
|
67
|
-
type === cascader
|
|
68
|
-
value:[],
|
|
69
|
-
{
|
|
70
|
-
type: "cascader",
|
|
71
|
-
name: "classtreeName",
|
|
72
|
-
label: "产品分类",
|
|
73
|
-
showAllLevels:false,//可选参数,判断是否是取最后一集
|
|
74
|
-
placeholder: "请选择产品分类",
|
|
75
|
-
props: {
|
|
76
|
-
value: "value",
|
|
77
|
-
label: "label",
|
|
78
|
-
children: "children"
|
|
79
|
-
},
|
|
80
|
-
value: [],
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
例子:
|
|
89
|
-
|
|
90
|
-
temInput:[{
|
|
91
|
-
label: "标题",//自定义 title=>label
|
|
92
|
-
type: "text",//类型,暂且只支持text/select/date/daterange/button
|
|
93
|
-
name: "name",//参数名称
|
|
94
|
-
value: "",//值
|
|
95
|
-
placeholder: "请输入"//默认提示语,可选参数
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: "标题",//自定义
|
|
99
|
-
type: "select",//select类型包含options对象,参数label和value
|
|
100
|
-
name: "name",//参数名称
|
|
101
|
-
value: "",//值
|
|
102
|
-
placeholder: "请输入"//默认提示语,可选参数
|
|
103
|
-
props:{ //可选参数,正对select所需要的label和value
|
|
104
|
-
label:'name',
|
|
105
|
-
value:'code'
|
|
106
|
-
},
|
|
107
|
-
options:[
|
|
108
|
-
{
|
|
109
|
-
label:'',
|
|
110
|
-
value:''
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: "autocomplete",
|
|
116
|
-
name: "classtreeName",
|
|
117
|
-
label: "搜索",
|
|
118
|
-
placeholder: "请输入产品编号",
|
|
119
|
-
restaurants: [
|
|
120
|
-
{ value: "三全鲜食(北新泾店)", address: "长宁区新渔路144号" },
|
|
121
|
-
],
|
|
122
|
-
value: ""
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
label: "标题",
|
|
126
|
-
name: 'userPcode', //参数名称
|
|
127
|
-
type: 'remoteSelect',
|
|
128
|
-
placeholder: "请输入关键字",
|
|
129
|
-
value: '',
|
|
130
|
-
url: '/web/um/userserviceinfo/queryUserinfoservicePage.json', // 远程搜索所需的url
|
|
131
|
-
searchParam: 'userinfoCompname', //远程搜索带的参数名称,值为当前输入的值
|
|
132
|
-
props: { //可选参数,正对select所需要的label和value
|
|
133
|
-
label: 'userinfoCompname',
|
|
134
|
-
value: 'userinfoCode'
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
btnArray:[ //按钮的对象数组-搜索
|
|
139
|
-
{
|
|
140
|
-
type:'primary',//按钮类型,和element-ui类型一致
|
|
141
|
-
id:'query',//id类型,query表示搜索,add-新增,del-删除 query-搜索 其他不确定类型抛出inputBtnClick("整个按钮对象","索引值")方法进行操作
|
|
142
|
-
label:"搜索",
|
|
143
|
-
url:''
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
type:"primary",
|
|
147
|
-
id:'add',
|
|
148
|
-
label:"新增",//当为新增的时候,需使用模板,url是写在模板里面的
|
|
149
|
-
template:{
|
|
150
|
-
type: "json", //json类型暂且只支持json类型的
|
|
151
|
-
title: "编辑标题",
|
|
152
|
-
formLabelWidth: "6rem", //长度根据标题长度来,一个字一个rem
|
|
153
|
-
html:[
|
|
154
|
-
{
|
|
155
|
-
label: "名称",
|
|
156
|
-
type: "text",//类型暂且只支持text/upload/textarea/select/date
|
|
157
|
-
value: "",
|
|
158
|
-
name: "brandName"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
label: "logo",
|
|
162
|
-
showFileList: false, //false为单个图片.暂且只支持单个图片编辑
|
|
163
|
-
type: "upload",
|
|
164
|
-
value: "",
|
|
165
|
-
name: "brandLogo"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
btnArray: [
|
|
169
|
-
//id类型,query表示搜索,add-新增,confirm-确定(一般属于编辑里面的),cancel-取消,del-删除 query-搜索 其他不确定类型抛出inputBtnClick("整个按钮对象","索引值")方法进行操作
|
|
170
|
-
{
|
|
171
|
-
label: "取消", value=>label
|
|
172
|
-
id: "cancel"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
type: "primary",
|
|
176
|
-
label: "确定",
|
|
177
|
-
id: "add",
|
|
178
|
-
url: "/web/rs/brand/saveBrand.json"
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
rules: {}//规则,和element一致
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
}]
|
|
188
|
-
|
|
189
|
-
#####二、queryPara (查询所需的默认参数)
|
|
190
|
-
|
|
191
|
-
queryPara: {
|
|
192
|
-
classtreeParentcode: '-1'
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
#####三、显示temTree
|
|
196
|
-
>**temTree**是一个对象,包含treeHeader(头部),filter(是否开启查询),treeBtn(右侧按钮),props,indent(tree层级缩进的宽度,默认16)
|
|
197
|
-
例子:
|
|
198
|
-
|
|
199
|
-
temTree: {
|
|
200
|
-
treeHeader: [
|
|
201
|
-
{
|
|
202
|
-
name: '分类名称',
|
|
203
|
-
type: 'first',
|
|
204
|
-
width: '30%' // 头部展示的宽度(支持px 和%)
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
name: '排序',
|
|
208
|
-
value: 'tenantCode',
|
|
209
|
-
width: '20%'
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: '排序',
|
|
213
|
-
value: 'tenantCode',
|
|
214
|
-
width: '20%'
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: '操作',
|
|
218
|
-
type: 'button'
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
treeBtn: [
|
|
222
|
-
{
|
|
223
|
-
label: '添加子分类',
|
|
224
|
-
id: 'add',
|
|
225
|
-
level: 3 //在node的level >=3时不显示该按钮,不填默认都显示
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
label: '编辑',
|
|
229
|
-
id: 'edit'
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
label: '删除',
|
|
233
|
-
id: 'del', // 表示删除
|
|
234
|
-
type: "danger", //和element一致
|
|
235
|
-
promptTitle: "确定删除吗?", //提示内容,可选参数,不填则不给提示
|
|
236
|
-
url: '/web/rs/classtree/deleteClasstree.json',
|
|
237
|
-
params: { //删除带的参数
|
|
238
|
-
classtreeId: ""
|
|
239
|
-
},
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
props: {
|
|
243
|
-
label: 'classtreeName', //指定节点标签为节点对象的某个属性值
|
|
244
|
-
children: 'childList' //指定子树为节点对象的某个属性值
|
|
245
|
-
},
|
|
246
|
-
indent: 40 //相邻级节点间的水平缩进,单位为像素
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
#####节点加载数据的方式nodeLoad
|
|
251
|
-
|
|
252
|
-
nodeLoad: {
|
|
253
|
-
lazy: true, //是否懒加载,默认为false
|
|
254
|
-
id: 'classtreeCode', //每个树节点用来作为唯一标识的属性,整棵树应该是唯一的(必填)
|
|
255
|
-
url: 'web/rs/classtree/queryClasstreePage.json', //加载数据的url(必须)
|
|
256
|
-
params: [{ //懒加载的传入参数,name为传入的参数名称,value为在当前节点取的数据值
|
|
257
|
-
name: 'classtreeParentcode',
|
|
258
|
-
value: 'classtreeCode'
|
|
259
|
-
}]
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
#####参数
|
|
263
|
-
| 参数 | 说明 | 类型 | 状态 |
|
|
264
|
-
| :--: | :-------:| :--: | :---: |
|
|
265
|
-
| temInput | 查询框 | Array | 可选 |
|
|
266
|
-
| queryPara | 获取tree数据的默认参数,<br/>无论是否是懒加载,第一次加载数据会带上该参数 | Object | 必填 |
|
|
267
|
-
| treeTable | table 数据显示 | Array | 可选 |
|
|
268
|
-
| nodeLoad | 控制树节点的加载方式 | Object | 必填 |
|
|
269
|
-
|
|
270
|
-
#####API
|
|
271
|
-
| 事件名称 | 说明 | 回调参数 | 例子 |
|
|
272
|
-
| :--------: | :--------:| :--: | :--: |
|
|
273
|
-
|inputBtnClick| temInput 里面其他按钮操作 | (data, index)|-|
|
|
274
|
-
|treeBtnClick| item为当前点击的按钮信息<br>val为当前点击的节点数据信息<br>node为当前点击的节点信息<br> | (item, val, node)|-|
|
|
1
|
+
|
|
2
|
+
####treeTemplate
|
|
3
|
+
>template都是基于element-ui模板进行封装的
|
|
4
|
+
一、搜索栏 temInput
|
|
5
|
+
>**temInput**是一个Array,里面包含多个对象
|
|
6
|
+
>暂且支持类型:text、select、date、daterange、remoteSelect(下拉框的远程搜索)
|
|
7
|
+
|
|
8
|
+
{
|
|
9
|
+
label:'标题',//可选参数
|
|
10
|
+
type:'text',//类型 暂且支持text/select/data/daterange/autocomplete 类型同element一致
|
|
11
|
+
name:'name', //参数名称
|
|
12
|
+
value:'',//参数值,默认为空
|
|
13
|
+
placeholder:"请输入..." //可选参数,提示用语
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
注意:
|
|
17
|
+
type == select
|
|
18
|
+
参数属性多一个options
|
|
19
|
+
type == daterange
|
|
20
|
+
参数属性name:"startDate,endDate"
|
|
21
|
+
type === textMore
|
|
22
|
+
表示多个
|
|
23
|
+
{
|
|
24
|
+
type: "textMore",
|
|
25
|
+
label: "价格区间",
|
|
26
|
+
children: [
|
|
27
|
+
{
|
|
28
|
+
name: "projectMinprice",
|
|
29
|
+
placeholder: "请输入最小价格",
|
|
30
|
+
value: ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "projectMaxprice",
|
|
34
|
+
placeholder: "请输入最大价格",
|
|
35
|
+
value: ""
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
type=== autocomplete //表示text可远程搜索
|
|
40
|
+
{
|
|
41
|
+
type: "autocomplete",
|
|
42
|
+
name: "classtreeName",
|
|
43
|
+
label: "搜索",
|
|
44
|
+
placeholder: "请输入产品编号",
|
|
45
|
+
restaurants: [
|
|
46
|
+
{ value: "三全鲜食(北新泾店)", address: "长宁区新渔路144号" },
|
|
47
|
+
],
|
|
48
|
+
value: ""
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
temInput的按钮操作
|
|
52
|
+
属性名称为btnArray:[]
|
|
53
|
+
{
|
|
54
|
+
type:'primary',//按钮类型,同element-ui的一致
|
|
55
|
+
id:'query',//操作的id id的类型query/search,add
|
|
56
|
+
label:"搜索",
|
|
57
|
+
url:"",//搜索的url暂且是定义的全局
|
|
58
|
+
}
|
|
59
|
+
当id == 'add',表示需要新增模板
|
|
60
|
+
需要添加属性
|
|
61
|
+
template:{
|
|
62
|
+
type: "json", //json类型暂且只支持json类型的
|
|
63
|
+
label: "编辑标题",
|
|
64
|
+
formLabelWidth: "6rem", //长度根据标题长度来,一个字一个rem
|
|
65
|
+
html:[],//具体详见模板二 input
|
|
66
|
+
};
|
|
67
|
+
type === cascader
|
|
68
|
+
value:[],
|
|
69
|
+
{
|
|
70
|
+
type: "cascader",
|
|
71
|
+
name: "classtreeName",
|
|
72
|
+
label: "产品分类",
|
|
73
|
+
showAllLevels:false,//可选参数,判断是否是取最后一集
|
|
74
|
+
placeholder: "请选择产品分类",
|
|
75
|
+
props: {
|
|
76
|
+
value: "value",
|
|
77
|
+
label: "label",
|
|
78
|
+
children: "children"
|
|
79
|
+
},
|
|
80
|
+
value: [],
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
例子:
|
|
89
|
+
|
|
90
|
+
temInput:[{
|
|
91
|
+
label: "标题",//自定义 title=>label
|
|
92
|
+
type: "text",//类型,暂且只支持text/select/date/daterange/button
|
|
93
|
+
name: "name",//参数名称
|
|
94
|
+
value: "",//值
|
|
95
|
+
placeholder: "请输入"//默认提示语,可选参数
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: "标题",//自定义
|
|
99
|
+
type: "select",//select类型包含options对象,参数label和value
|
|
100
|
+
name: "name",//参数名称
|
|
101
|
+
value: "",//值
|
|
102
|
+
placeholder: "请输入"//默认提示语,可选参数
|
|
103
|
+
props:{ //可选参数,正对select所需要的label和value
|
|
104
|
+
label:'name',
|
|
105
|
+
value:'code'
|
|
106
|
+
},
|
|
107
|
+
options:[
|
|
108
|
+
{
|
|
109
|
+
label:'',
|
|
110
|
+
value:''
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: "autocomplete",
|
|
116
|
+
name: "classtreeName",
|
|
117
|
+
label: "搜索",
|
|
118
|
+
placeholder: "请输入产品编号",
|
|
119
|
+
restaurants: [
|
|
120
|
+
{ value: "三全鲜食(北新泾店)", address: "长宁区新渔路144号" },
|
|
121
|
+
],
|
|
122
|
+
value: ""
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: "标题",
|
|
126
|
+
name: 'userPcode', //参数名称
|
|
127
|
+
type: 'remoteSelect',
|
|
128
|
+
placeholder: "请输入关键字",
|
|
129
|
+
value: '',
|
|
130
|
+
url: '/web/um/userserviceinfo/queryUserinfoservicePage.json', // 远程搜索所需的url
|
|
131
|
+
searchParam: 'userinfoCompname', //远程搜索带的参数名称,值为当前输入的值
|
|
132
|
+
props: { //可选参数,正对select所需要的label和value
|
|
133
|
+
label: 'userinfoCompname',
|
|
134
|
+
value: 'userinfoCode'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
btnArray:[ //按钮的对象数组-搜索
|
|
139
|
+
{
|
|
140
|
+
type:'primary',//按钮类型,和element-ui类型一致
|
|
141
|
+
id:'query',//id类型,query表示搜索,add-新增,del-删除 query-搜索 其他不确定类型抛出inputBtnClick("整个按钮对象","索引值")方法进行操作
|
|
142
|
+
label:"搜索",
|
|
143
|
+
url:''
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type:"primary",
|
|
147
|
+
id:'add',
|
|
148
|
+
label:"新增",//当为新增的时候,需使用模板,url是写在模板里面的
|
|
149
|
+
template:{
|
|
150
|
+
type: "json", //json类型暂且只支持json类型的
|
|
151
|
+
title: "编辑标题",
|
|
152
|
+
formLabelWidth: "6rem", //长度根据标题长度来,一个字一个rem
|
|
153
|
+
html:[
|
|
154
|
+
{
|
|
155
|
+
label: "名称",
|
|
156
|
+
type: "text",//类型暂且只支持text/upload/textarea/select/date
|
|
157
|
+
value: "",
|
|
158
|
+
name: "brandName"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: "logo",
|
|
162
|
+
showFileList: false, //false为单个图片.暂且只支持单个图片编辑
|
|
163
|
+
type: "upload",
|
|
164
|
+
value: "",
|
|
165
|
+
name: "brandLogo"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
btnArray: [
|
|
169
|
+
//id类型,query表示搜索,add-新增,confirm-确定(一般属于编辑里面的),cancel-取消,del-删除 query-搜索 其他不确定类型抛出inputBtnClick("整个按钮对象","索引值")方法进行操作
|
|
170
|
+
{
|
|
171
|
+
label: "取消", value=>label
|
|
172
|
+
id: "cancel"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: "primary",
|
|
176
|
+
label: "确定",
|
|
177
|
+
id: "add",
|
|
178
|
+
url: "/web/rs/brand/saveBrand.json"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
rules: {}//规则,和element一致
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}]
|
|
188
|
+
|
|
189
|
+
#####二、queryPara (查询所需的默认参数)
|
|
190
|
+
|
|
191
|
+
queryPara: {
|
|
192
|
+
classtreeParentcode: '-1'
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
#####三、显示temTree
|
|
196
|
+
>**temTree**是一个对象,包含treeHeader(头部),filter(是否开启查询),treeBtn(右侧按钮),props,indent(tree层级缩进的宽度,默认16)
|
|
197
|
+
例子:
|
|
198
|
+
|
|
199
|
+
temTree: {
|
|
200
|
+
treeHeader: [
|
|
201
|
+
{
|
|
202
|
+
name: '分类名称',
|
|
203
|
+
type: 'first',
|
|
204
|
+
width: '30%' // 头部展示的宽度(支持px 和%)
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: '排序',
|
|
208
|
+
value: 'tenantCode',
|
|
209
|
+
width: '20%'
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: '排序',
|
|
213
|
+
value: 'tenantCode',
|
|
214
|
+
width: '20%'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: '操作',
|
|
218
|
+
type: 'button'
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
treeBtn: [
|
|
222
|
+
{
|
|
223
|
+
label: '添加子分类',
|
|
224
|
+
id: 'add',
|
|
225
|
+
level: 3 //在node的level >=3时不显示该按钮,不填默认都显示
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: '编辑',
|
|
229
|
+
id: 'edit'
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: '删除',
|
|
233
|
+
id: 'del', // 表示删除
|
|
234
|
+
type: "danger", //和element一致
|
|
235
|
+
promptTitle: "确定删除吗?", //提示内容,可选参数,不填则不给提示
|
|
236
|
+
url: '/web/rs/classtree/deleteClasstree.json',
|
|
237
|
+
params: { //删除带的参数
|
|
238
|
+
classtreeId: ""
|
|
239
|
+
},
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
props: {
|
|
243
|
+
label: 'classtreeName', //指定节点标签为节点对象的某个属性值
|
|
244
|
+
children: 'childList' //指定子树为节点对象的某个属性值
|
|
245
|
+
},
|
|
246
|
+
indent: 40 //相邻级节点间的水平缩进,单位为像素
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
#####节点加载数据的方式nodeLoad
|
|
251
|
+
|
|
252
|
+
nodeLoad: {
|
|
253
|
+
lazy: true, //是否懒加载,默认为false
|
|
254
|
+
id: 'classtreeCode', //每个树节点用来作为唯一标识的属性,整棵树应该是唯一的(必填)
|
|
255
|
+
url: 'web/rs/classtree/queryClasstreePage.json', //加载数据的url(必须)
|
|
256
|
+
params: [{ //懒加载的传入参数,name为传入的参数名称,value为在当前节点取的数据值
|
|
257
|
+
name: 'classtreeParentcode',
|
|
258
|
+
value: 'classtreeCode'
|
|
259
|
+
}]
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
#####参数
|
|
263
|
+
| 参数 | 说明 | 类型 | 状态 |
|
|
264
|
+
| :--: | :-------:| :--: | :---: |
|
|
265
|
+
| temInput | 查询框 | Array | 可选 |
|
|
266
|
+
| queryPara | 获取tree数据的默认参数,<br/>无论是否是懒加载,第一次加载数据会带上该参数 | Object | 必填 |
|
|
267
|
+
| treeTable | table 数据显示 | Array | 可选 |
|
|
268
|
+
| nodeLoad | 控制树节点的加载方式 | Object | 必填 |
|
|
269
|
+
|
|
270
|
+
#####API
|
|
271
|
+
| 事件名称 | 说明 | 回调参数 | 例子 |
|
|
272
|
+
| :--------: | :--------:| :--: | :--: |
|
|
273
|
+
|inputBtnClick| temInput 里面其他按钮操作 | (data, index)|-|
|
|
274
|
+
|treeBtnClick| item为当前点击的按钮信息<br>val为当前点击的节点数据信息<br>node为当前点击的节点信息<br> | (item, val, node)|-|
|