system-clients 3.2.96 → 3.2.97-temp

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