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.
Binary file
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CompilerConfiguration">
4
+ <bytecodeTargetLevel target="11" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" native2AsciiForPropertiesFiles="true" defaultCharsetForPropertiesFiles="UTF-8">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GradleSettings">
4
+ <option name="linkedExternalProjectsSettings">
5
+ <GradleProjectSettings>
6
+ <option name="distributionType" value="DEFAULT_WRAPPED" />
7
+ <option name="externalProjectPath" value="$PROJECT_DIR$" />
8
+ <option name="gradleHome" value="$PROJECT_DIR$/../../../../af-gradle/gradle-3.5.1" />
9
+ <option name="modules">
10
+ <set>
11
+ <option value="$PROJECT_DIR$" />
12
+ </set>
13
+ </option>
14
+ </GradleProjectSettings>
15
+ </option>
16
+ </component>
17
+ </project>
package/.idea/misc.xml ADDED
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+ <component name="FrameworkDetectionExcludesConfiguration">
5
+ <file type="web" url="file://$PROJECT_DIR$" />
6
+ </component>
7
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="jbr-11" project-jdk-type="JavaSDK" />
8
+ <component name="ProjectType">
9
+ <option name="id" value="jpab" />
10
+ </component>
11
+ </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.0.28",
3
+ "version": "3.0.30",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -3,19 +3,12 @@
3
3
  <div class="auto">
4
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)">
6
+
6
7
  <img class="imgs" :src="imgback(tab.name)">
7
8
  <div class="badge"
8
- v-show="isshowTag&&tab.num&&tab.num>0"
9
+ v-show="isshowTag&&tab.num&&tab.num>0"
9
10
  ><div class="badge-content">{{tab.num>99?'99+':tab.num}}</div></div>
10
- <div class="badge" v-show="tab.name == '抄表待办'">
11
- <div class="badge-content">{{ meterNum?meterNum:0 }}</div>
12
- </div>
13
- <div class="badge" v-show="tab.name == '安检待办'">
14
- <div class="badge-content">{{ safeckNum?safeckNum:0 }}</div>
15
- </div>
16
- <div class="badge" v-show="tab.name == '维修待办'">
17
- <div class="badge-content">{{ repairNum?repairNum:0 }}</div>
18
- </div>
11
+
19
12
  <p></p>
20
13
  <p class="pagesfoot">{{tab.name}}</p>
21
14
 
@@ -24,8 +17,8 @@
24
17
  </div>
25
18
  </div>
26
19
  <!--<div class="row" style="overflow:auto;">-->
27
- <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
28
- <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
20
+ <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
21
+ <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
29
22
  <!--</div>-->
30
23
  </div>
31
24
  <validator name="v">
@@ -65,20 +58,17 @@
65
58
  import {HttpResetClass} from "vue-client";
66
59
  export default {
67
60
  title: '待办工作导航',
68
- data() {
61
+ data() {
69
62
  return {
70
63
  titleName: '待办工作',
71
64
  showModal: false,
72
65
  isMenu: true,
73
66
  isshowTag:false,
74
67
  tabs: [],
75
- safeckNum:0,
76
- repairNum:0,
77
68
  text: '导航组件this',
78
69
  beforeName: '待办工作',
79
70
  componentName: 'repair-first',
80
71
  sourcet: '竖屏',
81
- meterNum:null,
82
72
  applyType: '', // 报建类型
83
73
  // applyTypes:this.$appdata.getParam("手机报建类型"),
84
74
  applyTypes: [{label: '散户报建', value: '散户报建'}, {label: '工商户报建', value: '工商户报建'}, {
@@ -92,7 +82,14 @@
92
82
  }
93
83
  },
94
84
  ready () {
95
- this.getNoTagTabs()
85
+ // this.getModelSum()
86
+ if(Vue.config.telephone&&Vue.config.telephone.TipConfig&&Vue.config.telephone.TipConfig.data){
87
+ this.isshowTag = true
88
+ this.getTabs()
89
+ }else{
90
+ this.getNoTagTabs()
91
+ }
92
+
96
93
  },
97
94
 
98
95
  methods: {
@@ -185,14 +182,7 @@
185
182
 
186
183
  },
187
184
  getRepair(){
188
- if (this.$appdata.getSingleValue('红点') && this.$appdata.getSingleValue('红点') != 'true') {
189
- return
190
- }
191
185
  var _this = this;
192
- let bbb = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
193
- if (bbb.code === 200) {
194
- _this.repairNum = bbb.data.length
195
- }
196
186
  this.timeoutRepair = window.setInterval(function() {
197
187
  let result = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
198
188
  if (result.code === 200) {
@@ -201,20 +191,12 @@
201
191
  title: '维修待办',
202
192
  sum: result.data.length
203
193
  }
204
- _this.repairNum = result.data.length
205
- // _this.changesum(crv)
194
+ _this.changesum(crv)
206
195
  }
207
- }, 100000)
196
+ }, 6000)
208
197
  },
209
198
  getSafeCheck(){
210
- if (this.$appdata.getSingleValue('红点') && this.$appdata.getSingleValue('红点') != 'true') {
211
- return
212
- }
213
199
  var _this = this;
214
- let aaa = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
215
- if (aaa.code === 200) {
216
- _this.safeckNum = aaa.data.length
217
- }
218
200
  this.timeoutRepair = window.setInterval(function() {
219
201
  let result = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
220
202
  if (result.code === 200) {
@@ -223,15 +205,11 @@
223
205
  title: '安检待办',
224
206
  sum: result.data.length
225
207
  }
226
- _this.safeckNum = result.data.length
227
- // _this.changesum(crv)
208
+ _this.changesum(crv)
228
209
  }
229
- }, 100000)
210
+ }, 6000)
230
211
  },
231
212
  getZhihuan(){
232
- if (this.$appdata.getSingleValue('红点') && this.$appdata.getSingleValue('红点') != 'true') {
233
- return
234
- }
235
213
  var _this = this;
236
214
  this.timeoutZhihuan = window.setInterval(function() {
237
215
  let result = _this.$androidUtil.path({'alias':`getSubstitMobile`,'data':{condition:'1 = 1'}})
@@ -243,7 +221,7 @@
243
221
  }
244
222
  _this.changesum(crv)
245
223
  }
246
- }, 100000)
224
+ }, 6000)
247
225
  },
248
226
  changesum(titdata){
249
227
  for(var i = 0;i<this.tabs.length;i++){
@@ -260,83 +238,56 @@
260
238
  this.$set('tabs',Vue.functions[funs].children)
261
239
  }
262
240
  }
263
- this.getTabs()
264
241
  },
265
- getTabs(){
266
- if (Vue.android) {
267
- if(Vue.config.telephone&&Vue.config.telephone.TipConfig&&Vue.config.telephone.TipConfig.data) {
268
- this.isshowTag = true
269
- const config = Vue.config.telephone.TipConfig.data
270
- const user = Vue.user
271
- console.log("Vue.android" + Vue.android)
272
- const result = this.$androidUtil.syncBzLogic("TipConfig", {data: {config, user}})
273
- if (result.code === 200) {
274
- for (var i = 0; i < this.tabs.length; i++) {
275
- result.result.forEach(ress => {
276
- if (this.tabs[i].link === ress.link) {
277
- this.$set('tabs[' + i + '].num', ress.num)
278
- }
242
+ async getTabs(){
243
+ const config = Vue.config.telephone.TipConfig.data
244
+ const user = Vue.user
245
+ console.log("Vue.android"+Vue.android)
246
+ if(Vue.android){
247
+ const result = this.$androidUtil.syncBzLogic("TipConfig",{data:{config,user}})
248
+ if(result.code === 200){
249
+ for(let funs in Vue.functions){
250
+ if(Vue.functions[funs].link == 'attend-manage'){
251
+ Vue.functions[funs].children.forEach(res=>{
252
+ console.log(res)
253
+ result.result.forEach(ress=>{
254
+ if(res.link === ress.link){
255
+ res.num=ress.num
256
+ }
257
+ })
279
258
  })
259
+ this.$set('tabs',Vue.functions[funs].children)
280
260
  }
281
261
  }
282
- }
283
- } else {
284
- const result = {
285
- "code": 200,
286
- "result": [{"link": "repair-first", "num": 50}, {"link": "current-create", "num": 30}]
287
- }
288
- if (result.code === 200) {
289
- for (var i = 0; i < this.tabs.length; i++) {
290
- result.result.forEach(ress => {
291
- if (this.tabs[i].link === ress.link) {
292
- this.$set('tabs[' + i + '].num', ress.num)
293
- }
294
- })
262
+ }else{
263
+ for(let funs in Vue.functions){
264
+ if(Vue.functions[funs].link == 'attend-manage'){
265
+ this.$set('tabs',Vue.functions[funs].children)
266
+ }
295
267
  }
296
268
  }
297
- }
298
- this.getmeterNum()
299
- this.getModelSum()
300
- },
301
- getmeterNum() {
302
- if (this.$appdata.getSingleValue('红点') && this.$appdata.getSingleValue('红点') != 'true') {
303
- return
304
- }
305
- window.setInterval( ()=> {
306
- let val = {
307
- items:"*",
308
- tablename:"t_handplan",
309
- orderitem:"id desc",
310
- condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
311
- f_orgid:`'${Vue.user.orgid}'`
269
+ }else{
270
+ const result = {"code":200,"result":[{"link":"repair-first","num":50},{"link":"current-create","num":30}]}
271
+ if(result.code === 200){
272
+ for(let funs in Vue.functions){
273
+ if(Vue.functions[funs].link == 'attend-manage'){
274
+ Vue.functions[funs].children.forEach(res=>{
275
+ console.log(res)
276
+ result.result.forEach(ress=>{
277
+ if(res.link === ress.link){
278
+ res.num=ress.num
279
+ }
280
+ })
281
+ })
282
+ this.$set('tabs',Vue.functions[funs].children)
283
+ }
284
+ }
285
+ }else{
286
+
312
287
  }
313
- let http = new HttpResetClass()
314
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
315
- resolveMsg: null,
316
- rejectMsg: null
317
- }).then((res) => {
318
- this.meterNum = res.data.length
319
- debugger
320
- console.log("this.meterNum的值是:",this.meterNum)
321
- })
322
- },10000)
323
- this.timeOutGetmeterNum()
324
- },
325
- timeOutGetmeterNum(){
326
- let val = {
327
- items:"*",
328
- tablename:"t_handplan",
329
- orderitem:"id desc",
330
- condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
331
- f_orgid:`'${Vue.user.orgid}'`
288
+
332
289
  }
333
- let http = new HttpResetClass()
334
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
335
- resolveMsg: null,
336
- rejectMsg: null
337
- }).then((res) => {
338
- this.meterNum = res.data.length
339
- })
290
+
340
291
  },
341
292
  imgback(val){
342
293
  return require('../assets/'+val+'.png')
@@ -349,7 +300,7 @@
349
300
  },
350
301
  gotopage(param,title) {
351
302
  if(title === '工程发起'){
352
- this.showModal = !this.showModal
303
+ this.showModal = !this.showModal
353
304
  }else{
354
305
  console.log('进入子组件')
355
306
  var prpdata = {
@@ -358,7 +309,7 @@
358
309
  safe:false
359
310
  }
360
311
  this.$dispatch('gotoson',prpdata)
361
- this.$goto(param,{sourcet:'竖屏',tabname:title},'self',this.getTabs)
312
+ this.$goto(param,{sourcet:'竖屏',tabname:title})
362
313
  }
363
314
  },
364
315
  mute () {
@@ -368,52 +319,52 @@
368
319
  }
369
320
  </script>
370
321
  <style lang="less">
371
- .badge-content{
372
- color: #fff;
373
- box-sizing: border-box;
374
- min-width: 8px;
375
- font-size: 9px;
376
- line-height: 12px;
377
- white-space: nowrap;
378
- font-weight: 400;
379
- text-align: center;
322
+ .badge-content{
323
+ color: #fff;
324
+ box-sizing: border-box;
325
+ min-width: 8px;
326
+ font-size: 9px;
327
+ line-height: 12px;
328
+ white-space: nowrap;
329
+ font-weight: 400;
330
+ text-align: center;
331
+ }
332
+ .badge{
333
+ top: 6px;
334
+ position: absolute;
335
+ max-height: 13px;
336
+ min-height: 8px;
337
+ //transform: translate(50%,-50%);
338
+ right:0;
339
+ display: inline-flex;
340
+ vertical-align: middle;
341
+ box-sizing: content-box;
342
+ border-radius: 100px;
343
+ background-color: red;
344
+ }
345
+ .app-input {
346
+ label {
347
+ float: left;
380
348
  }
381
- .badge{
382
- top: 6px;
383
- position: absolute;
384
- max-height: 13px;
385
- min-height: 8px;
386
- //transform: translate(50%,-50%);
387
- right:0;
388
- display: inline-flex;
389
- vertical-align: middle;
390
- box-sizing: content-box;
391
- border-radius: 100px;
392
- background-color: red;
393
- }
394
- .app-input {
395
- label {
396
- float: left;
397
- }
398
- .select {
399
- button {
400
- border: none;
401
- outline: none;
402
- text-align: left;
403
- .btn-placeholder {
404
- color: #ACA899
405
- }
349
+ .select {
350
+ button {
351
+ border: none;
352
+ outline: none;
353
+ text-align: left;
354
+ .btn-placeholder {
355
+ color: #ACA899
406
356
  }
407
357
  }
408
- .datepicker {
409
- .form-control:focus {
410
- border: none!important;
411
- outline: none!important;
412
- -webkit-box-shadow: none;
413
- box-shadow: none;
414
- }
358
+ }
359
+ .datepicker {
360
+ .form-control:focus {
361
+ border: none!important;
362
+ outline: none!important;
363
+ -webkit-box-shadow: none;
364
+ box-shadow: none;
415
365
  }
416
366
  }
367
+ }
417
368
  .tab-befor-img {
418
369
  content: '';
419
370
  background-size: 30px;