system-clients 3.2.0 → 3.2.1-10-kelai

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,622 +1,641 @@
1
- <template>
2
- <div @click="hindsetting1()" :class="{'with-watermark':showwatermakeflag}">
3
- <!-- <div class="system-main" id="box" v-el:box v-if="!isManger">-->
4
- <!-- <div class="system-logo" style="height: auto">-->
5
- <!-- <img :src="imgs.logoimg" alt=""/>-->
6
- <!-- <label>{{systemname}}</label>-->
7
- <!-- <div class="system-logo-chi" >-->
8
- <!-- <div v-if="userpane" class="auto system-logo-prompt" style="float: right">-->
9
- <!-- <span>{{orgpathnames}}</span>-->
10
- <!-- </div>-->
11
- <!-- &lt;!&ndash;<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>&ndash;&gt;-->
12
- <!-- <span style="float: right; padding-top: 2px" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()" class="system-logo-chi-span-1">{{$login.f.name}}</span>-->
13
- <!-- <span style="border-left: 1px solid;float: right;padding-top: 2px" class="system-logo-chi-span-1"> <img src="../../static/newStyle/login-f.png" height="20" width="20"> </span>-->
14
- <!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');" style="float: right;padding-top: 2px">-->
15
- <!-- <img src="../../static/newStyle/system-off.png" alt="" >-->
16
- <!-- <span class="system-logo-chi-span-1">退出系统</span>-->
17
- <!-- </a>-->
18
- <!-- <div style="float: right" :class="{'dropstyle':setting,'dropstyle-1':!setting}">-->
19
- <!-- <dropdown class="auto" >-->
20
- <!-- <span data-toggle="dropdown" @click="hindsetting()" >-->
21
- <!-- <img :src="srcsetting" alt=""><span>系统设置</span>-->
22
- <!-- </span>-->
23
- <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up dropstyle-chi" >-->
24
- <!-- &lt;!&ndash; <li>系统信息及设置</li>&ndash;&gt;-->
25
- <!-- <li style="color: #ffffff;white-space: nowrap" @click="show=true">修改密码</li>-->
26
- <!-- <li style="color: #ffffff;white-space: nowrap" @click="AddChangeMsgShow=true">系统版本</li>-->
27
- <!-- </ul>-->
28
- <!-- </dropdown>-->
29
- <!-- </div>-->
30
-
31
- <!-- </div>-->
32
- <!-- </div>-->
33
- <!-- <div class="system-left tree-flex" :class="{'system-left-1': !treeOrIcon}" id="top" v-el:top >-->
34
- <!-- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >-->
35
- <!-- <div class="span system-left-tree" >-->
36
- <!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" :treeOrIcon="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
37
- <!-- &lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
38
- <!-- </div>-->
39
- <!-- </div>-->
40
- <!-- <div class="system-foot-stretch" >-->
41
- <!-- <a @click="changeShow()"><img src="../../static/images/lefticon/菜单伸缩.png" alt=""></a>-->
42
- <!-- </div>-->
43
- <!-- </div>-->
44
-
45
-
46
- <!-- <div class="system-right" :class="{'system-right-1': !treeOrIcon}" id="bottom" v-el:bottom>-->
47
- <!-- <div class="span">-->
48
- <!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
49
- <!-- <dynamic :comps='[]' :showup="true" :showhide="false" name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
50
- <!-- </div>-->
51
- <!-- </div>-->
52
- <!-- <div class="system-foot" v-el:bottom>-->
53
-
54
- <!-- <div class="system-foot-box">-->
55
-
56
- <!-- </div>-->
57
- <!-- </div>-->
58
- <!-- </div>-->
59
- <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
60
- <div class="auto login-operator1" v-if="$refs.mic.tabs.length === 0">
61
- <span>
62
- <img
63
- src="../assets/people.png" height="15" width="15">
64
- 登录人:</span>
65
- <label>{{ orgpathnames }}</label>
66
- </div>
67
- <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top>
68
- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}">
69
- <div class="span system-left-tree " style="height:85%">
70
- <h3>{{ systemname }}</h3>
71
- <!-- <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;">-->
72
- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon"
73
- :tabs="tabs" v-ref:tree></left-tree>
74
- <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
75
- </div>
76
-
77
- <div class="tree-flex-footer">
78
- <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
79
- <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
80
- <dropdown class="auto">
81
- <button type="button" data-toggle="dropdown">
82
- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
83
- </button>
84
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
85
- <li>系统信息及设置</li>
86
- <!-- <li>{{name}}</li> -->
87
- <li>{{ date }}</li>
88
- <li @click="show=true">修改密码</li>
89
- <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
90
- </ul>
91
-
92
- </dropdown>
93
- <a href="index.html" @click.prevent="logOut">
94
- <img :src="imgs.out" alt=""><span v-if="treeOrIcon">退出系统</span>
95
- </a>
96
- </div>
97
- </div>
98
- </div>
99
- <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
100
-
101
- <div class="flex right-bg system-right" id="bottom" v-el:bottom>
102
- <!-- <operator-badge></operator-badge> -->
103
- <div class="span">
104
- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
105
- <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" :orgpathnames="orgpathnames"
106
- @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
107
- </div>
108
- </div>
109
- </div>
110
- <div v-show="isManger">
111
- <route v-ref:route></route>
112
- </div>
113
-
114
- <!-- 变更录入 模态框 -->
115
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
116
- <!-- 修改密码组件 -->
117
- <modify-pw :show.sync="show" v-if="show"></modify-pw>
118
- <!-- 修改密码模态框 -->
119
- </div>
120
- </template>
121
-
122
- <script>
123
- import vue from 'vue'
124
- import co from 'co'
125
-
126
- let getwartermakr = async function (self) {
127
- let param = {
128
- tablename: 't_singlevalue',
129
- condition: " 1=1 and name=\'水印内容\'"
130
- };
131
- let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
132
- if (result && result.data.length > 0) {
133
- self.showwatermakeflag = true;
134
- createWaterMark(result.data[0].value);
135
- } else {
136
- self.showwatermakeflag = false;
137
- }
138
- }
139
-
140
- let createWaterMark = function (userName) {
141
- let style;
142
- if (style) style.remove();
143
- let width = window.parseInt(document.body.clientWidth);
144
- let canvasWidth = width / window.parseInt(width / 320);
145
- let fontFamily = window.getComputedStyle(document.body)["font-family"];
146
- let canvas = document.createElement("canvas");
147
- canvas.width = canvasWidth;
148
- canvas.height = 200;
149
- let ctx = canvas.getContext("2d");
150
- ctx.rotate((-20 * Math.PI) / 180);
151
- ctx.font = `20px ${fontFamily}`;
152
- ctx.fillStyle = "rgba(8,8,8,.1)";
153
- ctx.fillText(userName, 50, 200);
154
- let imgSrc = canvas.toDataURL("image/png");
155
- style = document.createElement("style");
156
- style.innerHTML = `.with-watermark:before{
157
- content: "";
158
- width: 100%;
159
- height: 100%;
160
- display: block;
161
- position: absolute;
162
- background-image: url("${imgSrc}");
163
- }`;
164
- (document.head.append || document.head.appendChild).apply(document.head, [style]);
165
- }
166
-
167
- window.onunload = () => {
168
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
169
- }
170
- window.onbeforeunload = () => {
171
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
172
- }
173
- export default {
174
- title: '主界面',
175
- props: ['functions', 'userid'],
176
- data() {
177
- return {
178
- // 左侧树下部三个小图标
179
- imgs: {
180
- open: '/images/lefticon/菜单伸缩.png',
181
- set: '/images/lefticon/系统设置.png',
182
- out: '/images/lefticon/退出系统.png',
183
- img1: '/images/newStyle/login-user.png',
184
- logoimg: '/static/newStyle/fife.png'
185
- // img2: '/images/lefticon/退出系统.png',
186
- },
187
- treeOrIcon: false,
188
- isManger: false,
189
- show: false,
190
- orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
191
- systemname: '客服系统',
192
- date: this.$login.toStandardDateString(),
193
- tabs: [], //已初始化页签数组
194
- selecttab: '',
195
- setting: true,
196
- srcsetting: '../../static/newStyle/setting.png',
197
- showwatermakeflag: false,
198
- // headerHint: true, // 右侧顶部提示信息
199
- // value: 25645.26,
200
- // AddChangeMsgShow: false,
201
- // showsum: false
202
- }
203
- },
204
- ready() {
205
- getwartermakr(this);
206
- let component = this.$login.getUrlCompileParames('component')
207
- if (component) {
208
- this.isManger = true
209
- this.$refs.route.init(component, {data: this.functions.functions})
210
- }
211
- if (this.$login.f.password == '1') {
212
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
213
- if (res == 'confirm')
214
- this.show = true
215
- })
216
- }
217
- console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
218
- this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
219
- // let oBox = this.getElement("box")
220
- // let oTop = this.getElement("top")
221
- // let oBottom = this.getElement("bottom")
222
- // let oLine = this.getElement("line")
223
- // let that = this
224
- // oLine.onmousedown = function(e) {
225
- // let disX = (e || event).clientX
226
- // oLine.left = oLine.offsetLeft
227
- // document.onmousemove = function(e) {
228
- // let iT = oLine.left + ((e || event).clientX - disX)
229
- // var e = e || window.event
230
- // let tarnameb = e.target || e.srcElement
231
- // let maxT = oBox.clientWight - oLine.offsetWidth
232
- // oLine.style.margin = 0
233
- // iT < 0 && (iT = 0)
234
- // iT > maxT && (iT = maxT)
235
- // oLine.style.left = oTop.style.width = iT + "px"
236
- // oBottom.style.width = oBox.clientWidth - iT + "px"
237
- // that.$set('treeWidth', iT)
238
- // return false
239
- // }
240
- // document.onmouseup = function() {
241
- // document.onmousemove = null
242
- // document.onmouseup = null
243
- // oLine.releaseCapture && oLine.releaseCapture()
244
- // }
245
- // oLine.setCapture && oLine.setCapture()
246
- // return false
247
- // }
248
- this.changeShow()
249
- },
250
- methods: {
251
- hindsetting() {
252
-
253
- this.setting = !this.setting
254
- if (this.setting) {
255
- this.srcsetting = '../../static/newStyle/setting.png'
256
- } else {
257
- this.srcsetting = '../../static/newStyle/setting1.png'
258
- }
259
-
260
- },
261
- hindsetting1() {
262
-
263
- if (!this.setting) {
264
- this.srcsetting = '../../static/newStyle/setting.png'
265
- this.setting = true
266
- }
267
-
268
- },
269
- isnodo(val) {
270
- console.log(val, 'ss')
271
- this.selecttab = val
272
- },
273
- unfurl() {
274
- if (this.showsum) {
275
- this.showsum = false
276
- } else {
277
- this.showsum = true
278
- }
279
- },
280
- // getElement(id) {
281
- // return document.getElementById(id)
282
- // },
283
- changeShow() {
284
- // this.treeOrIcon = !this.treeOrIcon
285
- // let oBox = this.getElement("box")
286
- // let oTop = this.getElement("top")
287
- // let oBottom = this.getElement("bottom")
288
- // let oLine = this.getElement("line")
289
- // if (this.treeOrIcon) {
290
- // // oLine.style.left = oTop.style.width = 300 + "px"
291
- // oTop.style.width = 150 + "px"
292
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
293
- // }else {
294
- // oLine.style.left = oTop.style.width = 50 + "px"
295
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
296
- // }
297
- // }
298
- this.treeOrIcon = !this.treeOrIcon
299
- // if (this.treeOrIcon) {
300
- // this.$els.top.style.width = 14 + "%"
301
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
302
- // }else {
303
- // this.$els.top.style.width = 8 + "%"
304
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
305
- // }
306
- },
307
- changeMain(userid) {
308
- this.$goto('res-main', {userid: this.userid}, 'self')
309
- },
310
- tabChange(name) {
311
- console.log(name, 'tabchanage')
312
- this.selecttab = name
313
- this.$refs.tree.changeSelect(name)
314
- },
315
- tabcg(val) {
316
- console.log(val)
317
- this.tabs = val
318
- },
319
- logOut() {
320
- console.log(this.$login.f)
321
- this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
322
- if (res == 'confirm') {
323
- let data = {
324
- userid: this.$login.f.id,
325
- username: this.$login.f.name,
326
- usertelephone: this.$login.f.f_user_telephone
327
- }
328
- await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
329
- window.location.reload()
330
- }
331
- })
332
- }
333
- },
334
- computed: {
335
- nowDate() {
336
- return this.$login.getNowDate()
337
- }
338
- }
339
- }
340
- </script>
341
- <style lang="less">
342
- /* 组件内通用样式 */
343
- .select-error {
344
- button {
345
- border-bottom: 1px solid #a94442 !important;
346
- }
347
- }
348
-
349
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
350
- // -webkit-appearance:textfield;
351
- // }
352
- /* 表单输入框组 */
353
- .form-input-group {
354
- display: flex;
355
-
356
- label {
357
- width: 100px;
358
- text-align: right;
359
-
360
- + * {
361
- flex: 1;
362
- }
363
- }
364
- }
365
-
366
- // 日期组件在表单中沾满
367
- .form-horizontal .datepicker {
368
- width: 100%;
369
- }
370
-
371
- // 下拉选择框占据剩余全部空间
372
- .select-overspread {
373
- .form-group {
374
- // margin: 0px 5px 10px 0px;
375
- .form-control {
376
- margin-right: 0px;
377
- }
378
- }
379
-
380
- .btn-group, .btn-group-vertical {
381
- width: 100%;
382
- // padding-right: 5px;
383
- button {
384
- width: 100%;
385
- display: flex;
386
- justify-content: space-between;
387
- align-items: center;
388
- }
389
- }
390
-
391
- .dropdown-menu {
392
- width: 100%
393
- }
394
- }
395
-
396
- // 需要特定宽度的的样式
397
- .width-60 {
398
- width: 60px;
399
- }
400
-
401
- .userpanel {
402
- font-weight: 300;
403
- color: #333;
404
- position: fixed;
405
- right: 30px;
406
- top: 45px;
407
- background-color: white;
408
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
409
- padding: 4px 10px 4px 10px;
410
- border-radius: 2px;
411
- }
412
-
413
- .width-80 {
414
- width: 80px;
415
- }
416
-
417
- .width-100 {
418
- width: 100px;
419
- }
420
-
421
-
422
- /*右侧区域的背景*/
423
- .right-bg {
424
- width: 100%;
425
- flex: 1;
426
- color: #304A66;
427
- }
428
-
429
- .tree-flex {
430
- height: 100%;
431
- // width: 150px;
432
- /*width: 60px;*/
433
- background: #4a7cae;
434
- color: #fff;
435
-
436
- }
437
-
438
- .tree-flex-icon {
439
- width: 50px;
440
- /*transition: 0.5s;*/
441
-
442
- > .span {
443
- overflow-x: visible;
444
- }
445
- }
446
-
447
- .tree-flex h3 {
448
- text-align: center;
449
- margin: 1em 0;
450
- }
451
-
452
- .tree-flex-footer {
453
- height: 50px;
454
- display: flex;
455
- flex-direction: column;
456
- color: #fff;
457
- }
458
-
459
- .tree-flex-footer a, .tree-flex-footer button {
460
- flex: 1;
461
- padding: 8px 5px;
462
- font-size: 1.2em;
463
- // border-top: 1px solid #697D93;
464
- border-top: 1px solid #4a7cae;
465
- text-decoration: none;
466
- color: #fff;
467
- cursor: pointer;
468
- }
469
-
470
- .tree-flex-footer button {
471
- height: auto;
472
- width: 100%;
473
- border-radius: 0px;
474
- background-color: rgba(255, 255, 255, 0);
475
- border: none;
476
- border-top: 1px solid #4a7cae;
477
- // border-top: 1px solid #697D93;
478
- text-align: left;
479
- }
480
-
481
- .tree-flex-footer button:hover {
482
- outline: none;
483
- background-color: rgba(255, 255, 255, 0.2);
484
- }
485
-
486
- .tree-flex-footer button:focus {
487
- outline: none;
488
- background-color: rgba(255, 255, 255, 0.5);
489
- }
490
-
491
- .tree-flex-footer a:hover {
492
- color: #FFF;
493
- background-color: rgba(255, 255, 255, 0.2);
494
- }
495
-
496
- .tree-flex .btn-group {
497
- height: 50px !important;
498
- }
499
-
500
- .tree-flex .dropdown-menu {
501
- /* 控制显示列表的样式 */
502
- background: #4a7cae;
503
- border-radius: 0px;
504
- color: #fff;
505
- width: auto;
506
- margin: 0px;
507
- padding: 0px;
508
- }
509
-
510
- .tree-flex .dropdown-menu-up {
511
- /* bottom,top控制上下,left和right控制左右*/
512
- left: 100% !important;
513
- top: auto !important;
514
- bottom: 0;
515
- }
516
-
517
- .tree-flex .dropdown-menu-down {
518
- /* bottom,top控制上下,left和right控制左右*/
519
- left: 100% !important;
520
- top: 0 !important;
521
- }
522
-
523
- .tree-flex .dropdown-menu li {
524
- text-align: center;
525
- line-height: 50px;
526
- border-bottom: 1px solid #697D93;
527
- font-size: 1.2em;
528
- width: auto;
529
- white-space: nowrap;
530
- cursor: default;
531
-
532
- }
533
-
534
- .tree-flex .dropdown-menu li + li {
535
- text-align: left;
536
- border: 0;
537
- line-height: 40px;
538
- padding-left: 15px;
539
- padding-right: 15px;
540
- font-size: 1em;
541
- cursor: pointer;
542
- }
543
-
544
- .tree-flex .dropdown-menu li + li:hover {
545
- background-color: rgba(255, 255, 255, 0.2);
546
- }
547
-
548
- .tree-flex .dropdown-menu li a {
549
- border: none;
550
- color: #fff;
551
- height: 40px;
552
- line-height: 40px;
553
- font-size: 1em;
554
- padding: 0px;
555
- }
556
-
557
- .tree-flex .dropdown-menu li a:hover {
558
- color: #fff;
559
- background-color: rgba(255, 255, 255, 0);
560
- }
561
-
562
- .tree-flex img {
563
- height: 1.2em;
564
- width: 1.2em;
565
- margin-right: 15px;
566
- margin-left: 5px;
567
- }
568
-
569
- .line {
570
- height: 100%;
571
- width: 5px;
572
- background: #4C637B;
573
- cursor: e-resize;
574
- }
575
-
576
- /*为树(tree)组件写的样式*/
577
- .tree-img {
578
- font-size: 1.2em;
579
- }
580
-
581
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
582
- .cutout50 {
583
- max-width: 50px;
584
- overflow: hidden;
585
- text-overflow: ellipsis;
586
- white-space: nowrap;
587
- }
588
-
589
- /* 滚动条样式 */
590
- /*---滚动条默认显示样式--*/
591
- ::-webkit-scrollbar-thumb {
592
- // display: none;
593
- background-color: rgba(0, 0, 0, 0.4);
594
- /*background-color:red;*/
595
- height: 50px;
596
- outline-offset: -2px;
597
- /*outline:2px solid #fff;*/
598
- -webkit-border-radius: 4px;
599
- /*border: 2px solid #fff;*/
600
- }
601
-
602
- /*---鼠标点击滚动条显示样式--*/
603
- ::-webkit-scrollbar-thumb:hover {
604
- // display: inherit;
605
- background-color: rgba(0, 0, 0, 0.4);
606
- height: 50px;
607
- -webkit-border-radius: 4px;
608
- }
609
-
610
- /*---滚动条大小--*/
611
- ::-webkit-scrollbar {
612
- width: 8px;
613
- height: 8px;
614
- }
615
-
616
- /*---滚动框背景样式--*/
617
- ::-webkit-scrollbar-track-piece {
618
- /* 全透明,不显示 */
619
- background-color: rgba(255, 255, 255, 0);
620
- -webkit-border-radius: 0;
621
- }
622
- </style>
1
+ <template>
2
+ <div @click="hindsetting1()" :class="{'with-watermark':showwatermakeflag}">
3
+ <!-- <div class="system-main" id="box" v-el:box v-if="!isManger">-->
4
+ <!-- <div class="system-logo" style="height: auto">-->
5
+ <!-- <img :src="imgs.logoimg" alt=""/>-->
6
+ <!-- <label>{{systemname}}</label>-->
7
+ <!-- <div class="system-logo-chi" >-->
8
+ <!-- <div v-if="userpane" class="auto system-logo-prompt" style="float: right">-->
9
+ <!-- <span>{{orgpathnames}}</span>-->
10
+ <!-- </div>-->
11
+ <!-- &lt;!&ndash;<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>&ndash;&gt;-->
12
+ <!-- <span style="float: right; padding-top: 2px" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()" class="system-logo-chi-span-1">{{$login.f.name}}</span>-->
13
+ <!-- <span style="border-left: 1px solid;float: right;padding-top: 2px" class="system-logo-chi-span-1"> <img src="../../static/newStyle/login-f.png" height="20" width="20"> </span>-->
14
+ <!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');" style="float: right;padding-top: 2px">-->
15
+ <!-- <img src="../../static/newStyle/system-off.png" alt="" >-->
16
+ <!-- <span class="system-logo-chi-span-1">退出系统</span>-->
17
+ <!-- </a>-->
18
+ <!-- <div style="float: right" :class="{'dropstyle':setting,'dropstyle-1':!setting}">-->
19
+ <!-- <dropdown class="auto" >-->
20
+ <!-- <span data-toggle="dropdown" @click="hindsetting()" >-->
21
+ <!-- <img :src="srcsetting" alt=""><span>系统设置</span>-->
22
+ <!-- </span>-->
23
+ <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up dropstyle-chi" >-->
24
+ <!-- &lt;!&ndash; <li>系统信息及设置</li>&ndash;&gt;-->
25
+ <!-- <li style="color: #ffffff;white-space: nowrap" @click="show=true">修改密码</li>-->
26
+ <!-- <li style="color: #ffffff;white-space: nowrap" @click="AddChangeMsgShow=true">系统版本</li>-->
27
+ <!-- </ul>-->
28
+ <!-- </dropdown>-->
29
+ <!-- </div>-->
30
+
31
+ <!-- </div>-->
32
+ <!-- </div>-->
33
+ <!-- <div class="system-left tree-flex" :class="{'system-left-1': !treeOrIcon}" id="top" v-el:top >-->
34
+ <!-- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >-->
35
+ <!-- <div class="span system-left-tree" >-->
36
+ <!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" :treeOrIcon="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
37
+ <!-- &lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
38
+ <!-- </div>-->
39
+ <!-- </div>-->
40
+ <!-- <div class="system-foot-stretch" >-->
41
+ <!-- <a @click="changeShow()"><img src="../../static/images/lefticon/菜单伸缩.png" alt=""></a>-->
42
+ <!-- </div>-->
43
+ <!-- </div>-->
44
+
45
+
46
+ <!-- <div class="system-right" :class="{'system-right-1': !treeOrIcon}" id="bottom" v-el:bottom>-->
47
+ <!-- <div class="span">-->
48
+ <!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
49
+ <!-- <dynamic :comps='[]' :showup="true" :showhide="false" name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
50
+ <!-- </div>-->
51
+ <!-- </div>-->
52
+ <!-- <div class="system-foot" v-el:bottom>-->
53
+
54
+ <!-- <div class="system-foot-box">-->
55
+
56
+ <!-- </div>-->
57
+ <!-- </div>-->
58
+ <!-- </div>-->
59
+ <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
60
+ <div class="auto login-operator1" v-if="$refs.mic.tabs.length === 0">
61
+ <span>
62
+ <img
63
+ src="../assets/people.png" height="15" width="15">
64
+ 登录人:</span>
65
+ <label>{{ orgpathnames }}</label>
66
+ </div>
67
+ <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top>
68
+ <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}">
69
+ <div class="span system-left-tree " style="height:85%">
70
+ <h3>{{ systemname }}</h3>
71
+ <!-- <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;">-->
72
+ <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon"
73
+ :tabs="tabs" v-ref:tree></left-tree>
74
+ <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
75
+ </div>
76
+
77
+ <div class="tree-flex-footer">
78
+ <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
79
+ <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
80
+ <dropdown class="auto">
81
+ <button type="button" data-toggle="dropdown">
82
+ <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
83
+ </button>
84
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
85
+ <li>系统信息及设置</li>
86
+ <!-- <li>{{name}}</li> -->
87
+ <li>{{ date }}</li>
88
+ <li @click="show=true">修改密码</li>
89
+ <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
90
+ </ul>
91
+
92
+ </dropdown>
93
+ <a href="index.html" @click.prevent="logOut">
94
+ <img :src="imgs.out" alt=""><span v-if="treeOrIcon">退出系统</span>
95
+ </a>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
100
+
101
+ <div class="flex right-bg system-right" id="bottom" v-el:bottom>
102
+ <!-- <operator-badge></operator-badge> -->
103
+ <div class="span">
104
+ <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
105
+ <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" :orgpathnames="orgpathnames"
106
+ @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
107
+ </div>
108
+ </div>
109
+ </div>
110
+ <div v-show="isManger">
111
+ <route v-ref:route></route>
112
+ </div>
113
+
114
+ <!-- 变更录入 模态框 -->
115
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
116
+ <!-- 修改密码组件 -->
117
+ <modify-pw :show.sync="show" v-if="show"></modify-pw>
118
+ <!-- 修改密码模态框 -->
119
+ </div>
120
+ </template>
121
+
122
+ <script>
123
+ import vue from 'vue'
124
+ import co from 'co'
125
+ import {HttpResetClass} from 'vue-client'
126
+
127
+ let getwartermakr = async function (self) {
128
+ let param = {
129
+ tablename: 't_singlevalue',
130
+ condition: " 1=1 and name=\'水印内容\'"
131
+ };
132
+ let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
133
+ if (result && result.data.length > 0) {
134
+ self.showwatermakeflag = true;
135
+ createWaterMark(result.data[0].value);
136
+ } else {
137
+ self.showwatermakeflag = false;
138
+ }
139
+ }
140
+
141
+ let createWaterMark = function (userName) {
142
+ let style;
143
+ if (style) style.remove();
144
+ let width = window.parseInt(document.body.clientWidth);
145
+ let canvasWidth = width / window.parseInt(width / 320);
146
+ let fontFamily = window.getComputedStyle(document.body)["font-family"];
147
+ let canvas = document.createElement("canvas");
148
+ canvas.width = canvasWidth;
149
+ canvas.height = 200;
150
+ let ctx = canvas.getContext("2d");
151
+ ctx.rotate((-20 * Math.PI) / 180);
152
+ ctx.font = `20px ${fontFamily}`;
153
+ ctx.fillStyle = "rgba(8,8,8,.1)";
154
+ ctx.fillText(userName, 50, 200);
155
+ let imgSrc = canvas.toDataURL("image/png");
156
+ style = document.createElement("style");
157
+ style.innerHTML = `.with-watermark:before{
158
+ content: "";
159
+ width: 100%;
160
+ height: 100%;
161
+ display: block;
162
+ position: absolute;
163
+ background-image: url("${imgSrc}");
164
+ }`;
165
+ (document.head.append || document.head.appendChild).apply(document.head, [style]);
166
+ }
167
+
168
+ window.onunload = () => {
169
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
170
+ }
171
+ window.onbeforeunload = () => {
172
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
173
+ }
174
+ export default {
175
+ title: '主界面',
176
+ props: ['functions', 'userid'],
177
+ data() {
178
+ return {
179
+ // 左侧树下部三个小图标
180
+ imgs: {
181
+ open: '/images/lefticon/菜单伸缩.png',
182
+ set: '/images/lefticon/系统设置.png',
183
+ out: '/images/lefticon/退出系统.png',
184
+ img1: '/images/newStyle/login-user.png',
185
+ logoimg: '/static/newStyle/fife.png'
186
+ // img2: '/images/lefticon/退出系统.png',
187
+ },
188
+ treeOrIcon: false,
189
+ isManger: false,
190
+ show: false,
191
+ orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
192
+ systemname: '客服系统',
193
+ date: this.$login.toStandardDateString(),
194
+ tabs: [], //已初始化页签数组
195
+ selecttab: '',
196
+ setting: true,
197
+ srcsetting: '../../static/newStyle/setting.png',
198
+ showwatermakeflag: false,
199
+ // headerHint: true, // 右侧顶部提示信息
200
+ // value: 25645.26,
201
+ // AddChangeMsgShow: false,
202
+ // showsum: false
203
+ }
204
+ },
205
+ ready() {
206
+ getwartermakr(this);
207
+ let component = this.$login.getUrlCompileParames('component')
208
+ if (component) {
209
+ this.isManger = true
210
+ this.$refs.route.init(component, {data: this.functions.functions})
211
+ }
212
+ if (this.$login.f.password == '1') {
213
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
214
+ if (res == 'confirm')
215
+ this.show = true
216
+ })
217
+ }
218
+ console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
219
+ this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
220
+ // let oBox = this.getElement("box")
221
+ // let oTop = this.getElement("top")
222
+ // let oBottom = this.getElement("bottom")
223
+ // let oLine = this.getElement("line")
224
+ // let that = this
225
+ // oLine.onmousedown = function(e) {
226
+ // let disX = (e || event).clientX
227
+ // oLine.left = oLine.offsetLeft
228
+ // document.onmousemove = function(e) {
229
+ // let iT = oLine.left + ((e || event).clientX - disX)
230
+ // var e = e || window.event
231
+ // let tarnameb = e.target || e.srcElement
232
+ // let maxT = oBox.clientWight - oLine.offsetWidth
233
+ // oLine.style.margin = 0
234
+ // iT < 0 && (iT = 0)
235
+ // iT > maxT && (iT = maxT)
236
+ // oLine.style.left = oTop.style.width = iT + "px"
237
+ // oBottom.style.width = oBox.clientWidth - iT + "px"
238
+ // that.$set('treeWidth', iT)
239
+ // return false
240
+ // }
241
+ // document.onmouseup = function() {
242
+ // document.onmousemove = null
243
+ // document.onmouseup = null
244
+ // oLine.releaseCapture && oLine.releaseCapture()
245
+ // }
246
+ // oLine.setCapture && oLine.setCapture()
247
+ // return false
248
+ // }
249
+ this.changeShow()
250
+ this.gotoWorkOrderSite()
251
+ },
252
+ methods: {
253
+ gotoWorkOrderSite(){
254
+ const isRemind =this.$appdata.getSingleValue("预约工单提醒")
255
+ if(isRemind && isRemind !== ''){
256
+ return
257
+ }
258
+ if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf(this.$appdata.getSingleValue("提醒角色")) !== -1){
259
+ const data = {
260
+ tablename: 't_order_center',
261
+ condition: ` f_orderstate is null `
262
+ }
263
+ new HttpResetClass().load('POST','rs/sql/saleSingleTable', {data:data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
264
+ if(res.data.length > 0){
265
+ this.$showMessage('你有'+res.data.length+'个预约工单待处理,请尽快前往站点工单页面进行处理')
266
+ }
267
+ })
268
+ }
269
+ },
270
+ hindsetting() {
271
+
272
+ this.setting = !this.setting
273
+ if (this.setting) {
274
+ this.srcsetting = '../../static/newStyle/setting.png'
275
+ } else {
276
+ this.srcsetting = '../../static/newStyle/setting1.png'
277
+ }
278
+
279
+ },
280
+ hindsetting1() {
281
+
282
+ if (!this.setting) {
283
+ this.srcsetting = '../../static/newStyle/setting.png'
284
+ this.setting = true
285
+ }
286
+
287
+ },
288
+ isnodo(val) {
289
+ console.log(val, 'ss')
290
+ this.selecttab = val
291
+ },
292
+ unfurl() {
293
+ if (this.showsum) {
294
+ this.showsum = false
295
+ } else {
296
+ this.showsum = true
297
+ }
298
+ },
299
+ // getElement(id) {
300
+ // return document.getElementById(id)
301
+ // },
302
+ changeShow() {
303
+ // this.treeOrIcon = !this.treeOrIcon
304
+ // let oBox = this.getElement("box")
305
+ // let oTop = this.getElement("top")
306
+ // let oBottom = this.getElement("bottom")
307
+ // let oLine = this.getElement("line")
308
+ // if (this.treeOrIcon) {
309
+ // // oLine.style.left = oTop.style.width = 300 + "px"
310
+ // oTop.style.width = 150 + "px"
311
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
312
+ // }else {
313
+ // oLine.style.left = oTop.style.width = 50 + "px"
314
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
315
+ // }
316
+ // }
317
+ this.treeOrIcon = !this.treeOrIcon
318
+ // if (this.treeOrIcon) {
319
+ // this.$els.top.style.width = 14 + "%"
320
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
321
+ // }else {
322
+ // this.$els.top.style.width = 8 + "%"
323
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
324
+ // }
325
+ },
326
+ changeMain(userid) {
327
+ this.$goto('res-main', {userid: this.userid}, 'self')
328
+ },
329
+ tabChange(name) {
330
+ console.log(name, 'tabchanage')
331
+ this.selecttab = name
332
+ this.$refs.tree.changeSelect(name)
333
+ },
334
+ tabcg(val) {
335
+ console.log(val)
336
+ this.tabs = val
337
+ },
338
+ logOut() {
339
+ console.log(this.$login.f)
340
+ this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
341
+ if (res == 'confirm') {
342
+ let data = {
343
+ userid: this.$login.f.id,
344
+ username: this.$login.f.name,
345
+ usertelephone: this.$login.f.f_user_telephone
346
+ }
347
+ await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
348
+ window.location.reload()
349
+ }
350
+ })
351
+ }
352
+ },
353
+ computed: {
354
+ nowDate() {
355
+ return this.$login.getNowDate()
356
+ }
357
+ }
358
+ }
359
+ </script>
360
+ <style lang="less">
361
+ /* 组件内通用样式 */
362
+ .select-error {
363
+ button {
364
+ border-bottom: 1px solid #a94442 !important;
365
+ }
366
+ }
367
+
368
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
369
+ // -webkit-appearance:textfield;
370
+ // }
371
+ /* 表单输入框组 */
372
+ .form-input-group {
373
+ display: flex;
374
+
375
+ label {
376
+ width: 100px;
377
+ text-align: right;
378
+
379
+ + * {
380
+ flex: 1;
381
+ }
382
+ }
383
+ }
384
+
385
+ // 日期组件在表单中沾满
386
+ .form-horizontal .datepicker {
387
+ width: 100%;
388
+ }
389
+
390
+ // 下拉选择框占据剩余全部空间
391
+ .select-overspread {
392
+ .form-group {
393
+ // margin: 0px 5px 10px 0px;
394
+ .form-control {
395
+ margin-right: 0px;
396
+ }
397
+ }
398
+
399
+ .btn-group, .btn-group-vertical {
400
+ width: 100%;
401
+ // padding-right: 5px;
402
+ button {
403
+ width: 100%;
404
+ display: flex;
405
+ justify-content: space-between;
406
+ align-items: center;
407
+ }
408
+ }
409
+
410
+ .dropdown-menu {
411
+ width: 100%
412
+ }
413
+ }
414
+
415
+ // 需要特定宽度的的样式
416
+ .width-60 {
417
+ width: 60px;
418
+ }
419
+
420
+ .userpanel {
421
+ font-weight: 300;
422
+ color: #333;
423
+ position: fixed;
424
+ right: 30px;
425
+ top: 45px;
426
+ background-color: white;
427
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
428
+ padding: 4px 10px 4px 10px;
429
+ border-radius: 2px;
430
+ }
431
+
432
+ .width-80 {
433
+ width: 80px;
434
+ }
435
+
436
+ .width-100 {
437
+ width: 100px;
438
+ }
439
+
440
+
441
+ /*右侧区域的背景*/
442
+ .right-bg {
443
+ width: 100%;
444
+ flex: 1;
445
+ color: #304A66;
446
+ }
447
+
448
+ .tree-flex {
449
+ height: 100%;
450
+ // width: 150px;
451
+ /*width: 60px;*/
452
+ background: #4a7cae;
453
+ color: #fff;
454
+
455
+ }
456
+
457
+ .tree-flex-icon {
458
+ width: 50px;
459
+ /*transition: 0.5s;*/
460
+
461
+ > .span {
462
+ overflow-x: visible;
463
+ }
464
+ }
465
+
466
+ .tree-flex h3 {
467
+ text-align: center;
468
+ margin: 1em 0;
469
+ }
470
+
471
+ .tree-flex-footer {
472
+ height: 50px;
473
+ display: flex;
474
+ flex-direction: column;
475
+ color: #fff;
476
+ }
477
+
478
+ .tree-flex-footer a, .tree-flex-footer button {
479
+ flex: 1;
480
+ padding: 8px 5px;
481
+ font-size: 1.2em;
482
+ // border-top: 1px solid #697D93;
483
+ border-top: 1px solid #4a7cae;
484
+ text-decoration: none;
485
+ color: #fff;
486
+ cursor: pointer;
487
+ }
488
+
489
+ .tree-flex-footer button {
490
+ height: auto;
491
+ width: 100%;
492
+ border-radius: 0px;
493
+ background-color: rgba(255, 255, 255, 0);
494
+ border: none;
495
+ border-top: 1px solid #4a7cae;
496
+ // border-top: 1px solid #697D93;
497
+ text-align: left;
498
+ }
499
+
500
+ .tree-flex-footer button:hover {
501
+ outline: none;
502
+ background-color: rgba(255, 255, 255, 0.2);
503
+ }
504
+
505
+ .tree-flex-footer button:focus {
506
+ outline: none;
507
+ background-color: rgba(255, 255, 255, 0.5);
508
+ }
509
+
510
+ .tree-flex-footer a:hover {
511
+ color: #FFF;
512
+ background-color: rgba(255, 255, 255, 0.2);
513
+ }
514
+
515
+ .tree-flex .btn-group {
516
+ height: 50px !important;
517
+ }
518
+
519
+ .tree-flex .dropdown-menu {
520
+ /* 控制显示列表的样式 */
521
+ background: #4a7cae;
522
+ border-radius: 0px;
523
+ color: #fff;
524
+ width: auto;
525
+ margin: 0px;
526
+ padding: 0px;
527
+ }
528
+
529
+ .tree-flex .dropdown-menu-up {
530
+ /* bottom,top控制上下,left和right控制左右*/
531
+ left: 100% !important;
532
+ top: auto !important;
533
+ bottom: 0;
534
+ }
535
+
536
+ .tree-flex .dropdown-menu-down {
537
+ /* bottom,top控制上下,left和right控制左右*/
538
+ left: 100% !important;
539
+ top: 0 !important;
540
+ }
541
+
542
+ .tree-flex .dropdown-menu li {
543
+ text-align: center;
544
+ line-height: 50px;
545
+ border-bottom: 1px solid #697D93;
546
+ font-size: 1.2em;
547
+ width: auto;
548
+ white-space: nowrap;
549
+ cursor: default;
550
+
551
+ }
552
+
553
+ .tree-flex .dropdown-menu li + li {
554
+ text-align: left;
555
+ border: 0;
556
+ line-height: 40px;
557
+ padding-left: 15px;
558
+ padding-right: 15px;
559
+ font-size: 1em;
560
+ cursor: pointer;
561
+ }
562
+
563
+ .tree-flex .dropdown-menu li + li:hover {
564
+ background-color: rgba(255, 255, 255, 0.2);
565
+ }
566
+
567
+ .tree-flex .dropdown-menu li a {
568
+ border: none;
569
+ color: #fff;
570
+ height: 40px;
571
+ line-height: 40px;
572
+ font-size: 1em;
573
+ padding: 0px;
574
+ }
575
+
576
+ .tree-flex .dropdown-menu li a:hover {
577
+ color: #fff;
578
+ background-color: rgba(255, 255, 255, 0);
579
+ }
580
+
581
+ .tree-flex img {
582
+ height: 1.2em;
583
+ width: 1.2em;
584
+ margin-right: 15px;
585
+ margin-left: 5px;
586
+ }
587
+
588
+ .line {
589
+ height: 100%;
590
+ width: 5px;
591
+ background: #4C637B;
592
+ cursor: e-resize;
593
+ }
594
+
595
+ /*为树(tree)组件写的样式*/
596
+ .tree-img {
597
+ font-size: 1.2em;
598
+ }
599
+
600
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
601
+ .cutout50 {
602
+ max-width: 50px;
603
+ overflow: hidden;
604
+ text-overflow: ellipsis;
605
+ white-space: nowrap;
606
+ }
607
+
608
+ /* 滚动条样式 */
609
+ /*---滚动条默认显示样式--*/
610
+ ::-webkit-scrollbar-thumb {
611
+ // display: none;
612
+ background-color: rgba(0, 0, 0, 0.4);
613
+ /*background-color:red;*/
614
+ height: 50px;
615
+ outline-offset: -2px;
616
+ /*outline:2px solid #fff;*/
617
+ -webkit-border-radius: 4px;
618
+ /*border: 2px solid #fff;*/
619
+ }
620
+
621
+ /*---鼠标点击滚动条显示样式--*/
622
+ ::-webkit-scrollbar-thumb:hover {
623
+ // display: inherit;
624
+ background-color: rgba(0, 0, 0, 0.4);
625
+ height: 50px;
626
+ -webkit-border-radius: 4px;
627
+ }
628
+
629
+ /*---滚动条大小--*/
630
+ ::-webkit-scrollbar {
631
+ width: 8px;
632
+ height: 8px;
633
+ }
634
+
635
+ /*---滚动框背景样式--*/
636
+ ::-webkit-scrollbar-track-piece {
637
+ /* 全透明,不显示 */
638
+ background-color: rgba(255, 255, 255, 0);
639
+ -webkit-border-radius: 0;
640
+ }
641
+ </style>