system-phone 3.0.15 → 3.0.16

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.
@@ -1,319 +1,362 @@
1
- <template>
2
- <div class="nav-bgcolor">
3
- <div class="auto">
4
- <div class="row nav-bgcolor" >
5
- <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name,tab.navigate)">
6
- <div class="badge" v-show="tab.name == '维修派发'">
7
- <div class="badge-content">{{ pointNum?pointNum:0 }}</div>
8
- </div>
9
-
10
- <div class="badge" v-show="tab.name == '信息公告'">
11
- <div class="badge-content">{{ infoNum?infoNum:0 }}</div>
12
- </div>
13
- <img class="imgs" :src="imgback(tab.name)" alt="">
14
- <p></p>
15
- <p class="pagesfoot">{{tab.name}}</p>
16
- <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
17
- <p></p>
18
- </div>
19
- </div>
20
- <!--<div class="row" style="overflow:auto;">-->
21
- <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
22
- <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
23
- <!--</div>-->
24
- </div>
25
- </div>
26
- </template>
27
-
28
- <script scoped>
29
- import Vue from 'vue'
30
- import {HttpResetClass} from "vue-client";
31
-
32
- export default {
33
- title: '在线业务导航',
34
- data () {
35
- return {
36
- titleName:'在线业务',
37
- isMenu:true,
38
- tabs: this.getTabs(),
39
- text: '导航组件this',
40
- beforeName: '在线业务',
41
- sourcet: '竖屏',
42
- pointNum: null,
43
- infoNum:null
44
-
45
- }
46
- },
47
- ready () {
48
- // this.getModelSum()
49
- },
50
-
51
- methods: {
52
- //看去哪个页面
53
- getModelSum(){
54
- for(var i = 0;i<this.tabs.length;i++){
55
- if(this.tabs[i].link == 'readmeter-home' ){
56
- this.getZhihuan()
57
- }
58
- if(this.tabs[i].link == 'weiup-load' ){
59
- this.getRepair()
60
- }
61
- if(this.tabs[i].link == 'upload-page' ){
62
- this.getSafeCheck()
63
- }
64
- }
65
-
66
- },
67
- getRepair(){
68
- var _this = this;
69
- this.timeoutRepair = window.setInterval(function() {
70
- let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
71
- if (result.code === 200) {
72
- console.log('查询得到的代办2' + JSON.stringify(result))
73
- var crv = {
74
- title: '维修上传',
75
- sum: result.data.length
76
- }
77
- _this.changesum(crv)
78
- }
79
- }, 6000)
80
- },
81
- getSafeCheck(){
82
- var _this = this;
83
- this.timeoutRepair = window.setInterval(function() {
84
- let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
85
- if (result.code === 200) {
86
- console.log('查询得到的安检上传' + JSON.stringify(result))
87
- var crv = {
88
- title: '安检上传',
89
- sum: result.data.length
90
- }
91
- _this.changesum(crv)
92
- }
93
- }, 6000)
94
- },
95
- getZhihuan(){
96
- var _this = this;
97
- this.timeoutZhihuan = window.setInterval(function() {
98
- let result = {code:200}
99
- if (result.code === 200) {
100
- console.log('查询得到的代办2' + JSON.stringify(result))
101
- var crv = {
102
- title: '置换上传',
103
- sum: result.data.length
104
- }
105
- _this.changesum(crv)
106
- }
107
- }, 6000)
108
- },
109
- changesum(titdata){
110
- for(var i = 0;i<this.tabs.length;i++){
111
- if(this.tabs[i].name == titdata.title){
112
- this.tabs[i].icon = titdata.sum + '单'
113
- console.log(JSON.stringify(this.tabs[i].icon))
114
- return
115
- }
116
- }
117
- },
118
- getTabs(){
119
- this.getRepairNum()
120
- debugger
121
- this.getInfoNum()
122
- for(let funs in Vue.functions){
123
- if(Vue.functions[funs].link == 'online-manage'){
124
- return Vue.functions[funs].children
125
- }
126
- }
127
- },
128
- getInfoNum() {
129
- if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
130
- return
131
- }
132
- debugger
133
- window.setInterval( ()=> {
134
- let val = {
135
- items:"*",
136
- tablename:"T_STOPGAS",
137
- orderitem:"f_date desc",
138
- condition:'1=1',
139
- f_orgstr:`'${Vue.user.orgid}'`
140
- }
141
- let http = new HttpResetClass()
142
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
143
- resolveMsg: null,
144
- rejectMsg: null
145
- }).then((res) => {
146
- this.infoNum = res.data.length
147
- debugger
148
- console.log("this.infoNum的值是:",this.infoNum)
149
- })
150
- },10000)
151
- this.timeOutGetInfoNum()
152
- },
153
- getRepairNum() {
154
- debugger
155
- if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
156
- return
157
- }
158
- window.setInterval( ()=> {
159
- let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
160
- let val = {
161
- condition: {
162
- condition: condition,
163
- sign: '1 = 1'
164
- },
165
- userid: Vue.user.name
166
- }
167
- let http = new HttpResetClass()
168
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
169
- resolveMsg: null,
170
- rejectMsg: null
171
- }).then((res) => {
172
- this.pointNum = res.data.length
173
- })
174
- },10000)
175
- this.timeOutGetRepairNum()
176
- },
177
- timeOutGetRepairNum(){
178
- debugger
179
- let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
180
- let val = {
181
- condition: {
182
- condition: condition,
183
- sign: '1 = 1'
184
- },
185
- userid: Vue.user.name
186
- }
187
- let http = new HttpResetClass()
188
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
189
- resolveMsg: null,
190
- rejectMsg: null
191
- }).then((res) => {
192
- this.pointNum = res.data.length
193
- })
194
- },
195
- timeOutGetInfoNum(){
196
- debugger
197
- let val = {
198
- items:"*",
199
- tablename:"T_STOPGAS",
200
- orderitem:"f_date desc",
201
- condition:'1=1',
202
- f_orgstr:`'${Vue.user.orgid}'`
203
- }
204
- let http = new HttpResetClass()
205
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
206
- resolveMsg: null,
207
- rejectMsg: null
208
- }).then((res) => {
209
- this.infoNum = res.data.length
210
- })
211
- },
212
- imgback(val){
213
- return require('../assets/'+val+'.png')
214
- },
215
- // 返回主界面
216
- back(){
217
- this.titleName = '主界面'
218
- this.isMenu = true
219
-
220
- },
221
- gotopage(param,title,navigate) {
222
- console.log('进入子组件')
223
- var prpdata = {
224
- _this:this,
225
- title:title,
226
- safe:false
227
- }
228
- this.$dispatch('gotoson',prpdata)
229
- if(navigate){
230
- this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
231
- }else{
232
- this.$goto(param,{sourcet:'竖屏',tabname:title})
233
- }
234
- },
235
- mute () {
236
- HostApp.mute()
237
- }
238
- },
239
- }
240
- </script>
241
- <style lang="less">
242
- .badge-content {
243
- color: #fff;
244
- box-sizing: border-box;
245
- min-width: 8px;
246
- font-size: 9px;
247
- line-height: 12px;
248
- white-space: nowrap;
249
- font-weight: 400;
250
- text-align: center;
251
- }
252
-
253
- .badge {
254
- top: 6px;
255
- position: absolute;
256
- max-height: 13px;
257
- min-height: 8px;
258
- right: 0;
259
- display: inline-flex;
260
- vertical-align: middle;
261
- box-sizing: content-box;
262
- border-radius: 100px;
263
- background-color: red;
264
- }
265
-
266
- .tab-befor-img {
267
- content: '';
268
- background-size: 30px;
269
- display: inline-block;
270
- margin-right: 8px;
271
- height: 30px;
272
- width: 30px;
273
- vertical-align: -35%;
274
- }
275
- .pageskuang{
276
- vertical-align:middle;
277
- display:table-cell;
278
- width: 32%;
279
- top:-50%;
280
- margin-top: 1%;
281
- margin-left: 1%;
282
- border:1px solid #e3e3e3;
283
- text-align: center;
284
- background-color: #ffffff;
285
- }
286
- .pgesfoot{
287
- font-size: 14px;
288
- color: #666666;
289
- /* font-family: "Pingfhs";*/
290
- }
291
- .imgs{
292
- width: 35px;
293
- margin-top: 15px;
294
- }
295
- .pages-bgcolor{
296
- text-align: center;
297
- background-color: #f0f0ef;
298
- }
299
- img[src=""],img:not([src]){
300
- opacity: 0;
301
- border:none;
302
- visibility: hidden;
303
- max-width: none;
304
- }
305
-
306
- .manbiankuang {
307
- width: 44%;
308
- margin-top: 15px;
309
- margin-left: 4%;
310
- border: 1px solid #e3e3e3;
311
- border-radius: 10px 10px 10px 10px;
312
- text-align: center;
313
- background-color: #ffffff;
314
- }
315
-
316
- .nav-bgcolor {
317
- background-color: #ffffff;
318
- }
319
- </style>
1
+ <template>
2
+ <div class="nav-bgcolor">
3
+ <div class="auto">
4
+ <div class="row nav-bgcolor" >
5
+ <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name,tab.navigate)">
6
+ <div class="badge" v-show="tab.name == '维修派发'">
7
+ <div class="badge-content">{{ pointNum?pointNum:0 }}</div>
8
+ </div>
9
+ <div class="badge" v-show="tab.name == '抄表待办'">
10
+ <div class="badge-content">{{ meterNum?meterNum:0 }}</div>
11
+ </div>
12
+ <div class="badge" v-show="tab.name == '信息公告'">
13
+ <div class="badge-content">{{ infoNum?infoNum:0 }}</div>
14
+ </div>
15
+ <img class="imgs" :src="imgback(tab.name)" alt="">
16
+ <p></p>
17
+ <p class="pagesfoot">{{tab.name}}</p>
18
+ <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
19
+ <p></p>
20
+ </div>
21
+ </div>
22
+ <!--<div class="row" style="overflow:auto;">-->
23
+ <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
24
+ <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
25
+ <!--</div>-->
26
+ </div>
27
+ </div>
28
+ </template>
29
+
30
+ <script scoped>
31
+ import Vue from 'vue'
32
+ import {HttpResetClass} from "vue-client";
33
+
34
+ export default {
35
+ title: '在线业务导航',
36
+ data () {
37
+ return {
38
+ titleName:'在线业务',
39
+ isMenu:true,
40
+ tabs: this.getTabs(),
41
+ text: '导航组件this',
42
+ beforeName: '在线业务',
43
+ sourcet: '竖屏',
44
+ pointNum: null,
45
+ infoNum:null,
46
+ meterNum:null
47
+ }
48
+ },
49
+ ready () {
50
+ // this.getModelSum()
51
+ },
52
+
53
+ methods: {
54
+ //看去哪个页面
55
+ getModelSum(){
56
+ for(var i = 0;i<this.tabs.length;i++){
57
+ if(this.tabs[i].link == 'readmeter-home' ){
58
+ this.getZhihuan()
59
+ }
60
+ if(this.tabs[i].link == 'weiup-load' ){
61
+ this.getRepair()
62
+ }
63
+ if(this.tabs[i].link == 'upload-page' ){
64
+ this.getSafeCheck()
65
+ }
66
+ }
67
+
68
+ },
69
+ getRepair(){
70
+ var _this = this;
71
+ this.timeoutRepair = window.setInterval(function() {
72
+ let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
73
+ if (result.code === 200) {
74
+ console.log('查询得到的代办2' + JSON.stringify(result))
75
+ var crv = {
76
+ title: '维修上传',
77
+ sum: result.data.length
78
+ }
79
+ _this.changesum(crv)
80
+ }
81
+ }, 6000)
82
+ },
83
+ getSafeCheck(){
84
+ var _this = this;
85
+ this.timeoutRepair = window.setInterval(function() {
86
+ let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
87
+ if (result.code === 200) {
88
+ console.log('查询得到的安检上传' + JSON.stringify(result))
89
+ var crv = {
90
+ title: '安检上传',
91
+ sum: result.data.length
92
+ }
93
+ _this.changesum(crv)
94
+ }
95
+ }, 6000)
96
+ },
97
+ getZhihuan(){
98
+ var _this = this;
99
+ this.timeoutZhihuan = window.setInterval(function() {
100
+ let result = {code:200}
101
+ if (result.code === 200) {
102
+ console.log('查询得到的代办2' + JSON.stringify(result))
103
+ var crv = {
104
+ title: '置换上传',
105
+ sum: result.data.length
106
+ }
107
+ _this.changesum(crv)
108
+ }
109
+ }, 6000)
110
+ },
111
+ changesum(titdata){
112
+ for(var i = 0;i<this.tabs.length;i++){
113
+ if(this.tabs[i].name == titdata.title){
114
+ this.tabs[i].icon = titdata.sum + '单'
115
+ console.log(JSON.stringify(this.tabs[i].icon))
116
+ return
117
+ }
118
+ }
119
+ },
120
+ getTabs(){
121
+ this.getRepairNum()
122
+ debugger
123
+ this.getInfoNum()
124
+ this.getmeterNum()
125
+ for(let funs in Vue.functions){
126
+ if(Vue.functions[funs].link == 'online-manage'){
127
+ return Vue.functions[funs].children
128
+ }
129
+ }
130
+ },
131
+ getmeterNum() {
132
+ if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
133
+ return
134
+ }
135
+ window.setInterval( ()=> {
136
+ let val = {
137
+ items:"*",
138
+ tablename:"t_handplan",
139
+ orderitem:"id desc",
140
+ condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
141
+ f_orgid:`'${Vue.user.orgid}'`
142
+ }
143
+ let http = new HttpResetClass()
144
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
145
+ resolveMsg: null,
146
+ rejectMsg: null
147
+ }).then((res) => {
148
+ this.meterNum = res.data.length
149
+ debugger
150
+ console.log("this.meterNum的值是:",this.meterNum)
151
+ })
152
+ },10000)
153
+ this.timeOutGetmeterNum()
154
+ },
155
+ getInfoNum() {
156
+ if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
157
+ return
158
+ }
159
+ debugger
160
+ window.setInterval( ()=> {
161
+ let val = {
162
+ items:"*",
163
+ tablename:"T_STOPGAS",
164
+ orderitem:"f_date desc",
165
+ condition:'1=1',
166
+ f_orgstr:`'${Vue.user.orgid}'`
167
+ }
168
+ let http = new HttpResetClass()
169
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
170
+ resolveMsg: null,
171
+ rejectMsg: null
172
+ }).then((res) => {
173
+ this.infoNum = res.data.length
174
+ debugger
175
+ console.log("this.infoNum的值是:",this.infoNum)
176
+ })
177
+ },10000)
178
+ this.timeOutGetInfoNum()
179
+ },
180
+ getRepairNum() {
181
+ debugger
182
+ if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
183
+ return
184
+ }
185
+ window.setInterval( ()=> {
186
+ let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
187
+ let val = {
188
+ condition: {
189
+ condition: condition,
190
+ sign: '1 = 1'
191
+ },
192
+ userid: Vue.user.name
193
+ }
194
+ let http = new HttpResetClass()
195
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
196
+ resolveMsg: null,
197
+ rejectMsg: null
198
+ }).then((res) => {
199
+ this.pointNum = res.data.length
200
+ })
201
+ },10000)
202
+ this.timeOutGetRepairNum()
203
+ },
204
+ timeOutGetRepairNum(){
205
+ debugger
206
+ let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
207
+ let val = {
208
+ condition: {
209
+ condition: condition,
210
+ sign: '1 = 1'
211
+ },
212
+ userid: Vue.user.name
213
+ }
214
+ let http = new HttpResetClass()
215
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
216
+ resolveMsg: null,
217
+ rejectMsg: null
218
+ }).then((res) => {
219
+ this.pointNum = res.data.length
220
+ })
221
+ },
222
+ timeOutGetInfoNum(){
223
+ debugger
224
+ let val = {
225
+ items:"*",
226
+ tablename:"T_STOPGAS",
227
+ orderitem:"f_date desc",
228
+ condition:'1=1',
229
+ f_orgstr:`'${Vue.user.orgid}'`
230
+ }
231
+ let http = new HttpResetClass()
232
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
233
+ resolveMsg: null,
234
+ rejectMsg: null
235
+ }).then((res) => {
236
+ this.infoNum = res.data.length
237
+ })
238
+ },
239
+ timeOutGetmeterNum(){
240
+ let val = {
241
+ items:"*",
242
+ tablename:"t_handplan",
243
+ orderitem:"id desc",
244
+ condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
245
+ f_orgid:`'${Vue.user.orgid}'`
246
+ }
247
+ let http = new HttpResetClass()
248
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
249
+ resolveMsg: null,
250
+ rejectMsg: null
251
+ }).then((res) => {
252
+ this.meterNum = res.data.length
253
+ })
254
+ },
255
+ imgback(val){
256
+ return require('../assets/'+val+'.png')
257
+ },
258
+ // 返回主界面
259
+ back(){
260
+ this.titleName = '主界面'
261
+ this.isMenu = true
262
+
263
+ },
264
+ gotopage(param,title,navigate) {
265
+ console.log('进入子组件')
266
+ var prpdata = {
267
+ _this:this,
268
+ title:title,
269
+ safe:false
270
+ }
271
+ this.$dispatch('gotoson',prpdata)
272
+ if(navigate){
273
+ this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
274
+ }else{
275
+ this.$goto(param,{sourcet:'竖屏',tabname:title})
276
+ }
277
+ },
278
+ mute () {
279
+ HostApp.mute()
280
+ }
281
+ },
282
+ }
283
+ </script>
284
+ <style lang="less">
285
+ .badge-content {
286
+ color: #fff;
287
+ box-sizing: border-box;
288
+ min-width: 8px;
289
+ font-size: 9px;
290
+ line-height: 12px;
291
+ white-space: nowrap;
292
+ font-weight: 400;
293
+ text-align: center;
294
+ }
295
+
296
+ .badge {
297
+ top: 6px;
298
+ position: absolute;
299
+ max-height: 13px;
300
+ min-height: 8px;
301
+ right: 0;
302
+ display: inline-flex;
303
+ vertical-align: middle;
304
+ box-sizing: content-box;
305
+ border-radius: 100px;
306
+ background-color: red;
307
+ }
308
+
309
+ .tab-befor-img {
310
+ content: '';
311
+ background-size: 30px;
312
+ display: inline-block;
313
+ margin-right: 8px;
314
+ height: 30px;
315
+ width: 30px;
316
+ vertical-align: -35%;
317
+ }
318
+ .pageskuang{
319
+ vertical-align:middle;
320
+ display:table-cell;
321
+ width: 32%;
322
+ top:-50%;
323
+ margin-top: 1%;
324
+ margin-left: 1%;
325
+ border:1px solid #e3e3e3;
326
+ text-align: center;
327
+ background-color: #ffffff;
328
+ }
329
+ .pgesfoot{
330
+ font-size: 14px;
331
+ color: #666666;
332
+ /* font-family: "Pingfhs";*/
333
+ }
334
+ .imgs{
335
+ width: 35px;
336
+ margin-top: 15px;
337
+ }
338
+ .pages-bgcolor{
339
+ text-align: center;
340
+ background-color: #f0f0ef;
341
+ }
342
+ img[src=""],img:not([src]){
343
+ opacity: 0;
344
+ border:none;
345
+ visibility: hidden;
346
+ max-width: none;
347
+ }
348
+
349
+ .manbiankuang {
350
+ width: 44%;
351
+ margin-top: 15px;
352
+ margin-left: 4%;
353
+ border: 1px solid #e3e3e3;
354
+ border-radius: 10px 10px 10px 10px;
355
+ text-align: center;
356
+ background-color: #ffffff;
357
+ }
358
+
359
+ .nav-bgcolor {
360
+ background-color: #ffffff;
361
+ }
362
+ </style>