system-clients 3.1.89-9 → 3.1.89-xianyang

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