system-phone 3.1.16 → 3.1.18

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.
File without changes
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.1.16",
3
+ "version": "3.1.18",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -16,6 +16,9 @@
16
16
  <div class="badge" v-show="tab.name == '维修待办' && isShowRedNum && isShowRedNum == 'true'">
17
17
  <div class="badge-content">{{ repairNum?repairNum:0 }}</div>
18
18
  </div>
19
+ <div class="badge" v-show="tab.name == '报建待办' && isShowRedNum && isShowRedNum == 'true'">
20
+ <div class="badge-content">{{ applyNum?applyNum:0 }}</div>
21
+ </div>
19
22
  <p></p>
20
23
  <p class="pagesfoot">{{tab.name}}</p>
21
24
 
@@ -125,6 +128,7 @@
125
128
  tabs: [],
126
129
  safeckNum:0,
127
130
  repairNum:0,
131
+ applyNum:0,
128
132
  model:{},
129
133
  notices:{},
130
134
  weakPassword: false,
@@ -152,6 +156,7 @@
152
156
  this.getNoTagTabs()
153
157
  this.getmeterNum()
154
158
  this.getModelSum()
159
+ this.getapplyNum()
155
160
  this.searchStopGas()
156
161
  },
157
162
  methods: {
@@ -404,6 +409,29 @@
404
409
  this.meterNum = res.data[0].count_num
405
410
  })
406
411
  },
412
+ getapplyNum() {
413
+ if (!this.isShowRedNum || this.isShowRedNum != 'true') {
414
+ return
415
+ }
416
+ this.timeOutgetapplyNum()
417
+ },
418
+ timeOutgetapplyNum(){
419
+ var data={
420
+ condition: ` 1=1 and act.defname in ${this.appDefnames} `,
421
+ condValue: [],
422
+ data: {
423
+ id: Vue.user.id,
424
+ orgid: Vue.user.orgid
425
+ }
426
+ }
427
+ let http = new HttpResetClass()
428
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser/n`, {data}, {
429
+ resolveMsg: null,
430
+ rejectMsg: null
431
+ }).then((res) => {
432
+ this.applyNum=res.data.n
433
+ })
434
+ },
407
435
  imgback(val){
408
436
  return require('../assets/'+val+'.png')
409
437
  },
@@ -429,6 +457,12 @@
429
457
  HostApp.mute()
430
458
  }
431
459
  },
460
+ computed: {
461
+ appDefnames () {
462
+ let list = this.$appdata.getParam('手机节点')
463
+ return `(${list.map(item => `'${item.value}'`).toString()})`
464
+ }
465
+ }
432
466
  }
433
467
  </script>
434
468
  <style lang="less">