system-clients 3.2.70 → 3.2.72

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