system-clients 3.1.90-aode → 3.1.94-aode

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 (37) hide show
  1. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  2. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  3. package/.gradle/buildOutputCleanup/cache.properties +1 -1
  4. package/.npmignore +10 -0
  5. package/build/.npmignore +1 -0
  6. package/build/webpack.base.conf.js +82 -78
  7. package/dist/static/.gitkeep +0 -0
  8. package/dist/static/batchleft.png +0 -0
  9. package/dist/static/batchright.png +0 -0
  10. package/dist/static/bluemainbg.jpg +0 -0
  11. package/dist/static/huangtengbiaozhi.png +0 -0
  12. package/dist/static/login_bg.jpg +0 -0
  13. package/dist/static/login_title.png +0 -0
  14. package/dist/static/login_title1.png +0 -0
  15. package/dist/static/loginbg.jpg +0 -0
  16. package/dist/static/loginlogo.png +0 -0
  17. package/dist/static/main_logo.png +0 -0
  18. package/dist/static/mainbg.jpg +0 -0
  19. package/dist/static/menulogo.png +0 -0
  20. package/dist/static/newmainbg.jpg +0 -0
  21. package/dist/static/psicon.png +0 -0
  22. package/dist/static/singleleft.png +0 -0
  23. package/dist/static/singleright.png +0 -0
  24. package/dist/static/treeopen.png +0 -0
  25. package/dist/static/treeout.png +0 -0
  26. package/dist/static/treeset.png +0 -0
  27. package/dist/static/usericon.png +0 -0
  28. package/dist/static/xinxi.png +0 -0
  29. package/package-lock.json +10507 -0
  30. package/package.json +1 -1
  31. package/src/.npmignore +1 -0
  32. package/src/components/Main.vue +508 -508
  33. package/src/components/server/Login.vue +711 -711
  34. package/src/components/server/RightTree.vue +343 -343
  35. package/src/plugins/GetLoginInfoService.js +5 -5
  36. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  37. /package/static/{logo.png → ewmlogo.png} +0 -0
@@ -1,508 +1,508 @@
1
- <template>
2
- <div @click="hindsetting1()">
3
-
4
- <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
5
-
6
- <div class="auto " :class="{'login-operator1':$refs.mic.tabs.length === 0,'login-operator':$refs.mic.tabs.length != 0}">
7
- <span class="glyphicon glyphicon-asterisk" style="color:#a1d0f5"></span>
8
- <span>组织编码:</span>
9
- <label style="margin-right:14px;">{{$login.f.number}}</label>
10
- <span class="glyphicon glyphicon-user" style="color:#a1d0f5"></span>
11
- <span>登录人:</span>
12
- <label>{{orgpathnames}}</label>
13
- </div>
14
- <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
15
- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >
16
- <div class="span system-left-tree " style="height:85%">
17
- <div class="logopicaode" >
18
- <div class="aodeloginedlogo"></div>
19
- </div>
20
- <h3 style="margin-bottom: 12px;height: 35px;">&nbsp;&nbsp;</h3>
21
- <!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
22
- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
23
- </div>
24
-
25
- <div class="tree-flex-footer">
26
- <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
27
- <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
28
- <dropdown class="auto">
29
- <button type="button" data-toggle="dropdown">
30
- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
31
- </button>
32
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
33
- <li>系统信息及设置</li>
34
- <!-- <li>{{name}}</li> -->
35
- <li>{{date}}</li>
36
- <li @click="show=true">修改密码</li>
37
- <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
38
- </ul>
39
-
40
- </dropdown>
41
- <a href="index.html" @click.prevent="logOut">
42
- <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
43
- </a>
44
- </div>
45
- </div>
46
- </div>
47
- <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
48
-
49
- <div class="flex right-bg system-right" id="bottom" v-el:bottom>
50
- <!-- <operator-badge></operator-badge> -->
51
- <div class="span">
52
- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
53
- <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
54
- </div>
55
- </div>
56
- </div>
57
- <div v-show="isManger">
58
- <route v-ref:route></route>
59
- </div>
60
-
61
- <!-- 变更录入 模态框 -->
62
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
63
- <!-- 修改密码组件 -->
64
- <modify-pw :show.sync="show" v-if="show"></modify-pw>
65
- <!-- 修改密码模态框 -->
66
- </div>
67
- </template>
68
-
69
- <script>
70
- import vue from 'vue'
71
- import co from 'co'
72
-
73
- window.onunload = () => {
74
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
75
- }
76
- window.onbeforeunload = () => {
77
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
78
- }
79
- export default {
80
- title: '主界面',
81
- props: ['functions', 'userid'],
82
- data () {
83
- return {
84
- // 左侧树下部三个小图标
85
- imgs: {
86
- open: '/images/lefticon/菜单伸缩.png',
87
- set: '/images/lefticon/系统设置.png',
88
- out: '/images/lefticon/退出系统.png',
89
- img1: '/images/newStyle/login-user.png',
90
- logoimg: '/static/newStyle/fife.png'
91
- // img2: '/images/lefticon/退出系统.png',
92
- },
93
- treeOrIcon: false,
94
- isManger: false,
95
- show: false,
96
- orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
97
- systemname: '客服系统',
98
- date: this.$login.toStandardDateString(),
99
- tabs:[], //已初始化页签数组
100
- selecttab:'',
101
- setting:true,
102
- srcsetting:'../../static/newStyle/setting.png'
103
-
104
- // headerHint: true, // 右侧顶部提示信息
105
- // value: 25645.26,
106
- // AddChangeMsgShow: false,
107
- // showsum: false
108
- }
109
- },
110
- ready () {
111
- let component = this.$login.getUrlCompileParames('component')
112
- if (component) {
113
- this.isManger = true
114
- this.$refs.route.init(component, {data: this.functions.functions})
115
- }
116
- if(this.$login.f.password == '1'){
117
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
118
- if(res == 'confirm')
119
- this.show = true
120
- })
121
- }
122
- console.log("系统名称",this.$appdata.getSingleValue("系统名称"))
123
- this.systemname = this.$appdata.getSingleValue("系统名称")? this.$appdata.getSingleValue("系统名称"):'客服系统'
124
- // let oBox = this.getElement("box")
125
- // let oTop = this.getElement("top")
126
- // let oBottom = this.getElement("bottom")
127
- // let oLine = this.getElement("line")
128
- // let that = this
129
- // oLine.onmousedown = function(e) {
130
- // let disX = (e || event).clientX
131
- // oLine.left = oLine.offsetLeft
132
- // document.onmousemove = function(e) {
133
- // let iT = oLine.left + ((e || event).clientX - disX)
134
- // var e = e || window.event
135
- // let tarnameb = e.target || e.srcElement
136
- // let maxT = oBox.clientWight - oLine.offsetWidth
137
- // oLine.style.margin = 0
138
- // iT < 0 && (iT = 0)
139
- // iT > maxT && (iT = maxT)
140
- // oLine.style.left = oTop.style.width = iT + "px"
141
- // oBottom.style.width = oBox.clientWidth - iT + "px"
142
- // that.$set('treeWidth', iT)
143
- // return false
144
- // }
145
- // document.onmouseup = function() {
146
- // document.onmousemove = null
147
- // document.onmouseup = null
148
- // oLine.releaseCapture && oLine.releaseCapture()
149
- // }
150
- // oLine.setCapture && oLine.setCapture()
151
- // return false
152
- // }
153
- this.changeShow()
154
- },
155
- methods: {
156
- hindsetting(){
157
-
158
- this.setting=!this.setting
159
- if(this.setting){
160
- this.srcsetting='../../static/newStyle/setting.png'
161
- }else {
162
- this.srcsetting='../../static/newStyle/setting1.png'
163
- }
164
-
165
- },
166
- hindsetting1(){
167
-
168
- if(!this.setting){
169
- this.srcsetting='../../static/newStyle/setting.png'
170
- this.setting=true
171
- }
172
-
173
- },
174
- isnodo(val){
175
- console.log(val,'ss')
176
- this.selecttab = val
177
- },
178
- unfurl () {
179
- if(this.showsum){
180
- this.showsum = false
181
- } else {
182
- this.showsum = true
183
- }
184
- },
185
- // getElement(id) {
186
- // return document.getElementById(id)
187
- // },
188
- changeShow () {
189
- // this.treeOrIcon = !this.treeOrIcon
190
- // let oBox = this.getElement("box")
191
- // let oTop = this.getElement("top")
192
- // let oBottom = this.getElement("bottom")
193
- // let oLine = this.getElement("line")
194
- // if (this.treeOrIcon) {
195
- // // oLine.style.left = oTop.style.width = 300 + "px"
196
- // oTop.style.width = 150 + "px"
197
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
198
- // }else {
199
- // oLine.style.left = oTop.style.width = 50 + "px"
200
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
201
- // }
202
- // }
203
- this.treeOrIcon = !this.treeOrIcon
204
- // if (this.treeOrIcon) {
205
- // this.$els.top.style.width = 14 + "%"
206
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
207
- // }else {
208
- // this.$els.top.style.width = 8 + "%"
209
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
210
- // }
211
- },
212
- changeMain(userid) {
213
- this.$goto('res-main', {userid: this.userid}, 'self')
214
- },
215
- tabChange (name) {
216
- console.log(name,'tabchanage')
217
- this.selecttab = name
218
- this.$refs.tree.changeSelect(name)
219
- },
220
- tabcg(val){
221
- console.log(val)
222
- this.tabs = val
223
- },
224
- logOut () {
225
- console.log(this.$login.f)
226
- this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
227
- if (res == 'confirm') {
228
- let data = {
229
- userid: this.$login.f.id,
230
- username: this.$login.f.name,
231
- usertelephone: this.$login.f.f_user_telephone
232
- }
233
- await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
234
- window.location.reload()
235
- }
236
- })
237
- }
238
- },
239
- computed: {
240
- nowDate () {
241
- return this.$login.getNowDate()
242
- }
243
- }
244
- }
245
- </script>
246
- <style lang="less">
247
- /* 组件内通用样式 */
248
- .select-error {
249
- button {
250
- border-bottom: 1px solid #a94442!important;
251
- }
252
- }
253
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
254
- // -webkit-appearance:textfield;
255
- // }
256
- /* 表单输入框组 */
257
- .form-input-group {
258
- display: flex;
259
-
260
- label {
261
- width: 100px;
262
- text-align: right;
263
- + * {
264
- flex: 1;
265
- }
266
- }
267
- }
268
- // 日期组件在表单中沾满
269
- .form-horizontal .datepicker {
270
- width: 100%;
271
- }
272
- // 下拉选择框占据剩余全部空间
273
- .select-overspread {
274
- .form-group {
275
- // margin: 0px 5px 10px 0px;
276
- .form-control {
277
- margin-right: 0px;
278
- }
279
- }
280
- .btn-group, .btn-group-vertical {
281
- width: 100%;
282
- // padding-right: 5px;
283
- button {
284
- width: 100%;
285
- display: flex;
286
- justify-content: space-between;
287
- align-items: center;
288
- }
289
- }
290
- .dropdown-menu {
291
- width: 100%
292
- }
293
- }
294
- // 需要特定宽度的的样式
295
- .width-60 {
296
- width: 60px;
297
- }
298
- .userpanel {
299
- font-weight: 300;
300
- color: #333;
301
- position: fixed;
302
- right: 30px;
303
- top: 45px;
304
- background-color: white;
305
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
306
- padding: 4px 10px 4px 10px;
307
- border-radius:2px;
308
- }
309
- .width-80 {
310
- width: 80px;
311
- }
312
- .width-100 {
313
- width: 100px;
314
- }
315
-
316
-
317
-
318
- /*右侧区域的背景*/
319
- .right-bg {
320
- width: 100%;
321
- flex: 1;
322
- color: #304A66;
323
- }
324
- .tree-flex {
325
- height: 100%;
326
- // width: 150px;
327
- /*width: 60px;*/
328
- background: #4a7cae;
329
- color: #fff;
330
-
331
- }
332
- .tree-flex-icon {
333
- width: 50px;
334
- /*transition: 0.5s;*/
335
- > .span {
336
- overflow-x: visible;
337
- }
338
- }
339
- .tree-flex h3 {
340
- text-align: center;
341
- margin: 1em 0;
342
- }
343
-
344
- .tree-flex-footer {
345
- height: 50px;
346
- display: flex;
347
- flex-direction:column;
348
- color: #fff;
349
- }
350
- .tree-flex-footer a,.tree-flex-footer button{
351
- flex: 1;
352
- padding: 8px 5px;
353
- font-size: 1.2em;
354
- // border-top: 1px solid #697D93;
355
- border-top: 1px solid #4a7cae;
356
- text-decoration: none;
357
- color: #fff;
358
- cursor: pointer;
359
- }
360
- .tree-flex-footer button {
361
- height: auto;
362
- width: 100%;
363
- border-radius: 0px;
364
- background-color: rgba(255,255,255,0);
365
- border: none;
366
- border-top: 1px solid #4a7cae;
367
- // border-top: 1px solid #697D93;
368
- text-align: left;
369
- }
370
- .tree-flex-footer button:hover{
371
- outline: none;
372
- background-color: rgba(255,255,255,0.2);
373
- }
374
- .tree-flex-footer button:focus {
375
- outline: none;
376
- background-color: rgba(255,255,255,0.5);
377
- }
378
- .tree-flex-footer a:hover {
379
- color: #FFF;
380
- background-color: rgba(255,255,255,0.2);
381
- }
382
- .tree-flex .btn-group {
383
- height: 50px!important;
384
- }
385
-
386
- .tree-flex .dropdown-menu {
387
- /* 控制显示列表的样式 */
388
- background: #4a7cae;
389
- border-radius: 0px;
390
- color: #fff;
391
- width: auto;
392
- margin: 0px;
393
- padding: 0px;
394
- }
395
- .tree-flex .dropdown-menu-up {
396
- /* bottom,top控制上下,left和right控制左右*/
397
- left: 100%!important;
398
- top: auto!important;
399
- bottom: 0;
400
- }
401
- .tree-flex .dropdown-menu-down {
402
- /* bottom,top控制上下,left和right控制左右*/
403
- left: 100%!important;
404
- top: 0!important;
405
- }
406
- .tree-flex .dropdown-menu li{
407
- text-align: center;
408
- line-height: 50px;
409
- border-bottom: 1px solid #697D93;
410
- font-size: 1.2em;
411
- width: auto;
412
- white-space: nowrap;
413
- cursor: default;
414
-
415
- }
416
- .tree-flex .dropdown-menu li + li {
417
- text-align: left;
418
- border: 0;
419
- line-height: 40px;
420
- padding-left: 15px;
421
- padding-right: 15px;
422
- font-size: 1em;
423
- cursor: pointer;
424
- }
425
- .tree-flex .dropdown-menu li + li:hover {
426
- background-color: rgba(255,255,255,0.2);
427
- }
428
- .tree-flex .dropdown-menu li a {
429
- border: none;
430
- color: #fff;
431
- height: 40px;
432
- line-height: 40px;
433
- font-size: 1em;
434
- padding: 0px;
435
- }
436
- .tree-flex .dropdown-menu li a:hover {
437
- color: #fff;
438
- background-color: rgba(255,255,255,0);
439
- }
440
- .tree-flex img{
441
- height: 1.2em;
442
- width: 1.2em;
443
- margin-right: 15px;
444
- margin-left: 5px;
445
- }
446
- .line {
447
- height: 100%;
448
- width: 5px;
449
- background: #4C637B;
450
- cursor: e-resize;
451
- }
452
- /*为树(tree)组件写的样式*/
453
- .tree-img {
454
- font-size: 1.2em;
455
- }
456
- .aodeloginedlogo {
457
- background:url(../../static/aodenewlogo.png);
458
- background-size:80%;
459
- background-repeat: no-repeat;
460
- }
461
- .logopicaode{
462
- width: 100%;
463
- height: 61px;
464
- float: left;
465
- margin-left: 2.5%;
466
- margin-top: 10px;
467
- }
468
-
469
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
470
- .cutout50 {
471
- max-width: 50px;
472
- overflow:hidden;
473
- text-overflow: ellipsis;
474
- white-space: nowrap;
475
- }
476
-
477
- /* 滚动条样式 */
478
- /*---滚动条默认显示样式--*/
479
- ::-webkit-scrollbar-thumb{
480
- // display: none;
481
- background-color:rgba(0,0,0,0.4);
482
- /*background-color:red;*/
483
- height:50px;
484
- outline-offset:-2px;
485
- /*outline:2px solid #fff;*/
486
- -webkit-border-radius:4px;
487
- /*border: 2px solid #fff;*/
488
- }
489
-
490
- /*---鼠标点击滚动条显示样式--*/
491
- ::-webkit-scrollbar-thumb:hover{
492
- // display: inherit;
493
- background-color:rgba(0,0,0,0.4);
494
- height:50px;
495
- -webkit-border-radius:4px;
496
- }
497
- /*---滚动条大小--*/
498
- ::-webkit-scrollbar{
499
- width:8px;
500
- height:8px;
501
- }
502
- /*---滚动框背景样式--*/
503
- ::-webkit-scrollbar-track-piece{
504
- /* 全透明,不显示 */
505
- background-color:rgba(255,255,255,0);
506
- -webkit-border-radius:0;
507
- }
508
- </style>
1
+ <template>
2
+ <div @click="hindsetting1()">
3
+
4
+ <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
5
+
6
+ <div class="auto " :class="{'login-operator1':$refs.mic.tabs.length === 0,'login-operator':$refs.mic.tabs.length != 0}">
7
+ <span class="glyphicon glyphicon-asterisk" style="color:#a1d0f5"></span>
8
+ <span>组织编码:</span>
9
+ <label style="margin-right:14px;">{{$login.f.number}}</label>
10
+ <span class="glyphicon glyphicon-user" style="color:#a1d0f5"></span>
11
+ <span>登录人:</span>
12
+ <label>{{orgpathnames}}</label>
13
+ </div>
14
+ <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
15
+ <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >
16
+ <div class="span system-left-tree " style="height:85%">
17
+ <div class="logopicaode" >
18
+ <div class="aodeloginedlogo"></div>
19
+ </div>
20
+ <h3 style="margin-bottom: 12px;height: 35px;">&nbsp;&nbsp;</h3>
21
+ <!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
22
+ <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
23
+ </div>
24
+
25
+ <div class="tree-flex-footer">
26
+ <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
27
+ <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
28
+ <dropdown class="auto">
29
+ <button type="button" data-toggle="dropdown">
30
+ <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
31
+ </button>
32
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
33
+ <li>系统信息及设置</li>
34
+ <!-- <li>{{name}}</li> -->
35
+ <li>{{date}}</li>
36
+ <li @click="show=true">修改密码</li>
37
+ <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
38
+ </ul>
39
+
40
+ </dropdown>
41
+ <a href="index.html" @click.prevent="logOut">
42
+ <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
43
+ </a>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
48
+
49
+ <div class="flex right-bg system-right" id="bottom" v-el:bottom>
50
+ <!-- <operator-badge></operator-badge> -->
51
+ <div class="span">
52
+ <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
53
+ <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div v-show="isManger">
58
+ <route v-ref:route></route>
59
+ </div>
60
+
61
+ <!-- 变更录入 模态框 -->
62
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
63
+ <!-- 修改密码组件 -->
64
+ <modify-pw :show.sync="show" v-if="show"></modify-pw>
65
+ <!-- 修改密码模态框 -->
66
+ </div>
67
+ </template>
68
+
69
+ <script>
70
+ import vue from 'vue'
71
+ import co from 'co'
72
+
73
+ window.onunload = () => {
74
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
75
+ }
76
+ window.onbeforeunload = () => {
77
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
78
+ }
79
+ export default {
80
+ title: '主界面',
81
+ props: ['functions', 'userid'],
82
+ data () {
83
+ return {
84
+ // 左侧树下部三个小图标
85
+ imgs: {
86
+ open: '/images/lefticon/菜单伸缩.png',
87
+ set: '/images/lefticon/系统设置.png',
88
+ out: '/images/lefticon/退出系统.png',
89
+ img1: '/images/newStyle/login-user.png',
90
+ logoimg: '/static/newStyle/fife.png'
91
+ // img2: '/images/lefticon/退出系统.png',
92
+ },
93
+ treeOrIcon: false,
94
+ isManger: false,
95
+ show: false,
96
+ orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
97
+ systemname: '客服系统',
98
+ date: this.$login.toStandardDateString(),
99
+ tabs:[], //已初始化页签数组
100
+ selecttab:'',
101
+ setting:true,
102
+ srcsetting:'../../static/newStyle/setting.png'
103
+
104
+ // headerHint: true, // 右侧顶部提示信息
105
+ // value: 25645.26,
106
+ // AddChangeMsgShow: false,
107
+ // showsum: false
108
+ }
109
+ },
110
+ ready () {
111
+ let component = this.$login.getUrlCompileParames('component')
112
+ if (component) {
113
+ this.isManger = true
114
+ this.$refs.route.init(component, {data: this.functions.functions})
115
+ }
116
+ if(this.$login.f.password == '1'){
117
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
118
+ if(res == 'confirm')
119
+ this.show = true
120
+ })
121
+ }
122
+ console.log("系统名称",this.$appdata.getSingleValue("系统名称"))
123
+ this.systemname = this.$appdata.getSingleValue("系统名称")? this.$appdata.getSingleValue("系统名称"):'客服系统'
124
+ // let oBox = this.getElement("box")
125
+ // let oTop = this.getElement("top")
126
+ // let oBottom = this.getElement("bottom")
127
+ // let oLine = this.getElement("line")
128
+ // let that = this
129
+ // oLine.onmousedown = function(e) {
130
+ // let disX = (e || event).clientX
131
+ // oLine.left = oLine.offsetLeft
132
+ // document.onmousemove = function(e) {
133
+ // let iT = oLine.left + ((e || event).clientX - disX)
134
+ // var e = e || window.event
135
+ // let tarnameb = e.target || e.srcElement
136
+ // let maxT = oBox.clientWight - oLine.offsetWidth
137
+ // oLine.style.margin = 0
138
+ // iT < 0 && (iT = 0)
139
+ // iT > maxT && (iT = maxT)
140
+ // oLine.style.left = oTop.style.width = iT + "px"
141
+ // oBottom.style.width = oBox.clientWidth - iT + "px"
142
+ // that.$set('treeWidth', iT)
143
+ // return false
144
+ // }
145
+ // document.onmouseup = function() {
146
+ // document.onmousemove = null
147
+ // document.onmouseup = null
148
+ // oLine.releaseCapture && oLine.releaseCapture()
149
+ // }
150
+ // oLine.setCapture && oLine.setCapture()
151
+ // return false
152
+ // }
153
+ this.changeShow()
154
+ },
155
+ methods: {
156
+ hindsetting(){
157
+
158
+ this.setting=!this.setting
159
+ if(this.setting){
160
+ this.srcsetting='../../static/newStyle/setting.png'
161
+ }else {
162
+ this.srcsetting='../../static/newStyle/setting1.png'
163
+ }
164
+
165
+ },
166
+ hindsetting1(){
167
+
168
+ if(!this.setting){
169
+ this.srcsetting='../../static/newStyle/setting.png'
170
+ this.setting=true
171
+ }
172
+
173
+ },
174
+ isnodo(val){
175
+ console.log(val,'ss')
176
+ this.selecttab = val
177
+ },
178
+ unfurl () {
179
+ if(this.showsum){
180
+ this.showsum = false
181
+ } else {
182
+ this.showsum = true
183
+ }
184
+ },
185
+ // getElement(id) {
186
+ // return document.getElementById(id)
187
+ // },
188
+ changeShow () {
189
+ // this.treeOrIcon = !this.treeOrIcon
190
+ // let oBox = this.getElement("box")
191
+ // let oTop = this.getElement("top")
192
+ // let oBottom = this.getElement("bottom")
193
+ // let oLine = this.getElement("line")
194
+ // if (this.treeOrIcon) {
195
+ // // oLine.style.left = oTop.style.width = 300 + "px"
196
+ // oTop.style.width = 150 + "px"
197
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
198
+ // }else {
199
+ // oLine.style.left = oTop.style.width = 50 + "px"
200
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
201
+ // }
202
+ // }
203
+ this.treeOrIcon = !this.treeOrIcon
204
+ // if (this.treeOrIcon) {
205
+ // this.$els.top.style.width = 14 + "%"
206
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
207
+ // }else {
208
+ // this.$els.top.style.width = 8 + "%"
209
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
210
+ // }
211
+ },
212
+ changeMain(userid) {
213
+ this.$goto('res-main', {userid: this.userid}, 'self')
214
+ },
215
+ tabChange (name) {
216
+ console.log(name,'tabchanage')
217
+ this.selecttab = name
218
+ this.$refs.tree.changeSelect(name)
219
+ },
220
+ tabcg(val){
221
+ console.log(val)
222
+ this.tabs = val
223
+ },
224
+ logOut () {
225
+ console.log(this.$login.f)
226
+ this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
227
+ if (res == 'confirm') {
228
+ let data = {
229
+ userid: this.$login.f.id,
230
+ username: this.$login.f.name,
231
+ usertelephone: this.$login.f.f_user_telephone
232
+ }
233
+ await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
234
+ window.location.reload()
235
+ }
236
+ })
237
+ }
238
+ },
239
+ computed: {
240
+ nowDate () {
241
+ return this.$login.getNowDate()
242
+ }
243
+ }
244
+ }
245
+ </script>
246
+ <style lang="less">
247
+ /* 组件内通用样式 */
248
+ .select-error {
249
+ button {
250
+ border-bottom: 1px solid #a94442!important;
251
+ }
252
+ }
253
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
254
+ // -webkit-appearance:textfield;
255
+ // }
256
+ /* 表单输入框组 */
257
+ .form-input-group {
258
+ display: flex;
259
+
260
+ label {
261
+ width: 100px;
262
+ text-align: right;
263
+ + * {
264
+ flex: 1;
265
+ }
266
+ }
267
+ }
268
+ // 日期组件在表单中沾满
269
+ .form-horizontal .datepicker {
270
+ width: 100%;
271
+ }
272
+ // 下拉选择框占据剩余全部空间
273
+ .select-overspread {
274
+ .form-group {
275
+ // margin: 0px 5px 10px 0px;
276
+ .form-control {
277
+ margin-right: 0px;
278
+ }
279
+ }
280
+ .btn-group, .btn-group-vertical {
281
+ width: 100%;
282
+ // padding-right: 5px;
283
+ button {
284
+ width: 100%;
285
+ display: flex;
286
+ justify-content: space-between;
287
+ align-items: center;
288
+ }
289
+ }
290
+ .dropdown-menu {
291
+ width: 100%
292
+ }
293
+ }
294
+ // 需要特定宽度的的样式
295
+ .width-60 {
296
+ width: 60px;
297
+ }
298
+ .userpanel {
299
+ font-weight: 300;
300
+ color: #333;
301
+ position: fixed;
302
+ right: 30px;
303
+ top: 45px;
304
+ background-color: white;
305
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
306
+ padding: 4px 10px 4px 10px;
307
+ border-radius:2px;
308
+ }
309
+ .width-80 {
310
+ width: 80px;
311
+ }
312
+ .width-100 {
313
+ width: 100px;
314
+ }
315
+
316
+
317
+
318
+ /*右侧区域的背景*/
319
+ .right-bg {
320
+ width: 100%;
321
+ flex: 1;
322
+ color: #304A66;
323
+ }
324
+ .tree-flex {
325
+ height: 100%;
326
+ // width: 150px;
327
+ /*width: 60px;*/
328
+ background: #4a7cae;
329
+ color: #fff;
330
+
331
+ }
332
+ .tree-flex-icon {
333
+ width: 50px;
334
+ /*transition: 0.5s;*/
335
+ > .span {
336
+ overflow-x: visible;
337
+ }
338
+ }
339
+ .tree-flex h3 {
340
+ text-align: center;
341
+ margin: 1em 0;
342
+ }
343
+
344
+ .tree-flex-footer {
345
+ height: 50px;
346
+ display: flex;
347
+ flex-direction:column;
348
+ color: #fff;
349
+ }
350
+ .tree-flex-footer a,.tree-flex-footer button{
351
+ flex: 1;
352
+ padding: 8px 5px;
353
+ font-size: 1.2em;
354
+ // border-top: 1px solid #697D93;
355
+ border-top: 1px solid #4a7cae;
356
+ text-decoration: none;
357
+ color: #fff;
358
+ cursor: pointer;
359
+ }
360
+ .tree-flex-footer button {
361
+ height: auto;
362
+ width: 100%;
363
+ border-radius: 0px;
364
+ background-color: rgba(255,255,255,0);
365
+ border: none;
366
+ border-top: 1px solid #4a7cae;
367
+ // border-top: 1px solid #697D93;
368
+ text-align: left;
369
+ }
370
+ .tree-flex-footer button:hover{
371
+ outline: none;
372
+ background-color: rgba(255,255,255,0.2);
373
+ }
374
+ .tree-flex-footer button:focus {
375
+ outline: none;
376
+ background-color: rgba(255,255,255,0.5);
377
+ }
378
+ .tree-flex-footer a:hover {
379
+ color: #FFF;
380
+ background-color: rgba(255,255,255,0.2);
381
+ }
382
+ .tree-flex .btn-group {
383
+ height: 50px!important;
384
+ }
385
+
386
+ .tree-flex .dropdown-menu {
387
+ /* 控制显示列表的样式 */
388
+ background: #4a7cae;
389
+ border-radius: 0px;
390
+ color: #fff;
391
+ width: auto;
392
+ margin: 0px;
393
+ padding: 0px;
394
+ }
395
+ .tree-flex .dropdown-menu-up {
396
+ /* bottom,top控制上下,left和right控制左右*/
397
+ left: 100%!important;
398
+ top: auto!important;
399
+ bottom: 0;
400
+ }
401
+ .tree-flex .dropdown-menu-down {
402
+ /* bottom,top控制上下,left和right控制左右*/
403
+ left: 100%!important;
404
+ top: 0!important;
405
+ }
406
+ .tree-flex .dropdown-menu li{
407
+ text-align: center;
408
+ line-height: 50px;
409
+ border-bottom: 1px solid #697D93;
410
+ font-size: 1.2em;
411
+ width: auto;
412
+ white-space: nowrap;
413
+ cursor: default;
414
+
415
+ }
416
+ .tree-flex .dropdown-menu li + li {
417
+ text-align: left;
418
+ border: 0;
419
+ line-height: 40px;
420
+ padding-left: 15px;
421
+ padding-right: 15px;
422
+ font-size: 1em;
423
+ cursor: pointer;
424
+ }
425
+ .tree-flex .dropdown-menu li + li:hover {
426
+ background-color: rgba(255,255,255,0.2);
427
+ }
428
+ .tree-flex .dropdown-menu li a {
429
+ border: none;
430
+ color: #fff;
431
+ height: 40px;
432
+ line-height: 40px;
433
+ font-size: 1em;
434
+ padding: 0px;
435
+ }
436
+ .tree-flex .dropdown-menu li a:hover {
437
+ color: #fff;
438
+ background-color: rgba(255,255,255,0);
439
+ }
440
+ .tree-flex img{
441
+ height: 1.2em;
442
+ width: 1.2em;
443
+ margin-right: 15px;
444
+ margin-left: 5px;
445
+ }
446
+ .line {
447
+ height: 100%;
448
+ width: 5px;
449
+ background: #4C637B;
450
+ cursor: e-resize;
451
+ }
452
+ /*为树(tree)组件写的样式*/
453
+ .tree-img {
454
+ font-size: 1.2em;
455
+ }
456
+ .aodeloginedlogo {
457
+ background:url(../../static/aodenewlogo.png);
458
+ background-size:80%;
459
+ background-repeat: no-repeat;
460
+ }
461
+ .logopicaode{
462
+ width: 100%;
463
+ height: 61px;
464
+ float: left;
465
+ margin-left: 2.5%;
466
+ margin-top: 10px;
467
+ }
468
+
469
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
470
+ .cutout50 {
471
+ max-width: 50px;
472
+ overflow:hidden;
473
+ text-overflow: ellipsis;
474
+ white-space: nowrap;
475
+ }
476
+
477
+ /* 滚动条样式 */
478
+ /*---滚动条默认显示样式--*/
479
+ ::-webkit-scrollbar-thumb{
480
+ // display: none;
481
+ background-color:rgba(0,0,0,0.4);
482
+ /*background-color:red;*/
483
+ height:50px;
484
+ outline-offset:-2px;
485
+ /*outline:2px solid #fff;*/
486
+ -webkit-border-radius:4px;
487
+ /*border: 2px solid #fff;*/
488
+ }
489
+
490
+ /*---鼠标点击滚动条显示样式--*/
491
+ ::-webkit-scrollbar-thumb:hover{
492
+ // display: inherit;
493
+ background-color:rgba(0,0,0,0.4);
494
+ height:50px;
495
+ -webkit-border-radius:4px;
496
+ }
497
+ /*---滚动条大小--*/
498
+ ::-webkit-scrollbar{
499
+ width:8px;
500
+ height:8px;
501
+ }
502
+ /*---滚动框背景样式--*/
503
+ ::-webkit-scrollbar-track-piece{
504
+ /* 全透明,不显示 */
505
+ background-color:rgba(255,255,255,0);
506
+ -webkit-border-radius:0;
507
+ }
508
+ </style>