system-clients 3.2.22 → 3.2.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.22",
3
+ "version": "3.2.24",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,24 +1,24 @@
1
- <template>
2
- <app-base class="bg">
3
- <div class='flex'>
4
- <article>
5
- <!--<route :comp="{name: 'check-model'}"></route>-->
6
- <!--<route :comp="{name: 'vender-management'}"></route>-->
7
- <route :comp="{name: 'login'}"></route>
8
- <!-- <route :comp="{name: 'load-data'}"></route> -->
9
- <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
- <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
- </article>
12
- </div>
13
- </app-base>
14
- </template>
15
-
16
- <script>
17
- // import cardListen from './plugins/CardListen'
18
-
19
- export default {
20
- // ready () {
21
- // cardListen.startListen()
22
- // }
23
- }
24
- </script>
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <!--<route :comp="{name: 'check-model'}"></route>-->
6
+ <!--<route :comp="{name: 'vender-management'}"></route>-->
7
+ <route :comp="{name: 'login'}"></route>
8
+ <!-- <route :comp="{name: 'load-data'}"></route> -->
9
+ <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
+ <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
+ </article>
12
+ </div>
13
+ </app-base>
14
+ </template>
15
+
16
+ <script>
17
+ // import cardListen from './plugins/CardListen'
18
+
19
+ export default {
20
+ // ready () {
21
+ // cardListen.startListen()
22
+ // }
23
+ }
24
+ </script>
@@ -383,7 +383,7 @@ export default {
383
383
  }
384
384
  },
385
385
  openUrl() {
386
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
386
+ var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
387
387
  window.open(url, '_blank')
388
388
  },
389
389
  hindsetting() {
@@ -0,0 +1,520 @@
1
+ <template>
2
+ <div class="syslogin">
3
+ <div class="login-title" >
4
+ <div class="row auto">
5
+ <marquee style="width:80%;margin-top:25px"><span style="font-size: 1.8rem;color: white;">{{notice}}</span></marquee>
6
+ <div class="login-title-chi" style="white-space: nowrap;margin-right:-5%">
7
+ <div v-if="titleShow">
8
+ <img src="../../../static/newStyle/login-info.png"/>
9
+ <span @click="showus=true">关于我们</span>
10
+ </div>
11
+ <!-- <img src="../../../static/newStyle/login-con.png"/>-->
12
+ <!-- <span>联系我们</span>-->
13
+ </div>
14
+ </div>
15
+ </div>
16
+
17
+ <modal :show.sync="showus" backdrop="true" width="50%" style="width:auto;">
18
+ <article slot="modal-body" class="modal-body" >
19
+ <img style="height:100%;width:100%" src="../../../static/newStyle/about-us.png"/>
20
+ </article>
21
+ <footer slot="modal-footer" class="modal-footer">
22
+ </footer>
23
+ </modal>
24
+
25
+
26
+ <div class="logoew" v-if="logoandroid" >
27
+ <div v-if="logoandroid" class="imglogo"></div>
28
+ <p class="logocontent">燃气客服系统Android版</p>
29
+ <p class="logofooter">(仅浏览器扫描)</p>
30
+ </div>
31
+ <!--输入框-->
32
+ <div class="loginmain">
33
+ <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
34
+ <div class="loginmain-left">
35
+ <img class="loginmain-left-img" src="../../../static/newStyle/login-left.png">
36
+ </div>
37
+ <div class="loginmain-right">
38
+ <div style="height: 22%;line-height:22%;display: flex;text-align: center;justify-content: center">
39
+ <img style="height: 100%" src="../../../static/newStyle/chengtou-logo.jpg">
40
+ <p @click="theme()" style="white-space: nowrap;height: 30%;font-weight:550;margin-top:9%;line-height: 30%;font-size: 2.3rem;letter-spacing: 3px">{{config.title}}</p>
41
+ </div>
42
+ <form v-show="!login">
43
+ <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
44
+ <div class="login-input">
45
+ <img src="../../../static/newStyle/login-user.png"/>
46
+ <input type="text" style="display: inline;background-color: white!important;" placeholder="用户名" v-model="model.ename"/>
47
+ </div>
48
+ <div class="login-input">
49
+ <img src="../../../static/newStyle/login-pwd.png"/>
50
+ <input type="password" placeholder="密码" style="display: inline;background-color: darkgray;" v-model="model.password"
51
+ @keyup.enter="confirm('key')"/>
52
+ </div>
53
+ <div class="login-input-1" v-if="$login.Verification">
54
+ <img src="../../../static/newStyle/login-check.png"/>
55
+ <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"
56
+ v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>
57
+ </div>
58
+ <div class="login-input-2" >
59
+ <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"
60
+ type="button" @click="createCode" v-model="checkCode"/>
61
+ </div>
62
+ <div class="login-bt">
63
+ <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
64
+ </div>
65
+ <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
66
+ <!-- @keyup.enter="confirm('key')">-->
67
+ <!-- <input v-if="$login.Verification" styljiaoyane="width: 40%; display: inline" type="text" placeholder="请输入验证码"-->
68
+ <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')">-->
69
+ <!-- <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"-->
70
+ <!-- type="button" @click="createCode" v-model="checkCode"/><br>-->
71
+
72
+ <!-- <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> -->
73
+ <!-- <span @click="register()">还没有注册,现在注册>>></span> -->
74
+ </form>
75
+ <div v-show="login" class="login_load">
76
+ <img src="../../../static/newStyle/login-do.gif">
77
+ </div>
78
+ </div>
79
+ </div>
80
+ <div class="login-foot" v-show="false">
81
+ 技术支持:西安奥枫软件有限公司
82
+ </div>
83
+ <div class="login-foot" v-show="$login.BAinformation">
84
+ {{{ $login.BAinformation }}}
85
+ </div>
86
+
87
+ <modal v-if="depPromptShow" :show.sync="depPromptShow" :backdrop="false" v-ref:modal >
88
+ <header slot="modal-header" style="height: 8vh" class="modal-header">
89
+ <!--<h4 class="modal-title">登录信息</h4>-->
90
+ </header>
91
+ <article slot="modal-body" class="modal-body">
92
+ <form class="form-horizontal">
93
+ <div class="row">
94
+ <div class="col-sm-12 form-group">
95
+ <label class="col-sm-5 ">当前登录人:</label>
96
+ <label style="font-weight:normal">{{$login.f.name}}</label>
97
+ </div>
98
+ <!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
99
+ <!--<label class="col-sm-5 ">组&nbsp;织&nbsp;编&nbsp;码:</label>-->
100
+ <!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
101
+ <!-- <div class="col-sm-7">
102
+ <span >{{$login.f.number}}</span>
103
+ </div> -->
104
+ <!--</div>-->
105
+ <div class="col-sm-12 form-group">
106
+ <label class="col-sm-5">所在销售点:</label>
107
+ <label style="font-weight:normal">{{$login.f.deps}}</label>
108
+ <!-- <div class="col-sm-7">
109
+ <span >{{$login.f.deps}}</span>
110
+ </div> -->
111
+ </div>
112
+ <div class="col-sm-12 " v-if="AppDaiBan !==''">
113
+ <label class="col-sm-2">报装待办:</label>
114
+ <span style="font-weight:normal">{{AppDaiBan}}</span>
115
+ </div>
116
+ <div class="col-sm-12 " v-if="OrderDaiBan !==''">
117
+ <label class="col-sm-2">预约待办:</label>
118
+ <span style="font-weight:normal">{{OrderDaiBan}}</span>
119
+ </div>
120
+ <div class="col-sm-12 " v-for="daibanitem in safecheckDaiBan">
121
+ <label class="col-sm-2">{{daibanitem.oldData.title}}:</label>
122
+ <span style="font-weight:normal">{{daibanitem.text}}</span>
123
+ </div>
124
+ </div>
125
+ </form>
126
+ </article>
127
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
128
+ <button class="button_search" @click="depPromptConfirm">确认</button>
129
+ <button class="button_clear" @click="depPromptCancel">取消</button>
130
+ </footer>
131
+ </modal>
132
+
133
+ <!-- 修改密码组件 -->
134
+ <modify-pw :show.sync="modifyPwShow" v-if="modifyPwShow"></modify-pw>
135
+ </div>
136
+
137
+ </template>
138
+
139
+ <script>
140
+ import co from 'co'
141
+ import $ from 'jquery'
142
+ import Vue from 'vue'
143
+ import {HttpResetClass} from 'vue-client'
144
+
145
+ let daibanJson = require('../../util/Daiban.json')
146
+
147
+
148
+ let saveGen = function *(self) {
149
+ try {
150
+ if(self.$login){
151
+ // 账号ename,密码password,是否显示异地登陆
152
+ yield self.$login.login(self.model.ename, self.model.password, true)
153
+ }
154
+ if(self.$appdata){
155
+ yield self.$appdata.load()
156
+
157
+ }
158
+ if (Vue.$heatCompatibility) {
159
+ try {
160
+ if(self.$loginHeat){
161
+ yield self.$loginHeat.login(self.model.ename, self.model.password)
162
+ }
163
+ if(self.$appdataHeat){
164
+ yield self.$appdataHeat.load()
165
+ }
166
+ } catch (e) {
167
+ console.log('热力系统登陆失败!')
168
+ }
169
+ }
170
+ yield self.$getConfig(self, 'Login')
171
+ console.log('登录配置', self.config)
172
+ if (self.config.isMac) {
173
+ // 获取该登录人分公司下的mac配置
174
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
175
+ resolveMsg: null,
176
+ rejectMsg: null
177
+ }).catch(() => {
178
+ throw new Error('获取mac配置失败')
179
+ })
180
+ console.log('MAC地址信息', getMacs)
181
+ // 获取本地mac地址
182
+ let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
183
+ resolveMsg: null,
184
+ rejectMsg: null
185
+ }).catch(() => {
186
+ throw new Error('获取本地mac配置失败')
187
+ })
188
+ console.log('本地MAC地址信息', getLocalMac)
189
+ // 对Mac地址进行匹配
190
+ let macValidate = false
191
+ for (let i = 0; i < getLocalMac.data.mac.length; i++) {
192
+ for (let j = 0; j < getMacs.data.length; j++) {
193
+ if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
194
+ macValidate = true
195
+ }
196
+ }
197
+ }
198
+ if (!macValidate) {
199
+ throw new Error('Mac地址验证失败, 请联系管理员!!')
200
+ }
201
+ }
202
+ console.log(self.$login.depPrompt)
203
+ // 弱口令验证
204
+ //跳转过来的不进行验证
205
+ if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
206
+ self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
207
+ self.modifyPwShow = true
208
+ })
209
+ } else if ((!self.otherLogin) && self.$login.depPrompt) {
210
+ self.depPromptShow = true
211
+ if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
212
+ // 获取待办
213
+ self.getDaiBan()
214
+
215
+ }
216
+ if (self.$login.showDaiBan && self.$login.r.includes('登录预约信息')){
217
+ // 获取待办 在util下有个Daiban.jsond 文件 ,在里面进行配置,在功能权限界面增加登录预约信息
218
+ self.getDaiBanA()
219
+ }
220
+ } else {
221
+ self.$goto('home-page', {functions: self.$login.f,config: self.config})
222
+ // if (self.otherLogin){
223
+ // window.history.pushState(null,null,'')
224
+ // }
225
+ if (self.$login) {
226
+ console.log('登录信息', self.$login.f)
227
+ global.login=self.$login.f
228
+ console.log('登录信息', global.login)
229
+ }
230
+ }
231
+
232
+ } catch (ret) {
233
+ console.error('登录失败', ret)
234
+ let msg
235
+ if (ret instanceof Error) {
236
+ msg = ret
237
+ }
238
+ if (ret.status === 0) {
239
+ msg = '服务连接错误,请确认服务状态'
240
+ } else if (ret.status === 401) {
241
+ msg = ret.data
242
+ } else if (ret.status === 710) {
243
+ msg = ret.data
244
+ }
245
+ self.createCode()
246
+ self.picLyanzhengma = ''
247
+ yield self.$showMessage(msg)
248
+ self.model.ename = ''
249
+ self.model.password = ''
250
+ self.login = false
251
+ $('form').fadeIn(500)
252
+ }
253
+ }
254
+ export default {
255
+ title: '登录',
256
+ async ready () {
257
+ this.titleShow = this.$appdata.getSingleValue('关于我们')
258
+ try{
259
+ let http = new HttpResetClass()
260
+ let res = await http.load('POST', 'rs/sql/singleTable',
261
+ {data:{
262
+ tablename: 't_changedeclare',
263
+ condition: ` f_type ='变更通知' `
264
+ }
265
+ }, {resolveMsg: null, rejectMsg: null})
266
+ if(res.data.length>0){
267
+ console.log("---------------获取通知",res.data[0].f_change_message)
268
+ this.notice=res.data[0].f_change_message
269
+ }
270
+ }catch(e){}
271
+
272
+ this.loginother();
273
+ $('#login-button').click(function (event) {
274
+ event.preventDefault()
275
+ $('form').fadeOut(500)
276
+ })
277
+ if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
278
+ const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
279
+ console.log(subUrl)
280
+ this.model.ename = window.atob(subUrl[0])
281
+ this.model.password = window.atob(subUrl[1])
282
+ console.log('this.model.ename',this.model.ename)
283
+ this.otherLogin = true
284
+ this.confirm()
285
+ }else{
286
+ //跳转不需要验证码
287
+ this.createCode()
288
+ }
289
+ console.log(this.$login)
290
+ },
291
+ data () {
292
+ return {
293
+ image:{
294
+ img1: '/images/newStyle/login-info.png',
295
+ img2: '/images/newStyle/login-con.png',
296
+ img3: '/images/newStyle/login-left.png',
297
+ img4: '/images/newStyle/login-user.png',
298
+ img5: '/images/newStyle/login-pwd.png',
299
+ img6: '/images/newStyle/login-check.png',
300
+ img7: '/images/newStyle/login-do.png',
301
+ },
302
+ config: {
303
+ isMac: false,
304
+ depPrompt: false,
305
+ weakPassword: false,
306
+ title: '渭南城投能源燃气客服系统',
307
+ distanceLogin: false,
308
+ // 那些角色可以定时获取预约提示
309
+ isTip : false,
310
+ // 那些角色可以定时获取预约提示
311
+ msgRole : '预约处理人员',
312
+ // 定时获取提示间隔 单位:分钟
313
+ times: 25,
314
+ },
315
+ titleShow: true, //标题显示
316
+ otherLogin:false,
317
+ login: false,
318
+ depPromptShow: false,
319
+ model: {},
320
+ show: false,
321
+ checkCode: '',
322
+ login_do:true,
323
+ picLyanzhengma: '',
324
+ // 修改密码弹框展示
325
+ modifyPwShow: false,
326
+ logoandroid:false,
327
+ showus:false,
328
+ notice:'',
329
+ loginotherflag :true,
330
+ // 报建待办
331
+ AppDaiBan: '',
332
+ //安检待办
333
+ safecheckDaiBan:[],
334
+ // 预约待处理
335
+ OrderDaiBan: ''
336
+ }
337
+ },
338
+ methods: {
339
+ async getDaiBan(){
340
+ let http = new HttpResetClass()
341
+ let condition = ''
342
+ if(this.$login.f.deps!=='柠条塔'){
343
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
344
+ } else {
345
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
346
+ }
347
+ await http.load('POST', '/rs/sql/singleTable', {data: {
348
+ tablename:'t_order_center',
349
+ condition:condition
350
+ }}, {
351
+ resolveMsg: null,
352
+ rejectMsg: null
353
+ }).then((res) => {
354
+ let OrderDaiBan = {}
355
+ res.data.forEach(item=>{
356
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
357
+ OrderDaiBan[item.f_ordertype].push(item)
358
+ })
359
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
360
+ if (res.data.length> 0){
361
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
362
+ }
363
+ })
364
+ let data = {
365
+ condition: '1 = 1',
366
+ data: {
367
+ orgid: this.$login.f.orgid,
368
+ id: this.$login.f.id
369
+ }
370
+ }
371
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
372
+ resolveMsg: null,
373
+ rejectMsg: null
374
+ }).then((res) => {
375
+ let AppDaiBan = {}
376
+ res.data.forEach(item=>{
377
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
378
+ AppDaiBan[item.defname].push(item)
379
+ })
380
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
381
+ if (res.data.length> 0){
382
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
383
+ }
384
+ })
385
+
386
+ },
387
+ async getDaiBanA(){
388
+ // 是否全局开启待办通知
389
+ if (daibanJson.enable) {
390
+ console.log("当前获取到待办配置为" + JSON.stringify(daibanJson))
391
+ let http = new HttpResetClass()
392
+ let daibanArray = []
393
+ for (let daibanItem of daibanJson.daiban) {
394
+ console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
395
+ if (daibanItem.enable) { // 控制每一项通知是否开启
396
+ let postResult = ''; //提示信息为
397
+ await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
398
+ .then((res)=>{
399
+ let responseData = res.data
400
+ for (let item of responseData) {
401
+ postResult += eval(daibanItem.text) + "\n"
402
+ }
403
+ postResult += '\t'
404
+ daibanArray.push({text:postResult,oldData:daibanItem})
405
+ })
406
+ }
407
+ }
408
+ console.log("安检数据为:"+JSON.stringify(daibanArray))
409
+ this.safecheckDaiBan = daibanArray
410
+ }else {
411
+ console.log("待办提醒全局关闭。")
412
+ }
413
+
414
+
415
+
416
+
417
+ },
418
+
419
+ async loginother(){
420
+ if (this.config.distanceLogin) {
421
+ if (this.$login && this.$login.getUrlParames('name') ) {
422
+ let ename = this.$login.getUrlParames('name');
423
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
424
+ if(logininfo.data){
425
+ if(logininfo.data.ename && logininfo.data.password){
426
+ this.model.ename = logininfo.data.ename
427
+ this.model.password =logininfo.data.password
428
+ let gen = saveGen(this)
429
+ return co(gen)
430
+ }
431
+ }
432
+ }
433
+ }
434
+ },
435
+ theme(){
436
+ // var elementList = document.querySelectorAll('body');
437
+ // console.log(elementList)
438
+ // document.querySelectorAll('body')[0].className='themeTwo'
439
+ // var elementList = document.querySelectorAll('body');
440
+ // console.log(elementList)
441
+ },
442
+ onReady () {
443
+ this.$emit('ready')
444
+ },
445
+ confirm (key) {
446
+ this.login_do=!this.login_do
447
+ // return
448
+ if (key == 'key') {
449
+ $('form').fadeOut(500)
450
+ }
451
+ this.login = true
452
+ // let gen = saveGen(this)
453
+ // return co(gen)
454
+ if((!this.otherLogin) && this.$login && this.$login.Verification){
455
+ console.log('跳转过来的不走验证')
456
+ if(this.picLyanzhengma == '') {
457
+ this.$showMessage("请输入验证码!").then(()=>{
458
+ this.login = false
459
+ $('form').fadeIn(500)
460
+ this.createCode()
461
+ })
462
+ }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
463
+ //若输入的验证码与产生的验证码不一致时
464
+ this.$showMessage("验证码不正确").then(()=>{
465
+ this.login = false
466
+ $('form').fadeIn(500)
467
+ this.createCode();//刷新验证码
468
+ this.picLyanzhengma = '';
469
+ })
470
+ }else {
471
+ this.login = true
472
+ let gen = saveGen(this)
473
+ return co(gen)
474
+ }
475
+ }else {
476
+ this.login = true
477
+ let gen = saveGen(this)
478
+ return co(gen)
479
+ }
480
+ },
481
+ createCode(){
482
+ let code = "";
483
+ let codeLength = 4;//验证码的长度
484
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
485
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
486
+ for (let i = 0; i < codeLength; i++) {
487
+ //循环操作
488
+ let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
489
+ code += random[index];//根据索引取得随机数加到code上
490
+ }
491
+ this.checkCode = code;//把code值赋给验证码
492
+ },
493
+
494
+ async depPromptConfirm () {
495
+ this.depPromptShow = false
496
+ return this.$goto('home-page', {functions: this.$login.f,config: this.config})
497
+ },
498
+
499
+ depPromptCancel () {
500
+ this.depPromptShow = false
501
+ this.createCode()
502
+ this.picLyanzhengma = ''
503
+ this.model.ename = ''
504
+ this.model.password = ''
505
+ this.login = false
506
+ $('form').fadeIn(500)
507
+ }
508
+ },
509
+ watch: {
510
+ 'modifyPwShow' (val){
511
+ if (!val) {
512
+ window.location.reload()
513
+ }
514
+ }
515
+ }
516
+ }
517
+ </script>
518
+
519
+ <style>
520
+ </style>
@@ -0,0 +1,5 @@
1
+ // 分公司特殊组件页面注册
2
+
3
+ exports.specialComp = {
4
+ 'login': (resolve) => require(['./Login'], resolve)
5
+ }