system-clients 4.0.2 → 4.0.4

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