telephone-clients 3.0.104-4 → 3.0.104-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.104-4",
3
+ "version": "3.0.104-5",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -45,7 +45,7 @@
45
45
  title: '抄表记录',
46
46
  data () {
47
47
  return {
48
- model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'rs/sql/tel_singleTable_OrderBy', 8, {items: '"*"', tablename: '"t_handplan with (nolock)"', orderitem: '"id desc"'}),
48
+ model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'rs/sql/tel_singleTable_OrderBy', 8, {items: '"*"', tablename: 'this.tablename', orderitem: '"id desc"'}),
49
49
  show: false,
50
50
  row: Object
51
51
  }
@@ -62,6 +62,11 @@
62
62
  'user' (val) {
63
63
  if(this.user) {
64
64
  this.model.rows = []
65
+ if(val.f_meter_classify == '物联网表'){
66
+ this.model.tablename = 't_web_handplan with (nolock)'
67
+ }else{
68
+ this.model.tablename = 't_handplan with (nolock)'
69
+ }
65
70
  this.model.search(`f_userinfo_id = '${this.user.f_userinfo_id}'`)
66
71
  }
67
72
  },
@@ -71,6 +76,12 @@
71
76
  },
72
77
  ready () {
73
78
  if (this.user && this.user.f_userinfo_id) {
79
+ if(this.user.f_meter_classify == '物联网表'){
80
+ debugger
81
+ this.model.tablename = 't_web_handplan with (nolock)'
82
+ }else{
83
+ this.model.tablename = 't_handplan with (nolock)'
84
+ }
74
85
  this.model.search(`f_userinfo_id = '${this.user.f_userinfo_id}'`)
75
86
  }
76
87
  }