system-clients 4.0.14 → 4.0.16

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.
@@ -1,818 +1,818 @@
1
- <template>
2
- <!-- <div class="bg" v-if="isShowbg" @click="jobHidden">-->
3
- <!-- </div>-->
4
- <div @click="hindsetting1()" :class="{'with-watermark':showwatermakeflag,'bg':isShowbg}">
5
- <span class="newTip" transition="newTip" @click="tipClick" v-if="newTipShow">
6
- <span>您有一条新提醒</span>
7
- </span>
8
- <div class="progress-list" v-if="!isManger" v-show="progressListShow" @click.stop style="padding-top: 8px">
9
- <div style="height: auto;width: auto;overflow: hidden;">
10
- <span style="float:left; margin-left: 20px;text-align: center;vertical-align: middle"><button class="button_search button_spacing" style="border-radius: 10px" @click="getProgressList()">
11
- <img
12
- src="../../assets/refresh.png" style="height: 16px; width: 14px;margin-bottom: 4px">
13
- 查询更新进度按钮
14
- </button></span>
15
- </div>
16
- <div style="height: 89%; padding:8px">
17
- <data-grid :model="jobProgressList" partial='list' class="my_table_sy list_area table_sy" v-ref:job id="job_grid"
18
- :optional="false" style="font-size: 12px;">
19
- <template partial='head'>
20
- <th><nobr>任务名</nobr></th>
21
-
22
- <th><nobr>执行描述</nobr></th>
23
-
24
- <th><nobr>执行人</nobr></th>
25
-
26
- <th><nobr>任务总数</nobr><label style="font-size: 12px;margin: 0">(个)</label></th>
27
-
28
- <th><nobr>任务进度</nobr></th>
29
- </template>
30
- <template partial='body'>
31
- <td>{{ row.f_job_name }}</td>
32
- <td>{{ row.f_start_date}}&nbsp;&nbsp;{{ row.f_job_type }}</td>
33
- <td>{{ row.f_job_operator }}</td>
34
- <td>{{ row.f_job_count }}</td>
35
- <td>
36
- <!-- <div class="m-progress">-->
37
- <!-- <div class="m-progress-outer">-->
38
- <!-- <div class="m-progress-inner">-->
39
- <!-- <div class="['u-progress-bg',{'u-success-bg':progress>=100}]" :style="`height:${progress > 100?100:progress}%;width:${stokeWidth}px;`"></div>-->
40
- <!-- </div>-->
41
- <!-- </div>-->
42
- <!-- </div>-->
43
- <!-- <p class="u-progress-text">-->
44
- <!-- {{ row.f_job_progress == 100||row.f_job_progress > 100? 100: row.f_job_progress}}%-->
45
- <!-- </p>-->
46
- {{row.f_job_progress}}
47
- </td>
48
- </template>
49
- </data-grid>
50
- </div>
51
- </div>
52
- <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
53
-
54
- <div class="auto login-operator1" v-if="$refs.mic.tabs.length === 0">
55
- <button class="my_button_search button_spacing" title="点击弹出我的任务" @click.stop="JobProgress">
56
- <img
57
- src="../../assets/point.png" style="height: 14px; width: 14px;margin-bottom: 4px">
58
- {{job_total == 0? ' ':job_total}}&nbsp;我的任务&nbsp;
59
- </button>
60
- <span>
61
- <img
62
- src="../../assets/people.png" height="15" width="15">
63
- 登录人:</span>
64
- <label>{{ orgpathnames }}</label>
65
- </div>
66
- <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top>
67
- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}">
68
- <div class="span system-left-tree " style="height:85%">
69
- <h3>{{ systemname }}</h3>
70
- <!-- <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;">-->
71
- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon"
72
- :tabs="tabs" v-ref:tree></left-tree>
73
- <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
74
- </div>
75
-
76
- <div class="tree-flex-footer">
77
- <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
78
- <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
79
- <dropdown class="auto">
80
- <button type="button" data-toggle="dropdown">
81
- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
82
- </button>
83
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
84
- <li>系统信息及设置</li>
85
- <!-- <li>{{name}}</li> -->
86
- <li>{{ date }}</li>
87
- <li @click="openUrl()">售后服务</li>
88
- <li @click="qrCode=true">APP二维码</li>
89
- <li @click="show=true">修改密码</li>
90
- <li @click="AddChangeMsgShow=true">系统版本:V3.0</li>
91
- </ul>
92
-
93
- </dropdown>
94
- <a href="index.html" @click.prevent="logOut">
95
- <img :src="imgs.out" alt=""><span v-if="treeOrIcon">退出系统</span>
96
- </a>
97
- </div>
98
- </div>
99
- </div>
100
- <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
101
-
102
- <div class="flex right-bg system-right" id="bottom" v-el:bottom>
103
- <!-- <operator-badge></operator-badge> -->
104
- <div class="span">
105
- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
106
- <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" :orgpathnames="orgpathnames"
107
- @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
108
- </div>
109
- </div>
110
- </div>
111
- <div v-show="isManger">
112
- <route v-ref:route></route>
113
- </div>
114
- <modal v-if="newTipContextShow" :show.sync="newTipContextShow" :backdrop="false">
115
- <header slot="modal-header" style="display:none"> </header>
116
- <article slot="modal-body" class="modal-body">
117
- <form class="form-horizontal">
118
- <div class="row">
119
- <div class="col-sm-12 " v-if="AppDaiBan !==''">
120
- <label class="col-sm-2">报装待办:</label>
121
- <span style="font-weight:normal">{{AppDaiBan}}</span>
122
- </div>
123
- <div class="col-sm-12 " v-if="OrderDaiBan !==''">
124
- <label class="col-sm-2">预约待办:</label>
125
- <span style="font-weight:normal">{{OrderDaiBan}}</span>
126
- </div>
127
- </div>
128
- </form>
129
- </article>
130
- <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
131
- <button class="button_search" @click="newTipContextShow = false">确认</button>
132
- </footer>
133
- </modal>
134
-
135
- <!-- 变更录入 模态框 -->
136
- <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
137
- <!-- 修改密码组件 -->
138
- <modify-pw :show.sync="show" v-if="show"></modify-pw>
139
- <!-- 手机扫描二维码 -->
140
- <modal :show.sync="qrCode" v-if="qrCode" v-ref:qrmodal backdrop="false">
141
- <header slot="modal-header" class="modal-header">
142
- 请打开手机扫一扫功能进行扫描下载App
143
- </header>
144
- <article slot="modal-body" class="modal-body">
145
- <img style="width: 300px;height: 300px;display: block;margin: auto" src="/images/DownLoadQRCode.png"/>
146
- </article>
147
- <footer slot="modal-footer" class="modal-footer">
148
- <button type="button" class="btn btn-success" @click='qrCode=false'>关闭</button>
149
- </footer>
150
- </modal>
151
- </div>
152
- </template>
153
-
154
- <script>
155
- import vue from 'vue'
156
- import co from 'co'
157
- import {HttpResetClass} from "vue-client";
158
-
159
- let getwartermakr = async function (self) {
160
- let param = {
161
- tablename: 't_singlevalue',
162
- condition: " 1=1 and name=\'水印内容\'"
163
- };
164
- // todo v4
165
- let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
166
- if (result && result.data.length > 0) {
167
- self.showwatermakeflag = true;
168
- createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
169
- } else {
170
- self.showwatermakeflag = false;
171
- }
172
- }
173
-
174
- let createWaterMark = function (userName) {
175
- let style;
176
- if (style) style.remove();
177
- let width = window.parseInt(document.body.clientWidth);
178
- let canvasWidth = width / window.parseInt(width / 320);
179
- let fontFamily = window.getComputedStyle(document.body)["font-family"];
180
- let canvas = document.createElement("canvas");
181
- canvas.width = canvasWidth;
182
- canvas.height = 200;
183
- let ctx = canvas.getContext("2d");
184
- ctx.rotate((-20 * Math.PI) / 180);
185
- ctx.font = `20px ${fontFamily}`;
186
- ctx.fillStyle = "rgba(8,8,8,.1)";
187
- ctx.fillText(userName, 50, 200);
188
- let imgSrc = canvas.toDataURL("image/png");
189
- style = document.createElement("style");
190
- style.innerHTML = `.with-watermark:before{
191
- pointer-events: none;
192
- content: "";
193
- width: 100%;
194
- height: 100%;
195
- display: block;
196
- position: absolute;
197
- background-image: url("${imgSrc}");
198
- }`;
199
- (document.head.append || document.head.appendChild).apply(document.head, [style]);
200
- }
201
-
202
- window.onunload = () => {
203
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
204
- }
205
- window.onbeforeunload = () => {
206
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
207
- }
208
- export default {
209
- title: '主界面',
210
- props: ['functions', 'userid', 'config'],
211
- data() {
212
- return {
213
- // 页面提示信息定时器
214
- interval: null,
215
- newTipShow: false,
216
- newTipContextShow: false,
217
- AppDaiBan: '',
218
- OrderDaiBan: '',
219
- // 左侧树下部三个小图标
220
- job_total: 0,
221
- imgs: {
222
- open: '/images/lefticon/菜单伸缩.png',
223
- set: '/images/lefticon/系统设置.png',
224
- out: '/images/lefticon/退出系统.png',
225
- img1: '/images/newStyle/login-user.png',
226
- logoimg: '/static/newStyle/fife.png'
227
- // img2: '/images/lefticon/退出系统.png',
228
- },
229
- progress: 0,
230
-
231
- jobProgressList:{rows:[]},
232
- progressListShow: false,
233
- treeOrIcon: false,
234
- qrCode:false,
235
- isShowbg: false,
236
- isManger: false,
237
- show: false,
238
- orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
239
- systemname: '客服系统',
240
- date: this.$login.toStandardDateString(),
241
- tabs: [], //已初始化页签数组
242
- selecttab: '',
243
- setting: true,
244
- srcsetting: '../../static/newStyle/setting.png',
245
- showwatermakeflag: false,
246
- }
247
- },
248
- ready() {
249
- getwartermakr(this);
250
- let component = this.$login.getUrlCompileParames('component')
251
- if (component) {
252
- this.isManger = true
253
- this.$refs.route.init(component, {data: this.functions.functions})
254
- }
255
- if (this.$login.f.password == '1') {
256
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
257
- if (res == 'confirm')
258
- this.show = true
259
- })
260
- }
261
- console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
262
- this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
263
- this.changeShow()
264
- this.gotoWorkOrderSite()
265
- // 获取预约列表
266
- this.functions.f_role_name && this.functions.f_role_name.includes(this.config.msgRole) && this.config.isTip && this.getOrderList()
267
- },
268
- methods: {
269
- getOrderList(){
270
- let times = this.config.times * 60 * 1000
271
- console.log("=定时提示间隔=", times)
272
- try {
273
- this.interval = setInterval(() => {
274
- this.getDaiBan()
275
- }, times)
276
- } catch (error) {
277
- console.log('捕获到异常', error)
278
- }
279
- },
280
- JobProgress(){
281
- console.log("点击显示任务列表,当前状态:"+this.progressListShow)
282
- this.isShowbg = true
283
- this.progressListShow = true
284
- },
285
- async getProgressList(){
286
- let list = {}
287
- list = await new HttpResetClass().load('POST', 'rs/sql/getJobProgressList', {
288
- data: {
289
- condition: `and f_operator_id = '${this.$login.f.id}'`
290
- }
291
- },{resolveMsg: null, rejectMsg: '获取任务进度失败'})
292
- let dataList = []
293
- let rows = []
294
- dataList = list.data
295
- for (let i = 0; i < dataList.length; i++) {
296
- rows.push(dataList[i])
297
- }
298
- this.jobProgressList.rows = rows
299
- },
300
- async getDaiBan(){
301
- this.OrderDaiBan = ''
302
- this.AppDaiBan = ''
303
- let http = new HttpResetClass()
304
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
305
- tablename:'t_order_center',
306
- condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
307
- }}, {
308
- resolveMsg: null,
309
- rejectMsg: null
310
- }).then((res) => {
311
- let OrderDaiBan = {}
312
- res.data.forEach(item=>{
313
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
314
- OrderDaiBan[item.f_ordertype].push(item)
315
- })
316
- if (res.data.length> 0){
317
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
318
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
319
- }
320
- })
321
- let data = {
322
- condition: '1 = 1',
323
- data: {
324
- orgid: this.$login.f.orgid,
325
- id: this.$login.f.id
326
- }
327
- }
328
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
329
- resolveMsg: null,
330
- rejectMsg: null
331
- }).then((res) => {
332
- let AppDaiBan = {}
333
- res.data.forEach(item=>{
334
- AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
335
- AppDaiBan[item.defname].push(item)
336
- })
337
- if (res.data.length> 0){
338
- this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
339
- this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
340
- }
341
- }).catch((e)=>{
342
- console.error(e)
343
- })
344
- if(this.AppDaiBan || this.OrderDaiBan){
345
- this.newTipShow = true
346
- }
347
- },
348
- // 提醒框被点击
349
- tipClick(){
350
- this.newTipShow = false
351
- this.newTipContextShow = true
352
- },
353
- gotoWorkOrderSite(){
354
- const isRemind =this.$appdata.getSingleValue("站点工单提醒")
355
- console.log('站点工单是否提醒',isRemind)
356
- if(isRemind && isRemind !== '是'){
357
- return
358
- }
359
- if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('派单员') !== -1){
360
- const data = {
361
- "condition":
362
- {
363
- "condition":" 1=1 ",
364
- "sign":"1=1"
365
- },
366
- "userid":this.functions.name
367
- }
368
- new HttpResetClass().load('POST','rs/path/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
369
- if(res.data && res.data.n !== 0){
370
- this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
371
- }
372
- })
373
- }
374
- },
375
- openUrl() {
376
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
377
- window.open(url, '_blank')
378
- },
379
- hindsetting() {
380
- this.setting = !this.setting
381
- if (this.setting) {
382
- this.srcsetting = '../../static/newStyle/setting.png'
383
- } else {
384
- this.srcsetting = '../../static/newStyle/setting1.png'
385
- }
386
-
387
- },
388
- jobHidden(){
389
- this.isShowbg = false
390
- this.progressListShow = false
391
- },
392
- hindsetting1() {
393
- this.jobHidden()
394
- if (!this.setting) {
395
- this.srcsetting = '../../static/newStyle/setting.png'
396
- this.setting = true
397
- }
398
- },
399
-
400
- isnodo(val) {
401
- console.log(val, 'ss')
402
- this.selecttab = val
403
- },
404
- unfurl() {
405
- if (this.showsum) {
406
- this.showsum = false
407
- } else {
408
- this.showsum = true
409
- }
410
- },
411
- changeShow() {
412
- this.treeOrIcon = !this.treeOrIcon
413
- },
414
- changeMain(userid) {
415
- this.$goto('res-main', {userid: this.userid}, 'self')
416
- },
417
- tabChange(name) {
418
- console.log(name, 'tabchanage')
419
- this.selecttab = name
420
- this.$refs.tree.changeSelect(name)
421
- },
422
- tabcg(val) {
423
- console.log(val)
424
- this.tabs = val
425
- },
426
- logOut() {
427
- console.log(this.$login.f)
428
- this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
429
- if (res == 'confirm') {
430
- let data = {
431
- userid: this.$login.f.id,
432
- username: this.$login.f.name,
433
- usertelephone: this.$login.f.f_user_telephone
434
- }
435
- // todo v4
436
- await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
437
- window.location.reload()
438
- }
439
- })
440
- }
441
- },
442
- watch: {
443
- 'jobProgressList.rows.length'(){
444
- let total = 0
445
- if(this.jobProgressList.rows.length>0){
446
- for (let i = 0; i < this.jobProgressList.rows.length; i++) {
447
- if (this.jobProgressList.rows[i].f_job_state != '已完成'){
448
- total+= 1
449
- }
450
- }
451
- this.job_total = total
452
- }
453
- }
454
- },
455
- computed: {
456
- nowDate() {
457
- return this.$login.getNowDate()
458
- }
459
- }
460
- }
461
- </script>
462
- <style lang="less">
463
- th {
464
- text-align: center;
465
- vertical-align: middle;
466
- }
467
-
468
- /*表格主体_完成*/
469
- .my_table_sy tbody tr:nth-child(odd){background-color: #f0f9ec !important;border: solid 1px #f0f4fa !important;color: #666666!important;font-size: 15px!important;font-family: PingFang!important;}
470
- /*表格主体_未完成*/
471
- .my_table_sy tbody tr:nth-child(even){background-color: #eff7ff !important;border: solid 1px #f0f4fa !important;color: #666666!important;font-size: 15px!important;font-family: PingFang!important;}
472
-
473
- .progress-list {
474
- background-color: #e8f4ff;
475
- position: absolute;
476
- top: 55px;
477
- right: 430px;
478
- width: 723px;
479
- height: 342px;
480
- z-index: 10001;
481
- color: #9eb3c0;
482
- border: 1px solid #7e7c81;
483
- border-radius: 15px;
484
- }
485
- .my_button_search{width: auto; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background-color: #6aa6e2; border-radius: 4px; border:none; font-family: PingFang; font-size: 15px; color: #ffffff;}
486
- .my_button_search:hover{ background-color: #3592ef;}
487
-
488
- .m-progress{
489
- width: 5px;
490
- margin: 0 auto;
491
- display: flex;
492
- .m-progress-outer{
493
- width: 100%;
494
- .m-progress-inner{
495
- display: inline-block;
496
- width: 100%;
497
- background-color: #f5f5f5;
498
-
499
- }
500
- }
501
- }
502
- .bg{
503
- position: fixed;
504
- top: 0;
505
- left: 0;
506
- bottom: 0;
507
- right: 0;
508
- z-index: 999;
509
- background-color: rgba(0,0,0,.4);
510
- }
511
-
512
- .newTip-transition {
513
- transition: all .4s ease;
514
- }
515
- .newTip-enter, .newTip-leave {
516
- height: 0;
517
- padding: 0 10px;
518
- opacity: 0;
519
- }
520
- .newTip a {
521
- color: #333;
522
- }
523
- .newTip {
524
- cursor: pointer;
525
- text-align: center;
526
- position: absolute;
527
- top: 3em;
528
- margin: 0 auto;
529
- width: 200px;
530
- left: 48%;
531
- line-height: 2;
532
- z-index: 10010;
533
- box-shadow: 0 4px 12px rgba(0,0,0,0.38);
534
- pointer-events: all;
535
- border-radius: 4px;
536
- background-color: whitesmoke;
537
- }
538
- /* 组件内通用样式 */
539
- .select-error {
540
- button {
541
- border-bottom: 1px solid #a94442 !important;
542
- }
543
- }
544
-
545
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
546
- // -webkit-appearance:textfield;
547
- // }
548
- /* 表单输入框组 */
549
- .form-input-group {
550
- display: flex;
551
-
552
- label {
553
- width: 100px;
554
- text-align: right;
555
-
556
- + * {
557
- flex: 1;
558
- }
559
- }
560
- }
561
-
562
- // 日期组件在表单中沾满
563
- .form-horizontal .datepicker {
564
- width: 100%;
565
- }
566
-
567
- // 下拉选择框占据剩余全部空间
568
- .select-overspread {
569
- .form-group {
570
- // margin: 0px 5px 10px 0px;
571
- .form-control {
572
- margin-right: 0px;
573
- }
574
- }
575
-
576
- .btn-group, .btn-group-vertical {
577
- width: 100%;
578
- // padding-right: 5px;
579
- button {
580
- width: 100%;
581
- display: flex;
582
- justify-content: space-between;
583
- align-items: center;
584
- }
585
- }
586
-
587
- .dropdown-menu {
588
- width: 100%
589
- }
590
- }
591
-
592
- // 需要特定宽度的的样式
593
- .width-60 {
594
- width: 60px;
595
- }
596
-
597
- .userpanel {
598
- font-weight: 300;
599
- color: #333;
600
- position: fixed;
601
- right: 30px;
602
- top: 45px;
603
- background-color: white;
604
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
605
- padding: 4px 10px 4px 10px;
606
- border-radius: 2px;
607
- }
608
-
609
- .width-80 {
610
- width: 80px;
611
- }
612
-
613
- .width-100 {
614
- width: 100px;
615
- }
616
-
617
-
618
- /*右侧区域的背景*/
619
- .right-bg {
620
- width: 100%;
621
- flex: 1;
622
- color: #304A66;
623
- }
624
-
625
- .tree-flex {
626
- height: 100%;
627
- // width: 150px;
628
- /*width: 60px;*/
629
- background: #4a7cae;
630
- color: #fff;
631
-
632
- }
633
-
634
- .tree-flex-icon {
635
- width: 50px;
636
- /*transition: 0.5s;*/
637
-
638
- > .span {
639
- overflow-x: visible;
640
- }
641
- }
642
-
643
- .tree-flex h3 {
644
- text-align: center;
645
- margin: 1em 0;
646
- }
647
-
648
- .tree-flex-footer {
649
- height: 50px;
650
- display: flex;
651
- flex-direction: column;
652
- color: #fff;
653
- }
654
-
655
- .tree-flex-footer a, .tree-flex-footer button {
656
- flex: 1;
657
- padding: 8px 5px;
658
- font-size: 1.2em;
659
- // border-top: 1px solid #697D93;
660
- border-top: 1px solid #4a7cae;
661
- text-decoration: none;
662
- color: #fff;
663
- cursor: pointer;
664
- }
665
-
666
- .tree-flex-footer button {
667
- height: auto;
668
- width: 100%;
669
- border-radius: 0px;
670
- background-color: rgba(255, 255, 255, 0);
671
- border: none;
672
- border-top: 1px solid #4a7cae;
673
- // border-top: 1px solid #697D93;
674
- text-align: left;
675
- }
676
-
677
- .tree-flex-footer button:hover {
678
- outline: none;
679
- background-color: rgba(255, 255, 255, 0.2);
680
- }
681
-
682
- .tree-flex-footer button:focus {
683
- outline: none;
684
- background-color: rgba(255, 255, 255, 0.5);
685
- }
686
-
687
- .tree-flex-footer a:hover {
688
- color: #FFF;
689
- background-color: rgba(255, 255, 255, 0.2);
690
- }
691
-
692
- .tree-flex .btn-group {
693
- height: 50px !important;
694
- }
695
-
696
- .tree-flex .dropdown-menu {
697
- /* 控制显示列表的样式 */
698
- background: #4a7cae;
699
- border-radius: 0px;
700
- color: #fff;
701
- width: auto;
702
- margin: 0px;
703
- padding: 0px;
704
- }
705
-
706
- .tree-flex .dropdown-menu-up {
707
- /* bottom,top控制上下,left和right控制左右*/
708
- left: 100% !important;
709
- top: auto !important;
710
- bottom: 0;
711
- }
712
-
713
- .tree-flex .dropdown-menu-down {
714
- /* bottom,top控制上下,left和right控制左右*/
715
- left: 100% !important;
716
- top: 0 !important;
717
- }
718
-
719
- .tree-flex .dropdown-menu li {
720
- text-align: center;
721
- line-height: 50px;
722
- border-bottom: 1px solid #697D93;
723
- font-size: 1.2em;
724
- width: auto;
725
- white-space: nowrap;
726
- cursor: default;
727
-
728
- }
729
-
730
- .tree-flex .dropdown-menu li + li {
731
- text-align: left;
732
- border: 0;
733
- line-height: 40px;
734
- padding-left: 15px;
735
- padding-right: 15px;
736
- font-size: 1em;
737
- cursor: pointer;
738
- }
739
-
740
- .tree-flex .dropdown-menu li + li:hover {
741
- background-color: rgba(255, 255, 255, 0.2);
742
- }
743
-
744
- .tree-flex .dropdown-menu li a {
745
- border: none;
746
- color: #fff;
747
- height: 40px;
748
- line-height: 40px;
749
- font-size: 1em;
750
- padding: 0px;
751
- }
752
-
753
- .tree-flex .dropdown-menu li a:hover {
754
- color: #fff;
755
- background-color: rgba(255, 255, 255, 0);
756
- }
757
-
758
- .tree-flex img {
759
- height: 1.2em;
760
- width: 1.2em;
761
- margin-right: 15px;
762
- margin-left: 5px;
763
- }
764
-
765
- .line {
766
- height: 100%;
767
- width: 5px;
768
- background: #4C637B;
769
- cursor: e-resize;
770
- }
771
-
772
- /*为树(tree)组件写的样式*/
773
- .tree-img {
774
- font-size: 1.2em;
775
- }
776
-
777
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
778
- .cutout50 {
779
- max-width: 50px;
780
- overflow: hidden;
781
- text-overflow: ellipsis;
782
- white-space: nowrap;
783
- }
784
-
785
- /* 滚动条样式 */
786
- /*---滚动条默认显示样式--*/
787
- ::-webkit-scrollbar-thumb {
788
- // display: none;
789
- background-color: rgba(0, 0, 0, 0.4);
790
- /*background-color:red;*/
791
- height: 50px;
792
- outline-offset: -2px;
793
- /*outline:2px solid #fff;*/
794
- -webkit-border-radius: 4px;
795
- /*border: 2px solid #fff;*/
796
- }
797
-
798
- /*---鼠标点击滚动条显示样式--*/
799
- ::-webkit-scrollbar-thumb:hover {
800
- // display: inherit;
801
- background-color: rgba(0, 0, 0, 0.4);
802
- height: 50px;
803
- -webkit-border-radius: 4px;
804
- }
805
-
806
- /*---滚动条大小--*/
807
- ::-webkit-scrollbar {
808
- width: 8px;
809
- height: 8px;
810
- }
811
-
812
- /*---滚动框背景样式--*/
813
- ::-webkit-scrollbar-track-piece {
814
- /* 全透明,不显示 */
815
- background-color: rgba(255, 255, 255, 0);
816
- -webkit-border-radius: 0;
817
- }
818
- </style>
1
+ <template>
2
+ <!-- <div class="bg" v-if="isShowbg" @click="jobHidden">-->
3
+ <!-- </div>-->
4
+ <div @click="hindsetting1()" :class="{'with-watermark':showwatermakeflag,'bg':isShowbg}">
5
+ <span class="newTip" transition="newTip" @click="tipClick" v-if="newTipShow">
6
+ <span>您有一条新提醒</span>
7
+ </span>
8
+ <div class="progress-list" v-if="!isManger" v-show="progressListShow" @click.stop style="padding-top: 8px">
9
+ <div style="height: auto;width: auto;overflow: hidden;">
10
+ <span style="float:left; margin-left: 20px;text-align: center;vertical-align: middle"><button class="button_search button_spacing" style="border-radius: 10px" @click="getProgressList()">
11
+ <img
12
+ src="../../assets/refresh.png" style="height: 16px; width: 14px;margin-bottom: 4px">
13
+ 查询更新进度按钮
14
+ </button></span>
15
+ </div>
16
+ <div style="height: 89%; padding:8px">
17
+ <data-grid :model="jobProgressList" partial='list' class="my_table_sy list_area table_sy" v-ref:job id="job_grid"
18
+ :optional="false" style="font-size: 12px;">
19
+ <template partial='head'>
20
+ <th><nobr>任务名</nobr></th>
21
+
22
+ <th><nobr>执行描述</nobr></th>
23
+
24
+ <th><nobr>执行人</nobr></th>
25
+
26
+ <th><nobr>任务总数</nobr><label style="font-size: 12px;margin: 0">(个)</label></th>
27
+
28
+ <th><nobr>任务进度</nobr></th>
29
+ </template>
30
+ <template partial='body'>
31
+ <td>{{ row.f_job_name }}</td>
32
+ <td>{{ row.f_start_date}}&nbsp;&nbsp;{{ row.f_job_type }}</td>
33
+ <td>{{ row.f_job_operator }}</td>
34
+ <td>{{ row.f_job_count }}</td>
35
+ <td>
36
+ <!-- <div class="m-progress">-->
37
+ <!-- <div class="m-progress-outer">-->
38
+ <!-- <div class="m-progress-inner">-->
39
+ <!-- <div class="['u-progress-bg',{'u-success-bg':progress>=100}]" :style="`height:${progress > 100?100:progress}%;width:${stokeWidth}px;`"></div>-->
40
+ <!-- </div>-->
41
+ <!-- </div>-->
42
+ <!-- </div>-->
43
+ <!-- <p class="u-progress-text">-->
44
+ <!-- {{ row.f_job_progress == 100||row.f_job_progress > 100? 100: row.f_job_progress}}%-->
45
+ <!-- </p>-->
46
+ {{row.f_job_progress}}
47
+ </td>
48
+ </template>
49
+ </data-grid>
50
+ </div>
51
+ </div>
52
+ <div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
53
+
54
+ <div class="auto login-operator1" v-if="$refs.mic.tabs.length === 0">
55
+ <button class="my_button_search button_spacing" title="点击弹出我的任务" @click.stop="JobProgress">
56
+ <img
57
+ src="../../assets/point.png" style="height: 14px; width: 14px;margin-bottom: 4px">
58
+ {{job_total == 0? ' ':job_total}}&nbsp;我的任务&nbsp;
59
+ </button>
60
+ <span>
61
+ <img
62
+ src="../../assets/people.png" height="15" width="15">
63
+ 登录人:</span>
64
+ <label>{{ orgpathnames }}</label>
65
+ </div>
66
+ <div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top>
67
+ <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}">
68
+ <div class="span system-left-tree " style="height:85%">
69
+ <h3>{{ systemname }}</h3>
70
+ <!-- <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;">-->
71
+ <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon"
72
+ :tabs="tabs" v-ref:tree></left-tree>
73
+ <!--&lt;!&ndash; <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>&ndash;&gt;-->
74
+ </div>
75
+
76
+ <div class="tree-flex-footer">
77
+ <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
78
+ <!-- <a><img src="../../../static/treeset.png" alt="">系统设置</a> -->
79
+ <dropdown class="auto">
80
+ <button type="button" data-toggle="dropdown">
81
+ <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>
82
+ </button>
83
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">
84
+ <li>系统信息及设置</li>
85
+ <!-- <li>{{name}}</li> -->
86
+ <li>{{ date }}</li>
87
+ <li @click="openUrl()">售后服务</li>
88
+ <li @click="qrCode=true">APP二维码</li>
89
+ <li @click="show=true">修改密码</li>
90
+ <li @click="AddChangeMsgShow=true">系统版本:V3.0</li>
91
+ </ul>
92
+
93
+ </dropdown>
94
+ <a href="index.html" @click.prevent="logOut">
95
+ <img :src="imgs.out" alt=""><span v-if="treeOrIcon">退出系统</span>
96
+ </a>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ <!-- <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> -->
101
+
102
+ <div class="flex right-bg system-right" id="bottom" v-el:bottom>
103
+ <!-- <operator-badge></operator-badge> -->
104
+ <div class="span">
105
+ <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>
106
+ <dynamic :comps='[]' name='main' :selecttab.sync="selecttab" :orgpathnames="orgpathnames"
107
+ @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ <div v-show="isManger">
112
+ <route v-ref:route></route>
113
+ </div>
114
+ <modal v-if="newTipContextShow" :show.sync="newTipContextShow" :backdrop="false">
115
+ <header slot="modal-header" style="display:none"> </header>
116
+ <article slot="modal-body" class="modal-body">
117
+ <form class="form-horizontal">
118
+ <div class="row">
119
+ <div class="col-sm-12 " v-if="AppDaiBan !==''">
120
+ <label class="col-sm-2">报装待办:</label>
121
+ <span style="font-weight:normal">{{AppDaiBan}}</span>
122
+ </div>
123
+ <div class="col-sm-12 " v-if="OrderDaiBan !==''">
124
+ <label class="col-sm-2">预约待办:</label>
125
+ <span style="font-weight:normal">{{OrderDaiBan}}</span>
126
+ </div>
127
+ </div>
128
+ </form>
129
+ </article>
130
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
131
+ <button class="button_search" @click="newTipContextShow = false">确认</button>
132
+ </footer>
133
+ </modal>
134
+
135
+ <!-- 变更录入 模态框 -->
136
+ <add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
137
+ <!-- 修改密码组件 -->
138
+ <modify-pw :show.sync="show" v-if="show"></modify-pw>
139
+ <!-- 手机扫描二维码 -->
140
+ <modal :show.sync="qrCode" v-if="qrCode" v-ref:qrmodal backdrop="false">
141
+ <header slot="modal-header" class="modal-header">
142
+ 请打开手机扫一扫功能进行扫描下载App
143
+ </header>
144
+ <article slot="modal-body" class="modal-body">
145
+ <img style="width: 300px;height: 300px;display: block;margin: auto" src="/images/DownLoadQRCode.png"/>
146
+ </article>
147
+ <footer slot="modal-footer" class="modal-footer">
148
+ <button type="button" class="btn btn-success" @click='qrCode=false'>关闭</button>
149
+ </footer>
150
+ </modal>
151
+ </div>
152
+ </template>
153
+
154
+ <script>
155
+ import vue from 'vue'
156
+ import co from 'co'
157
+ import {HttpResetClass} from "vue-client";
158
+
159
+ let getwartermakr = async function (self) {
160
+ let param = {
161
+ tablename: 't_singlevalue',
162
+ condition: " 1=1 and name=\'水印内容\'"
163
+ };
164
+ // todo v4
165
+ let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
166
+ if (result && result.data.length > 0) {
167
+ self.showwatermakeflag = true;
168
+ createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
169
+ } else {
170
+ self.showwatermakeflag = false;
171
+ }
172
+ }
173
+
174
+ let createWaterMark = function (userName) {
175
+ let style;
176
+ if (style) style.remove();
177
+ let width = window.parseInt(document.body.clientWidth);
178
+ let canvasWidth = width / window.parseInt(width / 320);
179
+ let fontFamily = window.getComputedStyle(document.body)["font-family"];
180
+ let canvas = document.createElement("canvas");
181
+ canvas.width = canvasWidth;
182
+ canvas.height = 200;
183
+ let ctx = canvas.getContext("2d");
184
+ ctx.rotate((-20 * Math.PI) / 180);
185
+ ctx.font = `20px ${fontFamily}`;
186
+ ctx.fillStyle = "rgba(8,8,8,.1)";
187
+ ctx.fillText(userName, 50, 200);
188
+ let imgSrc = canvas.toDataURL("image/png");
189
+ style = document.createElement("style");
190
+ style.innerHTML = `.with-watermark:before{
191
+ pointer-events: none;
192
+ content: "";
193
+ width: 100%;
194
+ height: 100%;
195
+ display: block;
196
+ position: absolute;
197
+ background-image: url("${imgSrc}");
198
+ }`;
199
+ (document.head.append || document.head.appendChild).apply(document.head, [style]);
200
+ }
201
+
202
+ window.onunload = () => {
203
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
204
+ }
205
+ window.onbeforeunload = () => {
206
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
207
+ }
208
+ export default {
209
+ title: '主界面',
210
+ props: ['functions', 'userid', 'config'],
211
+ data() {
212
+ return {
213
+ // 页面提示信息定时器
214
+ interval: null,
215
+ newTipShow: false,
216
+ newTipContextShow: false,
217
+ AppDaiBan: '',
218
+ OrderDaiBan: '',
219
+ // 左侧树下部三个小图标
220
+ job_total: 0,
221
+ imgs: {
222
+ open: '/images/lefticon/菜单伸缩.png',
223
+ set: '/images/lefticon/系统设置.png',
224
+ out: '/images/lefticon/退出系统.png',
225
+ img1: '/images/newStyle/login-user.png',
226
+ logoimg: '/static/newStyle/fife.png'
227
+ // img2: '/images/lefticon/退出系统.png',
228
+ },
229
+ progress: 0,
230
+
231
+ jobProgressList:{rows:[]},
232
+ progressListShow: false,
233
+ treeOrIcon: false,
234
+ qrCode:false,
235
+ isShowbg: false,
236
+ isManger: false,
237
+ show: false,
238
+ orgpathnames: `${this.$login.f.orgs}-${this.$login.f.deps}-${this.$login.f.name}`,
239
+ systemname: '客服系统',
240
+ date: this.$login.toStandardDateString(),
241
+ tabs: [], //已初始化页签数组
242
+ selecttab: '',
243
+ setting: true,
244
+ srcsetting: '../../static/newStyle/setting.png',
245
+ showwatermakeflag: false,
246
+ }
247
+ },
248
+ ready() {
249
+ getwartermakr(this);
250
+ let component = this.$login.getUrlCompileParames('component')
251
+ if (component) {
252
+ this.isManger = true
253
+ this.$refs.route.init(component, {data: this.functions.functions})
254
+ }
255
+ if (this.$login.f.password == '1') {
256
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
257
+ if (res == 'confirm')
258
+ this.show = true
259
+ })
260
+ }
261
+ console.log("系统名称", this.$appdata.getSingleValue("系统名称"))
262
+ this.systemname = this.$appdata.getSingleValue("系统名称") ? this.$appdata.getSingleValue("系统名称") : '客服系统'
263
+ this.changeShow()
264
+ this.gotoWorkOrderSite()
265
+ // 获取预约列表
266
+ this.functions.f_role_name && this.functions.f_role_name.includes(this.config.msgRole) && this.config.isTip && this.getOrderList()
267
+ },
268
+ methods: {
269
+ getOrderList(){
270
+ let times = this.config.times * 60 * 1000
271
+ console.log("=定时提示间隔=", times)
272
+ try {
273
+ this.interval = setInterval(() => {
274
+ this.getDaiBan()
275
+ }, times)
276
+ } catch (error) {
277
+ console.log('捕获到异常', error)
278
+ }
279
+ },
280
+ JobProgress(){
281
+ console.log("点击显示任务列表,当前状态:"+this.progressListShow)
282
+ this.isShowbg = true
283
+ this.progressListShow = true
284
+ },
285
+ async getProgressList(){
286
+ let list = {}
287
+ list = await new HttpResetClass().load('POST', 'rs/sql/getJobProgressList', {
288
+ data: {
289
+ condition: `and f_operator_id = '${this.$login.f.id}'`
290
+ }
291
+ },{resolveMsg: null, rejectMsg: '获取任务进度失败'})
292
+ let dataList = []
293
+ let rows = []
294
+ dataList = list.data
295
+ for (let i = 0; i < dataList.length; i++) {
296
+ rows.push(dataList[i])
297
+ }
298
+ this.jobProgressList.rows = rows
299
+ },
300
+ async getDaiBan(){
301
+ this.OrderDaiBan = ''
302
+ this.AppDaiBan = ''
303
+ let http = new HttpResetClass()
304
+ await http.load('POST', '/api/af-system/sql/singleTable', {data: {
305
+ tablename:'t_order_center',
306
+ condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
307
+ }}, {
308
+ resolveMsg: null,
309
+ rejectMsg: null
310
+ }).then((res) => {
311
+ let OrderDaiBan = {}
312
+ res.data.forEach(item=>{
313
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
314
+ OrderDaiBan[item.f_ordertype].push(item)
315
+ })
316
+ if (res.data.length> 0){
317
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
318
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
319
+ }
320
+ })
321
+ let data = {
322
+ condition: '1 = 1',
323
+ data: {
324
+ orgid: this.$login.f.orgid,
325
+ id: this.$login.f.id
326
+ }
327
+ }
328
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
329
+ resolveMsg: null,
330
+ rejectMsg: null
331
+ }).then((res) => {
332
+ let AppDaiBan = {}
333
+ res.data.forEach(item=>{
334
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
335
+ AppDaiBan[item.defname].push(item)
336
+ })
337
+ if (res.data.length> 0){
338
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
339
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
340
+ }
341
+ }).catch((e)=>{
342
+ console.error(e)
343
+ })
344
+ if(this.AppDaiBan || this.OrderDaiBan){
345
+ this.newTipShow = true
346
+ }
347
+ },
348
+ // 提醒框被点击
349
+ tipClick(){
350
+ this.newTipShow = false
351
+ this.newTipContextShow = true
352
+ },
353
+ gotoWorkOrderSite(){
354
+ const isRemind =this.$appdata.getSingleValue("站点工单提醒")
355
+ console.log('站点工单是否提醒',isRemind)
356
+ if(isRemind && isRemind !== '是'){
357
+ return
358
+ }
359
+ if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('派单员') !== -1){
360
+ const data = {
361
+ "condition":
362
+ {
363
+ "condition":` 1=1 and tswo.f_filiale_id = '${this.$login.f.orgid}' `,
364
+ "sign":"1=1"
365
+ },
366
+ "userid":this.functions.name
367
+ }
368
+ new HttpResetClass().load('POST','rs/sql/operatorService/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
369
+ if(res.data && res.data.n !== 0){
370
+ this.$showMessage('你有'+res.data.n+'个工单待处理,请尽快前往站点工单页面进行处理')
371
+ }
372
+ })
373
+ }
374
+ },
375
+ openUrl() {
376
+ var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
377
+ window.open(url, '_blank')
378
+ },
379
+ hindsetting() {
380
+ this.setting = !this.setting
381
+ if (this.setting) {
382
+ this.srcsetting = '../../static/newStyle/setting.png'
383
+ } else {
384
+ this.srcsetting = '../../static/newStyle/setting1.png'
385
+ }
386
+
387
+ },
388
+ jobHidden(){
389
+ this.isShowbg = false
390
+ this.progressListShow = false
391
+ },
392
+ hindsetting1() {
393
+ this.jobHidden()
394
+ if (!this.setting) {
395
+ this.srcsetting = '../../static/newStyle/setting.png'
396
+ this.setting = true
397
+ }
398
+ },
399
+
400
+ isnodo(val) {
401
+ console.log(val, 'ss')
402
+ this.selecttab = val
403
+ },
404
+ unfurl() {
405
+ if (this.showsum) {
406
+ this.showsum = false
407
+ } else {
408
+ this.showsum = true
409
+ }
410
+ },
411
+ changeShow() {
412
+ this.treeOrIcon = !this.treeOrIcon
413
+ },
414
+ changeMain(userid) {
415
+ this.$goto('res-main', {userid: this.userid}, 'self')
416
+ },
417
+ tabChange(name) {
418
+ console.log(name, 'tabchanage')
419
+ this.selecttab = name
420
+ this.$refs.tree.changeSelect(name)
421
+ },
422
+ tabcg(val) {
423
+ console.log(val)
424
+ this.tabs = val
425
+ },
426
+ logOut() {
427
+ console.log(this.$login.f)
428
+ this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
429
+ if (res == 'confirm') {
430
+ let data = {
431
+ userid: this.$login.f.id,
432
+ username: this.$login.f.name,
433
+ usertelephone: this.$login.f.f_user_telephone
434
+ }
435
+ // todo v4
436
+ await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
437
+ window.location.reload()
438
+ }
439
+ })
440
+ }
441
+ },
442
+ watch: {
443
+ 'jobProgressList.rows.length'(){
444
+ let total = 0
445
+ if(this.jobProgressList.rows.length>0){
446
+ for (let i = 0; i < this.jobProgressList.rows.length; i++) {
447
+ if (this.jobProgressList.rows[i].f_job_state != '已完成'){
448
+ total+= 1
449
+ }
450
+ }
451
+ this.job_total = total
452
+ }
453
+ }
454
+ },
455
+ computed: {
456
+ nowDate() {
457
+ return this.$login.getNowDate()
458
+ }
459
+ }
460
+ }
461
+ </script>
462
+ <style lang="less">
463
+ th {
464
+ text-align: center;
465
+ vertical-align: middle;
466
+ }
467
+
468
+ /*表格主体_完成*/
469
+ .my_table_sy tbody tr:nth-child(odd){background-color: #f0f9ec !important;border: solid 1px #f0f4fa !important;color: #666666!important;font-size: 15px!important;font-family: PingFang!important;}
470
+ /*表格主体_未完成*/
471
+ .my_table_sy tbody tr:nth-child(even){background-color: #eff7ff !important;border: solid 1px #f0f4fa !important;color: #666666!important;font-size: 15px!important;font-family: PingFang!important;}
472
+
473
+ .progress-list {
474
+ background-color: #e8f4ff;
475
+ position: absolute;
476
+ top: 55px;
477
+ right: 430px;
478
+ width: 723px;
479
+ height: 342px;
480
+ z-index: 10001;
481
+ color: #9eb3c0;
482
+ border: 1px solid #7e7c81;
483
+ border-radius: 15px;
484
+ }
485
+ .my_button_search{width: auto; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background-color: #6aa6e2; border-radius: 4px; border:none; font-family: PingFang; font-size: 15px; color: #ffffff;}
486
+ .my_button_search:hover{ background-color: #3592ef;}
487
+
488
+ .m-progress{
489
+ width: 5px;
490
+ margin: 0 auto;
491
+ display: flex;
492
+ .m-progress-outer{
493
+ width: 100%;
494
+ .m-progress-inner{
495
+ display: inline-block;
496
+ width: 100%;
497
+ background-color: #f5f5f5;
498
+
499
+ }
500
+ }
501
+ }
502
+ .bg{
503
+ position: fixed;
504
+ top: 0;
505
+ left: 0;
506
+ bottom: 0;
507
+ right: 0;
508
+ z-index: 999;
509
+ background-color: rgba(0,0,0,.4);
510
+ }
511
+
512
+ .newTip-transition {
513
+ transition: all .4s ease;
514
+ }
515
+ .newTip-enter, .newTip-leave {
516
+ height: 0;
517
+ padding: 0 10px;
518
+ opacity: 0;
519
+ }
520
+ .newTip a {
521
+ color: #333;
522
+ }
523
+ .newTip {
524
+ cursor: pointer;
525
+ text-align: center;
526
+ position: absolute;
527
+ top: 3em;
528
+ margin: 0 auto;
529
+ width: 200px;
530
+ left: 48%;
531
+ line-height: 2;
532
+ z-index: 10010;
533
+ box-shadow: 0 4px 12px rgba(0,0,0,0.38);
534
+ pointer-events: all;
535
+ border-radius: 4px;
536
+ background-color: whitesmoke;
537
+ }
538
+ /* 组件内通用样式 */
539
+ .select-error {
540
+ button {
541
+ border-bottom: 1px solid #a94442 !important;
542
+ }
543
+ }
544
+
545
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
546
+ // -webkit-appearance:textfield;
547
+ // }
548
+ /* 表单输入框组 */
549
+ .form-input-group {
550
+ display: flex;
551
+
552
+ label {
553
+ width: 100px;
554
+ text-align: right;
555
+
556
+ + * {
557
+ flex: 1;
558
+ }
559
+ }
560
+ }
561
+
562
+ // 日期组件在表单中沾满
563
+ .form-horizontal .datepicker {
564
+ width: 100%;
565
+ }
566
+
567
+ // 下拉选择框占据剩余全部空间
568
+ .select-overspread {
569
+ .form-group {
570
+ // margin: 0px 5px 10px 0px;
571
+ .form-control {
572
+ margin-right: 0px;
573
+ }
574
+ }
575
+
576
+ .btn-group, .btn-group-vertical {
577
+ width: 100%;
578
+ // padding-right: 5px;
579
+ button {
580
+ width: 100%;
581
+ display: flex;
582
+ justify-content: space-between;
583
+ align-items: center;
584
+ }
585
+ }
586
+
587
+ .dropdown-menu {
588
+ width: 100%
589
+ }
590
+ }
591
+
592
+ // 需要特定宽度的的样式
593
+ .width-60 {
594
+ width: 60px;
595
+ }
596
+
597
+ .userpanel {
598
+ font-weight: 300;
599
+ color: #333;
600
+ position: fixed;
601
+ right: 30px;
602
+ top: 45px;
603
+ background-color: white;
604
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
605
+ padding: 4px 10px 4px 10px;
606
+ border-radius: 2px;
607
+ }
608
+
609
+ .width-80 {
610
+ width: 80px;
611
+ }
612
+
613
+ .width-100 {
614
+ width: 100px;
615
+ }
616
+
617
+
618
+ /*右侧区域的背景*/
619
+ .right-bg {
620
+ width: 100%;
621
+ flex: 1;
622
+ color: #304A66;
623
+ }
624
+
625
+ .tree-flex {
626
+ height: 100%;
627
+ // width: 150px;
628
+ /*width: 60px;*/
629
+ background: #4a7cae;
630
+ color: #fff;
631
+
632
+ }
633
+
634
+ .tree-flex-icon {
635
+ width: 50px;
636
+ /*transition: 0.5s;*/
637
+
638
+ > .span {
639
+ overflow-x: visible;
640
+ }
641
+ }
642
+
643
+ .tree-flex h3 {
644
+ text-align: center;
645
+ margin: 1em 0;
646
+ }
647
+
648
+ .tree-flex-footer {
649
+ height: 50px;
650
+ display: flex;
651
+ flex-direction: column;
652
+ color: #fff;
653
+ }
654
+
655
+ .tree-flex-footer a, .tree-flex-footer button {
656
+ flex: 1;
657
+ padding: 8px 5px;
658
+ font-size: 1.2em;
659
+ // border-top: 1px solid #697D93;
660
+ border-top: 1px solid #4a7cae;
661
+ text-decoration: none;
662
+ color: #fff;
663
+ cursor: pointer;
664
+ }
665
+
666
+ .tree-flex-footer button {
667
+ height: auto;
668
+ width: 100%;
669
+ border-radius: 0px;
670
+ background-color: rgba(255, 255, 255, 0);
671
+ border: none;
672
+ border-top: 1px solid #4a7cae;
673
+ // border-top: 1px solid #697D93;
674
+ text-align: left;
675
+ }
676
+
677
+ .tree-flex-footer button:hover {
678
+ outline: none;
679
+ background-color: rgba(255, 255, 255, 0.2);
680
+ }
681
+
682
+ .tree-flex-footer button:focus {
683
+ outline: none;
684
+ background-color: rgba(255, 255, 255, 0.5);
685
+ }
686
+
687
+ .tree-flex-footer a:hover {
688
+ color: #FFF;
689
+ background-color: rgba(255, 255, 255, 0.2);
690
+ }
691
+
692
+ .tree-flex .btn-group {
693
+ height: 50px !important;
694
+ }
695
+
696
+ .tree-flex .dropdown-menu {
697
+ /* 控制显示列表的样式 */
698
+ background: #4a7cae;
699
+ border-radius: 0px;
700
+ color: #fff;
701
+ width: auto;
702
+ margin: 0px;
703
+ padding: 0px;
704
+ }
705
+
706
+ .tree-flex .dropdown-menu-up {
707
+ /* bottom,top控制上下,left和right控制左右*/
708
+ left: 100% !important;
709
+ top: auto !important;
710
+ bottom: 0;
711
+ }
712
+
713
+ .tree-flex .dropdown-menu-down {
714
+ /* bottom,top控制上下,left和right控制左右*/
715
+ left: 100% !important;
716
+ top: 0 !important;
717
+ }
718
+
719
+ .tree-flex .dropdown-menu li {
720
+ text-align: center;
721
+ line-height: 50px;
722
+ border-bottom: 1px solid #697D93;
723
+ font-size: 1.2em;
724
+ width: auto;
725
+ white-space: nowrap;
726
+ cursor: default;
727
+
728
+ }
729
+
730
+ .tree-flex .dropdown-menu li + li {
731
+ text-align: left;
732
+ border: 0;
733
+ line-height: 40px;
734
+ padding-left: 15px;
735
+ padding-right: 15px;
736
+ font-size: 1em;
737
+ cursor: pointer;
738
+ }
739
+
740
+ .tree-flex .dropdown-menu li + li:hover {
741
+ background-color: rgba(255, 255, 255, 0.2);
742
+ }
743
+
744
+ .tree-flex .dropdown-menu li a {
745
+ border: none;
746
+ color: #fff;
747
+ height: 40px;
748
+ line-height: 40px;
749
+ font-size: 1em;
750
+ padding: 0px;
751
+ }
752
+
753
+ .tree-flex .dropdown-menu li a:hover {
754
+ color: #fff;
755
+ background-color: rgba(255, 255, 255, 0);
756
+ }
757
+
758
+ .tree-flex img {
759
+ height: 1.2em;
760
+ width: 1.2em;
761
+ margin-right: 15px;
762
+ margin-left: 5px;
763
+ }
764
+
765
+ .line {
766
+ height: 100%;
767
+ width: 5px;
768
+ background: #4C637B;
769
+ cursor: e-resize;
770
+ }
771
+
772
+ /*为树(tree)组件写的样式*/
773
+ .tree-img {
774
+ font-size: 1.2em;
775
+ }
776
+
777
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
778
+ .cutout50 {
779
+ max-width: 50px;
780
+ overflow: hidden;
781
+ text-overflow: ellipsis;
782
+ white-space: nowrap;
783
+ }
784
+
785
+ /* 滚动条样式 */
786
+ /*---滚动条默认显示样式--*/
787
+ ::-webkit-scrollbar-thumb {
788
+ // display: none;
789
+ background-color: rgba(0, 0, 0, 0.4);
790
+ /*background-color:red;*/
791
+ height: 50px;
792
+ outline-offset: -2px;
793
+ /*outline:2px solid #fff;*/
794
+ -webkit-border-radius: 4px;
795
+ /*border: 2px solid #fff;*/
796
+ }
797
+
798
+ /*---鼠标点击滚动条显示样式--*/
799
+ ::-webkit-scrollbar-thumb:hover {
800
+ // display: inherit;
801
+ background-color: rgba(0, 0, 0, 0.4);
802
+ height: 50px;
803
+ -webkit-border-radius: 4px;
804
+ }
805
+
806
+ /*---滚动条大小--*/
807
+ ::-webkit-scrollbar {
808
+ width: 8px;
809
+ height: 8px;
810
+ }
811
+
812
+ /*---滚动框背景样式--*/
813
+ ::-webkit-scrollbar-track-piece {
814
+ /* 全透明,不显示 */
815
+ background-color: rgba(255, 255, 255, 0);
816
+ -webkit-border-radius: 0;
817
+ }
818
+ </style>