system-clients 3.2.51 → 3.2.53-furuike

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