cloud-web-corejs 1.1.0-dev.44 → 1.1.0-dev.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/app-bootstrap.js +6 -5
  3. package/src/components/Qrcode/fileParse.vue +11 -0
  4. package/src/components/VabUpload/index.js +11 -4
  5. package/src/components/VabUpload/mixins/fileLibraryDialog.js +2 -0
  6. package/src/components/VabUpload/mixins.js +72 -40
  7. package/src/components/VabUpload/partUploadConfig.js +95 -0
  8. package/src/components/VabUpload/privateProfileDialogMixins.js +2 -0
  9. package/src/components/baseInputExport/mixins.js +1 -0
  10. package/src/components/fileLibrary/mixins/indexMixins.js +2 -0
  11. package/src/components/jdPrint/mixins.js +2 -0
  12. package/src/components/obsUpload/index.js +4 -1
  13. package/src/components/obsUpload/mixins.js +45 -15
  14. package/src/components/onlineTalk/mixins.js +11 -0
  15. package/src/components/table/index.js +74 -78
  16. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/344/273/243/347/240/201/350/257/204/345/256/241.md" +255 -0
  17. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/346/265/213/350/257/225/351/252/214/350/257/201/345/256/236/346/226/275/346/226/207/346/241/243.md" +595 -0
  18. package/src/components/xform/docs//346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206/344/270/216/344/277/256/345/244/215/350/220/275/345/234/260/346/226/271/346/241/210.md +324 -0
  19. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +1 -1
  20. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +24 -0
  22. package/src/components/xform/form-render/container-item/data-table-mixin.js +413 -41
  23. package/src/components/xform/form-render/container-item/list-h5-item.vue +109 -38
  24. package/src/components/xform/styles/h5-designer.scss +13 -13
  25. package/src/components/xform/styles/h5-runtime.scss +520 -0
  26. package/src/components/xform/styles/h5.scss +5 -2
  27. package/src/layout/components/TagsView/index.vue +6 -1
  28. package/src/layout/components/TagsView/style.scss +92 -0
  29. package/src/styles/btn.scss +214 -3
  30. package/src/styles/dialog.scss +1710 -0
  31. package/src/styles/element-ui.scss +957 -36
  32. package/src/styles/index.scss +45 -0
  33. package/src/styles/layout-skins.scss +840 -0
  34. package/src/styles/mixin.scss +8 -0
  35. package/src/styles/page-shell.scss +622 -0
  36. package/src/styles/sidebar.scss +15 -0
  37. package/src/styles/utilities.scss +234 -118
  38. package/src/styles/variables.scss +28 -0
  39. package/src/views/user/home/wjl/content.vue +1576 -0
  40. package/src/views/user/intf_permission/edit.vue +230 -0
  41. package/src/views/user/intf_permission/list.vue +196 -0
@@ -0,0 +1,1576 @@
1
+ <template>
2
+ <div class="index-home">
3
+ <el-row class="home-top">
4
+ <el-col :span="10">
5
+ <div class="i-user-info">
6
+ <img class="img" v-if="headPhotoUrl" :src="headPhotoUrl" />
7
+ <p class="name">{{ $t1("您好") }},{{ userInfo.nickName }}</p>
8
+ <p>{{ companyInfo.companyName }}</p>
9
+ </div>
10
+ <div class="notice-box">
11
+ <div class="txt" @click="openMoreNotifyMessage()">
12
+ <i class="iconfont icon-xiaoxitongzhi"></i>
13
+ <span
14
+ v-if="unreadMessageNum > 0"
15
+ v-html="
16
+ $t1('您 有{number}条 未读消息,请及时查看。', {
17
+ number: `<b>${
18
+ unreadMessageNum > 99 ? '99+' : unreadMessageNum
19
+ }</b>`,
20
+ })
21
+ "
22
+ >
23
+ </span>
24
+ <span v-else-if="unreadMessageNum == 0">
25
+ {{ $t1("您 暂无 未读消息。") }}
26
+ </span>
27
+ </div>
28
+ <el-tooltip
29
+ class="item"
30
+ effect="dark"
31
+ :content="$t1('刷新')"
32
+ placement="top"
33
+ >
34
+ <el-button type="text" @click="getUnreadMessageNum(true)"
35
+ ><i class="el-icon-refresh"></i
36
+ ></el-button>
37
+ </el-tooltip>
38
+ <el-tooltip
39
+ class="item"
40
+ effect="dark"
41
+ :content="$t1('查看更多')"
42
+ placement="top"
43
+ >
44
+ <el-button
45
+ type="text"
46
+ @click="openMoreNotifyMessage()"
47
+ class="more"
48
+ >
49
+ <i class="el-icon-news"></i>
50
+ </el-button>
51
+ </el-tooltip>
52
+ </div>
53
+ <el-card class="box-card">
54
+ <div slot="header" class="clearfix">
55
+ <span style="float: left">
56
+ <i class="el-icon-chat-line-round ico"></i>
57
+ {{ $t1("公告") }}
58
+ </span>
59
+ <el-button type="text" @click="openSystemNoticeDialog()"
60
+ ><span class="more">MORE+</span></el-button
61
+ >
62
+ </div>
63
+ <div class="home-notice-list">
64
+ <div
65
+ v-for="(systemNotice, index) in systemNotices"
66
+ :key="index"
67
+ class="item"
68
+ @click="openSystemNoticeDialog(systemNotice)"
69
+ :title="systemNotice.title"
70
+ >
71
+ {{ systemNotice.title }}
72
+ <span class="time">{{
73
+ systemNotice.modifyDate.substring(0, 10)
74
+ }}</span>
75
+ </div>
76
+ </div>
77
+ </el-card>
78
+ </el-col>
79
+ <el-col :span="homeConfig.toDoSpan || 14" style="padding-left: 6px">
80
+ <el-card class="box-card">
81
+ <div slot="header" class="clearfix">
82
+ <span style="float: left">
83
+ <i class="el-icon-chat-line-round ico"></i>
84
+ {{ $t1("待办事项") }}
85
+ </span>
86
+ <el-tooltip
87
+ class="item"
88
+ effect="dark"
89
+ :content="$t1('刷新')"
90
+ placement="top"
91
+ >
92
+ <el-button
93
+ type="text"
94
+ @click="getWfInfoList(true)"
95
+ class="more"
96
+ style="right: 107px"
97
+ >
98
+ <i class="el-icon-refresh"></i>
99
+ </el-button>
100
+ </el-tooltip>
101
+ <el-button type="text" @click="toWorkflowManage()" class="more">
102
+ <i class="el-icon-news"></i>
103
+ <span>{{ $t1("查看更多+") }}</span>
104
+ </el-button>
105
+ </div>
106
+ <div class="need-to">
107
+ <vxe-grid
108
+ :data="unDoWfRows"
109
+ ref="table-wf"
110
+ v-bind="wfOption"
111
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
112
+ @custom="$vxeTableUtil.customHandle"
113
+ ></vxe-grid>
114
+ </div>
115
+ </el-card>
116
+ </el-col>
117
+ </el-row>
118
+ <el-row class="home-bottom" v-show="isServiceProvider">
119
+ <el-col :span="10">
120
+ <el-card class="box-card">
121
+ <div slot="header" class="clearfix">
122
+ <span style="float: left">
123
+ <i class="el-icon-star-off ico"></i>
124
+ {{ $t1("快捷通道") }}
125
+ </span>
126
+ <el-tooltip
127
+ class="item"
128
+ effect="dark"
129
+ :content="$t1('刷新')"
130
+ placement="top"
131
+ >
132
+ <el-button type="text" @click="getOrderCount(true)" class="more">
133
+ <i class="el-icon-refresh"></i>
134
+ </el-button>
135
+ </el-tooltip>
136
+ </div>
137
+ <div class="shortcut-box">
138
+ <div
139
+ class="item"
140
+ v-for="item in shortcutItems"
141
+ :key="item.key"
142
+ @click="openShortcut(item)"
143
+ >
144
+ <span class="name">{{ item.name }}</span>
145
+ <span class="count">({{ item.count }})</span>
146
+ </div>
147
+ </div>
148
+ </el-card>
149
+ </el-col>
150
+ <el-col :span="14" style="padding-left: 6px">
151
+ <el-card class="box-card">
152
+ <div slot="header" class="clearfix">
153
+ <span style="float: left">
154
+ <i class="el-icon-message ico"></i>
155
+ {{ $t1("待处理消息") }}
156
+ </span>
157
+ <el-tooltip
158
+ class="item"
159
+ effect="dark"
160
+ :content="$t1('刷新')"
161
+ placement="top"
162
+ >
163
+ <el-button
164
+ type="text"
165
+ @click="getOrderMessage(true)"
166
+ class="more"
167
+ style="right: 72px"
168
+ >
169
+ <i class="el-icon-refresh"></i>
170
+ </el-button>
171
+ </el-tooltip>
172
+ <el-button type="text" @click="openOrderMessageList()"
173
+ ><span class="more">MORE+</span></el-button
174
+ >
175
+ </div>
176
+ <div class="pending-msg">
177
+ <vxe-grid
178
+ :data="pendingMessageRows"
179
+ ref="table-pending-msg"
180
+ v-bind="pendingMsgOption"
181
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
182
+ @custom="$vxeTableUtil.customHandle"
183
+ ></vxe-grid>
184
+ </div>
185
+ </el-card>
186
+ </el-col>
187
+ </el-row>
188
+ <slot></slot>
189
+ <systemNoticeInfoDialog
190
+ v-if="showSystemNoticeInfoDialog"
191
+ :visiable.sync="showSystemNoticeInfoDialog"
192
+ :param="csnRow"
193
+ :appendToTop="true"
194
+ ></systemNoticeInfoDialog>
195
+
196
+ <wfContentDialog
197
+ v-if="showWfDialog"
198
+ :visible.sync="showWfDialog"
199
+ @close="wfClose"
200
+ :option.sync="wfContentOption"
201
+ ></wfContentDialog>
202
+
203
+ <notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
204
+
205
+ <notifyMessageInfoDialog
206
+ v-if="showNoticeDialog"
207
+ :visiable.sync="showNoticeDialog"
208
+ :dataId.sync="notifyMessageInfoId"
209
+ @readHanlde="notifyMessageReadHanlde"
210
+ ></notifyMessageInfoDialog>
211
+
212
+ <el-dialog
213
+ :title="$t1('处理消息')"
214
+ :append-to-body="true"
215
+ :modal-append-to-body="true"
216
+ :close-on-click-modal="false"
217
+ v-if="showDealDialog"
218
+ :visible.sync="showDealDialog"
219
+ custom-class="el-dialog dialog-style"
220
+ width="560px"
221
+ :destroy-on-close="true"
222
+ v-el-drag-dialog
223
+ >
224
+ <el-form :model="dealForm" label-width="100px" class="deal-msg-form">
225
+ <el-form-item :label="$t1('标题')">
226
+ <span>{{ dealRow.title }}</span>
227
+ </el-form-item>
228
+ <el-form-item :label="$t1('业务单据号')">
229
+ <span>{{ dealRow.bill_order_no }}</span>
230
+ </el-form-item>
231
+ <el-form-item :label="$t1('消息内容')">
232
+ <div class="deal-msg-content">{{ dealRow.content }}</div>
233
+ </el-form-item>
234
+ <el-form-item :label="$t1('处理备注')">
235
+ <el-input
236
+ type="textarea"
237
+ v-model="dealForm.deal_remark"
238
+ :rows="4"
239
+ :placeholder="$t1('请输入处理备注')"
240
+ maxlength="500"
241
+ show-word-limit
242
+ />
243
+ </el-form-item>
244
+ </el-form>
245
+ <span slot="footer" class="dialog-footer">
246
+ <el-button @click="showDealDialog = false">{{ $t1("取消") }}</el-button>
247
+ <el-button
248
+ type="primary"
249
+ :loading="dealSubmitting"
250
+ @click="submitDealMessage"
251
+ >{{ $t1("确定") }}</el-button
252
+ >
253
+ </span>
254
+ </el-dialog>
255
+
256
+ <el-dialog
257
+ :title="$t1('选择分组')"
258
+ :append-to-body="true"
259
+ :modal-append-to-body="true"
260
+ :close-on-click-modal="false"
261
+ v-if="showGroupDialog"
262
+ :visible.sync="showGroupDialog"
263
+ :modal="false"
264
+ custom-class="el-dialog dialog-style list-dialog"
265
+ width="355px"
266
+ :destroy-on-close="true"
267
+ >
268
+ <div class="cont group-list">
269
+ <div
270
+ class="item"
271
+ v-for="(notifyTemplate, index) in notifyTemplates"
272
+ :key="index"
273
+ @click="openMoreNotifyMessage(notifyTemplate.notifyType)"
274
+ >
275
+ <i class="iconfont icon-fenzu"></i>
276
+ <span class="name">{{ notifyTemplate.ntName }}</span>
277
+ <!-- <span class="nums">99+</span>-->
278
+ </div>
279
+ </div>
280
+ </el-dialog>
281
+ </div>
282
+ </template>
283
+
284
+ <script>
285
+ import systemNoticeInfoDialog from "@base/views/user/system_notice/infoDialog.vue";
286
+ import notifyMessageDialog from "@base/views/user/notify_message/dialog.vue";
287
+ import notifyMessageInfoDialog from "@base/views/user/notify_message/infoDialog";
288
+
289
+ import { getToken } from "@base/utils/auth";
290
+ import wfContentDialog from "@base/views/user/wf/wf_manage/wfContentDialog";
291
+ import corejsConfig from "@/corejsConfig";
292
+ import { getLogicParamValue } from "@base/api/user";
293
+
294
+ export default {
295
+ name: "home",
296
+ components: {
297
+ systemNoticeInfoDialog,
298
+ notifyMessageDialog,
299
+ notifyMessageInfoDialog,
300
+ wfContentDialog,
301
+ },
302
+ data() {
303
+ return {
304
+ showNoticeDialog: false,
305
+ showGroupDialog: false,
306
+ notifyTemplates: [],
307
+ userInfo: {},
308
+ companyInfo: {},
309
+ systemNotices: [],
310
+ showSystemNoticeInfoDialog: false,
311
+ csnRow: null,
312
+ headPhotoUrl: "",
313
+ dialogVisible: true,
314
+ unDoWfRows: [],
315
+ wfOption: {},
316
+ showWfDialog: false,
317
+ wfContentOption: {},
318
+ showWfContent: true,
319
+ wfContent: null,
320
+ wfDataId: "",
321
+ notifyMessages: [],
322
+ notifyMessageInfoIndex: null,
323
+ notifyMessageInfoId: null,
324
+ unreadMessageNum: 0,
325
+ activating: true,
326
+ wfTimer: null,
327
+ homeConfig: corejsConfig.homeConfig || {},
328
+ pendingMsgOption: {},
329
+ isServiceProvider: false,
330
+ roleChecked: false,
331
+ showDealDialog: false,
332
+ dealSubmitting: false,
333
+ dealRow: {},
334
+ dealForm: {
335
+ deal_remark: "",
336
+ },
337
+ shortcutItems: [
338
+ {
339
+ key: "unTakeQty",
340
+ name: "待接单",
341
+ count: 0,
342
+ formCode: "fwm_so_order_list",
343
+ query: { quick_type: 1 },
344
+ },
345
+ {
346
+ key: "outTimeBookQty",
347
+ name: "超时预约",
348
+ count: 0,
349
+ formCode: "fwm_so_order_list",
350
+ query: { quick_type: 2 },
351
+ },
352
+ {
353
+ key: "unBookQty",
354
+ name: "待预约",
355
+ count: 0,
356
+ formCode: "fwm_so_order_list",
357
+ query: { quick_type: 3 },
358
+ },
359
+ {
360
+ key: "unTakeEngineerQty",
361
+ name: "待派师傅",
362
+ count: 0,
363
+ formCode: "fwm_so_order_list",
364
+ query: { quick_type: 4 },
365
+ },
366
+ {
367
+ key: "engineerReturnQty",
368
+ name: "师傅退单",
369
+ count: 0,
370
+ formCode: "fwm_so_order_list",
371
+ query: { quick_type: 5 },
372
+ },
373
+ {
374
+ key: "unIntallQty",
375
+ name: "签收待安装",
376
+ count: 0,
377
+ formCode: "fwm_so_order_list",
378
+ query: { quick_type: 6 },
379
+ },
380
+ {
381
+ key: "unFinishQty",
382
+ name: "待完工单",
383
+ count: 0,
384
+ formCode: "fwm_so_order_list",
385
+ query: { quick_type: 7 },
386
+ },
387
+ {
388
+ key: "unCommitFinishQty",
389
+ name: "待确认完工",
390
+ count: 0,
391
+ formCode: "fwm_so_order_list",
392
+ query: { quick_type: 8 },
393
+ },
394
+ {
395
+ key: "unComplainQty",
396
+ name: "待申诉",
397
+ count: 0,
398
+ formCode: "fwm_so_order_appeal_list",
399
+ query: { query_type: 3 },
400
+ },
401
+ {
402
+ key: "urgeOrComplainQty",
403
+ name: "投诉/催单",
404
+ count: 0,
405
+ formCode: "fwm_so_order_list",
406
+ query: { quick_type: 10 },
407
+ },
408
+ ],
409
+ pendingMessageRows: [],
410
+ };
411
+ },
412
+ activated() {
413
+ this.activating = true;
414
+ if (!this.wfTimer) {
415
+ this.initWfTimer();
416
+ } else {
417
+ this.timerExcFun(true);
418
+ }
419
+ },
420
+ deactivated() {
421
+ this.activating = false;
422
+ },
423
+ beforeDestroy() {
424
+ this.clearTimer();
425
+ },
426
+ created() {
427
+ this.getUserInfo();
428
+ this.initSystemNotice();
429
+ this.initNotifyMessage();
430
+ this.initWfParam();
431
+ this.initWfTimer();
432
+ //初始化流程待办路由
433
+ this.initWorkflowManageRoute();
434
+ this.initServiceProviderRole();
435
+ },
436
+ mounted() {
437
+ this.initPendingMsgTable();
438
+ },
439
+ methods: {
440
+ initWorkflowManageRoute() {
441
+ //初始化流程待办路由
442
+ getLogicParamValue({
443
+ data: { paramCode: "workflowManageRoute" },
444
+ success: (res) => {
445
+ let value = res?.objx;
446
+ this.workflowManageRoute = value || "/basic/wf/wf_manage/list";
447
+ },
448
+ });
449
+ },
450
+ toWorkflowManage() {
451
+ this.$router.push(this.workflowManageRoute);
452
+ },
453
+ wfClose() {
454
+ this.timerExcFun(true);
455
+ },
456
+ initWfTimer() {
457
+ this.wfTimer = setInterval(() => {
458
+ this.timerExcFun(false);
459
+ }, 10000);
460
+ this.timerExcFun(true);
461
+ },
462
+ timerExcFun(isLoading) {
463
+ if (!this.activating) {
464
+ return;
465
+ }
466
+ this.getWfInfoList(isLoading);
467
+ this.getUnreadMessageNum(isLoading);
468
+ if (this.isServiceProvider) {
469
+ this.getOrderCount(isLoading);
470
+ this.getOrderMessage(isLoading);
471
+ }
472
+ this.$emit("timerHandle");
473
+ },
474
+ clearTimer() {
475
+ clearInterval(this.wfTimer);
476
+ this.wfTimer = null;
477
+ },
478
+ getUserInfo() {
479
+ this.$http({
480
+ url: USER_PREFIX + "/user/currentUser",
481
+ method: "post",
482
+ success: (res) => {
483
+ let userInfo = res.objx;
484
+ this.headPhotoUrl = this.$assetUrl(
485
+ userInfo.headPhotoUrl ||
486
+ require("@/resources/images/default-header.png")
487
+ );
488
+
489
+ this.userInfo = userInfo;
490
+ this.initServiceProviderRole();
491
+ },
492
+ });
493
+ this.$http({
494
+ url: USER_PREFIX + "/company_info/getCurrent",
495
+ method: `post`,
496
+ success: (res) => {
497
+ this.companyInfo = res.objx || {};
498
+ },
499
+ });
500
+ },
501
+ initSystemNotice() {
502
+ this.$http({
503
+ url: USER_PREFIX + "/system_notice/listPage",
504
+ data: { publish: true, searchCount: false },
505
+ method: "post",
506
+ success: (res) => {
507
+ this.systemNotices =
508
+ res.objx && res.objx.records ? res.objx.records : [];
509
+ },
510
+ });
511
+ },
512
+ openSystemNoticeDialog(row) {
513
+ this.csnRow = row || null;
514
+ this.showSystemNoticeInfoDialog = true;
515
+ },
516
+ initUnDoWfInfo() {
517
+ this.$http({
518
+ url: AGILEBPM_PREFIX + "/wf_manage/listPage",
519
+ data: { type: 0, searchCount: false },
520
+ method: "post",
521
+ success: (res) => {
522
+ this.unDoWfRows = res.objx.records || [];
523
+ },
524
+ });
525
+ },
526
+ initWfTableList() {
527
+ let that = this;
528
+ let paramColumns = this.wfParamDTOs.map((item) => {
529
+ return {
530
+ title: this.$t1(item.paramName),
531
+ field: item.paramKey,
532
+ width: 150,
533
+ };
534
+ });
535
+ var statuses = {
536
+ running: this.$t1("审核中"),
537
+ back: this.$t1("已驳回"),
538
+ end: this.$t1("已完成"),
539
+ };
540
+ let tableOption = {
541
+ vue: this,
542
+ tableRef: "table-wf",
543
+ tableName: "home-table-wf",
544
+ config: {
545
+ height: "auto",
546
+ },
547
+ columns: [
548
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
549
+ {
550
+ title: this.$t1("单据类型"),
551
+ field: "objTypeName",
552
+ width: 150,
553
+ fixed: "left",
554
+ },
555
+ {
556
+ title: this.$t1("流程主题"),
557
+ field: "name",
558
+ width: 150,
559
+ },
560
+ {
561
+ title: this.$t1("当前任务"),
562
+ field: "taskName",
563
+ width: 150,
564
+ },
565
+ {
566
+ title: this.$t1("当前任务用户"),
567
+ field: "candidateNames",
568
+ width: 150,
569
+ },
570
+ {
571
+ title: this.$t1("启动时间"),
572
+ field: "createDate",
573
+ width: 150,
574
+ },
575
+ ...paramColumns,
576
+ {
577
+ width: 47,
578
+ fixed: "right",
579
+ title: "",
580
+ sortable: false,
581
+ slots: {
582
+ default: ({ row }) => {
583
+ return [
584
+ <a
585
+ href="javascript:void(0);"
586
+ class="a-link"
587
+ onclick={() => {
588
+ this.openWfDialog(row);
589
+ }}
590
+ >
591
+ <el-tooltip
592
+ enterable={false}
593
+ effect="dark"
594
+ content={this.$t1("查看")}
595
+ placement="top"
596
+ popper-class="tooltip-skin"
597
+ >
598
+ <i class="el-icon-edit" />
599
+ </el-tooltip>
600
+ </a>,
601
+ ];
602
+ },
603
+ },
604
+ },
605
+ ],
606
+ };
607
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
608
+ this.wfOption = opts;
609
+ });
610
+ },
611
+ initPendingMsgTable() {
612
+ let tableOption = {
613
+ vue: this,
614
+ tableRef: "table-pending-msg",
615
+ tableName: "home-table-pending-msg",
616
+ config: {
617
+ height: "auto",
618
+ toolbarConfig: {
619
+ enabled: false,
620
+ },
621
+ pagerConfig: {
622
+ enabled: false,
623
+ },
624
+ },
625
+ columns: [
626
+ {
627
+ title: this.$t1("通知时间"),
628
+ field: "create_date",
629
+ width: 150,
630
+ },
631
+ {
632
+ title: this.$t1("消息类型"),
633
+ field: "message_type",
634
+ width: 120,
635
+ slots: {
636
+ default: ({ row }) => {
637
+ return [
638
+ <span>{this.getMessageTypeName(row.message_type)}</span>,
639
+ ];
640
+ },
641
+ },
642
+ },
643
+ {
644
+ title: this.$t1("业务单据号"),
645
+ field: "bill_order_no",
646
+ minWidth: 150,
647
+ slots: {
648
+ default: ({ row }) => {
649
+ return [
650
+ <a
651
+ href="javascript:void(0);"
652
+ class="a-link"
653
+ onclick={() => {
654
+ this.openOrderView(row);
655
+ }}
656
+ >
657
+ {row.bill_order_no}
658
+ </a>,
659
+ ];
660
+ },
661
+ },
662
+ },
663
+ {
664
+ title: this.$t1("标题"),
665
+ field: "title",
666
+ minWidth: 150,
667
+ },
668
+ {
669
+ title: this.$t1("操作"),
670
+ width: 70,
671
+ fixed: "right",
672
+ sortable: false,
673
+ slots: {
674
+ default: ({ row }) => {
675
+ return [
676
+ <a
677
+ href="javascript:void(0);"
678
+ class="a-link"
679
+ onclick={() => {
680
+ this.handlePendingMessage(row);
681
+ }}
682
+ >
683
+ {this.$t1("处理")}
684
+ </a>,
685
+ ];
686
+ },
687
+ },
688
+ },
689
+ ],
690
+ };
691
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
692
+ this.pendingMsgOption = opts;
693
+ this.$nextTick(() => {
694
+ let grid = this.$refs["table-pending-msg"];
695
+ if (grid && grid.recalculate) {
696
+ grid.recalculate();
697
+ }
698
+ });
699
+ });
700
+ },
701
+ handlePendingMessage(row) {
702
+ this.dealRow = row || {};
703
+ this.dealForm = { deal_remark: "" };
704
+ this.dealSubmitting = false;
705
+ this.showDealDialog = true;
706
+ },
707
+ openOrderView(row) {
708
+ let dataId = row.order_id;
709
+ if (dataId == null) {
710
+ this.$message.warning(this.$t1("未找到工单"));
711
+ return;
712
+ }
713
+ this.wfContentOption = {
714
+ objId: dataId,
715
+ url: "form",
716
+ formCode: "fwm_so_order_view",
717
+ };
718
+ this.showWfDialog = true;
719
+ },
720
+ submitDealMessage() {
721
+ if (!this.dealRow || !this.dealRow.id) {
722
+ return;
723
+ }
724
+ this.dealSubmitting = true;
725
+ this.callFormScript({
726
+ url: YX_PREFIX + "/bd_api/fwm_so_order_message_list/doDealOrderMessage",
727
+ data: {
728
+ id: this.dealRow.id,
729
+ deal_remark: this.dealForm.deal_remark,
730
+ },
731
+ isLoading: true,
732
+ success: (res) => {
733
+ this.dealSubmitting = false;
734
+ this.showDealDialog = false;
735
+ this.$message.success(res.content || this.$t1("处理成功"));
736
+ this.getOrderCount(true);
737
+ this.getOrderMessage(true);
738
+ },
739
+ fail: (res, response) => {
740
+ this.dealSubmitting = false;
741
+ if (response && response.status == 200) {
742
+ this.$errorMsg(res);
743
+ }
744
+ },
745
+ });
746
+ },
747
+ getMessageTypeName(type) {
748
+ let map = {
749
+ 1: this.$t1("工单"),
750
+ 2: this.$t1("备件申请"),
751
+ 3: this.$t1("结算"),
752
+ 4: this.$t1("考核"),
753
+ };
754
+ return map[type] || type || "";
755
+ },
756
+ initServiceProviderRole() {
757
+ if (this.roleChecked) {
758
+ return;
759
+ }
760
+ let userId = this.$store.getters.userId || this.userInfo.id;
761
+ if (!userId) {
762
+ return;
763
+ }
764
+ this.roleChecked = true;
765
+ this.$http({
766
+ url: USER_PREFIX + "/user/getUserRole",
767
+ method: "post",
768
+ data: { id: userId },
769
+ failMsg: false,
770
+ errorMsg: false,
771
+ success: (res) => {
772
+ let rows = res.objx || [];
773
+ let codes = rows.map((row) => row.roleCode);
774
+ this.isServiceProvider =
775
+ codes.includes("yjfws") || codes.includes("ejfws");
776
+ if (this.isServiceProvider) {
777
+ this.getOrderCount(true);
778
+ this.getOrderMessage(true);
779
+ this.$nextTick(() => {
780
+ let grid = this.$refs["table-pending-msg"];
781
+ if (grid && grid.recalculate) {
782
+ grid.recalculate();
783
+ }
784
+ });
785
+ }
786
+ },
787
+ fail: () => {
788
+ this.roleChecked = false;
789
+ },
790
+ });
791
+ },
792
+ callFormScript(opts) {
793
+ let isLoading = opts.isLoading ?? true;
794
+ return this.$http({
795
+ url: opts.url,
796
+ method: "post",
797
+ data: opts.data || {},
798
+ isLoading,
799
+ modal: isLoading || false,
800
+ ignoreNetworkError: opts.ignoreNetworkError,
801
+ success: opts.success,
802
+ failMsg: false,
803
+ errorMsg: false,
804
+ fail:
805
+ opts.fail ||
806
+ ((res, response) => {
807
+ if (response && response.status == 200) {
808
+ this.$errorMsg(res);
809
+ }
810
+ }),
811
+ });
812
+ },
813
+ getOrderCount(isLoading) {
814
+ if (!this.isServiceProvider || !this.activating) {
815
+ return;
816
+ }
817
+ this.callFormScript({
818
+ url: YX_PREFIX + "/bd_api/intf/getOrderCount",
819
+ isLoading,
820
+ ignoreNetworkError: !isLoading,
821
+ success: (res) => {
822
+ let objx = res.objx || {};
823
+ this.shortcutItems.forEach((item) => {
824
+ item.count = objx[item.key] != null ? objx[item.key] : 0;
825
+ });
826
+ },
827
+ });
828
+ },
829
+ getOrderMessage(isLoading) {
830
+ if (!this.isServiceProvider || !this.activating) {
831
+ return;
832
+ }
833
+ this.callFormScript({
834
+ url: YX_PREFIX + "/bd_api/intf/getOrderMessage",
835
+ isLoading,
836
+ ignoreNetworkError: !isLoading,
837
+ success: (res) => {
838
+ let objx = res.objx;
839
+ this.pendingMessageRows = Array.isArray(objx)
840
+ ? objx
841
+ : (objx && objx.records) || [];
842
+ },
843
+ });
844
+ },
845
+ openShortcut(item) {
846
+ if (!item || !item.formCode) {
847
+ return;
848
+ }
849
+ this.openFormList(item.formCode, item.query, item.name);
850
+ },
851
+ openOrderMessageList() {
852
+ this.openFormList("fwm_so_order_message_list");
853
+ },
854
+ findFormPath(formCode) {
855
+ if (!formCode) {
856
+ return null;
857
+ }
858
+ let match = (path) => {
859
+ if (!path) {
860
+ return false;
861
+ }
862
+ let p = String(path).split("?")[0];
863
+ return p === formCode || p.endsWith("/" + formCode);
864
+ };
865
+ let walk = (routes) => {
866
+ for (let r of routes || []) {
867
+ if (match(r.path) || match(r.url)) {
868
+ let candidates = [r.path, r.url].filter(Boolean);
869
+ return (
870
+ candidates.find((p) => String(p).startsWith("/")) || candidates[0]
871
+ );
872
+ }
873
+ let found = walk(r.children);
874
+ if (found) {
875
+ return found;
876
+ }
877
+ }
878
+ return null;
879
+ };
880
+ return (
881
+ walk(this.$store.getters.permission_routes) ||
882
+ walk(this.$store.getters.add_routes) ||
883
+ walk(this.$store.getters.sidebarRouters)
884
+ );
885
+ },
886
+ openFormList(formCode, query, titleSuffix) {
887
+ let path = this.findFormPath(formCode);
888
+ if (!path) {
889
+ this.$message.warning(this.$t1("未找到对应菜单"));
890
+ return;
891
+ }
892
+ path = String(path).split("?")[0];
893
+ let q = query || {};
894
+ let queryData = { ...q };
895
+ if (titleSuffix) {
896
+ queryData._tabSuffix = titleSuffix;
897
+ }
898
+ if (
899
+ formCode !== "fwm_so_order_list" &&
900
+ formCode !== "fwm_so_order_appeal_list"
901
+ ) {
902
+ queryData.param = JSON.stringify(q);
903
+ }
904
+ let view = {
905
+ path,
906
+ query: queryData,
907
+ };
908
+ this.$store.dispatch("tagsView/delCachedView", view).then(() => {
909
+ this.$openView(view);
910
+ });
911
+ },
912
+ openWfDialog(row) {
913
+ this.wfContentOption = {
914
+ objId: row.objId,
915
+ url: row.url,
916
+ objTypeCode: row.objTypeCode,
917
+ formCode: row.formCode,
918
+ };
919
+ this.showWfDialog = true;
920
+ },
921
+ initNotifyMessage() {
922
+ return;
923
+ this.$http({
924
+ url: USER_PREFIX + "/notify_message/listPage",
925
+ data: { searchCount: false },
926
+ method: "post",
927
+ success: (res) => {
928
+ this.notifyMessages =
929
+ res.objx && res.objx.records ? res.objx.records : [];
930
+ },
931
+ });
932
+ },
933
+ openNotifyMessageDialog(row) {
934
+ if (row.jumpContent) {
935
+ this.$refs.notifyMessageDialog.open(row, () => {
936
+ row.readed = 1;
937
+ });
938
+ }
939
+ },
940
+ openMoreNotifyMessage(notifyType) {
941
+ let data = { notifyType: notifyType || "" };
942
+ let view = {
943
+ name: "notify_message:list",
944
+ query: data,
945
+ };
946
+ this.$store.dispatch("tagsView/delCachedView", view).then(() => {
947
+ this.$router.replace(view);
948
+ });
949
+
950
+ if (notifyType) {
951
+ this.showGroupDialog = false;
952
+ }
953
+ },
954
+ checkNotifyMessage(row, index) {
955
+ this.showNoticeDialog = true;
956
+ this.notifyMessageInfoIndex = index;
957
+ this.notifyMessageInfoId = row.id;
958
+ },
959
+ notifyMessageReadHanlde() {
960
+ this.notifyMessages[this.notifyMessageInfoIndex].readed = 1;
961
+ },
962
+ openNotifyTemplateGroupDialog() {
963
+ this.$http({
964
+ url: USER_PREFIX + `/notify_template/listPage`,
965
+ method: `post`,
966
+ data: { searchCount: false },
967
+ isLoading: true,
968
+ // loadingTarget: document.body,
969
+ success: (res) => {
970
+ this.notifyTemplates =
971
+ res.objx && res.objx.records ? res.objx.records : [];
972
+ this.showGroupDialog = true;
973
+ },
974
+ });
975
+ },
976
+ rourteTo(route) {
977
+ if (route.type == 4) {
978
+ this.jumpOutLink(route);
979
+ } else if (route.type == 3) {
980
+ let menuCode = route.menuCode;
981
+ let path = "/user/outLink/index/" + menuCode;
982
+ this.$openView({ path: path, query: { url: route.url } }, route);
983
+ } else {
984
+ let path = this.getPath(route);
985
+ if (!path) return;
986
+ this.$openView(path, route);
987
+ }
988
+ },
989
+ getPath(route3) {
990
+ let item = null;
991
+ let path = null;
992
+ if (route3.type == 0) {
993
+ //普通菜单
994
+ if (route3.url) {
995
+ path = route3.route || route3.url;
996
+ let str = "/report/vform/render/";
997
+ if (path.indexOf(str) == 0) {
998
+ } else {
999
+ let pIndex = path.indexOf("?");
1000
+ if (pIndex > 0) {
1001
+ path = path.substring(0, pIndex);
1002
+ }
1003
+ }
1004
+ }
1005
+ } else if (route3.type == 5) {
1006
+ //动态表单
1007
+ let url = route3.route || route3.url;
1008
+ path = url;
1009
+ }
1010
+ if (path && path.startsWith("@")) {
1011
+ path = null;
1012
+ }
1013
+ return path;
1014
+ },
1015
+ jumpOutLink(route) {
1016
+ let path = route.url;
1017
+ if (route.type == 4 && path) {
1018
+ if (path.indexOf("token={token}") >= 0) {
1019
+ path = path.replace("token={token}", "token=" + getToken());
1020
+ }
1021
+ window.open(path);
1022
+ }
1023
+ },
1024
+ initWfParam() {
1025
+ return this.$http({
1026
+ url: USER_PREFIX + "/wf_param/list",
1027
+ method: `post`,
1028
+ data: {},
1029
+ isLoading: true,
1030
+ // loadingTarget: document.body,
1031
+ modalStrictly: true,
1032
+ success: (res) => {
1033
+ this.wfParamDTOs = res.objx || [];
1034
+ this.initWfTableList();
1035
+ },
1036
+ });
1037
+ },
1038
+ getWfInfoList(isLoading) {
1039
+ if (!this.activating) {
1040
+ return;
1041
+ }
1042
+ this.$http({
1043
+ url: USER_PREFIX + "/wf_info/listPage",
1044
+ data: { type: 0, size: 20, searchCount: false },
1045
+ method: "post",
1046
+ isLoading: isLoading,
1047
+ modal: isLoading || false,
1048
+ ignoreNetworkError: !isLoading,
1049
+ // loadingTarget: document.body,
1050
+ success: (res) => {
1051
+ this.unDoWfRows =
1052
+ res.objx && res.objx.records ? res.objx.records : [];
1053
+ },
1054
+ failMsg: false,
1055
+ errorMsg: false,
1056
+ fail: (res, response) => {
1057
+ if (response && response.status == 200) {
1058
+ this.$errorMsg(res);
1059
+ }
1060
+ },
1061
+ });
1062
+ },
1063
+ getUnreadMessageNum(isLoading) {
1064
+ if (!this.activating) {
1065
+ return;
1066
+ }
1067
+ return this.$http({
1068
+ url: USER_PREFIX + "/notify_message/countMessage",
1069
+ method: `post`,
1070
+ data: {},
1071
+ isLoading: isLoading,
1072
+ modal: isLoading || false,
1073
+ ignoreNetworkError: !isLoading,
1074
+ // loadingTarget: document.body,
1075
+ success: (res) => {
1076
+ this.unreadMessageNum = res.objx || 0;
1077
+ },
1078
+ failMsg: false,
1079
+ errorMsg: false,
1080
+ fail: (res, response) => {
1081
+ if (response && response.status == 200) {
1082
+ this.$errorMsg(res);
1083
+ }
1084
+ },
1085
+ });
1086
+ },
1087
+ wfhandleCallback(flag) {
1088
+ if ([1, 2, 3].includes(flag)) {
1089
+ this.showWfDialog = false;
1090
+ this.wfClose();
1091
+ }
1092
+ },
1093
+ },
1094
+ };
1095
+ </script>
1096
+ <style lang="scss" scoped>
1097
+ @import "~@/styles/variables.scss";
1098
+
1099
+ body #app .index-home {
1100
+ margin: 3px 10px;
1101
+ height: calc(100vh - 44px);
1102
+ overflow: hidden;
1103
+ display: flex;
1104
+ flex-direction: column;
1105
+
1106
+ #containt {
1107
+ margin: 0;
1108
+ background: none;
1109
+ height: auto;
1110
+ box-shadow: none;
1111
+ }
1112
+
1113
+ .i-user-info {
1114
+ background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116%
1115
+ 45px;
1116
+ margin-bottom: 6px;
1117
+ background-size: 181px;
1118
+ padding: 14px 38px 11px 16px;
1119
+ border-radius: 4px 4px;
1120
+ color: #fff;
1121
+ font-size: 12px;
1122
+ margin-top: 3px;
1123
+ height: 95px;
1124
+ overflow: hidden;
1125
+
1126
+ .name {
1127
+ opacity: 1;
1128
+ font-weight: 600;
1129
+ margin: 9px 0 14px;
1130
+ font-size: 14px;
1131
+ }
1132
+
1133
+ .img {
1134
+ width: 60px;
1135
+ height: 60px;
1136
+ float: left;
1137
+ border-radius: 50%;
1138
+ border: solid 4px rgba(255, 255, 255, 0.28);
1139
+ margin-right: 10px;
1140
+ }
1141
+ }
1142
+
1143
+ .home-notice-list {
1144
+ height: 182px;
1145
+ margin: 0 -12px;
1146
+
1147
+ .item {
1148
+ padding: 6px 12px;
1149
+ font-size: 12px;
1150
+ cursor: pointer;
1151
+ overflow: hidden;
1152
+ text-overflow: ellipsis;
1153
+ white-space: nowrap;
1154
+
1155
+ .time {
1156
+ color: #b9b9b9;
1157
+ font-size: 12px;
1158
+ right: 12px;
1159
+ background: #FFF;
1160
+ padding-left: 8px;
1161
+ }
1162
+
1163
+ &:hover {
1164
+ color: $baseColor;
1165
+ background-color: #F8FAFC;
1166
+
1167
+ .time {
1168
+ color: $baseColor;
1169
+ background-color: #F8FAFC;
1170
+ }
1171
+ }
1172
+
1173
+ &.no-read:before {
1174
+ content: "";
1175
+ width: 6px;
1176
+ height: 6px;
1177
+ background-color: $red;
1178
+ border-radius: 50%;
1179
+ vertical-align: middle;
1180
+ display: inline-block;
1181
+ margin-bottom: 1px;
1182
+ }
1183
+ }
1184
+
1185
+ &.to-reed {
1186
+ height: 300px;
1187
+ overflow: auto;
1188
+ margin: -8px -12px;
1189
+
1190
+ .item {
1191
+ white-space: initial;
1192
+ padding: 8px 22px 2px;
1193
+ position: relative;
1194
+
1195
+ &:after {
1196
+ content: "";
1197
+ position: absolute;
1198
+ left: 22px;
1199
+ right: 22px;
1200
+ border-top: dashed 1px #eee;
1201
+ height: 1px;
1202
+ bottom: 0;
1203
+ }
1204
+
1205
+ &.noread {
1206
+ &:before {
1207
+ content: "";
1208
+ width: 6px;
1209
+ height: 6px;
1210
+ background-color: $red;
1211
+ border-radius: 50%;
1212
+ margin-right: 5px;
1213
+ display: inline-block;
1214
+ position: absolute;
1215
+ left: 10px;
1216
+ top: 16px;
1217
+ }
1218
+ }
1219
+
1220
+ .el-tag {
1221
+ zoom: 0.95;
1222
+ padding: 0 5px;
1223
+ height: 24px;
1224
+ line-height: 24px;
1225
+ }
1226
+
1227
+ // .noread{
1228
+ // position: absolute;right:0;top:0;
1229
+ // span{transform: rotate(47deg);
1230
+ // -ms-transform: rotate(47deg);
1231
+ // -moz-transform: rotate(47deg);
1232
+ // -webkit-transform: rotate(47deg);
1233
+ // -o-transform: rotate(47deg);
1234
+ // z-index: 3;
1235
+ // color: #FFF;
1236
+ // position: absolute;
1237
+ // right: 1px;
1238
+ // top: 2px;}
1239
+ // &:after{
1240
+ // content: "\e618";
1241
+ // font-size: 62px;
1242
+ // font-family: "iconfont";
1243
+ // color:$red
1244
+ // }
1245
+ // }
1246
+ .time {
1247
+ position: relative;
1248
+ right: 0;
1249
+ margin-left: 12px;
1250
+ }
1251
+
1252
+ .name {
1253
+ overflow: hidden;
1254
+ text-overflow: ellipsis;
1255
+ white-space: nowrap;
1256
+ margin-top: 3px;
1257
+ display: block;
1258
+ margin-bottom: 4px;
1259
+ }
1260
+
1261
+ &:hover .name {
1262
+ color: $baseColor;
1263
+ }
1264
+
1265
+ &:first-child:before {
1266
+ border-top: none;
1267
+ }
1268
+
1269
+ .btns {
1270
+ text-align: right;
1271
+
1272
+ .el-link {
1273
+ font-size: 12px;
1274
+ display: inline-block;
1275
+ margin-left: 14px;
1276
+
1277
+ i {
1278
+ font-size: 12px;
1279
+ margin-right: 3px;
1280
+ }
1281
+ }
1282
+ }
1283
+ }
1284
+ }
1285
+ }
1286
+
1287
+ .home-top {
1288
+ flex: none;
1289
+ }
1290
+
1291
+ .home-bottom {
1292
+ flex: 1;
1293
+ min-height: 0;
1294
+ display: flex;
1295
+
1296
+ > .el-col {
1297
+ height: 100%;
1298
+ display: flex;
1299
+ flex-direction: column;
1300
+ }
1301
+
1302
+ .box-card {
1303
+ flex: 1;
1304
+ min-height: 0;
1305
+ display: flex;
1306
+ flex-direction: column;
1307
+
1308
+ &.el-card.is-always-shadow {
1309
+ margin-top: 0 !important;
1310
+ }
1311
+ }
1312
+
1313
+ ::v-deep .el-card__body {
1314
+ flex: 1;
1315
+ min-height: 0;
1316
+ display: flex;
1317
+ flex-direction: column;
1318
+ }
1319
+ }
1320
+
1321
+ .shortcut-box {
1322
+ flex: 1;
1323
+ min-height: 0;
1324
+ display: grid;
1325
+ grid-template-columns: repeat(5, 1fr);
1326
+ grid-template-rows: repeat(2, 1fr);
1327
+ gap: 8px;
1328
+
1329
+ .item {
1330
+ border: solid 1px #e2e2e2;
1331
+ border-radius: 2px;
1332
+ text-align: center;
1333
+ padding: 12px 4px 10px;
1334
+ cursor: pointer;
1335
+ background: #fff;
1336
+ display: flex;
1337
+ flex-direction: column;
1338
+ justify-content: center;
1339
+
1340
+ .name {
1341
+ display: block;
1342
+ color: #424242;
1343
+ font-size: 12px;
1344
+ line-height: 20px;
1345
+ }
1346
+
1347
+ .count {
1348
+ display: block;
1349
+ color: #d62b31;
1350
+ font-size: 12px;
1351
+ line-height: 20px;
1352
+ }
1353
+
1354
+ &:hover {
1355
+ border-color: $baseColor;
1356
+ background-color: transparentize($baseColor, 0.95);
1357
+
1358
+ .name {
1359
+ color: $baseColor;
1360
+ }
1361
+ }
1362
+ }
1363
+ }
1364
+
1365
+ .need-to {
1366
+ height: 332px;
1367
+ }
1368
+
1369
+ .pending-msg {
1370
+ flex: 1;
1371
+ min-height: 0;
1372
+ height: 100%;
1373
+ }
1374
+
1375
+ .table-box {
1376
+ width: 100%;
1377
+ font-size: 12px;
1378
+
1379
+ th {
1380
+ line-height: 32px;
1381
+ background: #f7f7f7;
1382
+ font-weight: 400;
1383
+ color: #808080;
1384
+ padding: 0 6px;
1385
+ }
1386
+
1387
+ td {
1388
+ text-align: center;
1389
+ line-height: 34px;
1390
+ color: #424242;
1391
+ border-bottom: solid 1px #eee;
1392
+ padding: 0 6px;
1393
+ }
1394
+
1395
+ tr:last-child td {
1396
+ border-bottom: none;
1397
+ }
1398
+ }
1399
+ }
1400
+
1401
+ .deal-msg-form {
1402
+ padding: 8px 12px 0;
1403
+
1404
+ .deal-msg-content {
1405
+ max-height: 160px;
1406
+ overflow: auto;
1407
+ line-height: 20px;
1408
+ white-space: pre-wrap;
1409
+ word-break: break-all;
1410
+ }
1411
+ }
1412
+
1413
+ .box-card .more {
1414
+ background-color: #f7f7f7;
1415
+ }
1416
+
1417
+ .group-list {
1418
+ padding: 18px 18px 6px 32px !important;
1419
+ height: 400px;
1420
+ overflow: auto;
1421
+
1422
+ .item {
1423
+ position: relative;
1424
+ height: 36px;
1425
+ border: solid 1px #eee;
1426
+ line-height: 34px;
1427
+ border-radius: 2px;
1428
+ padding: 0 42px 0 14px;
1429
+ margin-bottom: 10px;
1430
+ cursor: pointer;
1431
+
1432
+ &::before {
1433
+ content: "";
1434
+ width: 8px;
1435
+ height: 8px;
1436
+ border: solid 1px #eee;
1437
+ border-radius: 50%;
1438
+ display: inline-block;
1439
+ position: absolute;
1440
+ left: -16px;
1441
+ top: 13px;
1442
+ }
1443
+
1444
+ &.checked {
1445
+ &:before {
1446
+ content: "";
1447
+ background-color: $baseColor;
1448
+ border-color: $baseColor;
1449
+ }
1450
+
1451
+ background-color: transparentize($baseColor, 0.9);
1452
+ color: $baseColor;
1453
+ border-color: $baseColor;
1454
+ }
1455
+
1456
+ i {
1457
+ font-size: 12px;
1458
+ vertical-align: middle;
1459
+ }
1460
+
1461
+ .name {
1462
+ font-size: 12px;
1463
+ margin-left: 8px;
1464
+ vertical-align: middle;
1465
+ }
1466
+
1467
+ .nums {
1468
+ width: 22px;
1469
+ height: 22px;
1470
+ border-radius: 50%;
1471
+ display: inline-block;
1472
+ position: absolute;
1473
+ right: 5px;
1474
+ top: 6px;
1475
+ color: #fff;
1476
+ font-size: 12px;
1477
+ background-color: $red;
1478
+ line-height: 22px;
1479
+ text-align: center;
1480
+ }
1481
+ }
1482
+ }
1483
+
1484
+ .notice-box {
1485
+ background-color: #2a649429;
1486
+ border-radius: 0 0 4px 4px;
1487
+ padding: 9px 12px;
1488
+ margin-bottom: 5px;
1489
+ margin-top: -6px;
1490
+ position: relative;
1491
+ z-index: 2;
1492
+ font-size: 13px;
1493
+ color: #212121;
1494
+ overflow: hidden;
1495
+
1496
+ .txt {
1497
+ line-height: 28px;
1498
+ font-size: 12px;
1499
+ position: relative;
1500
+ display: inline-block;
1501
+ cursor: pointer;
1502
+
1503
+ &:before {
1504
+ content: "";
1505
+ background-color: $baseColor;
1506
+ width: 4px;
1507
+ height: 20px;
1508
+ border-radius: 2px;
1509
+ display: inline-block;
1510
+ vertical-align: middle;
1511
+ margin-right: 18px;
1512
+ }
1513
+
1514
+ i {
1515
+ font-size: 14px;
1516
+ margin-right: 12px;
1517
+ vertical-align: middle;
1518
+ }
1519
+
1520
+ > span {
1521
+ vertical-align: middle;
1522
+ height: 22px;
1523
+ line-height: 22px;
1524
+ display: inline-block;
1525
+
1526
+ b {
1527
+ color: #fff;
1528
+ margin: 0 4px;
1529
+ font-size: 16px;
1530
+ vertical-align: middle;
1531
+ background: #ff5615;
1532
+ border-radius: 50%;
1533
+ display: inline-block;
1534
+ padding: 4px;
1535
+ font-weight: 200;
1536
+ line-height: 1;
1537
+ }
1538
+ }
1539
+ }
1540
+
1541
+ .el-button {
1542
+ position: absolute;
1543
+ right: 46px;
1544
+ padding: 0;
1545
+ height: 22px;
1546
+ line-height: 22px;
1547
+ min-width: 22px;
1548
+ text-align: center;
1549
+ border-radius: 2px;
1550
+ top: 50%;
1551
+ margin-top: -11px;
1552
+
1553
+ i {
1554
+ font-size: 15px;
1555
+ }
1556
+
1557
+ &:hover {
1558
+ background-color: $baseColor;
1559
+ color: #fff;
1560
+ }
1561
+
1562
+ &.more {
1563
+ right: 12px;
1564
+ background: #f7f7f7;
1565
+
1566
+ &:hover {
1567
+ color: $baseColor;
1568
+ }
1569
+ }
1570
+ }
1571
+
1572
+ ::v-deep .el-card.is-always-shadow {
1573
+ box-shadow: 0 2px 2px 0 rgb(0 0 0 / 6%);
1574
+ }
1575
+ }
1576
+ </style>