eoss-ui 0.6.40 → 0.6.41

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.
Files changed (98) hide show
  1. package/lib/button-group.js +5 -0
  2. package/lib/button.js +5 -0
  3. package/lib/checkbox-group.js +5 -0
  4. package/lib/data-table-form.js +5 -0
  5. package/lib/data-table.js +11 -6
  6. package/lib/date-picker.js +5 -0
  7. package/lib/dialog.js +5 -0
  8. package/lib/eoss-ui.common.js +831 -433
  9. package/lib/flow-group.js +5 -0
  10. package/lib/flow-list.js +5 -0
  11. package/lib/flow.js +37 -35
  12. package/lib/form.js +5 -0
  13. package/lib/handle-user.js +5 -0
  14. package/lib/handler.js +152 -76
  15. package/lib/icon.js +5 -0
  16. package/lib/icons.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +5 -0
  19. package/lib/input.js +5 -0
  20. package/lib/login.js +248 -160
  21. package/lib/main.js +329 -113
  22. package/lib/nav.js +5 -0
  23. package/lib/page.js +5 -0
  24. package/lib/pagination.js +5 -0
  25. package/lib/player.js +5 -0
  26. package/lib/qr-code.js +5 -0
  27. package/lib/radio-group.js +5 -0
  28. package/lib/retrial-auth.js +5 -0
  29. package/lib/select-ganged.js +5 -0
  30. package/lib/select.js +5 -0
  31. package/lib/selector-panel.js +7 -3
  32. package/lib/selector.js +42 -5
  33. package/lib/sizer.js +5 -0
  34. package/lib/steps.js +5 -0
  35. package/lib/switch.js +5 -0
  36. package/lib/table-form.js +5 -0
  37. package/lib/tabs.js +5 -0
  38. package/lib/theme-chalk/base.css +1 -1
  39. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  40. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  41. package/lib/theme-chalk/icon.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/login.css +1 -1
  44. package/lib/theme-chalk/main.css +1 -1
  45. package/lib/theme-chalk/menu.css +1 -1
  46. package/lib/theme-chalk/simplicity.css +1 -1
  47. package/lib/theme-chalk/sizer.css +1 -1
  48. package/lib/theme-chalk/upload.css +1 -1
  49. package/lib/tips.js +5 -0
  50. package/lib/tree-group.js +5 -0
  51. package/lib/tree.js +5 -0
  52. package/lib/upload.js +5 -0
  53. package/lib/utils/util.js +5 -0
  54. package/lib/wujie.js +5 -0
  55. package/lib/wxlogin.js +5 -0
  56. package/package.json +1 -1
  57. package/packages/.DS_Store +0 -0
  58. package/packages/data-table/.DS_Store +0 -0
  59. package/packages/data-table/src/main.vue +3 -1
  60. package/packages/flow/.DS_Store +0 -0
  61. package/packages/flow/src/component/taskUnionExamine.vue +34 -26
  62. package/packages/flow/src/main.vue +0 -2
  63. package/packages/flow/src/processForm.vue +29 -18
  64. package/packages/flow/src/reset.vue +0 -2
  65. package/packages/handler/src/main.vue +163 -77
  66. package/packages/icons/src/icon.json +1 -1
  67. package/packages/login/.DS_Store +0 -0
  68. package/packages/login/src/main.vue +61 -18
  69. package/packages/main/.DS_Store +0 -0
  70. package/packages/main/src/.DS_Store +0 -0
  71. package/packages/main/src/default/index.vue +32 -3
  72. package/packages/main/src/public/search.vue +14 -7
  73. package/packages/main/src/simplicity/handler.vue +64 -26
  74. package/packages/main/src/simplicity/index.vue +80 -26
  75. package/packages/selector/.DS_Store +0 -0
  76. package/packages/selector/src/main.vue +17 -5
  77. package/packages/selector-panel/.DS_Store +0 -0
  78. package/packages/selector-panel/src/main.vue +0 -1
  79. package/packages/theme-chalk/lib/base.css +1 -1
  80. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  81. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  82. package/packages/theme-chalk/lib/icon.css +1 -1
  83. package/packages/theme-chalk/lib/index.css +1 -1
  84. package/packages/theme-chalk/lib/login.css +1 -1
  85. package/packages/theme-chalk/lib/main.css +1 -1
  86. package/packages/theme-chalk/lib/menu.css +1 -1
  87. package/packages/theme-chalk/lib/simplicity.css +1 -1
  88. package/packages/theme-chalk/lib/sizer.css +1 -1
  89. package/packages/theme-chalk/lib/upload.css +1 -1
  90. package/packages/theme-chalk/src/.DS_Store +0 -0
  91. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  92. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  93. package/packages/theme-chalk/src/icon.scss +29 -0
  94. package/packages/theme-chalk/src/login.scss +8 -0
  95. package/packages/theme-chalk/src/main.scss +7 -0
  96. package/src/.DS_Store +0 -0
  97. package/src/index.js +1 -1
  98. package/src/utils/util.js +5 -0
@@ -22,7 +22,7 @@
22
22
  <div v-for="ele in item.content" :key="ele">{{ ele }}</div>
23
23
  </div>
24
24
  </div>
25
- <div v-else-if="item.type === 'date'" class="es-handler-date">
25
+ <div v-else-if="item.type === 'dateTime'" class="es-handler-date">
26
26
  <div>
27
27
  {{ time }}
28
28
  <span v-if="show"
@@ -42,17 +42,17 @@
42
42
  trigger="hover"
43
43
  ref="system"
44
44
  :popper-class="
45
- system.length > 4
45
+ systemData.length > 4
46
46
  ? 'es-popper-sub-system is-width'
47
47
  : 'es-popper-sub-system'
48
48
  "
49
49
  @show="showPopper = true"
50
50
  @hide="showPopper = false"
51
51
  >
52
- <el-scrollbar :max-height="maxHeight" v-if="system.length">
52
+ <el-scrollbar :max-height="maxHeight" v-if="systemData.length">
53
53
  <ul class="es-sub-system">
54
54
  <li
55
- v-for="ele in system"
55
+ v-for="ele in systemData"
56
56
  class="es-sub-system-item"
57
57
  :class="{
58
58
  'es-disabled':
@@ -91,9 +91,9 @@
91
91
  <el-badge
92
92
  class="es-badge"
93
93
  v-else-if="item.type === 'notice'"
94
- :value="notice"
94
+ :value="noticeNum"
95
95
  :max="99"
96
- :hidden="notice < 1"
96
+ :hidden="noticeNum < 1"
97
97
  >
98
98
  <div
99
99
  class="es-handler-icon"
@@ -139,20 +139,12 @@ export default {
139
139
  return [];
140
140
  }
141
141
  },
142
- notice: {
143
- type: Number,
144
- default: 0
145
- },
146
142
  hide: {
147
143
  type: Object,
148
144
  default() {
149
- return { system: true, new: true };
145
+ return {};
150
146
  }
151
147
  },
152
- online: {
153
- type: [Number, Boolean],
154
- default: 1
155
- },
156
148
  photo: String,
157
149
  storage: String,
158
150
  application: {
@@ -162,6 +154,134 @@ export default {
162
154
  maxHeight: {
163
155
  type: String,
164
156
  default: '100%'
157
+ },
158
+ user: {
159
+ type: Object,
160
+ default() {
161
+ return {
162
+ type: 'user'
163
+ };
164
+ }
165
+ },
166
+ dateTime: {
167
+ type: Object,
168
+ default() {
169
+ return {
170
+ type: 'dateTime'
171
+ };
172
+ }
173
+ },
174
+ system: {
175
+ type: Object,
176
+ default() {
177
+ return {
178
+ type: 'system',
179
+ icon: 'es-icon-yingyong',
180
+ title: '切换子系统'
181
+ };
182
+ }
183
+ },
184
+ home: {
185
+ type: Object,
186
+ default() {
187
+ return {
188
+ type: 'home',
189
+ icon: 'es-icon-zuomian',
190
+ title: '个人工作台'
191
+ };
192
+ }
193
+ },
194
+ search: {
195
+ type: Object,
196
+ default() {
197
+ return {
198
+ type: 'search',
199
+ icon: 'es-icon-magnifier',
200
+ title: '搜索'
201
+ };
202
+ }
203
+ },
204
+ im: {
205
+ type: Object,
206
+ default() {
207
+ return {
208
+ type: 'im',
209
+ icon: 'es-icon-liaotian',
210
+ title: 'IM'
211
+ };
212
+ }
213
+ },
214
+ index: {
215
+ type: Object,
216
+ default() {
217
+ return {
218
+ type: 'index',
219
+ icon: 'es-icon-home',
220
+ title: '门户'
221
+ };
222
+ }
223
+ },
224
+ home: {
225
+ type: Object,
226
+ default() {
227
+ return {
228
+ type: 'home',
229
+ icon: 'es-icon-zuomian',
230
+ title: '个人工作台'
231
+ };
232
+ }
233
+ },
234
+ notice: {
235
+ type: Object,
236
+ default() {
237
+ return {
238
+ type: 'notice',
239
+ icon: 'es-icon-tongzhi',
240
+ title: '通知消息'
241
+ };
242
+ }
243
+ },
244
+ refresh: {
245
+ type: Object,
246
+ default() {
247
+ return {
248
+ type: 'refresh',
249
+ icon: 'es-icon-shuaxin',
250
+ title: '刷新'
251
+ };
252
+ }
253
+ },
254
+ quit: {
255
+ type: Object,
256
+ default() {
257
+ return {
258
+ type: 'quit',
259
+ icon: 'es-icon-guanji',
260
+ title: '退出'
261
+ };
262
+ }
263
+ },
264
+ set: {
265
+ type: Object,
266
+ default() {
267
+ return {
268
+ type: 'set',
269
+ icon: 'es-icon-xitongguanli',
270
+ title: '设置'
271
+ };
272
+ }
273
+ },
274
+ msgNum: {
275
+ type: Number,
276
+ default: 0
277
+ },
278
+ noticeNum: {
279
+ type: Number,
280
+ default: 0
281
+ },
282
+ online: {
283
+ type: Number,
284
+ default: 1
165
285
  }
166
286
  },
167
287
  watch: {
@@ -176,69 +296,35 @@ export default {
176
296
  },
177
297
  computed: {
178
298
  lists() {
179
- if (this.data === undefined) {
180
- let list = [
181
- {
182
- type: 'user'
183
- },
184
- this.contact ? { ...this.contact, type: 'contact' } : {},
185
- {
186
- type: 'date'
187
- },
188
- {
189
- type: 'system',
190
- icon: 'es-icon-yingyong',
191
- title: '切换子系统'
192
- },
193
- {
194
- type: 'home',
195
- icon: 'es-icon-zuomian',
196
- title: '个人工作台'
197
- },
198
- {
199
- type: 'index',
200
- icon: 'es-icon-home',
201
- title: '门户'
202
- },
203
- {
204
- type: 'notice',
205
- icon: 'es-icon-tongzhi',
206
- title: '通知消息'
207
- },
208
- {
209
- type: 'refresh',
210
- icon: 'es-icon-shuaxin',
211
- title: '刷新'
212
- },
213
- {
214
- type: 'quit',
215
- icon: 'es-icon-guanji',
216
- title: '退出'
217
- },
218
- {
219
- type: 'set',
220
- icon: 'es-icon-xitongguanli',
221
- title: '设置'
222
- }
223
- ].filter((item) => {
224
- return Object.keys(item).length;
225
- });
226
- if (Object.keys(this.hide).length) {
227
- list.forEach((item) => {
228
- item.hide = this.hide[item.type];
229
- });
230
- }
231
- return list;
232
- } else {
233
- if (Object.keys(this.hide).length) {
234
- this.data.forEach((item) => {
235
- item.hide = this.hide[item.type];
236
- });
237
- }
238
- }
239
- return this.data;
299
+ let hide = {
300
+ system: true,
301
+ new: true,
302
+ im: true,
303
+ ...this.hide
304
+ };
305
+ let data = this.data
306
+ ? this.data
307
+ : [
308
+ this.user,
309
+ this.contact ? { ...this.contact, type: 'contact' } : {},
310
+ this.dateTime,
311
+ this.system,
312
+ this.search,
313
+ this.im,
314
+ this.index,
315
+ this.home,
316
+ this.notice,
317
+ this.refresh,
318
+ this.quit,
319
+ this.set
320
+ ];
321
+ return data.filter((item) => {
322
+ return (
323
+ item && Object.keys(item).length && !item.hide && !hide[item.type]
324
+ );
325
+ });
240
326
  },
241
- system() {
327
+ systemData() {
242
328
  return this.subSystem;
243
329
  },
244
330
  show() {
@@ -1 +1 @@
1
- ["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home","tiyanxinban","shiyongjiuban","zhuomian","scan","youbian","zuobian","saomadenglu","zhanghaodenglu","zhengfangti","tingzhi"]
1
+ ["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home","tiyanxinban","shiyongjiuban","zhuomian","scan","youbian","zuobian","saomadenglu","zhanghaodenglu","zhengfangti","tingzhi","youxiangdenglu","duanxindenglu","liaotian","zhixiangyou","zhixiangshang","zhixiangxia","zhixiangzuo"]
Binary file
@@ -49,11 +49,13 @@
49
49
  'es-login-model': modelLength == 2 || mode == 'complex'
50
50
  }"
51
51
  >
52
- <template v-if="this.mode == 'complex'">
52
+ <template
53
+ v-if="this.mode == 'complex' && loginModel.indexOf('3') > -1"
54
+ >
53
55
  <template v-for="item in switchs">
54
56
  <div
55
57
  v-if="item.tips"
56
- v-show="active != item.type"
58
+ v-show="switchActive != item.type"
57
59
  class="es-login-model-tips"
58
60
  :key="item.type + '_0'"
59
61
  :style="getBackground(item.background)"
@@ -72,17 +74,25 @@
72
74
  </template>
73
75
  </template>
74
76
  <template v-else>
75
- <span
76
- v-for="(item, index) in icons"
77
- v-show="modelLength > 2 || active != item.type"
78
- class="es-icon-box"
79
- @click="switchLogin(item)"
80
- :title="modelLength > 2 ? item.name : ''"
81
- :key="index"
82
- :class="[{ 'es-icon-active': active == item.type }]"
83
- >
84
- <i :class="[item.icon, 'es-icon']"></i>
85
- </span>
77
+ <template v-for="item in icons">
78
+ <div
79
+ class="es-login-model-item-tips"
80
+ v-show="modelLength == 2 && active != item.type && modelTips"
81
+ :key="item.type"
82
+ >
83
+ {{ item.name }}点这里<i class="es-icon-zhixiangyou"></i>
84
+ </div>
85
+ <span
86
+ v-show="modelLength > 2 || active != item.type"
87
+ class="es-icon-box"
88
+ @click="switchLogin(item)"
89
+ :title="item.name"
90
+ :key="item.name"
91
+ :class="[{ 'es-icon-active': active == item.type }]"
92
+ >
93
+ <i :class="[item.icon, 'es-icon']"></i>
94
+ </span>
95
+ </template>
86
96
  </template>
87
97
  </div>
88
98
  <div v-if="loginTitleImg" class="es-login-title-image">
@@ -284,7 +294,14 @@
284
294
  </span>
285
295
  </div>
286
296
  </div>
287
- <div v-if="active == 3 && mode == 'complex'" class="es-to-login">
297
+ <div
298
+ v-if="
299
+ active == 3 &&
300
+ loginModel.indexOf('0') > -1 &&
301
+ mode == 'complex'
302
+ "
303
+ class="es-to-login"
304
+ >
288
305
  <span class="es-pointer" @click="switchLoginType()"
289
306
  >账号登录<i class="es-icon-youbian"></i
290
307
  ></span>
@@ -526,6 +543,7 @@ export default {
526
543
  type: Boolean,
527
544
  default: true
528
545
  },
546
+ modelTips: Boolean,
529
547
  model: {
530
548
  type: Object,
531
549
  default() {
@@ -795,10 +813,14 @@ export default {
795
813
  0: { type: '0', icon: 'es-icon-zhanghaodenglu', name: '账号登录' },
796
814
  1: { type: '1', icon: 'es-icon-ca', name: '证书登录' },
797
815
  3: { type: '3', icon: 'es-icon-saomadenglu', name: '扫码登录' },
798
- 6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
816
+ 6: { type: '6', icon: 'es-icon-duanxindenglu', name: '短信登录' },
799
817
  7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
800
818
  9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
801
- 11: { type: '11', icon: 'es-icon-wodeyouxiang', name: '邮箱登录' },
819
+ 11: {
820
+ type: '11',
821
+ icon: 'es-icon-youxiangdenglu',
822
+ name: '邮箱登录'
823
+ },
802
824
  12: { type: '12', icon: 'es-icon-zhanghaodenglu', name: '账号登录' } //双因素
803
825
  };
804
826
  },
@@ -842,6 +864,12 @@ export default {
842
864
  handler(val) {
843
865
  this.active = val.split(',')[0];
844
866
  this.title = this.iconfonts[this.active].name;
867
+ this.switchs.forEach((item) => {
868
+ if (item.type == this.active) {
869
+ this.switchActive = item.type;
870
+ return;
871
+ }
872
+ });
845
873
  }
846
874
  },
847
875
  active: {
@@ -1185,9 +1213,24 @@ export default {
1185
1213
  switchLoginType(res) {
1186
1214
  this.countdown = 0;
1187
1215
  if (res) {
1188
- this.active = res.type;
1189
- this.title = res.name || '';
1190
1216
  this.switchActive = res.type;
1217
+ this.title = res.name || '';
1218
+ if (this.loginModel.indexOf(res.type) > -1) {
1219
+ this.active = res.type;
1220
+ } else {
1221
+ let other = this.switchs.filter((item) => {
1222
+ return item.type != res.type;
1223
+ })[0];
1224
+ let model = this.loginModel.split(',').filter((item) => {
1225
+ return item != res.type && item != other.type;
1226
+ })[0];
1227
+ if (model) {
1228
+ this.active = model;
1229
+ this.title = this.iconfonts[model].name;
1230
+ } else {
1231
+ console.error('complex风格的登录方式,loginModel配置错误!');
1232
+ }
1233
+ }
1191
1234
  } else {
1192
1235
  this.active = this.switchs[0].type;
1193
1236
  this.title = '';
Binary file
Binary file
@@ -39,7 +39,7 @@
39
39
  :online="online"
40
40
  :application="application"
41
41
  :storage="storage"
42
- :notice="notice"
42
+ :noticeNum="notice"
43
43
  :data="handleData"
44
44
  :max-height="_maxHeight"
45
45
  @visible-change="handleVisibleChange"
@@ -195,6 +195,17 @@
195
195
  </slot>
196
196
  </es-dialog>
197
197
  <notice :data="sysMsg" :winopen="winopen" @opened="handleOpened"></notice>
198
+ <es-dialog
199
+ class="es-public-search-dialog"
200
+ :visible.sync="showSearch"
201
+ size="lg"
202
+ >
203
+ <search
204
+ :menus="menus"
205
+ :menuIcon="menuIcon"
206
+ @select="handleOnSearch"
207
+ ></search>
208
+ </es-dialog>
198
209
  <es-dialog :title="dialog.title" :visible.sync="dialog.show" size="md">
199
210
  <template v-if="dialog.title == '查看在线人员' && !dialog.src">
200
211
  <online></online>
@@ -215,6 +226,7 @@ import settings from '../public/settings.vue';
215
226
  import message from './message.vue';
216
227
  import notice from './notice.vue';
217
228
  import online from '../public/online.vue';
229
+ import search from '../public/search.vue';
218
230
  import {
219
231
  //authCenter,
220
232
  wss,
@@ -244,7 +256,8 @@ export default {
244
256
  settings,
245
257
  message,
246
258
  notice,
247
- online
259
+ online,
260
+ search
248
261
  },
249
262
  props: {
250
263
  jobScrollbar: Boolean,
@@ -254,7 +267,10 @@ export default {
254
267
  //菜单展开关闭图标
255
268
  icons: Object,
256
269
  //菜单前置默认图标
257
- menuIcon: String,
270
+ menuIcon: {
271
+ type: String,
272
+ default: 'es-icon-application'
273
+ },
258
274
  //子菜单是否显示前置图标
259
275
  subIcon: {
260
276
  type: Boolean,
@@ -605,6 +621,8 @@ export default {
605
621
  showMsg: false,
606
622
  //即时消息
607
623
  sysMsg: [],
624
+ //搜索
625
+ showSearch: false,
608
626
  //定时关闭及时消息对象
609
627
  sysMsgOut: null,
610
628
  //额外信息数据
@@ -1727,6 +1745,10 @@ export default {
1727
1745
  case 'set':
1728
1746
  this.handleSet();
1729
1747
  break;
1748
+ case 'search':
1749
+ this.showSearch = true;
1750
+ this.showMsg = false;
1751
+ break;
1730
1752
  case 'goView':
1731
1753
  util.win.open(res.path, '_blank');
1732
1754
  break;
@@ -2048,6 +2070,13 @@ export default {
2048
2070
  let n = parseInt(this.menuTips[id], 10) - 1;
2049
2071
  this.$set(this.menuTips, id, n);
2050
2072
  }
2073
+ },
2074
+ //搜索
2075
+ handleOnSearch(res, parent) {
2076
+ this.showSearch = false;
2077
+ if (parent.name === '菜单') {
2078
+ this.jumpMenu(res.appCode);
2079
+ }
2051
2080
  }
2052
2081
  },
2053
2082
  beforeDestroy() {
@@ -20,9 +20,9 @@
20
20
  <div class="es-public-search-title">{{ item.name }}</div>
21
21
  <ul class="es-public-search-list">
22
22
  <li
23
- v-for="ele in item.records.slice(0, 3)"
23
+ v-for="(ele, idx) in item.records.slice(0, 3)"
24
24
  class="es-public-search-list-item"
25
- :key="ele.id || ele.title"
25
+ :key="ele.id || `${item.id}_${ele.title}_${idx}`"
26
26
  @click="handleClick(ele, item)"
27
27
  >
28
28
  <es-icon
@@ -71,7 +71,7 @@
71
71
  v-loading="loadings[item.id || String(index)]"
72
72
  element-loading-background="rgba(0, 0, 0, 0.01)"
73
73
  element-loading-text="加载中..."
74
- v-if="!hides.includes(item.name)"
74
+ v-if="!hides.includes(item.name) && !item.hide"
75
75
  >
76
76
  <el-scrollbar
77
77
  class="es-scrollbar es-public-search-scrollbar"
@@ -91,9 +91,9 @@
91
91
  </div>
92
92
  <ul class="es-public-search-lists">
93
93
  <li
94
- v-for="ele in item.records"
94
+ v-for="(ele, idx) in item.records"
95
95
  class="es-public-search-list-item"
96
- :key="ele.id || ele.title"
96
+ :key="ele.id || `${item.id}_${ele.title}_${idx}`"
97
97
  @click="handleClick(ele, item)"
98
98
  >
99
99
  <es-icon
@@ -301,7 +301,14 @@ export default {
301
301
  let types = results.catalog.map((item, index) => {
302
302
  loadings[item.id || String(index)] = false;
303
303
  noMore[item.id || String(index)] = false;
304
- return { ...item, pageNum: 0, pageCount: 1, records: [] };
304
+ return {
305
+ ...item,
306
+ pageNum: 0,
307
+ pageCount: 1,
308
+ records: [],
309
+ hide:
310
+ item.name == '应用' && this.apps.length == 0 ? true : false
311
+ };
305
312
  });
306
313
  this.types = types;
307
314
  this.loadings = loadings;
@@ -312,7 +319,7 @@ export default {
312
319
  searchAll(keyWords) {
313
320
  for (let i = 0; i < this.types.length; i++) {
314
321
  let item = this.types[i];
315
- if (keyWords) {
322
+ if (keyWords && !this.hides.includes(item.name) && !item.hide) {
316
323
  if (item.name == '菜单' && this.menus.length) {
317
324
  this.isLoading = false;
318
325
  this.types[i].records = this.searchData(this.menus, keyWords);