system-clients 3.0.47-fanxian → 3.0.48-fanxian

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 (101) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.eslintrc.js +16 -16
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/CHANGELOG.md +51 -51
  6. package/README.md +36 -36
  7. package/SystemClient.iml +11 -11
  8. package/build/css-loaders.js +34 -34
  9. package/build/dev-client.js +8 -8
  10. package/build/example-server.js +80 -80
  11. package/build/release.sh +28 -28
  12. package/build/utils.js +71 -71
  13. package/build/webpack.base.conf.js +75 -75
  14. package/build/webpack.dev.conf.js +31 -31
  15. package/build/webpack.example.conf.js +49 -49
  16. package/build/webpack.prod.conf.js +60 -60
  17. package/build/webpack.test.conf.js +31 -31
  18. package/build.gradle +6 -6
  19. package/config/dev.env.js +6 -6
  20. package/config/index.js +38 -38
  21. package/config/prod.env.js +3 -3
  22. package/config/test.env.js +6 -6
  23. package/doc/Login.md +7 -7
  24. package/examples/ReadCard/App.vue +23 -23
  25. package/examples/ReadCard/index.html +11 -11
  26. package/examples/ReadCard/main.js +12 -12
  27. package/index.html +21 -21
  28. package/package.json +102 -102
  29. package/release.bat +5 -5
  30. package/src/App.vue +24 -24
  31. package/src/LodopFuncs.js +123 -123
  32. package/src/assets/binding.svg +1 -1
  33. package/src/assets/unbind.svg +1 -1
  34. package/src/assets//345/205/254/345/221/212.svg +1 -1
  35. package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
  36. package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
  37. package/src/components/List.vue +51 -51
  38. package/src/components/Main.vue +632 -632
  39. package/src/components/Table.js +74 -74
  40. package/src/components/Util.js +343 -343
  41. package/src/components/equipment/EquipmentManage.vue +65 -65
  42. package/src/components/equipment/PcAdd.vue +105 -105
  43. package/src/components/equipment/PcList.vue +119 -119
  44. package/src/components/equipment/PcManage.vue +60 -60
  45. package/src/components/equipment/PhoneAdd.vue +94 -94
  46. package/src/components/equipment/PhoneList.vue +102 -102
  47. package/src/components/equipment/PhoneManage.vue +60 -60
  48. package/src/components/equipment/PosAdd.vue +137 -137
  49. package/src/components/equipment/PosList.vue +156 -156
  50. package/src/components/equipment/PosManage.vue +67 -67
  51. package/src/components/materialManage/materialData.vue +44 -44
  52. package/src/components/materialManage/materialList.vue +255 -255
  53. package/src/components/parammanage/AlarmInformation.vue +124 -122
  54. package/src/components/parammanage/ParamManage.vue +42 -42
  55. package/src/components/parammanage/ParamManages.vue +43 -43
  56. package/src/components/parammanage/ParamPage.vue +314 -314
  57. package/src/components/parammanage/ParamPages.vue +214 -214
  58. package/src/components/parammanage/SinglePage.vue +237 -237
  59. package/src/components/parammanage/SinglePages.vue +161 -161
  60. package/src/components/server/AddChangeMsg.vue +66 -66
  61. package/src/components/server/ChangeDeclare.vue +45 -45
  62. package/src/components/server/IconTree.vue +26 -26
  63. package/src/components/server/LeftTree.vue +111 -111
  64. package/src/components/server/LoadData.vue +36 -36
  65. package/src/components/server/Login.vue +625 -625
  66. package/src/components/server/Menu.vue +188 -188
  67. package/src/components/server/ModifyPw.vue +125 -125
  68. package/src/components/server/ResSelect.vue +150 -150
  69. package/src/components/server/ResSelectGroup.vue +140 -140
  70. package/src/components/server/RightTree.vue +263 -263
  71. package/src/components/server/RoleSelector.vue +88 -88
  72. package/src/components/server/TestResSelect.vue +58 -58
  73. package/src/components/server/TestResSelectGroup.vue +388 -388
  74. package/src/components/server/TestRightTree.vue +42 -42
  75. package/src/index.js +7 -7
  76. package/src/plugins/GetLoginInfoService.js +509 -509
  77. package/src/plugins/validation.js +7 -7
  78. package/src/project/ProjectPage.vue +24 -24
  79. package/src/project/State.js +17 -17
  80. package/src/stores/AppData.js +38 -38
  81. package/src/system.js +78 -78
  82. package/src/systemphone.js +11 -11
  83. package/src/util/LdapHelper.js +75 -75
  84. package/test/e2e/custom-assertions/elementCount.js +26 -26
  85. package/test/e2e/nightwatch.conf.js +40 -40
  86. package/test/e2e/runner.js +30 -30
  87. package/test/e2e/specs/test.js +14 -14
  88. package/test/unit/.eslintrc +5 -5
  89. package/test/unit/index.js +13 -13
  90. package/test/unit/init.js +10 -10
  91. package/test/unit/karma.conf.js +49 -49
  92. package/test/unit/specs/base64.spec.js +5 -5
  93. package/test/unit/specs/components/parammanage/ParamPage.spec.js +20 -20
  94. package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
  95. package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
  96. package/test/unit/specs/components/server/LeftTree/LeftTree.spec.js +22 -22
  97. package/test/unit/specs/components/server/LoadData.spec.js +24 -24
  98. package/test/unit/specs/components/server/Login.spec.js +61 -61
  99. package/test/unit/specs/components/server/RightTree.spec.js +50 -50
  100. package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
  101. package/test/unit/test.html +76 -76
@@ -1,632 +1,632 @@
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
-
60
- <div class='flex-row aaa system-main' id="box" v-el:box v-if="!isManger">
61
- <div class="auto" style="position: fixed;right: 370px;top: 15px;color: #333">
62
- <button class="btn" @click="showAbnormity = true" style="background: none;">
63
- <img
64
- src="../assets/shezhi-hover.png" height="15" width="15">
65
- 异常警报<label style="display: inline-block;width: 8px;height: 8px;border-radius: 50%;background-color: red;text-align: center;line-height: 30px;" v-show="showaData"></label>
66
- </button>
67
- <button class="btn" @click="stopSound" style="background: none;">
68
- 关闭警报
69
- </button>
70
- </div>
71
- <div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">
72
- <span>
73
- <img
74
- src="../assets/people.png" height="15" width="15">
75
- 登录人:</span>
76
- <label>{{orgpathnames}}</label>
77
- </div>
78
- <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
79
- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >
80
- <div class="span system-left-tree " style="height:85%">
81
- <h3>{{systemname}}</h3>
82
- <!-- <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;">-->
83
- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
84
- <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
85
- </div>
86
-
87
- <div class="tree-flex-footer">
88
- <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
89
- <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
90
- <dropdown class="auto">
91
- <button type="button" data-toggle="dropdown">
92
- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
93
- </button>
94
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
95
- <li>系统信息及设置</li>
96
- <!-- <li>{{name}}</li> -->
97
- <li>{{date}}</li>
98
- <li @click="show=true">修改密码</li>
99
- <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
100
- </ul>
101
-
102
- </dropdown>
103
- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');">
104
- <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
105
- </a>
106
- </div>
107
- </div>
108
- </div>
109
- <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
110
-
111
- <div class="flex right-bg system-right" id="bottom" v-el:bottom>
112
- <!-- <operator-badge></operator-badge> -->
113
- <div class="span">
114
- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
115
- <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
116
- </div>
117
- </div>
118
- </div>
119
- <div v-show="isManger">
120
- <route v-ref:route></route>
121
- </div>
122
-
123
- <!-- 变更录入 模态框 -->
124
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
125
- <!-- 修改密码组件 -->
126
- <modify-pw :show.sync="show" v-if="show"></modify-pw>
127
- <!-- 修改密码模态框 -->
128
- <!-- 异常查看 -->
129
- <modal v-if="showAbnormity" :show.sync="showAbnormity" :width="1000" v-ref:modal backdrop="false">
130
- <header slot="modal-header" class="modal-header">
131
- <button type="button" class="close" @click="stopSoundNew"><span>&times;</span></button>
132
- <h4 class="modal-title">异常报警</h4>
133
- </header>
134
- <article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
135
- <alarm-information :mergeinfo=abnormityWarningData></alarm-information>
136
- </article>
137
- <footer slot="modal-footer" class="modal-footer">
138
- <button type="button" class="btn btn-success" @click='stopSoundNew'>确认</button>
139
- </footer>
140
- </modal>
141
- </div>
142
- </template>
143
-
144
- <script>
145
- import vue from 'vue'
146
- import co from 'co'
147
- import source from '../../static/newStyle/alarm.mp3'
148
-
149
- window.onunload = () => {
150
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
151
- }
152
- window.onbeforeunload = () => {
153
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
154
- }
155
- export default {
156
- title: '主界面',
157
- props: ['functions', 'userid'],
158
- data () {
159
- return {
160
- // 左侧树下部三个小图标
161
- imgs: {
162
- open: '/images/lefticon/菜单伸缩.png',
163
- set: '/images/lefticon/系统设置.png',
164
- out: '/images/lefticon/退出系统.png',
165
- img1: '/images/newStyle/login-user.png',
166
- logoimg: '/static/newStyle/fife.png'
167
- // img2: '/images/lefticon/退出系统.png',
168
- },
169
- treeOrIcon: false,
170
- isManger: false,
171
- show: false,
172
- orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
173
- systemname: '客服系统',
174
- date: this.$login.toStandardDateString(),
175
- tabs:[], //已初始化页签数组
176
- selecttab:'',
177
- setting:true,
178
- srcsetting:'../../static/newStyle/setting.png',
179
- abnormityWarningData: {
180
- data: []
181
- },
182
- showAbnormity: false,
183
- showaData: false,
184
- audio: null,
185
- isTimeAb: parseInt(this.$appdata.getSingleValue('异常报警查询时间')),
186
- isBell: this.$appdata.getSingleValue('是否响铃')
187
-
188
-
189
- // headerHint: true, // 右侧顶部提示信息
190
- // value: 25645.26,
191
- // AddChangeMsgShow: false,
192
- // showsum: false
193
- }
194
- },
195
- ready () {
196
- let component = this.$login.getUrlCompileParames('component')
197
- if (component) {
198
- this.isManger = true
199
- this.$refs.route.init(component, {data: this.functions.functions})
200
- }
201
- if(this.$login.f.password == '1'){
202
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
203
- if(res == 'confirm')
204
- this.show = true
205
- })
206
- }
207
- console.log("系统名称",this.$appdata.getSingleValue("系统名称"))
208
- this.systemname = this.$appdata.getSingleValue("系统名称")? this.$appdata.getSingleValue("系统名称"):'客服系统'
209
- // let oBox = this.getElement("box")
210
- // let oTop = this.getElement("top")
211
- // let oBottom = this.getElement("bottom")
212
- // let oLine = this.getElement("line")
213
- // let that = this
214
- // oLine.onmousedown = function(e) {
215
- // let disX = (e || event).clientX
216
- // oLine.left = oLine.offsetLeft
217
- // document.onmousemove = function(e) {
218
- // let iT = oLine.left + ((e || event).clientX - disX)
219
- // var e = e || window.event
220
- // let tarnameb = e.target || e.srcElement
221
- // let maxT = oBox.clientWight - oLine.offsetWidth
222
- // oLine.style.margin = 0
223
- // iT < 0 && (iT = 0)
224
- // iT > maxT && (iT = maxT)
225
- // oLine.style.left = oTop.style.width = iT + "px"
226
- // oBottom.style.width = oBox.clientWidth - iT + "px"
227
- // that.$set('treeWidth', iT)
228
- // return false
229
- // }
230
- // document.onmouseup = function() {
231
- // document.onmousemove = null
232
- // document.onmouseup = null
233
- // oLine.releaseCapture && oLine.releaseCapture()
234
- // }
235
- // oLine.setCapture && oLine.setCapture()
236
- // return false
237
- // }
238
- this.changeShow()
239
- // 在组件挂载后立即开始定时任务
240
- this.abnormityWarning()
241
- this.abnormityWarData()
242
- },
243
- methods: {
244
- handleMouseMoveOnce () {
245
- const handleMouseMove = (event) => {
246
- this.playSound()
247
- // 移除事件监听器
248
- document.removeEventListener('mousemove', handleMouseMove)
249
- }
250
- // 添加事件监听器
251
- document.addEventListener('mousemove', handleMouseMove)
252
- },
253
- abnormityWarning () {
254
- setInterval(() => {
255
- this.abnormityWarningData = []
256
- this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
257
- this.abnormityWarningData = item
258
- if (this.isBell === '是') {
259
- if (this.abnormityWarningData.data.length > 0) {
260
- this.playSound()
261
- this.showaData = true
262
- this.showAbnormity = true
263
- } else {
264
- this.showaData = false
265
- }
266
- }
267
- })
268
- }, this.isTimeAb)
269
- },
270
- abnormityWarData () {
271
- this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
272
- this.abnormityWarningData = item
273
- if (this.isBell === '是') {
274
- if (this.abnormityWarningData.data.length > 0) {
275
- // this.handleMouseMoveOnce()
276
- this.playSound()
277
- this.showaData = true
278
- this.showAbnormity = true
279
- } else {
280
- this.showaData = false
281
- }
282
- }
283
- })
284
- },
285
- hindsetting(){
286
-
287
- this.setting=!this.setting
288
- if(this.setting){
289
- this.srcsetting='../../static/newStyle/setting.png'
290
- }else {
291
- this.srcsetting='../../static/newStyle/setting1.png'
292
- }
293
-
294
- },
295
- hindsetting1(){
296
-
297
- if(!this.setting){
298
- this.srcsetting='../../static/newStyle/setting.png'
299
- this.setting=true
300
- }
301
-
302
- },
303
- isnodo(val){
304
- console.log(val,'ss')
305
- this.selecttab = val
306
- },
307
- unfurl () {
308
- if(this.showsum){
309
- this.showsum = false
310
- } else {
311
- this.showsum = true
312
- }
313
- },
314
- // getElement(id) {
315
- // return document.getElementById(id)
316
- // },
317
- changeShow () {
318
- // this.treeOrIcon = !this.treeOrIcon
319
- // let oBox = this.getElement("box")
320
- // let oTop = this.getElement("top")
321
- // let oBottom = this.getElement("bottom")
322
- // let oLine = this.getElement("line")
323
- // if (this.treeOrIcon) {
324
- // // oLine.style.left = oTop.style.width = 300 + "px"
325
- // oTop.style.width = 150 + "px"
326
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
327
- // }else {
328
- // oLine.style.left = oTop.style.width = 50 + "px"
329
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
330
- // }
331
- // }
332
- this.treeOrIcon = !this.treeOrIcon
333
- // if (this.treeOrIcon) {
334
- // this.$els.top.style.width = 14 + "%"
335
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
336
- // }else {
337
- // this.$els.top.style.width = 8 + "%"
338
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
339
- // }
340
- },
341
- changeMain(userid) {
342
- this.$goto('res-main', {userid: this.userid}, 'self')
343
- },
344
- tabChange (name) {
345
- console.log(name,'tabchanage')
346
- this.selecttab = name
347
- this.$refs.tree.changeSelect(name)
348
- },
349
- tabcg(val){
350
- console.log(val)
351
- this.tabs = val
352
- },
353
- playSound () {
354
- if (this.audio) {
355
- this.audio.pause()
356
- this.audio = null
357
- }
358
- this.audio = new Audio(source)
359
- // this.audio.src = 'static/newStyle/alarm.mp3' // 替换为实际的音频文件路径
360
- this.audio.loop = true // 设置循环播放
361
- this.audio.autoplay = true
362
- this.audio.play()
363
- },
364
- stopSound () {
365
- if (this.audio) {
366
- this.audio.pause()
367
- this.audio = null
368
- }
369
- },
370
- stopSoundNew () {
371
- this.showAbnormity = false
372
- this.stopSound()
373
- }
374
- },
375
- computed: {
376
- nowDate () {
377
- return this.$login.getNowDate()
378
- }
379
- }
380
- }
381
- </script>
382
- <style lang="less">
383
- /* 组件内通用样式 */
384
- .select-error {
385
- button {
386
- border-bottom: 1px solid #a94442!important;
387
- }
388
- }
389
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
390
- // -webkit-appearance:textfield;
391
- // }
392
- /* 表单输入框组 */
393
- .form-input-group {
394
- display: flex;
395
-
396
- label {
397
- width: 100px;
398
- text-align: right;
399
- + * {
400
- flex: 1;
401
- }
402
- }
403
- }
404
- // 日期组件在表单中沾满
405
- .form-horizontal .datepicker {
406
- width: 100%;
407
- }
408
- // 下拉选择框占据剩余全部空间
409
- .select-overspread {
410
- .form-group {
411
- // margin: 0px 5px 10px 0px;
412
- .form-control {
413
- margin-right: 0px;
414
- }
415
- }
416
- .btn-group, .btn-group-vertical {
417
- width: 100%;
418
- // padding-right: 5px;
419
- button {
420
- width: 100%;
421
- display: flex;
422
- justify-content: space-between;
423
- align-items: center;
424
- }
425
- }
426
- .dropdown-menu {
427
- width: 100%
428
- }
429
- }
430
- // 需要特定宽度的的样式
431
- .width-60 {
432
- width: 60px;
433
- }
434
- .userpanel {
435
- font-weight: 300;
436
- color: #333;
437
- position: fixed;
438
- right: 30px;
439
- top: 45px;
440
- background-color: white;
441
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
442
- padding: 4px 10px 4px 10px;
443
- border-radius:2px;
444
- }
445
- .width-80 {
446
- width: 80px;
447
- }
448
- .width-100 {
449
- width: 100px;
450
- }
451
-
452
-
453
-
454
- /*右侧区域的背景*/
455
- .right-bg {
456
- width: 100%;
457
- flex: 1;
458
- color: #304A66;
459
- }
460
- .tree-flex {
461
- height: 100%;
462
- // width: 150px;
463
- /*width: 60px;*/
464
- background: #4a7cae;
465
- color: #fff;
466
-
467
- }
468
- .tree-flex-icon {
469
- width: 50px;
470
- /*transition: 0.5s;*/
471
- > .span {
472
- overflow-x: visible;
473
- }
474
- }
475
- .tree-flex h3 {
476
- text-align: center;
477
- margin: 1em 0;
478
- }
479
-
480
- .tree-flex-footer {
481
- height: 50px;
482
- display: flex;
483
- flex-direction:column;
484
- color: #fff;
485
- }
486
- .tree-flex-footer a,.tree-flex-footer button{
487
- flex: 1;
488
- padding: 8px 5px;
489
- font-size: 1.2em;
490
- // border-top: 1px solid #697D93;
491
- border-top: 1px solid #4a7cae;
492
- text-decoration: none;
493
- color: #fff;
494
- cursor: pointer;
495
- }
496
- .tree-flex-footer button {
497
- height: auto;
498
- width: 100%;
499
- border-radius: 0px;
500
- background-color: rgba(255,255,255,0);
501
- border: none;
502
- border-top: 1px solid #4a7cae;
503
- // border-top: 1px solid #697D93;
504
- text-align: left;
505
- }
506
- .tree-flex-footer button:hover{
507
- outline: none;
508
- background-color: rgba(255,255,255,0.2);
509
- }
510
- .tree-flex-footer button:focus {
511
- outline: none;
512
- background-color: rgba(255,255,255,0.5);
513
- }
514
- .tree-flex-footer a:hover {
515
- color: #FFF;
516
- background-color: rgba(255,255,255,0.2);
517
- }
518
- .tree-flex .btn-group {
519
- height: 50px!important;
520
- }
521
-
522
- .tree-flex .dropdown-menu {
523
- /* 控制显示列表的样式 */
524
- background: #4a7cae;
525
- border-radius: 0px;
526
- color: #fff;
527
- width: auto;
528
- margin: 0px;
529
- padding: 0px;
530
- }
531
- .tree-flex .dropdown-menu-up {
532
- /* bottom,top控制上下,left和right控制左右*/
533
- left: 100%!important;
534
- top: auto!important;
535
- bottom: 0;
536
- }
537
- .tree-flex .dropdown-menu-down {
538
- /* bottom,top控制上下,left和right控制左右*/
539
- left: 100%!important;
540
- top: 0!important;
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
- .tree-flex .dropdown-menu li + li {
553
- text-align: left;
554
- border: 0;
555
- line-height: 40px;
556
- padding-left: 15px;
557
- padding-right: 15px;
558
- font-size: 1em;
559
- cursor: pointer;
560
- }
561
- .tree-flex .dropdown-menu li + li:hover {
562
- background-color: rgba(255,255,255,0.2);
563
- }
564
- .tree-flex .dropdown-menu li a {
565
- border: none;
566
- color: #fff;
567
- height: 40px;
568
- line-height: 40px;
569
- font-size: 1em;
570
- padding: 0px;
571
- }
572
- .tree-flex .dropdown-menu li a:hover {
573
- color: #fff;
574
- background-color: rgba(255,255,255,0);
575
- }
576
- .tree-flex img{
577
- height: 1.2em;
578
- width: 1.2em;
579
- margin-right: 15px;
580
- margin-left: 5px;
581
- }
582
- .line {
583
- height: 100%;
584
- width: 5px;
585
- background: #4C637B;
586
- cursor: e-resize;
587
- }
588
- /*为树(tree)组件写的样式*/
589
- .tree-img {
590
- font-size: 1.2em;
591
- }
592
-
593
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
594
- .cutout50 {
595
- max-width: 50px;
596
- overflow:hidden;
597
- text-overflow: ellipsis;
598
- white-space: nowrap;
599
- }
600
-
601
- /* 滚动条样式 */
602
- /*---滚动条默认显示样式--*/
603
- ::-webkit-scrollbar-thumb{
604
- // display: none;
605
- background-color:rgba(0,0,0,0.4);
606
- /*background-color:red;*/
607
- height:50px;
608
- outline-offset:-2px;
609
- /*outline:2px solid #fff;*/
610
- -webkit-border-radius:4px;
611
- /*border: 2px solid #fff;*/
612
- }
613
-
614
- /*---鼠标点击滚动条显示样式--*/
615
- ::-webkit-scrollbar-thumb:hover{
616
- // display: inherit;
617
- background-color:rgba(0,0,0,0.4);
618
- height:50px;
619
- -webkit-border-radius:4px;
620
- }
621
- /*---滚动条大小--*/
622
- ::-webkit-scrollbar{
623
- width:8px;
624
- height:8px;
625
- }
626
- /*---滚动框背景样式--*/
627
- ::-webkit-scrollbar-track-piece{
628
- /* 全透明,不显示 */
629
- background-color:rgba(255,255,255,0);
630
- -webkit-border-radius:0;
631
- }
632
- </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
+
60
+ <div class='flex-row aaa system-main' id="box" v-el:box v-if="!isManger">
61
+ <div class="auto" style="position: fixed;right: 370px;top: 15px;color: #333">
62
+ <button class="btn" @click="showAbnormity = true" style="background: none;">
63
+ <img
64
+ src="../assets/shezhi-hover.png" height="15" width="15">
65
+ 异常警报<label style="display: inline-block;width: 8px;height: 8px;border-radius: 50%;background-color: red;text-align: center;line-height: 30px;" v-show="showaData"></label>
66
+ </button>
67
+ <button class="btn" @click="stopSound" style="background: none;">
68
+ 关闭警报
69
+ </button>
70
+ </div>
71
+ <div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">
72
+ <span>
73
+ <img
74
+ src="../assets/people.png" height="15" width="15">
75
+ 登录人:</span>
76
+ <label>{{orgpathnames}}</label>
77
+ </div>
78
+ <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
79
+ <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >
80
+ <div class="span system-left-tree " style="height:85%">
81
+ <h3>{{systemname}}</h3>
82
+ <!-- <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;">-->
83
+ <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
84
+ <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
85
+ </div>
86
+
87
+ <div class="tree-flex-footer">
88
+ <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
89
+ <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
90
+ <dropdown class="auto">
91
+ <button type="button" data-toggle="dropdown">
92
+ <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
93
+ </button>
94
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
95
+ <li>系统信息及设置</li>
96
+ <!-- <li>{{name}}</li> -->
97
+ <li>{{date}}</li>
98
+ <li @click="show=true">修改密码</li>
99
+ <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
100
+ </ul>
101
+
102
+ </dropdown>
103
+ <a href="index.html" onclick="return confirm('您确定要退出系统吗?');">
104
+ <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
105
+ </a>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
110
+
111
+ <div class="flex right-bg system-right" id="bottom" v-el:bottom>
112
+ <!-- <operator-badge></operator-badge> -->
113
+ <div class="span">
114
+ <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
115
+ <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ <div v-show="isManger">
120
+ <route v-ref:route></route>
121
+ </div>
122
+
123
+ <!-- 变更录入 模态框 -->
124
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
125
+ <!-- 修改密码组件 -->
126
+ <modify-pw :show.sync="show" v-if="show"></modify-pw>
127
+ <!-- 修改密码模态框 -->
128
+ <!-- 异常查看 -->
129
+ <modal v-if="showAbnormity" :show.sync="showAbnormity" :width="1000" v-ref:modal backdrop="false">
130
+ <header slot="modal-header" class="modal-header">
131
+ <button type="button" class="close" @click="stopSoundNew"><span>&times;</span></button>
132
+ <h4 class="modal-title">异常报警</h4>
133
+ </header>
134
+ <article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
135
+ <alarm-information :mergeinfo=abnormityWarningData></alarm-information>
136
+ </article>
137
+ <footer slot="modal-footer" class="modal-footer">
138
+ <button type="button" class="btn btn-success" @click='stopSoundNew'>确认</button>
139
+ </footer>
140
+ </modal>
141
+ </div>
142
+ </template>
143
+
144
+ <script>
145
+ import vue from 'vue'
146
+ import co from 'co'
147
+ import source from '../../static/newStyle/alarm.mp3'
148
+
149
+ window.onunload = () => {
150
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
151
+ }
152
+ window.onbeforeunload = () => {
153
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
154
+ }
155
+ export default {
156
+ title: '主界面',
157
+ props: ['functions', 'userid'],
158
+ data () {
159
+ return {
160
+ // 左侧树下部三个小图标
161
+ imgs: {
162
+ open: '/images/lefticon/菜单伸缩.png',
163
+ set: '/images/lefticon/系统设置.png',
164
+ out: '/images/lefticon/退出系统.png',
165
+ img1: '/images/newStyle/login-user.png',
166
+ logoimg: '/static/newStyle/fife.png'
167
+ // img2: '/images/lefticon/退出系统.png',
168
+ },
169
+ treeOrIcon: false,
170
+ isManger: false,
171
+ show: false,
172
+ orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
173
+ systemname: '客服系统',
174
+ date: this.$login.toStandardDateString(),
175
+ tabs:[], //已初始化页签数组
176
+ selecttab:'',
177
+ setting:true,
178
+ srcsetting:'../../static/newStyle/setting.png',
179
+ abnormityWarningData: {
180
+ data: []
181
+ },
182
+ showAbnormity: false,
183
+ showaData: false,
184
+ audio: null,
185
+ isTimeAb: parseInt(this.$appdata.getSingleValue('异常报警查询时间')),
186
+ isBell: this.$appdata.getSingleValue('是否响铃')
187
+
188
+
189
+ // headerHint: true, // 右侧顶部提示信息
190
+ // value: 25645.26,
191
+ // AddChangeMsgShow: false,
192
+ // showsum: false
193
+ }
194
+ },
195
+ ready () {
196
+ let component = this.$login.getUrlCompileParames('component')
197
+ if (component) {
198
+ this.isManger = true
199
+ this.$refs.route.init(component, {data: this.functions.functions})
200
+ }
201
+ if(this.$login.f.password == '1'){
202
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
203
+ if(res == 'confirm')
204
+ this.show = true
205
+ })
206
+ }
207
+ console.log("系统名称",this.$appdata.getSingleValue("系统名称"))
208
+ this.systemname = this.$appdata.getSingleValue("系统名称")? this.$appdata.getSingleValue("系统名称"):'客服系统'
209
+ // let oBox = this.getElement("box")
210
+ // let oTop = this.getElement("top")
211
+ // let oBottom = this.getElement("bottom")
212
+ // let oLine = this.getElement("line")
213
+ // let that = this
214
+ // oLine.onmousedown = function(e) {
215
+ // let disX = (e || event).clientX
216
+ // oLine.left = oLine.offsetLeft
217
+ // document.onmousemove = function(e) {
218
+ // let iT = oLine.left + ((e || event).clientX - disX)
219
+ // var e = e || window.event
220
+ // let tarnameb = e.target || e.srcElement
221
+ // let maxT = oBox.clientWight - oLine.offsetWidth
222
+ // oLine.style.margin = 0
223
+ // iT < 0 && (iT = 0)
224
+ // iT > maxT && (iT = maxT)
225
+ // oLine.style.left = oTop.style.width = iT + "px"
226
+ // oBottom.style.width = oBox.clientWidth - iT + "px"
227
+ // that.$set('treeWidth', iT)
228
+ // return false
229
+ // }
230
+ // document.onmouseup = function() {
231
+ // document.onmousemove = null
232
+ // document.onmouseup = null
233
+ // oLine.releaseCapture && oLine.releaseCapture()
234
+ // }
235
+ // oLine.setCapture && oLine.setCapture()
236
+ // return false
237
+ // }
238
+ this.changeShow()
239
+ // 在组件挂载后立即开始定时任务
240
+ this.abnormityWarning()
241
+ this.abnormityWarData()
242
+ },
243
+ methods: {
244
+ handleMouseMoveOnce () {
245
+ const handleMouseMove = (event) => {
246
+ this.playSound()
247
+ // 移除事件监听器
248
+ document.removeEventListener('mousemove', handleMouseMove)
249
+ }
250
+ // 添加事件监听器
251
+ document.addEventListener('mousemove', handleMouseMove)
252
+ },
253
+ abnormityWarning () {
254
+ setInterval(() => {
255
+ this.abnormityWarningData = []
256
+ this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
257
+ this.abnormityWarningData = item
258
+ if (this.isBell === '是') {
259
+ if (this.abnormityWarningData.data.length > 0) {
260
+ this.playSound()
261
+ this.showaData = true
262
+ this.showAbnormity = true
263
+ } else {
264
+ this.showaData = false
265
+ }
266
+ }
267
+ })
268
+ }, this.isTimeAb)
269
+ },
270
+ abnormityWarData () {
271
+ this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
272
+ this.abnormityWarningData = item
273
+ if (this.isBell === '是') {
274
+ if (this.abnormityWarningData.data.length > 0) {
275
+ // this.handleMouseMoveOnce()
276
+ this.playSound()
277
+ this.showaData = true
278
+ this.showAbnormity = true
279
+ } else {
280
+ this.showaData = false
281
+ }
282
+ }
283
+ })
284
+ },
285
+ hindsetting(){
286
+
287
+ this.setting=!this.setting
288
+ if(this.setting){
289
+ this.srcsetting='../../static/newStyle/setting.png'
290
+ }else {
291
+ this.srcsetting='../../static/newStyle/setting1.png'
292
+ }
293
+
294
+ },
295
+ hindsetting1(){
296
+
297
+ if(!this.setting){
298
+ this.srcsetting='../../static/newStyle/setting.png'
299
+ this.setting=true
300
+ }
301
+
302
+ },
303
+ isnodo(val){
304
+ console.log(val,'ss')
305
+ this.selecttab = val
306
+ },
307
+ unfurl () {
308
+ if(this.showsum){
309
+ this.showsum = false
310
+ } else {
311
+ this.showsum = true
312
+ }
313
+ },
314
+ // getElement(id) {
315
+ // return document.getElementById(id)
316
+ // },
317
+ changeShow () {
318
+ // this.treeOrIcon = !this.treeOrIcon
319
+ // let oBox = this.getElement("box")
320
+ // let oTop = this.getElement("top")
321
+ // let oBottom = this.getElement("bottom")
322
+ // let oLine = this.getElement("line")
323
+ // if (this.treeOrIcon) {
324
+ // // oLine.style.left = oTop.style.width = 300 + "px"
325
+ // oTop.style.width = 150 + "px"
326
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
327
+ // }else {
328
+ // oLine.style.left = oTop.style.width = 50 + "px"
329
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
330
+ // }
331
+ // }
332
+ this.treeOrIcon = !this.treeOrIcon
333
+ // if (this.treeOrIcon) {
334
+ // this.$els.top.style.width = 14 + "%"
335
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
336
+ // }else {
337
+ // this.$els.top.style.width = 8 + "%"
338
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
339
+ // }
340
+ },
341
+ changeMain(userid) {
342
+ this.$goto('res-main', {userid: this.userid}, 'self')
343
+ },
344
+ tabChange (name) {
345
+ console.log(name,'tabchanage')
346
+ this.selecttab = name
347
+ this.$refs.tree.changeSelect(name)
348
+ },
349
+ tabcg(val){
350
+ console.log(val)
351
+ this.tabs = val
352
+ },
353
+ playSound () {
354
+ if (this.audio) {
355
+ this.audio.pause()
356
+ this.audio = null
357
+ }
358
+ this.audio = new Audio(source)
359
+ // this.audio.src = 'static/newStyle/alarm.mp3' // 替换为实际的音频文件路径
360
+ this.audio.loop = true // 设置循环播放
361
+ this.audio.autoplay = true
362
+ this.audio.play()
363
+ },
364
+ stopSound () {
365
+ if (this.audio) {
366
+ this.audio.pause()
367
+ this.audio = null
368
+ }
369
+ },
370
+ stopSoundNew () {
371
+ this.showAbnormity = false
372
+ this.stopSound()
373
+ }
374
+ },
375
+ computed: {
376
+ nowDate () {
377
+ return this.$login.getNowDate()
378
+ }
379
+ }
380
+ }
381
+ </script>
382
+ <style lang="less">
383
+ /* 组件内通用样式 */
384
+ .select-error {
385
+ button {
386
+ border-bottom: 1px solid #a94442!important;
387
+ }
388
+ }
389
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
390
+ // -webkit-appearance:textfield;
391
+ // }
392
+ /* 表单输入框组 */
393
+ .form-input-group {
394
+ display: flex;
395
+
396
+ label {
397
+ width: 100px;
398
+ text-align: right;
399
+ + * {
400
+ flex: 1;
401
+ }
402
+ }
403
+ }
404
+ // 日期组件在表单中沾满
405
+ .form-horizontal .datepicker {
406
+ width: 100%;
407
+ }
408
+ // 下拉选择框占据剩余全部空间
409
+ .select-overspread {
410
+ .form-group {
411
+ // margin: 0px 5px 10px 0px;
412
+ .form-control {
413
+ margin-right: 0px;
414
+ }
415
+ }
416
+ .btn-group, .btn-group-vertical {
417
+ width: 100%;
418
+ // padding-right: 5px;
419
+ button {
420
+ width: 100%;
421
+ display: flex;
422
+ justify-content: space-between;
423
+ align-items: center;
424
+ }
425
+ }
426
+ .dropdown-menu {
427
+ width: 100%
428
+ }
429
+ }
430
+ // 需要特定宽度的的样式
431
+ .width-60 {
432
+ width: 60px;
433
+ }
434
+ .userpanel {
435
+ font-weight: 300;
436
+ color: #333;
437
+ position: fixed;
438
+ right: 30px;
439
+ top: 45px;
440
+ background-color: white;
441
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
442
+ padding: 4px 10px 4px 10px;
443
+ border-radius:2px;
444
+ }
445
+ .width-80 {
446
+ width: 80px;
447
+ }
448
+ .width-100 {
449
+ width: 100px;
450
+ }
451
+
452
+
453
+
454
+ /*右侧区域的背景*/
455
+ .right-bg {
456
+ width: 100%;
457
+ flex: 1;
458
+ color: #304A66;
459
+ }
460
+ .tree-flex {
461
+ height: 100%;
462
+ // width: 150px;
463
+ /*width: 60px;*/
464
+ background: #4a7cae;
465
+ color: #fff;
466
+
467
+ }
468
+ .tree-flex-icon {
469
+ width: 50px;
470
+ /*transition: 0.5s;*/
471
+ > .span {
472
+ overflow-x: visible;
473
+ }
474
+ }
475
+ .tree-flex h3 {
476
+ text-align: center;
477
+ margin: 1em 0;
478
+ }
479
+
480
+ .tree-flex-footer {
481
+ height: 50px;
482
+ display: flex;
483
+ flex-direction:column;
484
+ color: #fff;
485
+ }
486
+ .tree-flex-footer a,.tree-flex-footer button{
487
+ flex: 1;
488
+ padding: 8px 5px;
489
+ font-size: 1.2em;
490
+ // border-top: 1px solid #697D93;
491
+ border-top: 1px solid #4a7cae;
492
+ text-decoration: none;
493
+ color: #fff;
494
+ cursor: pointer;
495
+ }
496
+ .tree-flex-footer button {
497
+ height: auto;
498
+ width: 100%;
499
+ border-radius: 0px;
500
+ background-color: rgba(255,255,255,0);
501
+ border: none;
502
+ border-top: 1px solid #4a7cae;
503
+ // border-top: 1px solid #697D93;
504
+ text-align: left;
505
+ }
506
+ .tree-flex-footer button:hover{
507
+ outline: none;
508
+ background-color: rgba(255,255,255,0.2);
509
+ }
510
+ .tree-flex-footer button:focus {
511
+ outline: none;
512
+ background-color: rgba(255,255,255,0.5);
513
+ }
514
+ .tree-flex-footer a:hover {
515
+ color: #FFF;
516
+ background-color: rgba(255,255,255,0.2);
517
+ }
518
+ .tree-flex .btn-group {
519
+ height: 50px!important;
520
+ }
521
+
522
+ .tree-flex .dropdown-menu {
523
+ /* 控制显示列表的样式 */
524
+ background: #4a7cae;
525
+ border-radius: 0px;
526
+ color: #fff;
527
+ width: auto;
528
+ margin: 0px;
529
+ padding: 0px;
530
+ }
531
+ .tree-flex .dropdown-menu-up {
532
+ /* bottom,top控制上下,left和right控制左右*/
533
+ left: 100%!important;
534
+ top: auto!important;
535
+ bottom: 0;
536
+ }
537
+ .tree-flex .dropdown-menu-down {
538
+ /* bottom,top控制上下,left和right控制左右*/
539
+ left: 100%!important;
540
+ top: 0!important;
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
+ .tree-flex .dropdown-menu li + li {
553
+ text-align: left;
554
+ border: 0;
555
+ line-height: 40px;
556
+ padding-left: 15px;
557
+ padding-right: 15px;
558
+ font-size: 1em;
559
+ cursor: pointer;
560
+ }
561
+ .tree-flex .dropdown-menu li + li:hover {
562
+ background-color: rgba(255,255,255,0.2);
563
+ }
564
+ .tree-flex .dropdown-menu li a {
565
+ border: none;
566
+ color: #fff;
567
+ height: 40px;
568
+ line-height: 40px;
569
+ font-size: 1em;
570
+ padding: 0px;
571
+ }
572
+ .tree-flex .dropdown-menu li a:hover {
573
+ color: #fff;
574
+ background-color: rgba(255,255,255,0);
575
+ }
576
+ .tree-flex img{
577
+ height: 1.2em;
578
+ width: 1.2em;
579
+ margin-right: 15px;
580
+ margin-left: 5px;
581
+ }
582
+ .line {
583
+ height: 100%;
584
+ width: 5px;
585
+ background: #4C637B;
586
+ cursor: e-resize;
587
+ }
588
+ /*为树(tree)组件写的样式*/
589
+ .tree-img {
590
+ font-size: 1.2em;
591
+ }
592
+
593
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
594
+ .cutout50 {
595
+ max-width: 50px;
596
+ overflow:hidden;
597
+ text-overflow: ellipsis;
598
+ white-space: nowrap;
599
+ }
600
+
601
+ /* 滚动条样式 */
602
+ /*---滚动条默认显示样式--*/
603
+ ::-webkit-scrollbar-thumb{
604
+ // display: none;
605
+ background-color:rgba(0,0,0,0.4);
606
+ /*background-color:red;*/
607
+ height:50px;
608
+ outline-offset:-2px;
609
+ /*outline:2px solid #fff;*/
610
+ -webkit-border-radius:4px;
611
+ /*border: 2px solid #fff;*/
612
+ }
613
+
614
+ /*---鼠标点击滚动条显示样式--*/
615
+ ::-webkit-scrollbar-thumb:hover{
616
+ // display: inherit;
617
+ background-color:rgba(0,0,0,0.4);
618
+ height:50px;
619
+ -webkit-border-radius:4px;
620
+ }
621
+ /*---滚动条大小--*/
622
+ ::-webkit-scrollbar{
623
+ width:8px;
624
+ height:8px;
625
+ }
626
+ /*---滚动框背景样式--*/
627
+ ::-webkit-scrollbar-track-piece{
628
+ /* 全透明,不显示 */
629
+ background-color:rgba(255,255,255,0);
630
+ -webkit-border-radius:0;
631
+ }
632
+ </style>