system-clients 4.0.4 → 4.0.5

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