system-clients 3.1.95 → 3.1.98

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