system-clients 1.6.21 → 1.6.22-heat

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