cloud-web-corejs 1.0.54-dev.18 → 1.0.54-dev.181

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 (210) hide show
  1. package/package.json +10 -4
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/view.vue +22 -6
  6. package/src/components/advancedSearchDialog/mixins.js +1 -1
  7. package/src/components/baseAttachment/index.vue +22 -13
  8. package/src/components/baseAttachment/mixins.js +1 -1
  9. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  10. package/src/components/excelExport/index.js +2 -1
  11. package/src/components/excelExport/index.vue +8 -6
  12. package/src/components/excelExport/mixins.js +1 -2
  13. package/src/components/excelImport/index.vue +1 -0
  14. package/src/components/excelImport/mixins.js +1 -1
  15. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  16. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
  17. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  18. package/src/components/fileLibrary/filterDialog.vue +383 -0
  19. package/src/components/fileLibrary/index.vue +23 -24
  20. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  21. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  22. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  23. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
  24. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  25. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  26. package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
  27. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  28. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  29. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  30. package/src/components/fileLibrary/shareDialog.vue +1 -1
  31. package/src/components/jsonImport/mixins.js +1 -1
  32. package/src/components/onlineTalk/index.vue +327 -5
  33. package/src/components/onlineTalk/mixins.js +1 -1
  34. package/src/components/table/CellSlot.vue +1 -0
  35. package/src/components/table/index.js +12 -10
  36. package/src/components/table/tableForm.vue +99 -63
  37. package/src/components/table/tableFormMixin.js +1 -1
  38. package/src/components/table/vxeFilter/mixin.js +1 -1
  39. package/src/components/vb-tabs/x-tabs.vue +3 -2
  40. package/src/components/wf/wf.js +1 -1
  41. package/src/components/wf/wfStartDialog.vue +1 -1
  42. package/src/components/wf/wfUtil.js +1 -1
  43. package/src/components/xform/form-designer/designer.js +1 -1
  44. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  45. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  46. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  47. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  48. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +23 -7
  49. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  50. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  51. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  52. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  53. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  54. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  55. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  56. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +16 -16
  57. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +196 -6
  58. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -7
  59. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +80 -0
  60. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  61. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  62. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +67 -3
  64. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
  65. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  66. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -2
  67. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  68. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  69. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  70. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +4 -1
  71. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +86 -0
  72. package/src/components/xform/form-designer/indexMixin.js +1 -1
  73. package/src/components/xform/form-designer/setting-panel/form-setting.vue +67 -36
  74. package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
  75. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  76. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  77. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  78. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  79. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
  80. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1054 -1042
  81. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  82. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +812 -455
  83. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  84. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  85. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  86. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  87. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  88. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  89. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  90. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +27 -2
  91. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  93. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  94. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  95. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +19 -8
  96. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +80 -0
  97. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  98. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  99. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  100. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +42 -4
  101. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  102. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  103. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  104. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  105. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +177 -0
  106. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
  107. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  108. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +216 -17
  109. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +242 -27
  110. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +6 -0
  111. package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -7
  112. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  113. package/src/components/xform/form-designer/widget-panel/indexMixin.js +277 -1
  114. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +324 -254
  115. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  116. package/src/components/xform/form-render/container-item/data-table-item.vue +37 -15
  117. package/src/components/xform/form-render/container-item/data-table-mixin.js +2165 -18
  118. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  119. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  120. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  121. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  122. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  123. package/src/components/xform/form-render/indexMixin.js +2 -23
  124. package/src/components/xform/lang/zh-CN.js +2 -1
  125. package/src/components/xform/mixins/defaultHandle.js +1 -1
  126. package/src/components/xform/mixins/scriptHttp.js +3 -1
  127. package/src/components/xform/utils/emitter.js +4 -4
  128. package/src/components/xform/utils/util.js +1 -1
  129. package/src/layout/components/Sidebar/default.vue +50 -6
  130. package/src/layout/components/TagsView/index.vue +0 -1
  131. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  132. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  133. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  134. package/src/mixins/selectDialog/index.js +1 -1
  135. package/src/router/modules/customer.js +15 -0
  136. package/src/store/config/index.js +1 -1
  137. package/src/store/modules/permission.js +1 -1
  138. package/src/store/modules/settings.js +1 -1
  139. package/src/store/modules/user.js +1 -1
  140. package/src/utils/index.js +4 -2
  141. package/src/utils/pddLog.js +103 -0
  142. package/src/utils/request.js +28 -28
  143. package/src/utils/vab.js +19 -27
  144. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  145. package/src/views/bd/setting/form_import_log/list.vue +205 -0
  146. package/src/views/bd/setting/form_script/edit1.vue +1 -1
  147. package/src/views/bd/setting/form_script/mixins/edit.js +3 -1
  148. package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
  149. package/src/views/bd/setting/form_script/mixins/list.js +1 -1
  150. package/src/views/bd/setting/form_script/mixins/list1.js +14 -14
  151. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  152. package/src/views/bd/setting/form_template/edit.vue +9 -1
  153. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  154. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  155. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  156. package/src/views/bd/setting/form_template/mixins/list.js +25 -22
  157. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  158. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  159. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  160. package/src/views/bd/setting/menu_kind/mixins/list.js +1 -1
  161. package/src/views/bd/setting/table_model/edit.vue +835 -426
  162. package/src/views/bd/setting/table_model/mixins/dialog.js +72 -1
  163. package/src/views/bd/setting/table_model/mixins/edit.js +12 -13
  164. package/src/views/bd/setting/table_model/mixins/list.js +14 -14
  165. package/src/views/user/area/dialog.vue +21 -9
  166. package/src/views/user/bill_setting/edit.vue +1 -1
  167. package/src/views/user/bill_setting/list.vue +1 -1
  168. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  169. package/src/views/user/common_attribute/list.vue +1 -1
  170. package/src/views/user/common_script/edit.vue +1 -1
  171. package/src/views/user/common_script/list.vue +1 -1
  172. package/src/views/user/company_info/dialog.vue +164 -154
  173. package/src/views/user/company_info/edit.vue +1 -1
  174. package/src/views/user/extend_datasource/dialog.vue +1 -0
  175. package/src/views/user/extend_datasource/edit.vue +3 -0
  176. package/src/views/user/extend_datasource/list.vue +2 -1
  177. package/src/views/user/file_type/edit.vue +30 -1
  178. package/src/views/user/file_type/list.vue +28 -0
  179. package/src/views/user/form/vform/designer.vue +772 -749
  180. package/src/views/user/form/view/list.vue +27 -9
  181. package/src/views/user/groups/edit.vue +2 -0
  182. package/src/views/user/groups/list.vue +1 -0
  183. package/src/views/user/home/default.vue +1011 -979
  184. package/src/views/user/home/dev.vue +29 -0
  185. package/src/views/user/home/index.vue +16 -6
  186. package/src/views/user/login/default.vue +4 -2
  187. package/src/views/user/login/index2.vue +131 -0
  188. package/src/views/user/notify_message/dialog.vue +1 -1
  189. package/src/views/user/notify_template/edit.vue +188 -187
  190. package/src/views/user/notify_template/edit2.vue +176 -0
  191. package/src/views/user/notify_template/list.vue +4 -1
  192. package/src/views/user/notify_template/list2.vue +190 -0
  193. package/src/views/user/outLink/form_view.vue +39 -12
  194. package/src/views/user/outLink/index.vue +17 -0
  195. package/src/views/user/outLink/view.vue +39 -13
  196. package/src/views/user/position/list.vue +4 -4
  197. package/src/views/user/push_setting/list.vue +2 -2
  198. package/src/views/user/role/dialog.vue +1 -1
  199. package/src/views/user/role/list.vue +4 -4
  200. package/src/views/user/sale_org/dialog.vue +1 -1
  201. package/src/views/user/user/dialog.vue +1 -1
  202. package/src/views/user/user/edit.vue +35 -16
  203. package/src/views/user/user/form_edit.vue +63 -2
  204. package/src/views/user/user/form_info.vue +210 -0
  205. package/src/views/user/user/form_list.vue +1 -0
  206. package/src/views/user/user/list.vue +4 -4
  207. package/src/views/user/wf/wf_manage/list.vue +1 -1
  208. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  209. package/src/views/user/wf/wf_obj_config/list.vue +1 -13
  210. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,979 +1,1011 @@
1
- <template>
2
- <div class="index-home">
3
- <el-row>
4
- <el-col :span="8">
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 v-if="unreadMessageNum>0"
14
- v-html="$t1('您 有{number}条 未读消息,请及时查看。',{number: `<b>${(unreadMessageNum > 99 ? '99+' : unreadMessageNum)}</b>`})">
15
- </span>
16
- <span v-else-if="unreadMessageNum==0">
17
- {{ $t1('您 暂无 未读消息。') }}
18
- </span>
19
- </div>
20
- <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
21
- <el-button type="text" @click="getUnreadMessageNum(true)"><i class="el-icon-refresh"></i></el-button>
22
- </el-tooltip>
23
- <el-tooltip class="item" effect="dark" :content="$t1('查看更多')" placement="top">
24
- <el-button type="text" @click="openMoreNotifyMessage()" class="more">
25
- <i class="el-icon-news"></i>
26
- </el-button>
27
- </el-tooltip>
28
- </div>
29
- <el-card class="box-card">
30
- <div slot="header" class="clearfix">
31
- <span style="float:left">
32
- <i class="el-icon-chat-line-round ico"></i>
33
- {{ $t1('公告') }}
34
- </span>
35
- <el-button type="text" @click="openSystemNoticeDialog()"><span class="more">MORE+</span></el-button>
36
- </div>
37
- <div class="home-notice-list">
38
- <div v-for="(systemNotice,index) in systemNotices" :key="index" class="item"
39
- @click="openSystemNoticeDialog(systemNotice)"
40
- :title="systemNotice.title">
41
- {{ systemNotice.title }}
42
- <span class="time">{{ systemNotice.modifyDate.substring(0, 10) }}</span>
43
- </div>
44
- </div>
45
- </el-card>
46
- </el-col>
47
- <el-col :span="homeConfig.toDoSpan || 12" style="padding-left:6px;">
48
- <el-card class="box-card">
49
- <div slot="header" class="clearfix">
50
- <span style="float:left">
51
- <i class="el-icon-chat-line-round ico"></i>
52
- {{ $t1('待办事项') }}
53
- </span>
54
- <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
55
- <el-button type="text" @click="getWfInfoList(true)" class="more" style="right:107px">
56
- <i class="el-icon-refresh"></i>
57
- </el-button>
58
- </el-tooltip>
59
- <el-button type="text" @click="$router.push('/basic/wf/wf_manage/list')" class="more">
60
- <i class="el-icon-news"></i>
61
- <span>{{ $t1('查看更多+') }}</span>
62
- </el-button>
63
- </div>
64
- <div class="need-to">
65
- <vxe-grid :data="unDoWfRows" ref="table-wf" v-bind="wfOption"
66
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
67
- @custom="$vxeTableUtil.customHandle"></vxe-grid>
68
- </div>
69
- </el-card>
70
- </el-col>
71
- <el-col :span="4" style="padding-left:6px;" v-show="homeConfig.showFastTrack!==false">
72
- <el-card class="box-card">
73
- <div slot="header" class="clearfix">
74
- <span style="float:left">
75
- <i class="el-icon-star-off ico"></i>
76
- {{ $t1('快捷通道') }}
77
- </span>
78
- <el-button type="text" @click="showCommMenuDialog = true"><span class="more">MORE+</span></el-button>
79
- </div>
80
- <div class="fast-box">
81
- <div class="item" v-for="commMenu in commMenus" :key="commMenu.id">
82
- <a href="javascript:void(0);" @click="rourteTo(commMenu)">
83
- <p><i :class="!!commMenu.menuImg?('iconfont '+commMenu.menuImg):null"></i><span>{{
84
- commMenu.menuName
85
- }}</span></p>
86
- </a>
87
- </div>
88
- </div>
89
- </el-card>
90
- </el-col>
91
-
92
- <!-- <el-col :span="8">
93
- <el-card class="box-card">
94
- <div slot="header" class="clearfix">
95
- <span style="float:left">
96
- <i class="el-icon-message ico"></i>
97
- 消息通知
98
- </span>
99
- <el-button type="text" @click="openNotifyTemplateGroupDialog" class="more" style="right:100px">
100
- <i class="el-icon-receiving"></i>
101
- <span>选择分组</span>
102
- </el-button>
103
- <el-button type="text" @click="openMoreNotifyMessage()" class="more">
104
- <i class="el-icon-news"></i>
105
- <span>查看更多+</span>
106
- </el-button>
107
- </div>
108
- <div class="home-notice-list to-reed" style="height: 400px;">
109
- <div v-for="(notifyMessage,index) in notifyMessages" class="item"
110
- :class="{noread:notifyMessage.readed == 0}"
111
- :title="notifyMessage.content" @click="checkNotifyMessage(notifyMessage,index)">
112
- <div class="clearfix">
113
- <el-tag type="warning">{{
114
- notifyMessage.notifyTypeName
115
- }}
116
- </el-tag>
117
- <span class="time">{{
118
- notifyMessage.createDate
119
- }}</span>
120
- <div class="btns fr">
121
- <el-link type="primary" @click.stop="openNotifyMessageDialog(notifyMessage)"><i class="el-icon-files"></i>
122
- </el-link>
123
- </div>
124
- </div>
125
- <span class="name">{{ notifyMessage.content }}</span>
126
- </div>
127
- </div>
128
- </el-card>
129
- </el-col> -->
130
- </el-row>
131
- <slot></slot>
132
- <systemNoticeInfoDialog v-if="showSystemNoticeInfoDialog" :visiable.sync="showSystemNoticeInfoDialog"
133
- :param="csnRow" :appendToTop="true"></systemNoticeInfoDialog>
134
-
135
- <commMenuDialog v-if="showCommMenuDialog" :visiable.sync="showCommMenuDialog"
136
- @confirm="commMenuCallBack"></commMenuDialog>
137
- <wfContentDialog v-if="showWfDialog" :visible.sync="showWfDialog" @close="wfClose"
138
- :option.sync="wfContentOption"></wfContentDialog>
139
-
140
- <notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
141
-
142
- <notifyMessageInfoDialog v-if="showNoticeDialog" :visiable.sync="showNoticeDialog"
143
- :dataId.sync="notifyMessageInfoId"
144
- @readHanlde="notifyMessageReadHanlde"></notifyMessageInfoDialog>
145
-
146
-
147
- <el-dialog
148
- :title="$t1('选择分组')"
149
- :append-to-body="true"
150
- :modal-append-to-body="true"
151
- :close-on-click-modal="false"
152
- v-if="showGroupDialog"
153
- :visible.sync="showGroupDialog"
154
- :modal="false"
155
- custom-class="el-dialog dialog-style list-dialog"
156
- width="355px"
157
- :destroy-on-close="true"
158
- >
159
- <div class="cont group-list">
160
- <div class="item" v-for="(notifyTemplate,index) in notifyTemplates" :key="index"
161
- @click="openMoreNotifyMessage(notifyTemplate.notifyType)">
162
- <i class="iconfont icon-fenzu"></i>
163
- <span class="name">{{ notifyTemplate.ntName }}</span>
164
- <!-- <span class="nums">99+</span>-->
165
- </div>
166
- </div>
167
- </el-dialog>
168
-
169
- </div>
170
- </template>
171
-
172
- <script>
173
- import systemNoticeInfoDialog from '../../../views/user/system_notice/infoDialog.vue';
174
- import commMenuDialog from '../../../views/user/commMenu/index.vue';
175
- import notifyMessageDialog from '../../../views/user/notify_message/dialog.vue';
176
- import notifyMessageInfoDialog from '../../../views/user/notify_message/infoDialog';
177
-
178
- import {getToken} from "@base/utils/auth";
179
- import wfContentDialog from "../../../views/user/wf/wf_manage/wfContentDialog";
180
- import corejsConfig from "@/corejsConfig";
181
-
182
- export default {
183
- name: 'home',
184
- components: {
185
- systemNoticeInfoDialog,
186
- commMenuDialog,
187
- notifyMessageDialog,
188
- notifyMessageInfoDialog,
189
- wfContentDialog
190
- },
191
- data() {
192
- return {
193
- showNoticeDialog: false,
194
- showGroupDialog: false,
195
- notifyTemplates: [],
196
- userInfo: {},
197
- companyInfo: {},
198
- systemNotices: [],
199
- showSystemNoticeInfoDialog: false,
200
- csnRow: null,
201
- headPhotoUrl: '',
202
- dialogVisible: true,
203
- unDoWfRows: [],
204
- wfOption: {},
205
- showWfDialog: false,
206
- wfContentOption: {},
207
- showWfContent: true,
208
- wfContent: null,
209
- wfDataId: '',
210
- showCommMenuDialog: false,
211
- commMenus: [],
212
- notifyMessages: [],
213
- notifyMessageInfoIndex: null,
214
- notifyMessageInfoId: null,
215
- unreadMessageNum: 0,
216
- activating: true,
217
- wfTimer: null,
218
- homeConfig:corejsConfig.homeConfig || {}
219
- };
220
- },
221
- activated() {
222
- this.activating = true;
223
- if (this.wfTimer) {
224
- this.timerExcFun(true);
225
- }
226
- },
227
- deactivated() {
228
- this.activating = false;
229
- },
230
- beforeDestroy() {
231
- this.clearTimer();
232
- },
233
- created() {
234
- this.getUserInfo();
235
- this.initSystemNotice();
236
- this.initCommMenu();
237
- this.initNotifyMessage();
238
- this.initWfParam();
239
- this.initWfTimer();
240
- },
241
- methods: {
242
- wfClose() {
243
- this.timerExcFun(true);
244
- },
245
- initWfTimer() {
246
- this.wfTimer = setInterval(() => {
247
- this.timerExcFun(false);
248
- }, 10000);
249
- this.timerExcFun(true);
250
- },
251
- timerExcFun(isLoading) {
252
- if (!this.activating) {
253
- return;
254
- }
255
- this.getWfInfoList(isLoading);
256
- this.getUnreadMessageNum(isLoading);
257
- this.$emit('timerHandle')
258
- },
259
- clearTimer() {
260
- clearInterval(this.wfTimer);
261
- this.wfTimer = null;
262
- },
263
- getUserInfo() {
264
- this.$http({
265
- url: USER_PREFIX + '/user/currentUser',
266
- method: 'post',
267
- success: res => {
268
- let userInfo = res.objx;
269
- this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
270
-
271
- this.userInfo = userInfo;
272
- }
273
- });
274
- this.$http({
275
- url: USER_PREFIX + '/company_info/getCurrent',
276
- method: `post`,
277
- success: res => {
278
- this.companyInfo = res.objx || {};
279
- }
280
- });
281
- },
282
- initSystemNotice() {
283
- this.$http({
284
- url: USER_PREFIX + '/system_notice/listPage',
285
- data: {publish: true},
286
- method: 'post',
287
- success: res => {
288
- this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
289
- }
290
- });
291
- },
292
- openSystemNoticeDialog(row) {
293
- this.csnRow = row || null;
294
- this.showSystemNoticeInfoDialog = true;
295
- },
296
- initUnDoWfInfo() {
297
- this.$http({
298
- url: AGILEBPM_PREFIX + '/wf_manage/listPage',
299
- data: {type: 0},
300
- method: 'post',
301
- success: res => {
302
- this.unDoWfRows = res.objx.records || [];
303
- }
304
- });
305
- },
306
- initWfTableList() {
307
- let that = this;
308
- let paramColumns = this.wfParamDTOs.map(item => {
309
- return {
310
- title: this.$t1(item.paramName),
311
- field: item.paramKey,
312
- width: 150
313
- };
314
- })
315
- var statuses = {running: this.$t1('审核中'), back: this.$t1('已驳回'), end: this.$t1('已完成')};
316
- let tableOption = {
317
- vue: this,
318
- tableRef: 'table-wf',
319
- tableName: 'home-table-wf',
320
- config: {
321
- height: 'auto'
322
- },
323
- columns: [
324
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
325
- {
326
- title: this.$t1('单据类型'),
327
- field: 'objTypeName',
328
- width: 150,
329
- fixed: 'left'
330
- },
331
- {
332
- title: this.$t1('流程主题'),
333
- field: 'name',
334
- width: 150
335
- },
336
- {
337
- title: this.$t1('启动人'),
338
- field: 'starterName',
339
- width: 150
340
- },
341
- {
342
- title: this.$t1('当前任务'),
343
- field: 'taskName',
344
- width: 150
345
- },
346
- {
347
- title: this.$t1('当前任务用户'),
348
- field: 'candidateNames',
349
- width: 150
350
- },
351
- {
352
- title: this.$t1('启动时间'),
353
- field: 'createDate',
354
- width: 150
355
- },
356
- ...paramColumns,
357
- {
358
- width: 47,
359
- fixed: 'right',
360
- title: '',
361
- sortable: false,
362
- slots: {
363
- default: ({row}) => {
364
- return [
365
- <a
366
- href="javascript:void(0);"
367
- class="a-link"
368
- onclick={() => {
369
- this.openWfDialog(row);
370
- }}
371
- >
372
- <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
373
- popper-class="tooltip-skin">
374
- <i class="el-icon-edit"/>
375
- </el-tooltip>
376
- </a>
377
- ];
378
- }
379
- }
380
- }
381
- ]
382
- };
383
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
384
- this.wfOption = opts;
385
- });
386
- },
387
- openWfDialog(row) {
388
- this.wfContentOption = {
389
- objId: row.objId,
390
- url: row.url,
391
- objTypeCode: row.objTypeCode
392
- };
393
- this.showWfDialog = true;
394
- },
395
- commMenuCallBack(datas) {
396
- this.commMenus = datas || [];
397
- },
398
- initCommMenu() {
399
- this.$http({
400
- url: USER_PREFIX + '/comm_menu/currentList',
401
- data: {longOne: 0},
402
- method: 'POST'
403
- }).then(resultMsg => {
404
- this.commMenus = resultMsg.objx || [];
405
- });
406
- },
407
- initNotifyMessage() {
408
- this.$http({
409
- url: USER_PREFIX + '/notify_message/listPage',
410
- data: {},
411
- method: 'post',
412
- success: res => {
413
- this.notifyMessages = res.objx && res.objx.records ? res.objx.records : [];
414
- }
415
- });
416
- },
417
- openNotifyMessageDialog(row) {
418
- if (row.jumpContent) {
419
- this.$refs.notifyMessageDialog.open(row, () => {
420
- row.readed = 1;
421
- });
422
- }
423
- },
424
- openMoreNotifyMessage(notifyType) {
425
- let data = {notifyType: (notifyType || '')};
426
- let view = {
427
- name: 'notify_message:list',
428
- query: data
429
- };
430
- this.$store.dispatch('tagsView/delCachedView', view).then(() => {
431
- this.$router.replace(view);
432
- });
433
-
434
- if (notifyType) {
435
- this.showGroupDialog = false;
436
- }
437
- },
438
- checkNotifyMessage(row, index) {
439
- this.showNoticeDialog = true;
440
- this.notifyMessageInfoIndex = index;
441
- this.notifyMessageInfoId = row.id;
442
- },
443
- notifyMessageReadHanlde() {
444
- this.notifyMessages[this.notifyMessageInfoIndex].readed = 1;
445
- },
446
- openNotifyTemplateGroupDialog() {
447
- this.$http({
448
- url: USER_PREFIX + `/notify_template/listPage`,
449
- method: `post`,
450
- data: {},
451
- isLoading: true,
452
- loadingTarget: document.body,
453
- success: res => {
454
- this.notifyTemplates = res.objx && res.objx.records ? res.objx.records : [];
455
- this.showGroupDialog = true;
456
- }
457
- });
458
- },
459
- rourteTo(route) {
460
- if (route.type == 4) {
461
- this.jumpOutLink(route)
462
- } else if (route.type == 3) {
463
- let menuCode = route.menuCode;
464
- let path = "/user/outLink/index/" + menuCode;
465
- this.$router.push({path: path, query: {url: route.url}});
466
- } else {
467
- this.$router.push(route.url);
468
- }
469
- },
470
- jumpOutLink(route) {
471
- let path = route.url;
472
- if (route.type == 4 && path) {
473
- if (path.indexOf('token={token}') >= 0) {
474
- path = path.replace('token={token}', 'token=' + getToken())
475
- }
476
- window.open(path);
477
- }
478
- },
479
- initWfParam() {
480
- return this.$http({
481
- url: USER_PREFIX + '/wf_param/list',
482
- method: `post`,
483
- data: {},
484
- isLoading: true,
485
- loadingTarget: document.body,
486
- modalStrictly: true,
487
- success: res => {
488
- this.wfParamDTOs = res.objx || [];
489
- this.initWfTableList();
490
- }
491
- });
492
- },
493
- getWfInfoList(isLoading) {
494
- if (!this.activating) {
495
- return;
496
- }
497
- this.$http({
498
- url: USER_PREFIX + '/wf_info/listPage',
499
- data: {type: 0, size: 20},
500
- method: 'post',
501
- isLoading: isLoading,
502
- loadingTarget: document.body,
503
- success: res => {
504
- this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
505
- },
506
- failMsg: false,
507
- errorMsg: false,
508
- fail: (res, response) => {
509
- if (response && response.status == 200) {
510
- this.$errorMsg(res);
511
- }
512
- }
513
- });
514
- },
515
- getUnreadMessageNum(isLoading) {
516
- if (!this.activating) {
517
- return;
518
- }
519
- return this.$http({
520
- url: USER_PREFIX + '/notify_message/countMessage',
521
- method: `post`,
522
- data: {},
523
- isLoading: isLoading,
524
- loadingTarget: document.body,
525
- success: res => {
526
- this.unreadMessageNum = res.objx || 0;
527
- },
528
- failMsg: false,
529
- errorMsg: false,
530
- fail: (res, response) => {
531
- if (response && response.status == 200) {
532
- this.$errorMsg(res);
533
- }
534
- }
535
- });
536
- },
537
- wfhandleCallback(flag) {
538
- if ([1, 2, 3].includes(flag)) {
539
- this.showWfDialog = false;
540
- this.wfClose();
541
- }
542
- }
543
- }
544
- };
545
- </script>
546
- <style lang="scss" scoped>
547
- @import '~@/styles/variables.scss';
548
-
549
- body #app .index-home {
550
- margin: 3px 10px;
551
- height: calc(100vh - 38px);
552
- overflow: auto;
553
-
554
- #containt {
555
- margin: 0;
556
- background: none;
557
- height: auto;
558
- box-shadow: none;
559
- }
560
-
561
- .i-user-info {
562
- background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116% 45px;
563
- margin-bottom: 6px;
564
- background-size: 181px;
565
- padding: 14px 38px 11px 16px;
566
- border-radius: 4px 4px;
567
- color: #fff;
568
- font-size: 12px;
569
- margin-top: 3px;
570
- height: 95px;
571
- overflow: hidden;
572
-
573
- .name {
574
- opacity: 1;
575
- font-weight: 600;
576
- margin: 9px 0 14px;
577
- font-size: 14px;
578
- }
579
-
580
- .img {
581
- width: 60px;
582
- height: 60px;
583
- float: left;
584
- border-radius: 50%;
585
- border: solid 4px rgba(255, 255, 255, 0.28);
586
- margin-right: 10px;
587
- }
588
- }
589
-
590
- .home-notice-list {
591
- height: 182px;
592
- margin: 0 -12px;
593
-
594
- .item {
595
- padding: 6px 12px;
596
- font-size: 12px;
597
- cursor: pointer;
598
- overflow: hidden;
599
- text-overflow: ellipsis;
600
- white-space: nowrap;
601
-
602
- .time {
603
- color: #b9b9b9;
604
- font-size: 12px;
605
- right: 12px;
606
- }
607
-
608
- &:hover {
609
- color: $baseColor;
610
- background-color: transparentize($baseColor, 0.97);
611
-
612
- .time {
613
- color: $baseColor
614
- }
615
- }
616
-
617
- &.no-read:before {
618
- content: "";
619
- width: 6px;
620
- height: 6px;
621
- background-color: $red;
622
- border-radius: 50%;
623
- vertical-align: middle;
624
- display: inline-block;
625
- margin-bottom: 1px;
626
- }
627
- }
628
-
629
- &.to-reed {
630
- height: 300px;
631
- overflow: auto;
632
- margin: -8px -12px;
633
-
634
-
635
- .item {
636
- white-space: initial;
637
- padding: 8px 22px 2px;
638
- position: relative;
639
-
640
- &:after {
641
- content: "";
642
- position: absolute;
643
- left: 22px;
644
- right: 22px;
645
- border-top: dashed 1px #eee;
646
- height: 1px;
647
- bottom: 0;
648
- }
649
-
650
- &.noread {
651
- &:before {
652
- content: "";
653
- width: 6px;
654
- height: 6px;
655
- background-color: $red;
656
- border-radius: 50%;
657
- margin-right: 5px;
658
- display: inline-block;
659
- position: absolute;
660
- left: 10px;
661
- top: 16px;
662
- }
663
- }
664
-
665
- .el-tag {
666
- zoom: 0.95;
667
- padding: 0 5px;
668
- height: 24px;
669
- line-height: 24px;
670
- }
671
-
672
- // .noread{
673
- // position: absolute;right:0;top:0;
674
- // span{transform: rotate(47deg);
675
- // -ms-transform: rotate(47deg);
676
- // -moz-transform: rotate(47deg);
677
- // -webkit-transform: rotate(47deg);
678
- // -o-transform: rotate(47deg);
679
- // z-index: 3;
680
- // color: #FFF;
681
- // position: absolute;
682
- // right: 1px;
683
- // top: 2px;}
684
- // &:after{
685
- // content: "\e618";
686
- // font-size: 62px;
687
- // font-family: "iconfont";
688
- // color:$red
689
- // }
690
- // }
691
- .time {
692
- position: relative;
693
- right: 0;
694
- margin-left: 12px;
695
- }
696
-
697
- .name {
698
- overflow: hidden;
699
- text-overflow: ellipsis;
700
- white-space: nowrap;
701
- margin-top: 3px;
702
- display: block;
703
- margin-bottom: 4px;
704
- }
705
-
706
- &:hover .name {
707
- color: $baseColor
708
- }
709
-
710
- &:first-child:before {
711
- border-top: none
712
- }
713
-
714
- .btns {
715
- text-align: right;
716
-
717
- .el-link {
718
- font-size: 12px;
719
- display: inline-block;
720
- margin-left: 14px;
721
-
722
- i {
723
- font-size: 12px;
724
- margin-right: 3px;
725
- }
726
- }
727
- }
728
- }
729
-
730
- }
731
- }
732
-
733
- .fast-box {
734
- height: 329px;
735
- overflow: hidden;
736
-
737
- .item {
738
- width: 100%;
739
- text-align: center;
740
- float: left;
741
-
742
- p {
743
- color: #2a6494;
744
- border: solid 1px #e2e2e2;
745
- margin: 3.5px 4px;
746
- width: calc(100% - 4px);
747
- border-radius: 6px;
748
- position: relative;
749
- height: 33px;
750
- line-height: 32px;
751
- text-align: left;
752
- padding-left: 14px;
753
- font-size: 12px;
754
-
755
- i {
756
- font-size: 14px;
757
- vertical-align: middle;
758
- margin-right: 2px;
759
- }
760
-
761
- span {
762
- vertical-align: middle;
763
- }
764
-
765
- &:before {
766
- content: '';
767
- width: 4px;
768
- height: 14px;
769
- display: inline-block;
770
- background: #225279b8;
771
- position: absolute;
772
- left: -1px;
773
- top: 9px;
774
- }
775
-
776
- &:hover {
777
- background-color: $baseColor;
778
- color: #fff;
779
- border-color: $baseColor;
780
-
781
- &:before {
782
- background: #fff;
783
- }
784
- }
785
- }
786
- }
787
- }
788
-
789
- .need-to {
790
- height: 332px;
791
- }
792
-
793
- .table-box {
794
- width: 100%;
795
- font-size: 12px;
796
-
797
- th {
798
- line-height: 32px;
799
- background: #f7f7f7;
800
- font-weight: 400;
801
- color: #808080;
802
- padding: 0 6px;
803
- }
804
-
805
- td {
806
- text-align: center;
807
- line-height: 34px;
808
- color: #424242;
809
- border-bottom: solid 1px #eee;
810
- padding: 0 6px;
811
- }
812
-
813
- tr:last-child td {
814
- border-bottom: none;
815
- }
816
- }
817
- }
818
-
819
- .box-card .more {
820
- background-color: #f7f7f7;
821
- }
822
-
823
- .group-list {
824
- padding: 18px 18px 6px 32px !important;
825
- height: 400px;
826
- overflow: auto;
827
-
828
- .item {
829
- position: relative;
830
- height: 36px;
831
- border: solid 1px #eee;
832
- line-height: 34px;
833
- border-radius: 2px;
834
- padding: 0 42px 0 14px;
835
- margin-bottom: 10px;
836
- cursor: pointer;
837
-
838
- &::before {
839
- content: "";
840
- width: 8px;
841
- height: 8px;
842
- border: solid 1px #eee;
843
- border-radius: 50%;
844
- display: inline-block;
845
- position: absolute;
846
- left: -16px;
847
- top: 13px;
848
- }
849
-
850
- &.checked {
851
- &:before {
852
- content: "";
853
- background-color: $baseColor;
854
- border-color: $baseColor
855
- }
856
-
857
- background-color: transparentize($baseColor, 0.9);
858
- color: $baseColor;
859
- border-color: $baseColor;
860
- }
861
-
862
- i {
863
- font-size: 12px;
864
- vertical-align: middle;
865
- }
866
-
867
- .name {
868
- font-size: 12px;
869
- margin-left: 8px;
870
- vertical-align: middle;
871
- }
872
-
873
- .nums {
874
- width: 22px;
875
- height: 22px;
876
- border-radius: 50%;
877
- display: inline-block;
878
- position: absolute;
879
- right: 5px;
880
- top: 6px;
881
- color: #FFF;
882
- font-size: 12px;
883
- background-color: $red;
884
- line-height: 22px;
885
- text-align: center;
886
- }
887
- }
888
- }
889
-
890
- .notice-box {
891
- background-color: #2a649429;
892
- border-radius: 0 0 4px 4px;
893
- padding: 9px 12px;
894
- margin-bottom: 5px;
895
- margin-top: -6px;
896
- position: relative;
897
- z-index: 2;
898
- font-size: 13px;
899
- color: #212121;
900
- overflow: hidden;
901
-
902
- .txt {
903
- line-height: 28px;
904
- font-size: 12px;
905
- position: relative;
906
- display: inline-block;
907
- cursor: pointer;
908
-
909
- &:before {
910
- content: "";
911
- background-color: $baseColor;
912
- width: 4px;
913
- height: 20px;
914
- border-radius: 2px;
915
- display: inline-block;
916
- vertical-align: middle;
917
- margin-right: 18px;
918
- }
919
-
920
- i {
921
- font-size: 14px;
922
- margin-right: 12px;
923
- vertical-align: middle;
924
- }
925
-
926
- > span {
927
- vertical-align: middle;
928
- height: 22px;
929
- line-height: 22px;
930
- display: inline-block;
931
-
932
- b {
933
- color: #FFF;
934
- margin: 0 4px;
935
- font-size: 16px;
936
- vertical-align: middle;
937
- background: #FF5615;
938
- border-radius: 50%;
939
- display: inline-block;
940
- padding: 4px;
941
- font-weight: 200;
942
- line-height: 1;
943
- }
944
- }
945
-
946
- }
947
-
948
- .el-button {
949
- position: absolute;
950
- right: 46px;
951
- padding: 0;
952
- height: 22px;
953
- line-height: 22px;
954
- min-width: 22px;
955
- text-align: center;
956
- border-radius: 2px;
957
- top: 50%;
958
- margin-top: -11px;
959
-
960
- i {
961
- font-size: 15px;
962
- }
963
-
964
- &:hover {
965
- background-color: $baseColor;
966
- color: #FFF;
967
- }
968
-
969
- &.more {
970
- right: 12px;
971
- background: #f7f7f7;
972
-
973
- &:hover {
974
- color: $baseColor
975
- }
976
- }
977
- }
978
- }
979
- </style>
1
+ <template>
2
+ <div class="index-home">
3
+ <el-row>
4
+ <el-col :span="8">
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 v-if="unreadMessageNum>0"
14
+ v-html="$t1('您 有{number}条 未读消息,请及时查看。',{number: `<b>${(unreadMessageNum > 99 ? '99+' : unreadMessageNum)}</b>`})">
15
+ </span>
16
+ <span v-else-if="unreadMessageNum==0">
17
+ {{ $t1('您 暂无 未读消息。') }}
18
+ </span>
19
+ </div>
20
+ <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
21
+ <el-button type="text" @click="getUnreadMessageNum(true)"><i class="el-icon-refresh"></i></el-button>
22
+ </el-tooltip>
23
+ <el-tooltip class="item" effect="dark" :content="$t1('查看更多')" placement="top">
24
+ <el-button type="text" @click="openMoreNotifyMessage()" class="more">
25
+ <i class="el-icon-news"></i>
26
+ </el-button>
27
+ </el-tooltip>
28
+ </div>
29
+ <el-card class="box-card">
30
+ <div slot="header" class="clearfix">
31
+ <span style="float:left">
32
+ <i class="el-icon-chat-line-round ico"></i>
33
+ {{ $t1('公告') }}
34
+ </span>
35
+ <el-button type="text" @click="openSystemNoticeDialog()"><span class="more">MORE+</span></el-button>
36
+ </div>
37
+ <div class="home-notice-list">
38
+ <div v-for="(systemNotice,index) in systemNotices" :key="index" class="item"
39
+ @click="openSystemNoticeDialog(systemNotice)"
40
+ :title="systemNotice.title">
41
+ {{ systemNotice.title }}
42
+ <span class="time">{{ systemNotice.modifyDate.substring(0, 10) }}</span>
43
+ </div>
44
+ </div>
45
+ </el-card>
46
+ </el-col>
47
+ <el-col :span="homeConfig.toDoSpan || 16" style="padding-left:6px;">
48
+ <el-card class="box-card">
49
+ <div slot="header" class="clearfix">
50
+ <span style="float:left">
51
+ <i class="el-icon-chat-line-round ico"></i>
52
+ {{ $t1('待办事项') }}
53
+ </span>
54
+ <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
55
+ <el-button type="text" @click="getWfInfoList(true)" class="more" style="right:107px">
56
+ <i class="el-icon-refresh"></i>
57
+ </el-button>
58
+ </el-tooltip>
59
+ <el-button type="text" @click="$router.push('/basic/wf/wf_manage/list')" class="more">
60
+ <i class="el-icon-news"></i>
61
+ <span>{{ $t1('查看更多+') }}</span>
62
+ </el-button>
63
+ </div>
64
+ <div class="need-to">
65
+ <vxe-grid :data="unDoWfRows" ref="table-wf" v-bind="wfOption"
66
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
67
+ @custom="$vxeTableUtil.customHandle"></vxe-grid>
68
+ </div>
69
+ </el-card>
70
+ </el-col>
71
+ </el-row>
72
+ <el-row>
73
+ <el-col :span="24" v-show="homeConfig.showFastTrack!==false">
74
+ <el-card class="box-card">
75
+ <div slot="header" class="clearfix">
76
+ <span style="float:left">
77
+ <i class="el-icon-star-off ico"></i>
78
+ {{ $t1('快捷通道') }}
79
+ </span>
80
+ <el-button type="text" @click="showCommMenuDialog = true"><span class="more">MORE+</span></el-button>
81
+ </div>
82
+ <div class="fast-box">
83
+ <div class="item" v-for="commMenu in commMenus" :key="commMenu.id">
84
+ <a href="javascript:void(0);" @click="rourteTo(commMenu)">
85
+ <p><i :class="!!commMenu.menuImg?('iconfont '+commMenu.menuImg):null"></i><span>{{
86
+ commMenu.menuName
87
+ }}</span></p>
88
+ </a>
89
+ </div>
90
+ </div>
91
+ </el-card>
92
+ </el-col>
93
+
94
+ <!-- <el-col :span="8">
95
+ <el-card class="box-card">
96
+ <div slot="header" class="clearfix">
97
+ <span style="float:left">
98
+ <i class="el-icon-message ico"></i>
99
+ 消息通知
100
+ </span>
101
+ <el-button type="text" @click="openNotifyTemplateGroupDialog" class="more" style="right:100px">
102
+ <i class="el-icon-receiving"></i>
103
+ <span>选择分组</span>
104
+ </el-button>
105
+ <el-button type="text" @click="openMoreNotifyMessage()" class="more">
106
+ <i class="el-icon-news"></i>
107
+ <span>查看更多+</span>
108
+ </el-button>
109
+ </div>
110
+ <div class="home-notice-list to-reed" style="height: 400px;">
111
+ <div v-for="(notifyMessage,index) in notifyMessages" class="item"
112
+ :class="{noread:notifyMessage.readed == 0}"
113
+ :title="notifyMessage.content" @click="checkNotifyMessage(notifyMessage,index)">
114
+ <div class="clearfix">
115
+ <el-tag type="warning">{{
116
+ notifyMessage.notifyTypeName
117
+ }}
118
+ </el-tag>
119
+ <span class="time">{{
120
+ notifyMessage.createDate
121
+ }}</span>
122
+ <div class="btns fr">
123
+ <el-link type="primary" @click.stop="openNotifyMessageDialog(notifyMessage)"><i class="el-icon-files"></i>
124
+ </el-link>
125
+ </div>
126
+ </div>
127
+ <span class="name">{{ notifyMessage.content }}</span>
128
+ </div>
129
+ </div>
130
+ </el-card>
131
+ </el-col> -->
132
+ </el-row>
133
+ <slot></slot>
134
+ <systemNoticeInfoDialog v-if="showSystemNoticeInfoDialog" :visiable.sync="showSystemNoticeInfoDialog"
135
+ :param="csnRow" :appendToTop="true"></systemNoticeInfoDialog>
136
+
137
+ <commMenuDialog v-if="showCommMenuDialog" :visiable.sync="showCommMenuDialog"
138
+ @confirm="commMenuCallBack"></commMenuDialog>
139
+ <wfContentDialog v-if="showWfDialog" :visible.sync="showWfDialog" @close="wfClose"
140
+ :option.sync="wfContentOption"></wfContentDialog>
141
+
142
+ <notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
143
+
144
+ <notifyMessageInfoDialog v-if="showNoticeDialog" :visiable.sync="showNoticeDialog"
145
+ :dataId.sync="notifyMessageInfoId"
146
+ @readHanlde="notifyMessageReadHanlde"></notifyMessageInfoDialog>
147
+
148
+
149
+ <el-dialog
150
+ :title="$t1('选择分组')"
151
+ :append-to-body="true"
152
+ :modal-append-to-body="true"
153
+ :close-on-click-modal="false"
154
+ v-if="showGroupDialog"
155
+ :visible.sync="showGroupDialog"
156
+ :modal="false"
157
+ custom-class="el-dialog dialog-style list-dialog"
158
+ width="355px"
159
+ :destroy-on-close="true"
160
+ >
161
+ <div class="cont group-list">
162
+ <div class="item" v-for="(notifyTemplate,index) in notifyTemplates" :key="index"
163
+ @click="openMoreNotifyMessage(notifyTemplate.notifyType)">
164
+ <i class="iconfont icon-fenzu"></i>
165
+ <span class="name">{{ notifyTemplate.ntName }}</span>
166
+ <!-- <span class="nums">99+</span>-->
167
+ </div>
168
+ </div>
169
+ </el-dialog>
170
+
171
+ </div>
172
+ </template>
173
+
174
+ <script>
175
+ import systemNoticeInfoDialog from '../../../views/user/system_notice/infoDialog.vue';
176
+ import commMenuDialog from '../../../views/user/commMenu/index.vue';
177
+ import notifyMessageDialog from '../../../views/user/notify_message/dialog.vue';
178
+ import notifyMessageInfoDialog from '../../../views/user/notify_message/infoDialog';
179
+
180
+ import {getToken} from "@base/utils/auth";
181
+ import wfContentDialog from "../../../views/user/wf/wf_manage/wfContentDialog";
182
+ import corejsConfig from "@/corejsConfig";
183
+
184
+ export default {
185
+ name: 'home',
186
+ components: {
187
+ systemNoticeInfoDialog,
188
+ commMenuDialog,
189
+ notifyMessageDialog,
190
+ notifyMessageInfoDialog,
191
+ wfContentDialog
192
+ },
193
+ data() {
194
+ return {
195
+ showNoticeDialog: false,
196
+ showGroupDialog: false,
197
+ notifyTemplates: [],
198
+ userInfo: {},
199
+ companyInfo: {},
200
+ systemNotices: [],
201
+ showSystemNoticeInfoDialog: false,
202
+ csnRow: null,
203
+ headPhotoUrl: '',
204
+ dialogVisible: true,
205
+ unDoWfRows: [],
206
+ wfOption: {},
207
+ showWfDialog: false,
208
+ wfContentOption: {},
209
+ showWfContent: true,
210
+ wfContent: null,
211
+ wfDataId: '',
212
+ showCommMenuDialog: false,
213
+ commMenus: [],
214
+ notifyMessages: [],
215
+ notifyMessageInfoIndex: null,
216
+ notifyMessageInfoId: null,
217
+ unreadMessageNum: 0,
218
+ activating: true,
219
+ wfTimer: null,
220
+ homeConfig:corejsConfig.homeConfig || {}
221
+ };
222
+ },
223
+ activated() {
224
+ this.activating = true;
225
+ if (this.wfTimer) {
226
+ this.timerExcFun(true);
227
+ }
228
+ },
229
+ deactivated() {
230
+ this.activating = false;
231
+ },
232
+ beforeDestroy() {
233
+ this.clearTimer();
234
+ },
235
+ created() {
236
+ this.getUserInfo();
237
+ this.initSystemNotice();
238
+ this.initCommMenu();
239
+ this.initNotifyMessage();
240
+ this.initWfParam();
241
+ this.initWfTimer();
242
+ },
243
+ methods: {
244
+ wfClose() {
245
+ this.timerExcFun(true);
246
+ },
247
+ initWfTimer() {
248
+ this.wfTimer = setInterval(() => {
249
+ this.timerExcFun(false);
250
+ }, 10000);
251
+ this.timerExcFun(true);
252
+ },
253
+ timerExcFun(isLoading) {
254
+ if (!this.activating) {
255
+ return;
256
+ }
257
+ this.getWfInfoList(isLoading);
258
+ this.getUnreadMessageNum(isLoading);
259
+ this.$emit('timerHandle')
260
+ },
261
+ clearTimer() {
262
+ clearInterval(this.wfTimer);
263
+ this.wfTimer = null;
264
+ },
265
+ getUserInfo() {
266
+ this.$http({
267
+ url: USER_PREFIX + '/user/currentUser',
268
+ method: 'post',
269
+ success: res => {
270
+ let userInfo = res.objx;
271
+ this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
272
+
273
+ this.userInfo = userInfo;
274
+ }
275
+ });
276
+ this.$http({
277
+ url: USER_PREFIX + '/company_info/getCurrent',
278
+ method: `post`,
279
+ success: res => {
280
+ this.companyInfo = res.objx || {};
281
+ }
282
+ });
283
+ },
284
+ initSystemNotice() {
285
+ this.$http({
286
+ url: USER_PREFIX + '/system_notice/listPage',
287
+ data: {publish: true},
288
+ method: 'post',
289
+ success: res => {
290
+ this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
291
+ }
292
+ });
293
+ },
294
+ openSystemNoticeDialog(row) {
295
+ this.csnRow = row || null;
296
+ this.showSystemNoticeInfoDialog = true;
297
+ },
298
+ initUnDoWfInfo() {
299
+ this.$http({
300
+ url: AGILEBPM_PREFIX + '/wf_manage/listPage',
301
+ data: {type: 0},
302
+ method: 'post',
303
+ success: res => {
304
+ this.unDoWfRows = res.objx.records || [];
305
+ }
306
+ });
307
+ },
308
+ initWfTableList() {
309
+ let that = this;
310
+ let paramColumns = this.wfParamDTOs.map(item => {
311
+ return {
312
+ title: this.$t1(item.paramName),
313
+ field: item.paramKey,
314
+ width: 150
315
+ };
316
+ })
317
+ var statuses = {running: this.$t1('审核中'), back: this.$t1('已驳回'), end: this.$t1('已完成')};
318
+ let tableOption = {
319
+ vue: this,
320
+ tableRef: 'table-wf',
321
+ tableName: 'home-table-wf',
322
+ config: {
323
+ height: 'auto'
324
+ },
325
+ columns: [
326
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
327
+ {
328
+ title: this.$t1('单据类型'),
329
+ field: 'objTypeName',
330
+ width: 150,
331
+ fixed: 'left'
332
+ },
333
+ {
334
+ title: this.$t1('流程主题'),
335
+ field: 'name',
336
+ width: 150
337
+ },
338
+ {
339
+ title: this.$t1('启动人'),
340
+ field: 'starterName',
341
+ width: 150
342
+ },
343
+ {
344
+ title: this.$t1('当前任务'),
345
+ field: 'taskName',
346
+ width: 150
347
+ },
348
+ {
349
+ title: this.$t1('当前任务用户'),
350
+ field: 'candidateNames',
351
+ width: 150
352
+ },
353
+ {
354
+ title: this.$t1('启动时间'),
355
+ field: 'createDate',
356
+ width: 150
357
+ },
358
+ ...paramColumns,
359
+ {
360
+ width: 47,
361
+ fixed: 'right',
362
+ title: '',
363
+ sortable: false,
364
+ slots: {
365
+ default: ({row}) => {
366
+ return [
367
+ <a
368
+ href="javascript:void(0);"
369
+ class="a-link"
370
+ onclick={() => {
371
+ this.openWfDialog(row);
372
+ }}
373
+ >
374
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
375
+ popper-class="tooltip-skin">
376
+ <i class="el-icon-edit"/>
377
+ </el-tooltip>
378
+ </a>
379
+ ];
380
+ }
381
+ }
382
+ }
383
+ ]
384
+ };
385
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
386
+ this.wfOption = opts;
387
+ });
388
+ },
389
+ openWfDialog(row) {
390
+ this.wfContentOption = {
391
+ objId: row.objId,
392
+ url: row.url,
393
+ objTypeCode: row.objTypeCode
394
+ };
395
+ this.showWfDialog = true;
396
+ },
397
+ commMenuCallBack(datas) {
398
+ this.commMenus = datas || [];
399
+ },
400
+ initCommMenu() {
401
+ this.$http({
402
+ url: USER_PREFIX + '/comm_menu/currentList',
403
+ data: {longOne: 0},
404
+ method: 'POST'
405
+ }).then(resultMsg => {
406
+ this.commMenus = resultMsg.objx || [];
407
+ });
408
+ },
409
+ initNotifyMessage() {
410
+ this.$http({
411
+ url: USER_PREFIX + '/notify_message/listPage',
412
+ data: {},
413
+ method: 'post',
414
+ success: res => {
415
+ this.notifyMessages = res.objx && res.objx.records ? res.objx.records : [];
416
+ }
417
+ });
418
+ },
419
+ openNotifyMessageDialog(row) {
420
+ if (row.jumpContent) {
421
+ this.$refs.notifyMessageDialog.open(row, () => {
422
+ row.readed = 1;
423
+ });
424
+ }
425
+ },
426
+ openMoreNotifyMessage(notifyType) {
427
+ let data = {notifyType: (notifyType || '')};
428
+ let view = {
429
+ name: 'notify_message:list',
430
+ query: data
431
+ };
432
+ this.$store.dispatch('tagsView/delCachedView', view).then(() => {
433
+ this.$router.replace(view);
434
+ });
435
+
436
+ if (notifyType) {
437
+ this.showGroupDialog = false;
438
+ }
439
+ },
440
+ checkNotifyMessage(row, index) {
441
+ this.showNoticeDialog = true;
442
+ this.notifyMessageInfoIndex = index;
443
+ this.notifyMessageInfoId = row.id;
444
+ },
445
+ notifyMessageReadHanlde() {
446
+ this.notifyMessages[this.notifyMessageInfoIndex].readed = 1;
447
+ },
448
+ openNotifyTemplateGroupDialog() {
449
+ this.$http({
450
+ url: USER_PREFIX + `/notify_template/listPage`,
451
+ method: `post`,
452
+ data: {},
453
+ isLoading: true,
454
+ loadingTarget: document.body,
455
+ success: res => {
456
+ this.notifyTemplates = res.objx && res.objx.records ? res.objx.records : [];
457
+ this.showGroupDialog = true;
458
+ }
459
+ });
460
+ },
461
+ rourteTo(route) {
462
+ if (route.type == 4) {
463
+ this.jumpOutLink(route)
464
+ } else if (route.type == 3) {
465
+ let menuCode = route.menuCode;
466
+ let path = "/user/outLink/index/" + menuCode;
467
+ this.$router.push({path: path, query: {url: route.url}});
468
+ } else {
469
+ let path = this.getPath(route)
470
+ if(!path)return
471
+ this.$router.push(path);
472
+ }
473
+ },
474
+ getPath(route3){
475
+ let item = null;
476
+ let path = null
477
+ if (route3.type == 0) {
478
+ //普通菜单
479
+ if (route3.url) {
480
+ path = route3.route || route3.url;
481
+ let str = "/report/vform/render/";
482
+ if (path.indexOf(str) == 0) {
483
+ } else {
484
+ let pIndex = path.indexOf('?');
485
+ if (pIndex > 0) {
486
+ path = path.substring(0, pIndex);
487
+ }
488
+ }
489
+ }
490
+ } else if (route3.type == 5) {
491
+ //动态表单
492
+ let url = route3.route || route3.url;
493
+ path = url;
494
+ }
495
+ if (path && path.startsWith("@")) {
496
+ path = null
497
+ }
498
+ return path;
499
+ },
500
+ jumpOutLink(route) {
501
+ let path = route.url;
502
+ if (route.type == 4 && path) {
503
+ if (path.indexOf('token={token}') >= 0) {
504
+ path = path.replace('token={token}', 'token=' + getToken())
505
+ }
506
+ window.open(path);
507
+ }
508
+ },
509
+ initWfParam() {
510
+ return this.$http({
511
+ url: USER_PREFIX + '/wf_param/list',
512
+ method: `post`,
513
+ data: {},
514
+ isLoading: true,
515
+ loadingTarget: document.body,
516
+ modalStrictly: true,
517
+ success: res => {
518
+ this.wfParamDTOs = res.objx || [];
519
+ this.initWfTableList();
520
+ }
521
+ });
522
+ },
523
+ getWfInfoList(isLoading) {
524
+ if (!this.activating) {
525
+ return;
526
+ }
527
+ this.$http({
528
+ url: USER_PREFIX + '/wf_info/listPage',
529
+ data: {type: 0, size: 20},
530
+ method: 'post',
531
+ isLoading: isLoading,
532
+ loadingTarget: document.body,
533
+ success: res => {
534
+ this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
535
+ },
536
+ failMsg: false,
537
+ errorMsg: false,
538
+ fail: (res, response) => {
539
+ if (response && response.status == 200) {
540
+ this.$errorMsg(res);
541
+ }
542
+ }
543
+ });
544
+ },
545
+ getUnreadMessageNum(isLoading) {
546
+ if (!this.activating) {
547
+ return;
548
+ }
549
+ return this.$http({
550
+ url: USER_PREFIX + '/notify_message/countMessage',
551
+ method: `post`,
552
+ data: {},
553
+ isLoading: isLoading,
554
+ loadingTarget: document.body,
555
+ success: res => {
556
+ this.unreadMessageNum = res.objx || 0;
557
+ },
558
+ failMsg: false,
559
+ errorMsg: false,
560
+ fail: (res, response) => {
561
+ if (response && response.status == 200) {
562
+ this.$errorMsg(res);
563
+ }
564
+ }
565
+ });
566
+ },
567
+ wfhandleCallback(flag) {
568
+ if ([1, 2, 3].includes(flag)) {
569
+ this.showWfDialog = false;
570
+ this.wfClose();
571
+ }
572
+ }
573
+ }
574
+ };
575
+ </script>
576
+ <style lang="scss" scoped>
577
+ @import '~@/styles/variables.scss';
578
+
579
+ body #app .index-home {
580
+ margin: 3px 10px;
581
+ height: calc(100vh - 38px);
582
+ overflow: auto;
583
+
584
+ #containt {
585
+ margin: 0;
586
+ background: none;
587
+ height: auto;
588
+ box-shadow: none;
589
+ }
590
+
591
+ .i-user-info {
592
+ background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116% 45px;
593
+ margin-bottom: 6px;
594
+ background-size: 181px;
595
+ padding: 14px 38px 11px 16px;
596
+ border-radius: 4px 4px;
597
+ color: #fff;
598
+ font-size: 12px;
599
+ margin-top: 3px;
600
+ height: 95px;
601
+ overflow: hidden;
602
+
603
+ .name {
604
+ opacity: 1;
605
+ font-weight: 600;
606
+ margin: 9px 0 14px;
607
+ font-size: 14px;
608
+ }
609
+
610
+ .img {
611
+ width: 60px;
612
+ height: 60px;
613
+ float: left;
614
+ border-radius: 50%;
615
+ border: solid 4px rgba(255, 255, 255, 0.28);
616
+ margin-right: 10px;
617
+ }
618
+ }
619
+
620
+ .home-notice-list {
621
+ height: 182px;
622
+ margin: 0 -12px;
623
+
624
+ .item {
625
+ padding: 6px 12px;
626
+ font-size: 12px;
627
+ cursor: pointer;
628
+ overflow: hidden;
629
+ text-overflow: ellipsis;
630
+ white-space: nowrap;
631
+
632
+ .time {
633
+ color: #b9b9b9;
634
+ font-size: 12px;
635
+ right: 12px;
636
+ }
637
+
638
+ &:hover {
639
+ color: $baseColor;
640
+ background-color: transparentize($baseColor, 0.97);
641
+
642
+ .time {
643
+ color: $baseColor
644
+ }
645
+ }
646
+
647
+ &.no-read:before {
648
+ content: "";
649
+ width: 6px;
650
+ height: 6px;
651
+ background-color: $red;
652
+ border-radius: 50%;
653
+ vertical-align: middle;
654
+ display: inline-block;
655
+ margin-bottom: 1px;
656
+ }
657
+ }
658
+
659
+ &.to-reed {
660
+ height: 300px;
661
+ overflow: auto;
662
+ margin: -8px -12px;
663
+
664
+
665
+ .item {
666
+ white-space: initial;
667
+ padding: 8px 22px 2px;
668
+ position: relative;
669
+
670
+ &:after {
671
+ content: "";
672
+ position: absolute;
673
+ left: 22px;
674
+ right: 22px;
675
+ border-top: dashed 1px #eee;
676
+ height: 1px;
677
+ bottom: 0;
678
+ }
679
+
680
+ &.noread {
681
+ &:before {
682
+ content: "";
683
+ width: 6px;
684
+ height: 6px;
685
+ background-color: $red;
686
+ border-radius: 50%;
687
+ margin-right: 5px;
688
+ display: inline-block;
689
+ position: absolute;
690
+ left: 10px;
691
+ top: 16px;
692
+ }
693
+ }
694
+
695
+ .el-tag {
696
+ zoom: 0.95;
697
+ padding: 0 5px;
698
+ height: 24px;
699
+ line-height: 24px;
700
+ }
701
+
702
+ // .noread{
703
+ // position: absolute;right:0;top:0;
704
+ // span{transform: rotate(47deg);
705
+ // -ms-transform: rotate(47deg);
706
+ // -moz-transform: rotate(47deg);
707
+ // -webkit-transform: rotate(47deg);
708
+ // -o-transform: rotate(47deg);
709
+ // z-index: 3;
710
+ // color: #FFF;
711
+ // position: absolute;
712
+ // right: 1px;
713
+ // top: 2px;}
714
+ // &:after{
715
+ // content: "\e618";
716
+ // font-size: 62px;
717
+ // font-family: "iconfont";
718
+ // color:$red
719
+ // }
720
+ // }
721
+ .time {
722
+ position: relative;
723
+ right: 0;
724
+ margin-left: 12px;
725
+ }
726
+
727
+ .name {
728
+ overflow: hidden;
729
+ text-overflow: ellipsis;
730
+ white-space: nowrap;
731
+ margin-top: 3px;
732
+ display: block;
733
+ margin-bottom: 4px;
734
+ }
735
+
736
+ &:hover .name {
737
+ color: $baseColor
738
+ }
739
+
740
+ &:first-child:before {
741
+ border-top: none
742
+ }
743
+
744
+ .btns {
745
+ text-align: right;
746
+
747
+ .el-link {
748
+ font-size: 12px;
749
+ display: inline-block;
750
+ margin-left: 14px;
751
+
752
+ i {
753
+ font-size: 12px;
754
+ margin-right: 3px;
755
+ }
756
+ }
757
+ }
758
+ }
759
+
760
+ }
761
+ }
762
+
763
+ .fast-box {
764
+ margin: 6px 4px 4px;
765
+ overflow: hidden;
766
+
767
+ .item {
768
+ width: 118px;
769
+ text-align: center;
770
+ float: left;
771
+ margin-right: 14px;
772
+ p {
773
+ color: #2a6494;
774
+ border: solid 1px #e2e2e2;
775
+ margin: 3.5px 4px;
776
+ width: calc(100% - 4px);
777
+ border-radius: 6px;
778
+ position: relative;
779
+ height: 54px;
780
+ line-height: 54px;
781
+ text-align: left;
782
+ padding-left: 14px;
783
+ font-size: 12px;
784
+
785
+ i {
786
+ font-size: 14px;
787
+ vertical-align: middle;
788
+ margin-right: 2px;
789
+ }
790
+
791
+ span {
792
+ vertical-align: middle;
793
+ }
794
+
795
+ &:before {
796
+ content: '';
797
+ width: 4px;
798
+ height: 24px;
799
+ display: inline-block;
800
+ background: #225279b8;
801
+ position: absolute;
802
+ left: -1px;
803
+ top: 50%;
804
+ margin-top:-12px;
805
+ }
806
+
807
+ &:hover {
808
+ background-color: $baseColor;
809
+ color: #fff;
810
+ border-color: $baseColor;
811
+
812
+ &:before {
813
+ background: #fff;
814
+ }
815
+ }
816
+ }
817
+ }
818
+ }
819
+
820
+ .need-to {
821
+ height: 332px;
822
+ }
823
+
824
+ .table-box {
825
+ width: 100%;
826
+ font-size: 12px;
827
+
828
+ th {
829
+ line-height: 32px;
830
+ background: #f7f7f7;
831
+ font-weight: 400;
832
+ color: #808080;
833
+ padding: 0 6px;
834
+ }
835
+
836
+ td {
837
+ text-align: center;
838
+ line-height: 34px;
839
+ color: #424242;
840
+ border-bottom: solid 1px #eee;
841
+ padding: 0 6px;
842
+ }
843
+
844
+ tr:last-child td {
845
+ border-bottom: none;
846
+ }
847
+ }
848
+ }
849
+
850
+ .box-card .more {
851
+ background-color: #f7f7f7;
852
+ }
853
+
854
+ .group-list {
855
+ padding: 18px 18px 6px 32px !important;
856
+ height: 400px;
857
+ overflow: auto;
858
+
859
+ .item {
860
+ position: relative;
861
+ height: 36px;
862
+ border: solid 1px #eee;
863
+ line-height: 34px;
864
+ border-radius: 2px;
865
+ padding: 0 42px 0 14px;
866
+ margin-bottom: 10px;
867
+ cursor: pointer;
868
+
869
+ &::before {
870
+ content: "";
871
+ width: 8px;
872
+ height: 8px;
873
+ border: solid 1px #eee;
874
+ border-radius: 50%;
875
+ display: inline-block;
876
+ position: absolute;
877
+ left: -16px;
878
+ top: 13px;
879
+ }
880
+
881
+ &.checked {
882
+ &:before {
883
+ content: "";
884
+ background-color: $baseColor;
885
+ border-color: $baseColor
886
+ }
887
+
888
+ background-color: transparentize($baseColor, 0.9);
889
+ color: $baseColor;
890
+ border-color: $baseColor;
891
+ }
892
+
893
+ i {
894
+ font-size: 12px;
895
+ vertical-align: middle;
896
+ }
897
+
898
+ .name {
899
+ font-size: 12px;
900
+ margin-left: 8px;
901
+ vertical-align: middle;
902
+ }
903
+
904
+ .nums {
905
+ width: 22px;
906
+ height: 22px;
907
+ border-radius: 50%;
908
+ display: inline-block;
909
+ position: absolute;
910
+ right: 5px;
911
+ top: 6px;
912
+ color: #FFF;
913
+ font-size: 12px;
914
+ background-color: $red;
915
+ line-height: 22px;
916
+ text-align: center;
917
+ }
918
+ }
919
+ }
920
+
921
+ .notice-box {
922
+ background-color: #2a649429;
923
+ border-radius: 0 0 4px 4px;
924
+ padding: 9px 12px;
925
+ margin-bottom: 5px;
926
+ margin-top: -6px;
927
+ position: relative;
928
+ z-index: 2;
929
+ font-size: 13px;
930
+ color: #212121;
931
+ overflow: hidden;
932
+
933
+ .txt {
934
+ line-height: 28px;
935
+ font-size: 12px;
936
+ position: relative;
937
+ display: inline-block;
938
+ cursor: pointer;
939
+
940
+ &:before {
941
+ content: "";
942
+ background-color: $baseColor;
943
+ width: 4px;
944
+ height: 20px;
945
+ border-radius: 2px;
946
+ display: inline-block;
947
+ vertical-align: middle;
948
+ margin-right: 18px;
949
+ }
950
+
951
+ i {
952
+ font-size: 14px;
953
+ margin-right: 12px;
954
+ vertical-align: middle;
955
+ }
956
+
957
+ > span {
958
+ vertical-align: middle;
959
+ height: 22px;
960
+ line-height: 22px;
961
+ display: inline-block;
962
+
963
+ b {
964
+ color: #FFF;
965
+ margin: 0 4px;
966
+ font-size: 16px;
967
+ vertical-align: middle;
968
+ background: #FF5615;
969
+ border-radius: 50%;
970
+ display: inline-block;
971
+ padding: 4px;
972
+ font-weight: 200;
973
+ line-height: 1;
974
+ }
975
+ }
976
+
977
+ }
978
+
979
+ .el-button {
980
+ position: absolute;
981
+ right: 46px;
982
+ padding: 0;
983
+ height: 22px;
984
+ line-height: 22px;
985
+ min-width: 22px;
986
+ text-align: center;
987
+ border-radius: 2px;
988
+ top: 50%;
989
+ margin-top: -11px;
990
+
991
+ i {
992
+ font-size: 15px;
993
+ }
994
+
995
+ &:hover {
996
+ background-color: $baseColor;
997
+ color: #FFF;
998
+ }
999
+
1000
+ &.more {
1001
+ right: 12px;
1002
+ background: #f7f7f7;
1003
+
1004
+ &:hover {
1005
+ color: $baseColor
1006
+ }
1007
+ }
1008
+ }
1009
+ ::v-deep .el-card.is-always-shadow{box-shadow: 0 2px 2px 0 rgb(0 0 0 / 6%);}
1010
+ }
1011
+ </style>