system-clients 1.8.30-cr → 1.8.32-cr

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,469 +1,469 @@
1
- <template>
2
- <div>
3
- <div class='flex-row aaa' id="box" v-el:box v-if="!isManger">
4
- <div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">
5
- <span>
6
- <img
7
- src="../assets/people.png" height="15" width="15">
8
- 登录人:</span>
9
- <label>{{$login.f.name}}</label>
10
- <img
11
- src="../assets/arrow.png" height="6" width="10"
12
- @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"
13
- >
14
- </div>
15
- <div v-if="userpane" class="auto userpanel">
16
- <span>{{orgpathnames}}</span>
17
- </div>
18
- <div class="flex tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
19
- <h3>{{systemname}}</h3>
20
- <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;">
21
- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
22
- <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-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 @click="gotosubmitTicket()">
42
- <img :src="imgs.to" alt="" ><span v-if="treeOrIcon">售后登记</span>
43
- </a>
44
- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');">
45
- <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
46
- </a>
47
- </div>
48
- </div>
49
-
50
- <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
51
-
52
- <div class="flex right-bg" id="bottom" v-el:bottom>
53
- <!-- <operator-badge></operator-badge> -->
54
- <div class="span">
55
- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
56
- <dynamic :comps='[]' name='main' :selecttab="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
57
- </div>
58
- </div>
59
- </div>
60
- <div v-show="isManger">
61
- <route v-ref:route></route>
62
- </div>
63
-
64
- <!-- 变更录入 模态框 -->
65
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
66
- <!-- 修改密码组件 -->
67
- <modify-pw :show.sync="show" v-if="show"><modify-pw>
68
- <!-- 修改密码模态框 -->
69
- </div>
70
- </template>
71
-
72
- <script>
73
- import vue from 'vue'
74
- import co from 'co'
75
-
76
- window.onunload = () => {
77
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
78
- }
79
- window.onbeforeunload = () => {
80
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
81
- }
82
- export default {
83
- title: '主界面',
84
- props: ['functions', 'userid'],
85
- data () {
86
- return {
87
- // 左侧树下部三个小图标
88
- imgs: {
89
- open: '/images/lefticon/菜单伸缩.png',
90
- set: '/images/lefticon/系统设置.png',
91
- out: '/images/lefticon/退出系统.png',
92
- to: '/images/lefticon/售后注册.png'
93
- },
94
- treeOrIcon: false,
95
- userpane: false,
96
- isManger: false,
97
- show: false,
98
- orgpathnames: this.$login.f.orgpathnames,
99
- systemname: '客服系统',
100
- date: this.$login.toStandardDateString(),
101
- tabs:[], //已初始化页签数组
102
- selecttab:''
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
- gotosubmitTicket() {
157
- window.open(`http://aote-office.8866.org:8406/submitTicket?orgName=${this.$login.f.f_fengongsi}&contact=${this.$login.f.name}`,'_blank')
158
- },
159
- isnodo(val){
160
- this.selecttab = val
161
- },
162
- mouseenteruser(){
163
- this.userpane=true
164
- },
165
- mouseleaveuser(){
166
- this.userpane=false
167
- },
168
- unfurl () {
169
- if(this.showsum){
170
- this.showsum = false
171
- } else {
172
- this.showsum = true
173
- }
174
- },
175
- // getElement(id) {
176
- // return document.getElementById(id)
177
- // },
178
- changeShow () {
179
- // this.treeOrIcon = !this.treeOrIcon
180
- // let oBox = this.getElement("box")
181
- // let oTop = this.getElement("top")
182
- // let oBottom = this.getElement("bottom")
183
- // let oLine = this.getElement("line")
184
- // if (this.treeOrIcon) {
185
- // // oLine.style.left = oTop.style.width = 300 + "px"
186
- // oTop.style.width = 150 + "px"
187
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
188
- // }else {
189
- // oLine.style.left = oTop.style.width = 50 + "px"
190
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
191
- // }
192
- // }
193
- this.treeOrIcon = !this.treeOrIcon
194
- if (this.treeOrIcon) {
195
- this.$els.top.style.width = 160 + "px"
196
- this.$els.bottom.style.width = this.$els.box.clientWidth - 160 + "px"
197
- }else {
198
- this.$els.top.style.width = 50 + "px"
199
- this.$els.bottom.style.width = this.$els.box.clientWidth - 50 + "px"
200
- }
201
- },
202
- changeMain(userid) {
203
- this.$goto('res-main', {userid: this.userid}, 'self')
204
- },
205
- tabChange (name) {
206
- this.$refs.tree.changeSelect(name)
207
- },
208
- tabcg(val){
209
- this.tabs = val
210
- }
211
- },
212
- computed: {
213
- nowDate () {
214
- return this.$login.getNowDate()
215
- }
216
- }
217
- }
218
- </script>
219
- <style lang="less">
220
- /* 组件内通用样式 */
221
- .select-error {
222
- button {
223
- border-bottom: 1px solid #a94442!important;
224
- }
225
- }
226
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
227
- // -webkit-appearance:textfield;
228
- // }
229
- /* 表单输入框组 */
230
- .form-input-group {
231
- display: flex;
232
-
233
- label {
234
- width: 100px;
235
- text-align: right;
236
- + * {
237
- flex: 1;
238
- }
239
- }
240
- }
241
- // 日期组件在表单中沾满
242
- .form-horizontal .datepicker {
243
- width: 100%;
244
- }
245
- // 下拉选择框占据剩余全部空间
246
- .select-overspread {
247
- .form-group {
248
- // margin: 0px 5px 10px 0px;
249
- .form-control {
250
- margin-right: 0px;
251
- }
252
- }
253
- .btn-group, .btn-group-vertical {
254
- width: 100%;
255
- // padding-right: 5px;
256
- button {
257
- width: 100%;
258
- display: flex;
259
- justify-content: space-between;
260
- align-items: center;
261
- }
262
- }
263
- .dropdown-menu {
264
- width: 100%
265
- }
266
- }
267
- // 需要特定宽度的的样式
268
- .width-60 {
269
- width: 60px;
270
- }
271
- .userpanel {
272
- font-weight: 300;
273
- color: #333;
274
- position: fixed;
275
- right: 30px;
276
- top: 45px;
277
- background-color: white;
278
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
279
- padding: 4px 10px 4px 10px;
280
- border-radius:2px;
281
- }
282
- .width-80 {
283
- width: 80px;
284
- }
285
- .width-100 {
286
- width: 100px;
287
- }
288
-
289
-
290
-
291
- /*右侧区域的背景*/
292
- .right-bg {
293
- width: 100%;
294
- flex: 1;
295
- padding: 10px 25px;
296
- color: #304A66;
297
- }
298
- .tree-flex {
299
- height: 100%;
300
- // width: 150px;
301
- /*width: 60px;*/
302
- background: #4a7cae;
303
- color: #fff;
304
-
305
- }
306
- .tree-flex-icon {
307
- width: 50px;
308
- /*transition: 0.5s;*/
309
- > .span {
310
- overflow-x: visible;
311
- }
312
- }
313
- .tree-flex h3 {
314
- text-align: center;
315
- margin: 1em 0;
316
- }
317
-
318
- .tree-flex-footer {
319
- height: 150px;
320
- display: flex;
321
- flex-direction:column;
322
- color: #fff;
323
- }
324
- .tree-flex-footer a,.tree-flex-footer button{
325
- flex: 1;
326
- padding: 8px 5px;
327
- font-size: 1.2em;
328
- // border-top: 1px solid #697D93;
329
- border-top: 1px solid #4a7cae;
330
- text-decoration: none;
331
- color: #fff;
332
- cursor: pointer;
333
- }
334
- .tree-flex-footer button {
335
- height: auto;
336
- width: 100%;
337
- border-radius: 0px;
338
- background-color: rgba(255,255,255,0);
339
- border: none;
340
- border-top: 1px solid #4a7cae;
341
- // border-top: 1px solid #697D93;
342
- text-align: left;
343
- }
344
- .tree-flex-footer button:hover{
345
- outline: none;
346
- background-color: rgba(255,255,255,0.2);
347
- }
348
- .tree-flex-footer button:focus {
349
- outline: none;
350
- background-color: rgba(255,255,255,0.5);
351
- }
352
- .tree-flex-footer a:hover {
353
- color: #FFF;
354
- background-color: rgba(255,255,255,0.2);
355
- }
356
- .tree-flex .btn-group {
357
- height: 50px!important;
358
- }
359
-
360
- .tree-flex .dropdown-menu {
361
- /* 控制显示列表的样式 */
362
- background: #4C637B;
363
- border-radius: 0px;
364
- color: #fff;
365
- width: auto;
366
- margin: 0px;
367
- padding: 0px;
368
- }
369
- .tree-flex .dropdown-menu-up {
370
- /* bottom,top控制上下,left和right控制左右*/
371
- left: 100%!important;
372
- top: auto!important;
373
- bottom: 0;
374
- }
375
- .tree-flex .dropdown-menu-down {
376
- /* bottom,top控制上下,left和right控制左右*/
377
- left: 100%!important;
378
- top: 0!important;
379
- }
380
- .tree-flex .dropdown-menu li{
381
- text-align: center;
382
- line-height: 50px;
383
- border-bottom: 1px solid #697D93;
384
- font-size: 1.2em;
385
- width: auto;
386
- white-space: nowrap;
387
- cursor: default;
388
-
389
- }
390
- .tree-flex .dropdown-menu li + li {
391
- text-align: left;
392
- border: 0;
393
- line-height: 40px;
394
- padding-left: 15px;
395
- padding-right: 15px;
396
- font-size: 1em;
397
- cursor: pointer;
398
- }
399
- .tree-flex .dropdown-menu li + li:hover {
400
- background-color: rgba(255,255,255,0.2);
401
- }
402
- .tree-flex .dropdown-menu li a {
403
- border: none;
404
- color: #fff;
405
- height: 40px;
406
- line-height: 40px;
407
- font-size: 1em;
408
- padding: 0px;
409
- }
410
- .tree-flex .dropdown-menu li a:hover {
411
- color: #fff;
412
- background-color: rgba(255,255,255,0);
413
- }
414
- .tree-flex img{
415
- height: 1.2em;
416
- width: 1.2em;
417
- margin-right: 15px;
418
- margin-left: 5px;
419
- }
420
- .line {
421
- height: 100%;
422
- width: 5px;
423
- background: #4C637B;
424
- cursor: e-resize;
425
- }
426
- /*为树(tree)组件写的样式*/
427
- .tree-img {
428
- font-size: 1.2em;
429
- }
430
-
431
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
432
- .cutout50 {
433
- max-width: 50px;
434
- overflow:hidden;
435
- text-overflow: ellipsis;
436
- white-space: nowrap;
437
- }
438
-
439
- /* 滚动条样式 */
440
- /*---滚动条默认显示样式--*/
441
- ::-webkit-scrollbar-thumb{
442
- // display: none;
443
- background-color:rgba(0,0,0,0.2);
444
- height:50px;
445
- outline-offset:-2px;
446
- /*outline:2px solid #fff;*/
447
- -webkit-border-radius:4px;
448
- /*border: 2px solid #fff;*/
449
- }
450
-
451
- /*---鼠标点击滚动条显示样式--*/
452
- ::-webkit-scrollbar-thumb:hover{
453
- // display: inherit;
454
- background-color:rgba(0,0,0,0.4);
455
- height:50px;
456
- -webkit-border-radius:4px;
457
- }
458
- /*---滚动条大小--*/
459
- ::-webkit-scrollbar{
460
- width:8px;
461
- height:8px;
462
- }
463
- /*---滚动框背景样式--*/
464
- ::-webkit-scrollbar-track-piece{
465
- /* 全透明,不显示 */
466
- background-color:rgba(255,255,255,0);
467
- -webkit-border-radius:0;
468
- }
469
- </style>
1
+ <template>
2
+ <div>
3
+ <div class='flex-row aaa' id="box" v-el:box v-if="!isManger">
4
+ <div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">
5
+ <span>
6
+ <img
7
+ src="../assets/people.png" height="15" width="15">
8
+ 登录人:</span>
9
+ <label>{{$login.f.name}}</label>
10
+ <img
11
+ src="../assets/arrow.png" height="6" width="10"
12
+ @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"
13
+ >
14
+ </div>
15
+ <div v-if="userpane" class="auto userpanel">
16
+ <span>{{orgpathnames}}</span>
17
+ </div>
18
+ <div class="flex tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
19
+ <h3>{{systemname}}</h3>
20
+ <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;">
21
+ <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
22
+ <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-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 @click="gotosubmitTicket()">
42
+ <img :src="imgs.to" alt="" ><span v-if="treeOrIcon">售后登记</span>
43
+ </a>
44
+ <a href="index.html" onclick="return confirm('您确定要退出系统吗?');">
45
+ <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
46
+ </a>
47
+ </div>
48
+ </div>
49
+
50
+ <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
51
+
52
+ <div class="flex right-bg" id="bottom" v-el:bottom>
53
+ <!-- <operator-badge></operator-badge> -->
54
+ <div class="span">
55
+ <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
56
+ <dynamic :comps='[]' name='main' :selecttab="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ <div v-show="isManger">
61
+ <route v-ref:route></route>
62
+ </div>
63
+
64
+ <!-- 变更录入 模态框 -->
65
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
66
+ <!-- 修改密码组件 -->
67
+ <modify-pw :show.sync="show" v-if="show"><modify-pw>
68
+ <!-- 修改密码模态框 -->
69
+ </div>
70
+ </template>
71
+
72
+ <script>
73
+ import vue from 'vue'
74
+ import co from 'co'
75
+
76
+ window.onunload = () => {
77
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
78
+ }
79
+ window.onbeforeunload = () => {
80
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
81
+ }
82
+ export default {
83
+ title: '主界面',
84
+ props: ['functions', 'userid'],
85
+ data () {
86
+ return {
87
+ // 左侧树下部三个小图标
88
+ imgs: {
89
+ open: '/images/lefticon/菜单伸缩.png',
90
+ set: '/images/lefticon/系统设置.png',
91
+ out: '/images/lefticon/退出系统.png',
92
+ to: '/images/lefticon/售后注册.png'
93
+ },
94
+ treeOrIcon: false,
95
+ userpane: false,
96
+ isManger: false,
97
+ show: false,
98
+ orgpathnames: this.$login.f.orgpathnames,
99
+ systemname: '客服系统',
100
+ date: this.$login.toStandardDateString(),
101
+ tabs:[], //已初始化页签数组
102
+ selecttab:''
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
+ gotosubmitTicket() {
157
+ window.open(`http://aote-office.8866.org:8406/submitTicket?orgName=${this.$login.f.f_fengongsi}&contact=${this.$login.f.name}`,'_blank')
158
+ },
159
+ isnodo(val){
160
+ this.selecttab = val
161
+ },
162
+ mouseenteruser(){
163
+ this.userpane=true
164
+ },
165
+ mouseleaveuser(){
166
+ this.userpane=false
167
+ },
168
+ unfurl () {
169
+ if(this.showsum){
170
+ this.showsum = false
171
+ } else {
172
+ this.showsum = true
173
+ }
174
+ },
175
+ // getElement(id) {
176
+ // return document.getElementById(id)
177
+ // },
178
+ changeShow () {
179
+ // this.treeOrIcon = !this.treeOrIcon
180
+ // let oBox = this.getElement("box")
181
+ // let oTop = this.getElement("top")
182
+ // let oBottom = this.getElement("bottom")
183
+ // let oLine = this.getElement("line")
184
+ // if (this.treeOrIcon) {
185
+ // // oLine.style.left = oTop.style.width = 300 + "px"
186
+ // oTop.style.width = 150 + "px"
187
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
188
+ // }else {
189
+ // oLine.style.left = oTop.style.width = 50 + "px"
190
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
191
+ // }
192
+ // }
193
+ this.treeOrIcon = !this.treeOrIcon
194
+ if (this.treeOrIcon) {
195
+ this.$els.top.style.width = 160 + "px"
196
+ this.$els.bottom.style.width = this.$els.box.clientWidth - 160 + "px"
197
+ }else {
198
+ this.$els.top.style.width = 50 + "px"
199
+ this.$els.bottom.style.width = this.$els.box.clientWidth - 50 + "px"
200
+ }
201
+ },
202
+ changeMain(userid) {
203
+ this.$goto('res-main', {userid: this.userid}, 'self')
204
+ },
205
+ tabChange (name) {
206
+ this.$refs.tree.changeSelect(name)
207
+ },
208
+ tabcg(val){
209
+ this.tabs = val
210
+ }
211
+ },
212
+ computed: {
213
+ nowDate () {
214
+ return this.$login.getNowDate()
215
+ }
216
+ }
217
+ }
218
+ </script>
219
+ <style lang="less">
220
+ /* 组件内通用样式 */
221
+ .select-error {
222
+ button {
223
+ border-bottom: 1px solid #a94442!important;
224
+ }
225
+ }
226
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
227
+ // -webkit-appearance:textfield;
228
+ // }
229
+ /* 表单输入框组 */
230
+ .form-input-group {
231
+ display: flex;
232
+
233
+ label {
234
+ width: 100px;
235
+ text-align: right;
236
+ + * {
237
+ flex: 1;
238
+ }
239
+ }
240
+ }
241
+ // 日期组件在表单中沾满
242
+ .form-horizontal .datepicker {
243
+ width: 100%;
244
+ }
245
+ // 下拉选择框占据剩余全部空间
246
+ .select-overspread {
247
+ .form-group {
248
+ // margin: 0px 5px 10px 0px;
249
+ .form-control {
250
+ margin-right: 0px;
251
+ }
252
+ }
253
+ .btn-group, .btn-group-vertical {
254
+ width: 100%;
255
+ // padding-right: 5px;
256
+ button {
257
+ width: 100%;
258
+ display: flex;
259
+ justify-content: space-between;
260
+ align-items: center;
261
+ }
262
+ }
263
+ .dropdown-menu {
264
+ width: 100%
265
+ }
266
+ }
267
+ // 需要特定宽度的的样式
268
+ .width-60 {
269
+ width: 60px;
270
+ }
271
+ .userpanel {
272
+ font-weight: 300;
273
+ color: #333;
274
+ position: fixed;
275
+ right: 30px;
276
+ top: 45px;
277
+ background-color: white;
278
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
279
+ padding: 4px 10px 4px 10px;
280
+ border-radius:2px;
281
+ }
282
+ .width-80 {
283
+ width: 80px;
284
+ }
285
+ .width-100 {
286
+ width: 100px;
287
+ }
288
+
289
+
290
+
291
+ /*右侧区域的背景*/
292
+ .right-bg {
293
+ width: 100%;
294
+ flex: 1;
295
+ padding: 10px 25px;
296
+ color: #304A66;
297
+ }
298
+ .tree-flex {
299
+ height: 100%;
300
+ // width: 150px;
301
+ /*width: 60px;*/
302
+ background: #4a7cae;
303
+ color: #fff;
304
+
305
+ }
306
+ .tree-flex-icon {
307
+ width: 50px;
308
+ /*transition: 0.5s;*/
309
+ > .span {
310
+ overflow-x: visible;
311
+ }
312
+ }
313
+ .tree-flex h3 {
314
+ text-align: center;
315
+ margin: 1em 0;
316
+ }
317
+
318
+ .tree-flex-footer {
319
+ height: 150px;
320
+ display: flex;
321
+ flex-direction:column;
322
+ color: #fff;
323
+ }
324
+ .tree-flex-footer a,.tree-flex-footer button{
325
+ flex: 1;
326
+ padding: 8px 5px;
327
+ font-size: 1.2em;
328
+ // border-top: 1px solid #697D93;
329
+ border-top: 1px solid #4a7cae;
330
+ text-decoration: none;
331
+ color: #fff;
332
+ cursor: pointer;
333
+ }
334
+ .tree-flex-footer button {
335
+ height: auto;
336
+ width: 100%;
337
+ border-radius: 0px;
338
+ background-color: rgba(255,255,255,0);
339
+ border: none;
340
+ border-top: 1px solid #4a7cae;
341
+ // border-top: 1px solid #697D93;
342
+ text-align: left;
343
+ }
344
+ .tree-flex-footer button:hover{
345
+ outline: none;
346
+ background-color: rgba(255,255,255,0.2);
347
+ }
348
+ .tree-flex-footer button:focus {
349
+ outline: none;
350
+ background-color: rgba(255,255,255,0.5);
351
+ }
352
+ .tree-flex-footer a:hover {
353
+ color: #FFF;
354
+ background-color: rgba(255,255,255,0.2);
355
+ }
356
+ .tree-flex .btn-group {
357
+ height: 50px!important;
358
+ }
359
+
360
+ .tree-flex .dropdown-menu {
361
+ /* 控制显示列表的样式 */
362
+ background: #4C637B;
363
+ border-radius: 0px;
364
+ color: #fff;
365
+ width: auto;
366
+ margin: 0px;
367
+ padding: 0px;
368
+ }
369
+ .tree-flex .dropdown-menu-up {
370
+ /* bottom,top控制上下,left和right控制左右*/
371
+ left: 100%!important;
372
+ top: auto!important;
373
+ bottom: 0;
374
+ }
375
+ .tree-flex .dropdown-menu-down {
376
+ /* bottom,top控制上下,left和right控制左右*/
377
+ left: 100%!important;
378
+ top: 0!important;
379
+ }
380
+ .tree-flex .dropdown-menu li{
381
+ text-align: center;
382
+ line-height: 50px;
383
+ border-bottom: 1px solid #697D93;
384
+ font-size: 1.2em;
385
+ width: auto;
386
+ white-space: nowrap;
387
+ cursor: default;
388
+
389
+ }
390
+ .tree-flex .dropdown-menu li + li {
391
+ text-align: left;
392
+ border: 0;
393
+ line-height: 40px;
394
+ padding-left: 15px;
395
+ padding-right: 15px;
396
+ font-size: 1em;
397
+ cursor: pointer;
398
+ }
399
+ .tree-flex .dropdown-menu li + li:hover {
400
+ background-color: rgba(255,255,255,0.2);
401
+ }
402
+ .tree-flex .dropdown-menu li a {
403
+ border: none;
404
+ color: #fff;
405
+ height: 40px;
406
+ line-height: 40px;
407
+ font-size: 1em;
408
+ padding: 0px;
409
+ }
410
+ .tree-flex .dropdown-menu li a:hover {
411
+ color: #fff;
412
+ background-color: rgba(255,255,255,0);
413
+ }
414
+ .tree-flex img{
415
+ height: 1.2em;
416
+ width: 1.2em;
417
+ margin-right: 15px;
418
+ margin-left: 5px;
419
+ }
420
+ .line {
421
+ height: 100%;
422
+ width: 5px;
423
+ background: #4C637B;
424
+ cursor: e-resize;
425
+ }
426
+ /*为树(tree)组件写的样式*/
427
+ .tree-img {
428
+ font-size: 1.2em;
429
+ }
430
+
431
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
432
+ .cutout50 {
433
+ max-width: 50px;
434
+ overflow:hidden;
435
+ text-overflow: ellipsis;
436
+ white-space: nowrap;
437
+ }
438
+
439
+ /* 滚动条样式 */
440
+ /*---滚动条默认显示样式--*/
441
+ ::-webkit-scrollbar-thumb{
442
+ // display: none;
443
+ background-color:rgba(0,0,0,0.2);
444
+ height:50px;
445
+ outline-offset:-2px;
446
+ /*outline:2px solid #fff;*/
447
+ -webkit-border-radius:4px;
448
+ /*border: 2px solid #fff;*/
449
+ }
450
+
451
+ /*---鼠标点击滚动条显示样式--*/
452
+ ::-webkit-scrollbar-thumb:hover{
453
+ // display: inherit;
454
+ background-color:rgba(0,0,0,0.4);
455
+ height:50px;
456
+ -webkit-border-radius:4px;
457
+ }
458
+ /*---滚动条大小--*/
459
+ ::-webkit-scrollbar{
460
+ width:8px;
461
+ height:8px;
462
+ }
463
+ /*---滚动框背景样式--*/
464
+ ::-webkit-scrollbar-track-piece{
465
+ /* 全透明,不显示 */
466
+ background-color:rgba(255,255,255,0);
467
+ -webkit-border-radius:0;
468
+ }
469
+ </style>