system-clients 3.1.109-aode → 3.1.109-aodeToV4

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