system-clients 3.2.54 → 3.2.55-furuike

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