system-phone 3.0.28 → 3.0.30

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