eoss-ui 0.5.99 → 0.6.10

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 (120) hide show
  1. package/lib/button-group.js +210 -198
  2. package/lib/button.js +2 -2
  3. package/lib/calendar.js +2 -2
  4. package/lib/card.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/checkbox-group.js +12 -30
  7. package/lib/clients.js +2 -2
  8. package/lib/data-table-form.js +2 -4
  9. package/lib/data-table.js +21 -36
  10. package/lib/date-picker.js +2 -2
  11. package/lib/dialog.js +16 -33
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +1506 -936
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +2 -2
  16. package/lib/flow-list.js +4 -4
  17. package/lib/flow.js +475 -239
  18. package/lib/form.js +2 -4
  19. package/lib/handle-user.js +2 -2
  20. package/lib/handler.js +12 -12
  21. package/lib/icon.js +9 -9
  22. package/lib/icons.js +5 -5
  23. package/lib/index.js +1 -1
  24. package/lib/input-number.js +2 -2
  25. package/lib/input.js +2 -2
  26. package/lib/label.js +2 -2
  27. package/lib/layout.js +4 -4
  28. package/lib/login.js +728 -489
  29. package/lib/main.js +201 -113
  30. package/lib/menu.js +2 -2
  31. package/lib/nav.js +2 -2
  32. package/lib/notify.js +2 -2
  33. package/lib/page.js +2 -2
  34. package/lib/pagination.js +2 -2
  35. package/lib/player.js +11 -11
  36. package/lib/qr-code.js +4 -4
  37. package/lib/radio-group.js +10 -30
  38. package/lib/retrial-auth.js +9 -9
  39. package/lib/select-ganged.js +9 -9
  40. package/lib/select.js +8 -28
  41. package/lib/selector-panel.js +6 -8
  42. package/lib/selector.js +11 -11
  43. package/lib/sizer.js +2 -2
  44. package/lib/steps.js +2 -2
  45. package/lib/switch.js +9 -9
  46. package/lib/table-form.js +2 -2
  47. package/lib/tabs-panel.js +2 -2
  48. package/lib/tabs.js +2 -2
  49. package/lib/theme-chalk/base.css +1 -1
  50. package/lib/theme-chalk/flow.css +1 -1
  51. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  52. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  53. package/lib/theme-chalk/icon.css +1 -1
  54. package/lib/theme-chalk/icons.css +1 -1
  55. package/lib/theme-chalk/index.css +1 -1
  56. package/lib/theme-chalk/login.css +1 -1
  57. package/lib/theme-chalk/main.css +1 -1
  58. package/lib/theme-chalk/menu.css +1 -1
  59. package/lib/theme-chalk/simplicity.css +1 -1
  60. package/lib/theme-chalk/sizer.css +1 -1
  61. package/lib/theme-chalk/upload.css +1 -1
  62. package/lib/tips.js +2 -2
  63. package/lib/toolbar.js +2 -2
  64. package/lib/tree-group.js +6 -5
  65. package/lib/tree.js +2 -2
  66. package/lib/upload.js +6 -8
  67. package/lib/wujie.js +145 -145
  68. package/lib/wxlogin.js +145 -145
  69. package/package.json +2 -2
  70. package/packages/.DS_Store +0 -0
  71. package/packages/checkbox-group/.DS_Store +0 -0
  72. package/packages/checkbox-group/src/main.vue +10 -7
  73. package/packages/data-table/src/main.vue +23 -15
  74. package/packages/dialog/.DS_Store +0 -0
  75. package/packages/dialog/src/main.vue +13 -8
  76. package/packages/flow/src/component/SendMsg.vue +7 -1
  77. package/packages/flow/src/component/taskUnionExamine.vue +19 -1
  78. package/packages/flow/src/main.vue +69 -47
  79. package/packages/flow/src/processForm.vue +21 -5
  80. package/packages/flow/src/processReject.vue +31 -14
  81. package/packages/flow/src/startTaskRead.vue +22 -8
  82. package/packages/handler/.DS_Store +0 -0
  83. package/packages/handler/src/main.vue +1 -1
  84. package/packages/icons/src/icon.json +1 -1
  85. package/packages/login/.DS_Store +0 -0
  86. package/packages/login/src/main.vue +211 -115
  87. package/packages/main/.DS_Store +0 -0
  88. package/packages/main/src/.DS_Store +0 -0
  89. package/packages/main/src/default/index.vue +3 -11
  90. package/packages/main/src/default/message.vue +13 -1
  91. package/packages/main/src/default/notice.vue +16 -4
  92. package/packages/main/src/main.vue +41 -13
  93. package/packages/main/src/simplicity/index.vue +25 -18
  94. package/packages/main/src/simplicity/message.vue +14 -1
  95. package/packages/main/src/simplicity/notice.vue +13 -1
  96. package/packages/radio-group/src/main.vue +10 -7
  97. package/packages/select/src/main.vue +10 -7
  98. package/packages/theme-chalk/lib/base.css +1 -1
  99. package/packages/theme-chalk/lib/flow.css +1 -1
  100. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  101. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  102. package/packages/theme-chalk/lib/icon.css +1 -1
  103. package/packages/theme-chalk/lib/icons.css +1 -1
  104. package/packages/theme-chalk/lib/index.css +1 -1
  105. package/packages/theme-chalk/lib/login.css +1 -1
  106. package/packages/theme-chalk/lib/main.css +1 -1
  107. package/packages/theme-chalk/lib/menu.css +1 -1
  108. package/packages/theme-chalk/lib/simplicity.css +1 -1
  109. package/packages/theme-chalk/lib/sizer.css +1 -1
  110. package/packages/theme-chalk/lib/upload.css +1 -1
  111. package/packages/theme-chalk/src/.DS_Store +0 -0
  112. package/packages/theme-chalk/src/common/var.scss +3 -1
  113. package/packages/theme-chalk/src/flow.scss +12 -0
  114. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  115. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  116. package/packages/theme-chalk/src/icon.scss +16 -0
  117. package/packages/theme-chalk/src/icons.scss +1 -1
  118. package/packages/theme-chalk/src/login.scss +609 -757
  119. package/packages/tree-group/src/main.vue +5 -1
  120. package/src/index.js +1 -1
@@ -28,54 +28,100 @@
28
28
  class="es-login-main"
29
29
  :style="getBackground(loginMainImg)"
30
30
  :class="{
31
- 'es-switchs': switchs > 2
31
+ 'es-models': modelLength > 2 && mode !== 'complex',
32
+ 'es-complex': mode == 'complex'
32
33
  }"
33
34
  >
35
+ <div class="es-login-complex-title" v-if="mode == 'complex'">
36
+ 欢迎登录
37
+ </div>
34
38
  <div
35
- v-if="switchs > 1"
39
+ v-if="modelLength > 1 || mode == 'complex'"
36
40
  :class="{
37
- 'es-login-switch': switchs == 2,
38
- 'es-login-switchs': switchs > 2 || (switchs == 2 && loginTitleImg)
41
+ 'es-login-models': modelLength > 2 && mode !== 'complex',
42
+ 'es-login-model': modelLength == 2 || mode == 'complex'
39
43
  }"
40
44
  >
41
- <i
42
- v-for="(item, index) in icons"
43
- v-show="switchs > 2 || active != item.type"
44
- @click="switchLogin(item)"
45
- :title="switchs > 2 ? item.name : ''"
46
- :key="index"
47
- :class="[
48
- item.icon,
49
- 'es-icon',
50
- { 'es-icon-active': active == item.type }
51
- ]"
52
- ></i>
45
+ <template v-if="this.mode == 'complex'">
46
+ <template v-for="item in switchs">
47
+ <div
48
+ v-if="item.tips"
49
+ v-show="active != item.type"
50
+ class="es-login-model-tips"
51
+ :key="item.type + '_0'"
52
+ :style="getBackground(item.background)"
53
+ >
54
+ {{ item.tips }}
55
+ </div>
56
+ <span
57
+ v-show="switchActive != item.type"
58
+ class="es-icon-box"
59
+ @click="switchLoginType(item)"
60
+ :title="modelLength > 2 ? item.name : ''"
61
+ :key="item.type + '_1'"
62
+ >
63
+ <i :class="[item.icon, 'es-icon']"></i>
64
+ </span>
65
+ </template>
66
+ </template>
67
+ <template v-else>
68
+ <span
69
+ v-for="(item, index) in icons"
70
+ v-show="modelLength > 2 || active != item.type"
71
+ class="es-icon-box"
72
+ @click="switchLogin(item)"
73
+ :title="modelLength > 2 ? item.name : ''"
74
+ :key="index"
75
+ :class="[{ 'es-icon-active': active == item.type }]"
76
+ >
77
+ <i :class="[item.icon, 'es-icon']"></i>
78
+ </span>
79
+ </template>
53
80
  </div>
54
81
  <div v-if="loginTitleImg" class="es-login-title-image">
55
82
  <img class="es-login-title-img" :src="loginTitleImg" />
56
83
  </div>
84
+ <template v-else-if="mode !== 'complex'">
85
+ <slot name="login-title" :type="active">
86
+ <div class="es-login-title">
87
+ <span class="es-login-title-content">{{ title }}</span>
88
+ </div>
89
+ </slot>
90
+ </template>
57
91
  <div class="es-login-form-box">
92
+ <div
93
+ v-if="mode == 'complex'"
94
+ class="es-login-complex-models"
95
+ :class="{ 'es-complex-title': active == '3' }"
96
+ >
97
+ <template v-if="active == '3'">
98
+ <div class="es-login-complex-models-item es-active">
99
+ {{ title }}
100
+ </div>
101
+ </template>
102
+ <template v-else>
103
+ <template v-for="item in icons">
104
+ <div
105
+ v-if="item.type !== '3'"
106
+ class="es-login-complex-models-item"
107
+ :class="{ 'es-active': active == item.type }"
108
+ :key="item.type"
109
+ @click="switchLogin(item)"
110
+ >
111
+ {{ item.name }}
112
+ </div>
113
+ </template>
114
+ </template>
115
+ </div>
58
116
  <template v-if="isShow(active) && (active == 0 || active == 12)">
59
117
  <el-form
60
118
  :ref="'login' + active"
61
119
  class="es-login-form"
62
120
  :model="formData"
63
121
  >
64
- <template v-if="!loginTitleImg">
65
- <slot name="login-title" :type="active">
66
- <div class="es-login-title">
67
- <span class="es-login-title-content">{{ title }}</span>
68
- </div>
69
- </slot>
70
- </template>
71
- <el-form-item
72
- size="large"
73
- prop="username"
74
- :rules="username.rules"
75
- >
122
+ <el-form-item prop="username" :rules="username.rules">
76
123
  <es-input
77
124
  v-model="formData.username"
78
- size="large"
79
125
  type="text"
80
126
  name="username"
81
127
  tabindex="1"
@@ -90,14 +136,9 @@
90
136
  </template>
91
137
  </es-input>
92
138
  </el-form-item>
93
- <el-form-item
94
- size="large"
95
- prop="password"
96
- :rules="password.rules"
97
- >
139
+ <el-form-item prop="password" :rules="password.rules">
98
140
  <el-input
99
141
  v-model="formData.password"
100
- size="large"
101
142
  name="password"
102
143
  tabindex="2"
103
144
  type="password"
@@ -113,7 +154,6 @@
113
154
  </el-input>
114
155
  </el-form-item>
115
156
  <el-form-item
116
- size="large"
117
157
  prop="identifyingCode"
118
158
  :rules="[
119
159
  {
@@ -125,7 +165,6 @@
125
165
  v-if="imgCode || showVerifyCode"
126
166
  >
127
167
  <el-input
128
- size="large"
129
168
  name="identifyingCode"
130
169
  tabindex="3"
131
170
  type="text"
@@ -138,14 +177,6 @@
138
177
  <i class="es-icon-yanzheng es-label-code-image"></i>
139
178
  </template>
140
179
  <template slot="suffix">
141
- <el-button
142
- class="es-get-code"
143
- type="primary"
144
- v-show="active == 12 && showVerifyCode"
145
- :disabled="disabled"
146
- @click.stop="getCode"
147
- >{{ btnText }}</el-button
148
- >
149
180
  <img
150
181
  v-show="imgCode && (active == '0' || active == '12')"
151
182
  class="es-img-code"
@@ -155,36 +186,34 @@
155
186
  </template>
156
187
  </el-input>
157
188
  </el-form-item>
158
- <div class="es-password-handle" v-show="remember && forget">
159
- <el-checkbox
160
- v-show="remember && (active == '0' || active == '12')"
161
- v-model="checked"
162
- >记住密码</el-checkbox
163
- >
164
- <div v-show="forget" class="es-password-forget">
165
- <span @click="handleForget">修改密码</span>
189
+ <div>
190
+ <div class="es-password-handle">
191
+ <el-checkbox
192
+ v-show="remember && (active == '0' || active == '12')"
193
+ v-model="checked"
194
+ >记住密码</el-checkbox
195
+ >
196
+ <div v-show="forget" class="es-password-forget">
197
+ <span @click="handleForget">修改密码</span>
198
+ </div>
166
199
  </div>
200
+ <el-button
201
+ class="es-button-submit"
202
+ type="primary"
203
+ @click="handleLogin"
204
+ >登录</el-button
205
+ >
167
206
  </div>
168
- <el-button
169
- class="es-button-submit"
170
- type="primary"
171
- @click="handleLogin"
172
- >登录</el-button
173
- >
174
207
  </el-form>
175
208
  </template>
176
209
  <template
177
210
  v-if="isShow(active) && (active == 3 || active == 7 || active == 9)"
178
211
  >
179
- <div class="es-login-qrcode">
180
- <template v-if="!loginTitleImg">
181
- <slot name="login-title" :type="active">
182
- <div class="es-login-title">
183
- <span class="es-login-title-content">{{ title }}</span>
184
- </div>
185
- </slot>
186
- </template>
187
- <div class="es-login-down-app">
212
+ <div
213
+ class="es-login-qrcode"
214
+ :class="{ 'es-login-qrcode-complex': mode == 'complex' }"
215
+ >
216
+ <div class="es-login-down-app" v-if="mode !== 'complex'">
188
217
  打开
189
218
  <template v-if="active == 3">
190
219
  <a
@@ -205,20 +234,53 @@
205
234
  >{{ active == 7 ? '钉钉' : '微信' }}app </span
206
235
  >,扫描二维码
207
236
  </div>
208
- <es-qr-code
209
- :content="identifyingId"
210
- :logo="qrimg"
211
- auto
212
- v-if="active == 3 && identifyingId"
213
- ></es-qr-code>
214
- <div class="es-wx-qrcode-box" v-if="active == 9">
215
- <es-wxlogin
216
- href="data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7CiAgICB3aWR0aDogMTAwJSAhaW1wb3J0YW50OwogICAgYm94LXNpemluZzogYm9yZGVyLWJveCAhaW1wb3J0YW50OwogICAgbWFyZ2luOiAwICFpbXBvcnRhbnQ7Cn0KCi5pbXBvd2VyQm94IC5pbmZvLAouaW1wb3dlckJveCAudGl0bGUgewogICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50Owp9"
237
+ <div class="es-login-qrcode-box">
238
+ <es-qr-code
239
+ :content="identifyingId"
240
+ :logo="qrimg"
217
241
  auto
218
- :appid="wechatAppid"
219
- :scope="wechatScope"
220
- :redirect_uri="redirectUri"
221
- ></es-wxlogin>
242
+ v-if="active == 3 && identifyingId"
243
+ ></es-qr-code>
244
+ <div class="es-wx-qrcode-box" v-if="active == 9">
245
+ <es-wxlogin
246
+ href="data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7CiAgICB3aWR0aDogMTAwJSAhaW1wb3J0YW50OwogICAgYm94LXNpemluZzogYm9yZGVyLWJveCAhaW1wb3J0YW50OwogICAgbWFyZ2luOiAwICFpbXBvcnRhbnQ7Cn0KCi5pbXBvd2VyQm94IC5pbmZvLAouaW1wb3dlckJveCAudGl0bGUgewogICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50Owp9"
247
+ auto
248
+ :appid="wechatAppid"
249
+ :scope="wechatScope"
250
+ :redirect_uri="redirectUri"
251
+ ></es-wxlogin>
252
+ </div>
253
+ </div>
254
+ <div
255
+ v-if="active == 3 && mode == 'complex'"
256
+ class="es-login-complex-app"
257
+ >
258
+ <div class="es-login-complex-scan">
259
+ <i class="es-icon-scan"></i>
260
+ <span class="es-login-complex-scan-tips"
261
+ >打开app<br />扫一扫登录</span
262
+ >
263
+ </div>
264
+ <div class="es-login-complex-download">
265
+ <a
266
+ class="es-login-app-name es-pointer"
267
+ target="_blank"
268
+ :href="downloadApp"
269
+ v-if="downloadApp"
270
+ >下载app</a
271
+ >
272
+ <span
273
+ class="es-login-app-name es-pointer"
274
+ v-else
275
+ @click="handleDownLoadApp"
276
+ >下载app
277
+ </span>
278
+ </div>
279
+ </div>
280
+ <div v-if="active == 3 && mode == 'complex'" class="es-to-login">
281
+ <span class="es-pointer" @click="switchLoginType()"
282
+ >账号登录<i class="es-icon-youbian"></i
283
+ ></span>
222
284
  </div>
223
285
  </div>
224
286
  </template>
@@ -228,21 +290,12 @@
228
290
  class="es-login-form es-login-verify"
229
291
  :model="formData"
230
292
  >
231
- <template v-if="!loginTitleImg">
232
- <slot name="login-title" :type="active">
233
- <div class="es-login-title">
234
- <span class="es-login-title-content">{{ title }}</span>
235
- </div>
236
- </slot>
237
- </template>
238
293
  <el-form-item
239
- size="large"
240
294
  prop="target"
241
295
  :rules="active == 6 ? phone.rules : email.rules"
242
296
  >
243
297
  <el-input
244
298
  v-model="formData.target"
245
- size="large"
246
299
  type="text"
247
300
  name="target"
248
301
  tabindex="4"
@@ -257,18 +310,16 @@
257
310
  </el-input>
258
311
  </el-form-item>
259
312
  <el-form-item
260
- size="large"
261
313
  prop="verificationCode"
262
314
  :rules="[{ required: true, message: '验证码不能为空' }]"
263
315
  >
264
316
  <el-input
265
- size="large"
266
317
  name="verificationCode"
267
318
  type="text"
268
319
  v-model="formData.verificationCode"
269
320
  placeholder="请输入验证码"
270
321
  autocomplete="off"
271
- class="es-label-image-code"
322
+ class="es-label-image-code es-label-get-code"
272
323
  tabindex="5"
273
324
  >
274
325
  <template slot="prefix">
@@ -285,31 +336,35 @@
285
336
  </template>
286
337
  </el-input>
287
338
  </el-form-item>
288
- <div class="es-password-handle" v-show="remember || forget">
289
- <el-checkbox
290
- v-show="remember && active == '0'"
291
- v-model="checked"
292
- >记住密码</el-checkbox
293
- >
294
- <div
295
- v-show="forget"
296
- class="es-password-forget"
297
- @click="handleForget"
298
- >
299
- 忘记密码?
339
+ <div>
340
+ <div class="es-password-handle">
341
+ <el-checkbox
342
+ v-show="remember && active == '0'"
343
+ v-model="checked"
344
+ >记住密码</el-checkbox
345
+ >
346
+ <div
347
+ v-show="forget"
348
+ class="es-password-forget"
349
+ @click="handleForget"
350
+ >
351
+ 修改密码
352
+ </div>
300
353
  </div>
354
+ <el-button
355
+ class="es-button-submit"
356
+ type="primary"
357
+ @click="handleLogin"
358
+ >登录</el-button
359
+ >
301
360
  </div>
302
- <el-button
303
- class="es-button-submit"
304
- type="primary"
305
- @click="handleLogin"
306
- >登录</el-button
307
- >
308
361
  </el-form>
309
362
  </template>
310
- <div class="es-downloadSetup" v-if="downloadSetup">
363
+ <div class="es-downloadSetup" v-if="downloadSetup || $slots.button">
311
364
  <slot name="button"></slot>
312
- <span @click="downloadExe">初次使用请下载一键安装包</span>
365
+ <span class="es-setup" @click="downloadExe"
366
+ >初次使用请下载一键安装包</span
367
+ >
313
368
  </div>
314
369
  <div class="es-warning" v-if="warnInfo">
315
370
  {{ warnInfo }}
@@ -419,6 +474,29 @@ export default {
419
474
  type: String,
420
475
  default: 'default'
421
476
  },
477
+ switchs: {
478
+ type: Array,
479
+ default() {
480
+ return [
481
+ {
482
+ type: '0',
483
+ icon: 'es-icon-zhuomian'
484
+ },
485
+ {
486
+ type: '3',
487
+ name: '手机扫码登录',
488
+ icon: 'es-icon-qrcode',
489
+ tips: '扫码登陆在这里',
490
+ background:
491
+ 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAoCAYAAAA2cfJIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LmRhYmFjYmIsIDIwMjEvMDQvMTQtMDA6Mzk6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMi40IChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjZFRTVERTUxQzRDMzExRUY4NkFGQ0U2RDY3NEFERkI0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjZFRTVERTUyQzRDMzExRUY4NkFGQ0U2RDY3NEFERkI0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NkVFNURFNEZDNEMzMTFFRjg2QUZDRTZENjc0QURGQjQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NkVFNURFNTBDNEMzMTFFRjg2QUZDRTZENjc0QURGQjQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz64XoEfAAAB/UlEQVR42uycOUsDQRiG99vdHJ4JHhFN1EhEQkBsRVACghBbKytBf4OiNrZipQHtRLASsbJIQDQGBVHBysIDAxIvPBCCGpO4ZvwWrCT+gZ33gWV2mam+95mZPWDpcGZYCYQjY4oQs0Y+lxDF4qcCLAFpWrVud/QqRJOpZHy55Jjn3dUODv/oJXU+krm9vkPZrIXL29JU2x5aIaIeluDyb7/KxyDP/C2Eb00yd+l7znfHzLlUvymAk5f9LEplXYRhPHHT8J8AQGIgAAQAEABAAAABAAQAEABAAAABAAQAEABYAiGKBW66A+FIGQSQkIfTk3UjnzM/+G2zBDUQQDK+C3kjfZic+cp+XPHlPkvQCgGk2waESB/vRfNvmdivBJ0QQEJuTw7Wsq/PS7/bQRgCSEjh4/2GlwTNXAAggGS4m9uaXT7/vEI0mkrGExBAIqoafZ6ato5FIprg8DdxDyAR5bUed317KEqqusDhr+ApQCLsFZXOhlDXPGnaBoc/h/cAkuEJdg2pmp7i0+m/fRBAAnjPt3FzxrNfQAAAAQAEABAAQAAAASAAgAAAAgAIAGQVIEeqWo5SWBfSdQ83j/8JENMdzgGXz+9FqayH+ZMozrefT+Ol+nXzz1GBcGS8LhBcdvv8iaJhPKJsFlnebTavbnf0KURTnPNFqTE/AgwAPZCY5D/YjJ4AAAAASUVORK5CYII='
492
+ }
493
+ ];
494
+ }
495
+ },
496
+ switchsActive: {
497
+ type: String,
498
+ default: '0'
499
+ },
422
500
  launch: Boolean,
423
501
  param: {
424
502
  type: Object,
@@ -676,7 +754,7 @@ export default {
676
754
  }
677
755
  return '本系统为非涉密系统,禁止上传和处理任何涉密文件';
678
756
  },
679
- switchs() {
757
+ modelLength() {
680
758
  return Array.isArray(this.loginModel)
681
759
  ? this.loginModel.length
682
760
  : this.loginModel.split(',').length;
@@ -862,7 +940,8 @@ export default {
862
940
  showLaunch: false,
863
941
  launchImages: this.launchImage,
864
942
  launchKey: 'day',
865
- launchTime: 3000
943
+ launchTime: 2000,
944
+ switchActive: this.switchsActive
866
945
  };
867
946
  },
868
947
  beforeCreate() {
@@ -1071,6 +1150,23 @@ export default {
1071
1150
  this.$refs[ref] && this.$refs[ref].clearValidate();
1072
1151
  });
1073
1152
  },
1153
+ switchLoginType(res) {
1154
+ this.countdown = 0;
1155
+ if (res) {
1156
+ this.active = res.type;
1157
+ this.title = res.name || '';
1158
+ this.switchActive = res.type;
1159
+ } else {
1160
+ this.active = this.switchs[0].type;
1161
+ this.title = '';
1162
+ this.switchActive = this.switchs[0].type;
1163
+ }
1164
+ this.$emit('change-type', res, this.identifyingId);
1165
+ this.$nextTick(() => {
1166
+ let ref = 'login' + this.active;
1167
+ this.$refs[ref] && this.$refs[ref].clearValidate();
1168
+ });
1169
+ },
1074
1170
  isShow(res) {
1075
1171
  return this.loginModel.indexOf(res) > -1;
1076
1172
  },
Binary file
Binary file
@@ -487,7 +487,7 @@ export default {
487
487
  set: !this.showSet,
488
488
  index: this.doorIndex ? false : true,
489
489
  system: true,
490
- home: this.homePage ? false : tru
490
+ home: this.homePage ? false : true
491
491
  };
492
492
 
493
493
  if (this.layout === 'subsystem' || this.application) {
@@ -654,16 +654,7 @@ export default {
654
654
  this.isLoadHomePage = false;
655
655
  }
656
656
  this.isHeader = params.header;
657
- let sysLogoIco = sessionStorage.getItem('sysLogoIco');
658
- sysLogoIco && util.setFavicon(sysLogoIco);
659
657
 
660
- let mainConfig = util.getStorage('mainConfig');
661
- if (mainConfig) {
662
- const results = JSON.parse(mainConfig);
663
- if (Object.keys(results).length) {
664
- this.init(results);
665
- }
666
- }
667
658
  this.doorIndex = sessionStorage.getItem('doorIndex');
668
659
  },
669
660
  mounted() {
@@ -869,7 +860,7 @@ export default {
869
860
  util.setStorage('loginPage', results[i]);
870
861
  }
871
862
  if (i === 'sysLogoIco' && results[i]) {
872
- sessionStorage.setItem('sysLogoIco', results[i]);
863
+ localStorage.setItem('sysLogoIco', results[i]);
873
864
  util.setFavicon(results[i]);
874
865
  }
875
866
  if (i === 'userStyle' && results[i] && results[i].color) {
@@ -1994,6 +1985,7 @@ export default {
1994
1985
  this.notice = data[i];
1995
1986
  if (this.showMsg) {
1996
1987
  this.$refs.message.getMsg(true);
1988
+ this.$emit('bus-emit', 'waitdone');
1997
1989
  }
1998
1990
  }
1999
1991
  if (i === 'menuTipsMap') {
@@ -52,6 +52,7 @@
52
52
  :visible.sync="dialog.show"
53
53
  :url="dialog.url"
54
54
  :param="dialog.params"
55
+ @close="handleClose"
55
56
  ></es-dialog>
56
57
  </el-drawer>
57
58
  </template>
@@ -207,7 +208,15 @@ export default {
207
208
  this.count -= 1;
208
209
  this.msgs.splice(index, 1);
209
210
  if (this.winopen) {
210
- util.win.open(item.handlerUrl);
211
+ const mywin = util.win.open(item.handlerUrl);
212
+ if (mywin) {
213
+ let times = setInterval(() => {
214
+ if (mywin.closed) {
215
+ clearInterval(times);
216
+ this.$parent.$emit('bus-emit', 'waitdone');
217
+ }
218
+ }, 1000);
219
+ }
211
220
  } else {
212
221
  this.dialog = {
213
222
  show: true,
@@ -231,6 +240,9 @@ export default {
231
240
  this.$emit('handle', id);
232
241
  }
233
242
  this.dialog.show = false;
243
+ },
244
+ handleClose() {
245
+ this.$parent.$emit('bus-emit', 'waitdone');
234
246
  }
235
247
  }
236
248
  };
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
  <div
36
36
  class="es-notice-footer"
37
- style="display:flex;justify-content: space-between;"
37
+ style="display: flex; justify-content: space-between"
38
38
  >
39
39
  <span @click="handleIgnoreAll">忽略全部</span
40
40
  ><span @click="afterEnter">我知道了</span>
@@ -48,6 +48,7 @@
48
48
  :visible.sync="dialog.show"
49
49
  :url="dialog.url"
50
50
  :param="dialog.params"
51
+ @close="handleClose"
51
52
  ></es-dialog>
52
53
  </div>
53
54
  </transition>
@@ -104,13 +105,13 @@ export default {
104
105
  .ajax({
105
106
  url: ignoreAllSysMsg
106
107
  })
107
- .then(res => {
108
+ .then((res) => {
108
109
  this.count = 0;
109
110
  this.msgs = [];
110
111
  this.$emit('ignore', { type: 'ignore', value: 'all' });
111
112
  this.$emit('opened', false);
112
113
  })
113
- .catch(err => {
114
+ .catch((err) => {
114
115
  if (err.message && err.message !== 'canceled') {
115
116
  this.$message.error(err.message);
116
117
  }
@@ -119,7 +120,15 @@ export default {
119
120
  //处理消息
120
121
  handleMessage(item, index) {
121
122
  if (item.urlopenmode === 1 || this.winopen) {
122
- util.win.open(item.handlerUrl);
123
+ const mywin = util.win.open(item.handlerUrl);
124
+ if (mywin) {
125
+ let times = setInterval(() => {
126
+ if (mywin.closed) {
127
+ clearInterval(times);
128
+ this.$parent.$emit('bus-emit', 'waitdone');
129
+ }
130
+ }, 1000);
131
+ }
123
132
  } else {
124
133
  this.dialog = {
125
134
  show: true,
@@ -139,6 +148,9 @@ export default {
139
148
  this.msgs = this.msgs.splice(this.index, 1);
140
149
  }
141
150
  this.dialog.show = false;
151
+ },
152
+ handleClose() {
153
+ this.$parent.$emit('bus-emit', 'waitdone');
142
154
  }
143
155
  }
144
156
  };