safecheck-client 3.0.33-91 → 3.0.33-93
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.
- package/package.json +2 -1
- package/src/android-bootstrap/less/dropdowns.less +216 -216
- package/src/android-bootstrap/less/forms.less +626 -626
- package/src/bootstrap/less/tables.less +262 -262
- package/src/components/AloneLoadParams.vue +25 -25
- package/src/components/Main.vue +393 -393
- package/src/components/android/DevicesNoncivil.vue +214 -214
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/defects/DefectSeting.vue +98 -98
- package/src/components/equipment/BoilerUsage.vue +105 -105
- package/src/components/equipment/CookerUsage.vue +105 -105
- package/src/components/equipment/DeviceUsage.vue +105 -105
- package/src/components/equipment/FurnaceUsage.vue +105 -105
- package/src/components/equipment/GasMeterUsage.vue +109 -109
- package/src/components/equipment/HeaterUsage.vue +105 -105
- package/src/components/gasusage/GasUsage.vue +126 -126
- package/src/components/paper/RepairVerify.vue +139 -139
- package/src/components/paper/VerifyForm.vue +107 -107
- package/src/components/planmanage/PlanManage.vue +834 -834
- package/src/expandcss.less +571 -571
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +468 -468
- package/src/filiale/tianke/pc/checkScreen.vue +5 -0
- package/src/stores/AppData.js +46 -46
package/src/components/Main.vue
CHANGED
@@ -1,393 +1,393 @@
|
|
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>{{name}}</label>
|
7
|
-
</div>
|
8
|
-
<div class="flex tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
|
9
|
-
<h3>Aote</h3>
|
10
|
-
<div class="span" style="margin-bottom:20px;flex: 1;">
|
11
|
-
<left-tree :functions='functions.functions' :userid='userid' v-show="treeOrIcon" 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="home.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' @tab-changed="tabChange" 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 * as Util from './Util'
|
61
|
-
|
62
|
-
export default {
|
63
|
-
title: '主界面',
|
64
|
-
props: ['functions', 'userid'],
|
65
|
-
data () {
|
66
|
-
return {
|
67
|
-
// 左侧树下部三个小图标
|
68
|
-
imgs: {
|
69
|
-
open: '/images/mainicon/treeopen.png',
|
70
|
-
set: '/images/mainicon/treeset.png',
|
71
|
-
out: '/images/mainicon/treeout.png'
|
72
|
-
},
|
73
|
-
treeOrIcon: false,
|
74
|
-
isManger: false,
|
75
|
-
show: false,
|
76
|
-
name: Util.f.name,
|
77
|
-
date: Util.toStandardDateString()
|
78
|
-
|
79
|
-
// headerHint: true, // 右侧顶部提示信息
|
80
|
-
// value: 25645.26,
|
81
|
-
// AddChangeMsgShow: false,
|
82
|
-
// showsum: false
|
83
|
-
}
|
84
|
-
},
|
85
|
-
ready () {
|
86
|
-
let component = Util.getUrlCompileParames('component')
|
87
|
-
if (component) {
|
88
|
-
this.isManger = true
|
89
|
-
this.$refs.route.init(component, {data: this.functions.functions})
|
90
|
-
}
|
91
|
-
// let oBox = this.getElement("box")
|
92
|
-
// let oTop = this.getElement("top")
|
93
|
-
// let oBottom = this.getElement("bottom")
|
94
|
-
// let oLine = this.getElement("line")
|
95
|
-
// let that = this
|
96
|
-
// oLine.onmousedown = function(e) {
|
97
|
-
// let disX = (e || event).clientX
|
98
|
-
// oLine.left = oLine.offsetLeft
|
99
|
-
// document.onmousemove = function(e) {
|
100
|
-
// let iT = oLine.left + ((e || event).clientX - disX)
|
101
|
-
// var e = e || window.event
|
102
|
-
// let tarnameb = e.target || e.srcElement
|
103
|
-
// let maxT = oBox.clientWight - oLine.offsetWidth
|
104
|
-
// oLine.style.margin = 0
|
105
|
-
// iT < 0 && (iT = 0)
|
106
|
-
// iT > maxT && (iT = maxT)
|
107
|
-
// oLine.style.left = oTop.style.width = iT + "px"
|
108
|
-
// oBottom.style.width = oBox.clientWidth - iT + "px"
|
109
|
-
// that.$set('treeWidth', iT)
|
110
|
-
// return false
|
111
|
-
// }
|
112
|
-
// document.onmouseup = function() {
|
113
|
-
// document.onmousemove = null
|
114
|
-
// document.onmouseup = null
|
115
|
-
// oLine.releaseCapture && oLine.releaseCapture()
|
116
|
-
// }
|
117
|
-
// oLine.setCapture && oLine.setCapture()
|
118
|
-
// return false
|
119
|
-
// }
|
120
|
-
this.changeShow()
|
121
|
-
},
|
122
|
-
methods: {
|
123
|
-
unfurl () {
|
124
|
-
if(this.showsum){
|
125
|
-
this.showsum = false
|
126
|
-
} else {
|
127
|
-
this.showsum = true
|
128
|
-
}
|
129
|
-
},
|
130
|
-
// getElement(id) {
|
131
|
-
// return document.getElementById(id)
|
132
|
-
// },
|
133
|
-
changeShow () {
|
134
|
-
// this.treeOrIcon = !this.treeOrIcon
|
135
|
-
// let oBox = this.getElement("box")
|
136
|
-
// let oTop = this.getElement("top")
|
137
|
-
// let oBottom = this.getElement("bottom")
|
138
|
-
// let oLine = this.getElement("line")
|
139
|
-
// if (this.treeOrIcon) {
|
140
|
-
// // oLine.style.left = oTop.style.width = 300 + "px"
|
141
|
-
// oTop.style.width = 150 + "px"
|
142
|
-
// oBottom.style.width = oBox.clientWidth - 150 + "px"
|
143
|
-
// }else {
|
144
|
-
// oLine.style.left = oTop.style.width = 50 + "px"
|
145
|
-
// oBottom.style.width = oBox.clientWidth - 50 + "px"
|
146
|
-
// }
|
147
|
-
// }
|
148
|
-
this.treeOrIcon = !this.treeOrIcon
|
149
|
-
if (this.treeOrIcon) {
|
150
|
-
this.$els.top.style.width = 160 + "px"
|
151
|
-
this.$els.bottom.style.width = this.$els.box.clientWidth - 160 + "px"
|
152
|
-
}else {
|
153
|
-
this.$els.top.style.width = 50 + "px"
|
154
|
-
this.$els.bottom.style.width = this.$els.box.clientWidth - 50 + "px"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
tabChange (name) {
|
158
|
-
this.$refs.tree.changeSelect(name)
|
159
|
-
}
|
160
|
-
},
|
161
|
-
computed: {
|
162
|
-
nowDate () {
|
163
|
-
return Util.getNowDate()
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
</script>
|
168
|
-
<style lang="less">
|
169
|
-
/* 组件内通用样式 */
|
170
|
-
.select-error {
|
171
|
-
button {
|
172
|
-
border-bottom: 1px solid #a94442!important;
|
173
|
-
}
|
174
|
-
}
|
175
|
-
/* 表单输入框组 */
|
176
|
-
.form-input-group {
|
177
|
-
display: flex;
|
178
|
-
|
179
|
-
label {
|
180
|
-
width: 100px;
|
181
|
-
text-align: right;
|
182
|
-
+ * {
|
183
|
-
flex: 1;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
}
|
187
|
-
// 日期组件在表单中沾满
|
188
|
-
.form-horizontal .datepicker {
|
189
|
-
width: 100%;
|
190
|
-
}
|
191
|
-
// 下拉选择框占据剩余全部空间
|
192
|
-
.select-overspread {
|
193
|
-
.form-group {
|
194
|
-
// margin: 0px 5px 10px 0px;
|
195
|
-
.form-control {
|
196
|
-
margin-right: 0px;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
.btn-group, .btn-group-vertical {
|
200
|
-
width: 100%;
|
201
|
-
// padding-right: 5px;
|
202
|
-
button {
|
203
|
-
width: 100%;
|
204
|
-
display: flex;
|
205
|
-
justify-content: space-between;
|
206
|
-
align-items: center;
|
207
|
-
}
|
208
|
-
}
|
209
|
-
.dropdown-menu {
|
210
|
-
width: 100%
|
211
|
-
}
|
212
|
-
}
|
213
|
-
// 需要特定宽度的的样式
|
214
|
-
.width-60 {
|
215
|
-
width: 60px;
|
216
|
-
}
|
217
|
-
.width-80 {
|
218
|
-
width: 80px;
|
219
|
-
}
|
220
|
-
.width-100 {
|
221
|
-
width: 100px;
|
222
|
-
}
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
/*右侧区域的背景*/
|
227
|
-
.right-bg {
|
228
|
-
width: 100%;
|
229
|
-
flex: 1;
|
230
|
-
padding: 10px 25px;
|
231
|
-
color: #304A66;
|
232
|
-
}
|
233
|
-
.tree-flex {
|
234
|
-
height: 100%;
|
235
|
-
// width: 150px;
|
236
|
-
/*width: 60px;*/
|
237
|
-
background: #4C637B;
|
238
|
-
color: #fff;
|
239
|
-
|
240
|
-
}
|
241
|
-
.tree-flex-icon {
|
242
|
-
width: 50px;
|
243
|
-
/*transition: 0.5s;*/
|
244
|
-
> .span {
|
245
|
-
overflow-x: visible;
|
246
|
-
}
|
247
|
-
}
|
248
|
-
.tree-flex h3 {
|
249
|
-
text-align: center;
|
250
|
-
line-height: 80px;
|
251
|
-
margin: 0px;
|
252
|
-
}
|
253
|
-
|
254
|
-
.tree-flex-footer {
|
255
|
-
height: 150px;
|
256
|
-
display: flex;
|
257
|
-
flex-direction:column;
|
258
|
-
color: #fff;
|
259
|
-
}
|
260
|
-
.tree-flex-footer a,.tree-flex-footer button{
|
261
|
-
flex: 1;
|
262
|
-
padding: 8px 5px;
|
263
|
-
font-size: 1.2em;
|
264
|
-
border-top: 1px solid #697D93;
|
265
|
-
text-decoration: none;
|
266
|
-
color: #fff;
|
267
|
-
cursor: pointer;
|
268
|
-
}
|
269
|
-
.tree-flex-footer button {
|
270
|
-
height: auto;
|
271
|
-
width: 100%;
|
272
|
-
border-radius: 0px;
|
273
|
-
background-color: rgba(255,255,255,0);
|
274
|
-
border: none;
|
275
|
-
border-top: 1px solid #697D93;
|
276
|
-
text-align: left;
|
277
|
-
}
|
278
|
-
.tree-flex-footer button:hover{
|
279
|
-
outline: none;
|
280
|
-
background-color: rgba(255,255,255,0.2);
|
281
|
-
}
|
282
|
-
.tree-flex-footer button:focus {
|
283
|
-
outline: none;
|
284
|
-
background-color: rgba(255,255,255,0.5);
|
285
|
-
}
|
286
|
-
.tree-flex-footer a:hover {
|
287
|
-
color: #FFF;
|
288
|
-
background-color: rgba(255,255,255,0.2);
|
289
|
-
}
|
290
|
-
.tree-flex .btn-group {
|
291
|
-
height: 50px!important;
|
292
|
-
}
|
293
|
-
|
294
|
-
.tree-flex .dropdown-menu {
|
295
|
-
/* 控制显示列表的样式 */
|
296
|
-
background: #4C637B;
|
297
|
-
border-radius: 0px;
|
298
|
-
color: #fff;
|
299
|
-
width: auto;
|
300
|
-
margin: 0px;
|
301
|
-
padding: 0px;
|
302
|
-
}
|
303
|
-
.tree-flex .dropdown-menu-up {
|
304
|
-
/* bottom,top控制上下,left和right控制左右*/
|
305
|
-
left: 100%!important;
|
306
|
-
top: auto!important;
|
307
|
-
bottom: 0;
|
308
|
-
}
|
309
|
-
.tree-flex .dropdown-menu-down {
|
310
|
-
/* bottom,top控制上下,left和right控制左右*/
|
311
|
-
left: 100%!important;
|
312
|
-
top: 0!important;
|
313
|
-
}
|
314
|
-
.tree-flex .dropdown-menu li{
|
315
|
-
text-align: center;
|
316
|
-
line-height: 50px;
|
317
|
-
border-bottom: 1px solid #697D93;
|
318
|
-
font-size: 1.2em;
|
319
|
-
width: auto;
|
320
|
-
white-space: nowrap;
|
321
|
-
cursor: default;
|
322
|
-
|
323
|
-
}
|
324
|
-
.tree-flex .dropdown-menu li + li {
|
325
|
-
text-align: left;
|
326
|
-
border: 0;
|
327
|
-
line-height: 40px;
|
328
|
-
padding-left: 15px;
|
329
|
-
padding-right: 15px;
|
330
|
-
font-size: 1em;
|
331
|
-
cursor: pointer;
|
332
|
-
}
|
333
|
-
.tree-flex .dropdown-menu li + li:hover {
|
334
|
-
background-color: rgba(255,255,255,0.2);
|
335
|
-
}
|
336
|
-
.tree-flex .dropdown-menu li a {
|
337
|
-
border: none;
|
338
|
-
color: #fff;
|
339
|
-
height: 40px;
|
340
|
-
line-height: 40px;
|
341
|
-
font-size: 1em;
|
342
|
-
padding: 0px;
|
343
|
-
}
|
344
|
-
.tree-flex .dropdown-menu li a:hover {
|
345
|
-
color: #fff;
|
346
|
-
background-color: rgba(255,255,255,0);
|
347
|
-
}
|
348
|
-
.tree-flex img{
|
349
|
-
height: 30px;
|
350
|
-
margin-right: 15px;
|
351
|
-
}
|
352
|
-
.line {
|
353
|
-
height: 100%;
|
354
|
-
width: 5px;
|
355
|
-
background: #4C637B;
|
356
|
-
cursor: e-resize;
|
357
|
-
}
|
358
|
-
/*为树(tree)组件写的样式*/
|
359
|
-
.tree-img {
|
360
|
-
font-size: 1.2em;
|
361
|
-
}
|
362
|
-
|
363
|
-
/* 滚动条样式 */
|
364
|
-
/*---滚动条默认显示样式--*/
|
365
|
-
::-webkit-scrollbar-thumb{
|
366
|
-
// display: none;
|
367
|
-
background-color:rgba(0,0,0,0.2);
|
368
|
-
height:50px;
|
369
|
-
outline-offset:-2px;
|
370
|
-
/*outline:2px solid #fff;*/
|
371
|
-
-webkit-border-radius:4px;
|
372
|
-
/*border: 2px solid #fff;*/
|
373
|
-
}
|
374
|
-
|
375
|
-
/*---鼠标点击滚动条显示样式--*/
|
376
|
-
::-webkit-scrollbar-thumb:hover{
|
377
|
-
// display: inherit;
|
378
|
-
background-color:rgba(0,0,0,0.4);
|
379
|
-
height:50px;
|
380
|
-
-webkit-border-radius:4px;
|
381
|
-
}
|
382
|
-
/*---滚动条大小--*/
|
383
|
-
::-webkit-scrollbar{
|
384
|
-
width:8px;
|
385
|
-
height:8px;
|
386
|
-
}
|
387
|
-
/*---滚动框背景样式--*/
|
388
|
-
::-webkit-scrollbar-track-piece{
|
389
|
-
/* 全透明,不显示 */
|
390
|
-
background-color:rgba(255,255,255,0);
|
391
|
-
-webkit-border-radius:0;
|
392
|
-
}
|
393
|
-
</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>{{name}}</label>
|
7
|
+
</div>
|
8
|
+
<div class="flex tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
|
9
|
+
<h3>Aote</h3>
|
10
|
+
<div class="span" style="margin-bottom:20px;flex: 1;">
|
11
|
+
<left-tree :functions='functions.functions' :userid='userid' v-show="treeOrIcon" 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="home.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' @tab-changed="tabChange" 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 * as Util from './Util'
|
61
|
+
|
62
|
+
export default {
|
63
|
+
title: '主界面',
|
64
|
+
props: ['functions', 'userid'],
|
65
|
+
data () {
|
66
|
+
return {
|
67
|
+
// 左侧树下部三个小图标
|
68
|
+
imgs: {
|
69
|
+
open: '/images/mainicon/treeopen.png',
|
70
|
+
set: '/images/mainicon/treeset.png',
|
71
|
+
out: '/images/mainicon/treeout.png'
|
72
|
+
},
|
73
|
+
treeOrIcon: false,
|
74
|
+
isManger: false,
|
75
|
+
show: false,
|
76
|
+
name: Util.f.name,
|
77
|
+
date: Util.toStandardDateString()
|
78
|
+
|
79
|
+
// headerHint: true, // 右侧顶部提示信息
|
80
|
+
// value: 25645.26,
|
81
|
+
// AddChangeMsgShow: false,
|
82
|
+
// showsum: false
|
83
|
+
}
|
84
|
+
},
|
85
|
+
ready () {
|
86
|
+
let component = Util.getUrlCompileParames('component')
|
87
|
+
if (component) {
|
88
|
+
this.isManger = true
|
89
|
+
this.$refs.route.init(component, {data: this.functions.functions})
|
90
|
+
}
|
91
|
+
// let oBox = this.getElement("box")
|
92
|
+
// let oTop = this.getElement("top")
|
93
|
+
// let oBottom = this.getElement("bottom")
|
94
|
+
// let oLine = this.getElement("line")
|
95
|
+
// let that = this
|
96
|
+
// oLine.onmousedown = function(e) {
|
97
|
+
// let disX = (e || event).clientX
|
98
|
+
// oLine.left = oLine.offsetLeft
|
99
|
+
// document.onmousemove = function(e) {
|
100
|
+
// let iT = oLine.left + ((e || event).clientX - disX)
|
101
|
+
// var e = e || window.event
|
102
|
+
// let tarnameb = e.target || e.srcElement
|
103
|
+
// let maxT = oBox.clientWight - oLine.offsetWidth
|
104
|
+
// oLine.style.margin = 0
|
105
|
+
// iT < 0 && (iT = 0)
|
106
|
+
// iT > maxT && (iT = maxT)
|
107
|
+
// oLine.style.left = oTop.style.width = iT + "px"
|
108
|
+
// oBottom.style.width = oBox.clientWidth - iT + "px"
|
109
|
+
// that.$set('treeWidth', iT)
|
110
|
+
// return false
|
111
|
+
// }
|
112
|
+
// document.onmouseup = function() {
|
113
|
+
// document.onmousemove = null
|
114
|
+
// document.onmouseup = null
|
115
|
+
// oLine.releaseCapture && oLine.releaseCapture()
|
116
|
+
// }
|
117
|
+
// oLine.setCapture && oLine.setCapture()
|
118
|
+
// return false
|
119
|
+
// }
|
120
|
+
this.changeShow()
|
121
|
+
},
|
122
|
+
methods: {
|
123
|
+
unfurl () {
|
124
|
+
if(this.showsum){
|
125
|
+
this.showsum = false
|
126
|
+
} else {
|
127
|
+
this.showsum = true
|
128
|
+
}
|
129
|
+
},
|
130
|
+
// getElement(id) {
|
131
|
+
// return document.getElementById(id)
|
132
|
+
// },
|
133
|
+
changeShow () {
|
134
|
+
// this.treeOrIcon = !this.treeOrIcon
|
135
|
+
// let oBox = this.getElement("box")
|
136
|
+
// let oTop = this.getElement("top")
|
137
|
+
// let oBottom = this.getElement("bottom")
|
138
|
+
// let oLine = this.getElement("line")
|
139
|
+
// if (this.treeOrIcon) {
|
140
|
+
// // oLine.style.left = oTop.style.width = 300 + "px"
|
141
|
+
// oTop.style.width = 150 + "px"
|
142
|
+
// oBottom.style.width = oBox.clientWidth - 150 + "px"
|
143
|
+
// }else {
|
144
|
+
// oLine.style.left = oTop.style.width = 50 + "px"
|
145
|
+
// oBottom.style.width = oBox.clientWidth - 50 + "px"
|
146
|
+
// }
|
147
|
+
// }
|
148
|
+
this.treeOrIcon = !this.treeOrIcon
|
149
|
+
if (this.treeOrIcon) {
|
150
|
+
this.$els.top.style.width = 160 + "px"
|
151
|
+
this.$els.bottom.style.width = this.$els.box.clientWidth - 160 + "px"
|
152
|
+
}else {
|
153
|
+
this.$els.top.style.width = 50 + "px"
|
154
|
+
this.$els.bottom.style.width = this.$els.box.clientWidth - 50 + "px"
|
155
|
+
}
|
156
|
+
},
|
157
|
+
tabChange (name) {
|
158
|
+
this.$refs.tree.changeSelect(name)
|
159
|
+
}
|
160
|
+
},
|
161
|
+
computed: {
|
162
|
+
nowDate () {
|
163
|
+
return Util.getNowDate()
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
</script>
|
168
|
+
<style lang="less">
|
169
|
+
/* 组件内通用样式 */
|
170
|
+
.select-error {
|
171
|
+
button {
|
172
|
+
border-bottom: 1px solid #a94442!important;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
/* 表单输入框组 */
|
176
|
+
.form-input-group {
|
177
|
+
display: flex;
|
178
|
+
|
179
|
+
label {
|
180
|
+
width: 100px;
|
181
|
+
text-align: right;
|
182
|
+
+ * {
|
183
|
+
flex: 1;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
// 日期组件在表单中沾满
|
188
|
+
.form-horizontal .datepicker {
|
189
|
+
width: 100%;
|
190
|
+
}
|
191
|
+
// 下拉选择框占据剩余全部空间
|
192
|
+
.select-overspread {
|
193
|
+
.form-group {
|
194
|
+
// margin: 0px 5px 10px 0px;
|
195
|
+
.form-control {
|
196
|
+
margin-right: 0px;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
.btn-group, .btn-group-vertical {
|
200
|
+
width: 100%;
|
201
|
+
// padding-right: 5px;
|
202
|
+
button {
|
203
|
+
width: 100%;
|
204
|
+
display: flex;
|
205
|
+
justify-content: space-between;
|
206
|
+
align-items: center;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
.dropdown-menu {
|
210
|
+
width: 100%
|
211
|
+
}
|
212
|
+
}
|
213
|
+
// 需要特定宽度的的样式
|
214
|
+
.width-60 {
|
215
|
+
width: 60px;
|
216
|
+
}
|
217
|
+
.width-80 {
|
218
|
+
width: 80px;
|
219
|
+
}
|
220
|
+
.width-100 {
|
221
|
+
width: 100px;
|
222
|
+
}
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
/*右侧区域的背景*/
|
227
|
+
.right-bg {
|
228
|
+
width: 100%;
|
229
|
+
flex: 1;
|
230
|
+
padding: 10px 25px;
|
231
|
+
color: #304A66;
|
232
|
+
}
|
233
|
+
.tree-flex {
|
234
|
+
height: 100%;
|
235
|
+
// width: 150px;
|
236
|
+
/*width: 60px;*/
|
237
|
+
background: #4C637B;
|
238
|
+
color: #fff;
|
239
|
+
|
240
|
+
}
|
241
|
+
.tree-flex-icon {
|
242
|
+
width: 50px;
|
243
|
+
/*transition: 0.5s;*/
|
244
|
+
> .span {
|
245
|
+
overflow-x: visible;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
.tree-flex h3 {
|
249
|
+
text-align: center;
|
250
|
+
line-height: 80px;
|
251
|
+
margin: 0px;
|
252
|
+
}
|
253
|
+
|
254
|
+
.tree-flex-footer {
|
255
|
+
height: 150px;
|
256
|
+
display: flex;
|
257
|
+
flex-direction:column;
|
258
|
+
color: #fff;
|
259
|
+
}
|
260
|
+
.tree-flex-footer a,.tree-flex-footer button{
|
261
|
+
flex: 1;
|
262
|
+
padding: 8px 5px;
|
263
|
+
font-size: 1.2em;
|
264
|
+
border-top: 1px solid #697D93;
|
265
|
+
text-decoration: none;
|
266
|
+
color: #fff;
|
267
|
+
cursor: pointer;
|
268
|
+
}
|
269
|
+
.tree-flex-footer button {
|
270
|
+
height: auto;
|
271
|
+
width: 100%;
|
272
|
+
border-radius: 0px;
|
273
|
+
background-color: rgba(255,255,255,0);
|
274
|
+
border: none;
|
275
|
+
border-top: 1px solid #697D93;
|
276
|
+
text-align: left;
|
277
|
+
}
|
278
|
+
.tree-flex-footer button:hover{
|
279
|
+
outline: none;
|
280
|
+
background-color: rgba(255,255,255,0.2);
|
281
|
+
}
|
282
|
+
.tree-flex-footer button:focus {
|
283
|
+
outline: none;
|
284
|
+
background-color: rgba(255,255,255,0.5);
|
285
|
+
}
|
286
|
+
.tree-flex-footer a:hover {
|
287
|
+
color: #FFF;
|
288
|
+
background-color: rgba(255,255,255,0.2);
|
289
|
+
}
|
290
|
+
.tree-flex .btn-group {
|
291
|
+
height: 50px!important;
|
292
|
+
}
|
293
|
+
|
294
|
+
.tree-flex .dropdown-menu {
|
295
|
+
/* 控制显示列表的样式 */
|
296
|
+
background: #4C637B;
|
297
|
+
border-radius: 0px;
|
298
|
+
color: #fff;
|
299
|
+
width: auto;
|
300
|
+
margin: 0px;
|
301
|
+
padding: 0px;
|
302
|
+
}
|
303
|
+
.tree-flex .dropdown-menu-up {
|
304
|
+
/* bottom,top控制上下,left和right控制左右*/
|
305
|
+
left: 100%!important;
|
306
|
+
top: auto!important;
|
307
|
+
bottom: 0;
|
308
|
+
}
|
309
|
+
.tree-flex .dropdown-menu-down {
|
310
|
+
/* bottom,top控制上下,left和right控制左右*/
|
311
|
+
left: 100%!important;
|
312
|
+
top: 0!important;
|
313
|
+
}
|
314
|
+
.tree-flex .dropdown-menu li{
|
315
|
+
text-align: center;
|
316
|
+
line-height: 50px;
|
317
|
+
border-bottom: 1px solid #697D93;
|
318
|
+
font-size: 1.2em;
|
319
|
+
width: auto;
|
320
|
+
white-space: nowrap;
|
321
|
+
cursor: default;
|
322
|
+
|
323
|
+
}
|
324
|
+
.tree-flex .dropdown-menu li + li {
|
325
|
+
text-align: left;
|
326
|
+
border: 0;
|
327
|
+
line-height: 40px;
|
328
|
+
padding-left: 15px;
|
329
|
+
padding-right: 15px;
|
330
|
+
font-size: 1em;
|
331
|
+
cursor: pointer;
|
332
|
+
}
|
333
|
+
.tree-flex .dropdown-menu li + li:hover {
|
334
|
+
background-color: rgba(255,255,255,0.2);
|
335
|
+
}
|
336
|
+
.tree-flex .dropdown-menu li a {
|
337
|
+
border: none;
|
338
|
+
color: #fff;
|
339
|
+
height: 40px;
|
340
|
+
line-height: 40px;
|
341
|
+
font-size: 1em;
|
342
|
+
padding: 0px;
|
343
|
+
}
|
344
|
+
.tree-flex .dropdown-menu li a:hover {
|
345
|
+
color: #fff;
|
346
|
+
background-color: rgba(255,255,255,0);
|
347
|
+
}
|
348
|
+
.tree-flex img{
|
349
|
+
height: 30px;
|
350
|
+
margin-right: 15px;
|
351
|
+
}
|
352
|
+
.line {
|
353
|
+
height: 100%;
|
354
|
+
width: 5px;
|
355
|
+
background: #4C637B;
|
356
|
+
cursor: e-resize;
|
357
|
+
}
|
358
|
+
/*为树(tree)组件写的样式*/
|
359
|
+
.tree-img {
|
360
|
+
font-size: 1.2em;
|
361
|
+
}
|
362
|
+
|
363
|
+
/* 滚动条样式 */
|
364
|
+
/*---滚动条默认显示样式--*/
|
365
|
+
::-webkit-scrollbar-thumb{
|
366
|
+
// display: none;
|
367
|
+
background-color:rgba(0,0,0,0.2);
|
368
|
+
height:50px;
|
369
|
+
outline-offset:-2px;
|
370
|
+
/*outline:2px solid #fff;*/
|
371
|
+
-webkit-border-radius:4px;
|
372
|
+
/*border: 2px solid #fff;*/
|
373
|
+
}
|
374
|
+
|
375
|
+
/*---鼠标点击滚动条显示样式--*/
|
376
|
+
::-webkit-scrollbar-thumb:hover{
|
377
|
+
// display: inherit;
|
378
|
+
background-color:rgba(0,0,0,0.4);
|
379
|
+
height:50px;
|
380
|
+
-webkit-border-radius:4px;
|
381
|
+
}
|
382
|
+
/*---滚动条大小--*/
|
383
|
+
::-webkit-scrollbar{
|
384
|
+
width:8px;
|
385
|
+
height:8px;
|
386
|
+
}
|
387
|
+
/*---滚动框背景样式--*/
|
388
|
+
::-webkit-scrollbar-track-piece{
|
389
|
+
/* 全透明,不显示 */
|
390
|
+
background-color:rgba(255,255,255,0);
|
391
|
+
-webkit-border-radius:0;
|
392
|
+
}
|
393
|
+
</style>
|