system-phone 3.0.49-9 → 3.1.0

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.
Files changed (129) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/SystemPhone.iml +8 -8
  3. package/build/dev-server.js +141 -141
  4. package/build/webpack.base.conf.js +82 -82
  5. package/build.gradle +27 -27
  6. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  7. package/gradlew +183 -183
  8. package/gradlew.bat +100 -100
  9. package/index.html +21 -21
  10. package/package.json +1 -1
  11. package/src/App.vue +25 -25
  12. package/src/Util.js +415 -415
  13. package/src/assets//344/277/235/351/231/251/347/231/273/350/256/260.png +0 -0
  14. package/src/assets//345/215/217/345/212/251/345/256/211/346/243/200.png +0 -0
  15. package/src/assets//345/215/241/350/241/250/346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
  16. package/src/assets//345/233/236/350/256/277.png +0 -0
  17. package/src/assets//345/234/260/345/235/200/345/217/230/346/233/264.png +0 -0
  18. package/src/assets//345/242/236/345/200/274/345/276/205/345/212/236.png +0 -0
  19. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/344/270/212/344/274/240.png +0 -0
  20. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/344/273/243/345/212/236.png +0 -0
  21. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/345/267/262/345/212/236.png +0 -0
  22. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
  23. package/src/assets//345/244/226/351/203/250/351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
  24. package/src/assets//345/256/211/346/243/200/345/216/206/345/217/262/346/237/245/347/234/213.png +0 -0
  25. package/src/assets//345/256/211/346/243/200/347/256/241/347/220/206/346/234/252/351/200/211/344/270/255.png +0 -0
  26. package/src/assets//345/256/211/346/243/200/347/256/241/347/220/206/351/200/211/344/270/255.png +0 -0
  27. package/src/assets//345/256/211/346/243/200/350/275/254/345/215/225/345/256/241/346/240/270.png +0 -0
  28. package/src/assets//345/267/245/345/215/225/345/244/215/346/243/200.png +0 -0
  29. package/src/assets//345/267/245/345/225/206/345/256/211/346/243/200.png +0 -0
  30. package/src/assets//345/276/205/345/212/236/347/273/237/350/256/241.png +0 -0
  31. package/src/assets//346/212/204/350/241/250/351/207/215/344/274/240.png +0 -0
  32. package/src/assets//346/212/245/345/273/272/344/273/243/345/212/236.png +0 -0
  33. package/src/assets//346/226/275/345/260/201.png +0 -0
  34. package/src/assets//346/226/275/345/260/201/347/256/241/347/220/206.png +0 -0
  35. package/src/assets//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  36. package/src/assets//347/224/250/346/210/267/345/273/272/346/241/243.png +0 -0
  37. package/src/assets//347/224/250/346/210/267/350/256/260/345/275/225.png +0 -0
  38. package/src/assets//347/273/264/344/277/256/345/234/250/347/272/277/346/237/245/350/257/242.png +0 -0
  39. package/src/assets//347/273/264/344/277/256/347/231/273/350/256/260.png +0 -0
  40. package/src/assets//350/256/241/345/210/222/345/256/211/346/243/200.png +0 -0
  41. package/src/assets//350/256/241/345/210/222/347/273/237/350/256/241.png +0 -0
  42. package/src/assets//351/200/232/346/260/224/346/211/223/345/216/213/347/225/231/345/272/225.png +0 -0
  43. package/src/assets//351/223/205/345/260/201/347/256/241/347/220/206.png +0 -0
  44. package/src/assets//351/230/200/346/216/247/347/256/241/347/220/206.png +0 -0
  45. package/src/assets//351/235/236/345/261/205/346/260/221/345/256/211/346/243/200.png +0 -0
  46. package/src/assets//351/242/204/347/272/246/345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
  47. package/src/assets//351/246/226/351/241/265/345/244/247/345/233/276.png +0 -0
  48. package/src/components/AloneLoadParams.vue +26 -26
  49. package/src/components/AlreadyService.vue +193 -193
  50. package/src/components/AttendManage.vue +534 -415
  51. package/src/components/LoadAppdata.vue +38 -38
  52. package/src/components/LoginApp.vue +732 -725
  53. package/src/components/LoginAppNew.vue +587 -587
  54. package/src/components/LoginAppV4.vue +732 -0
  55. package/src/components/ModifyPassWord.vue +216 -216
  56. package/src/components/NavBottom.vue +117 -117
  57. package/src/components/NavBottomV.vue +141 -141
  58. package/src/components/NavBottomVVV.vue +185 -185
  59. package/src/components/OnlineManage.vue +256 -256
  60. package/src/components/PhoneAllInfo.vue +68 -68
  61. package/src/components/PhoneChangemeterInfo.vue +116 -116
  62. package/src/components/PhoneImageInfo.vue +102 -0
  63. package/src/components/PhoneInfoTable.vue +39 -39
  64. package/src/components/PhoneMeterInfo.vue +132 -132
  65. package/src/components/PhoneRepairInfo.vue +146 -146
  66. package/src/components/PhoneSafeInfo.vue +101 -101
  67. package/src/components/PhoneSellInfo.vue +148 -123
  68. package/src/components/PhoneSellInfoLite.vue +112 -112
  69. package/src/components/PhoneUser.vue +202 -202
  70. package/src/components/PhoneUserDetil.vue +70 -70
  71. package/src/components/PhoneUserFind.vue +138 -138
  72. package/src/components/RightTree.vue +217 -217
  73. package/src/components/SystemSetUp.vue +2 -0
  74. package/src/components/TabBarPhone.vue +81 -81
  75. package/src/components/Test.vue +14 -14
  76. package/src/components/ToolsPage.vue +199 -180
  77. package/src/components/UploadManage.vue +194 -194
  78. package/src/components/gaomi/NavBottomV.vue +223 -223
  79. package/src/components/gaomi/NavBottomVVVV.vue +210 -210
  80. package/src/components/gaomi/Scroller.vue +63 -63
  81. package/src/components/gaomi/SystemSetUp.vue +186 -186
  82. package/src/components/gaomi/ToolsPage.vue +168 -168
  83. package/src/components/idea/feedBack.vue +150 -150
  84. package/src/components/idea/feedbackAdd.vue +366 -366
  85. package/src/components/info/ConfigInfo.vue +122 -122
  86. package/src/components/info/FindUserInfo.vue +157 -157
  87. package/src/components/info/InfoTable.vue +37 -37
  88. package/src/components/iot/InstructMessage.vue +313 -313
  89. package/src/components/iot/IotBaseInfo.vue +97 -97
  90. package/src/components/iot/IotMeterInfo.vue +77 -77
  91. package/src/components/iot/iotMonitoringMain.vue +501 -501
  92. package/src/components/online/ApplyOnline.vue +581 -581
  93. package/src/components/online/BJZhongRan/ApplyOnline.vue +600 -600
  94. package/src/components/screen/ChargeContentPage.vue +656 -656
  95. package/src/components/screen/ContentPage.vue +611 -611
  96. package/src/components/screen/GongdanContentPage.vue +149 -149
  97. package/src/components/screen/ListCountItem.vue +93 -93
  98. package/src/components/screen/ModuleTitle.vue +48 -48
  99. package/src/components/screen/SafeOrderContentPage.vue +440 -440
  100. package/src/components/screen/SecurityCheckItem.vue +50 -50
  101. package/src/components/screen/TotalItem.vue +76 -76
  102. package/src/components/screen/TotalUserNumber.vue +77 -77
  103. package/src/components/screen/WorkOrderItem.vue +51 -51
  104. package/src/components/screen/WorkOrderRightDownItem.vue +103 -103
  105. package/src/components/screen/WorkOrderRightItem.vue +115 -115
  106. package/src/components/userinfo/paymentQuery.vue +189 -189
  107. package/src/components/userinfo/queryFile.vue +190 -190
  108. package/src/components/wasm.vue +18 -18
  109. package/src/expandcssAndroid.less +521 -521
  110. package/src/filiale/yulinyuchuan/AlreadyService.vue +194 -0
  111. package/src/filiale/yulinyuchuan/AttendManage.vue +537 -0
  112. package/src/filiale/yulinyuchuan/LoginApp.vue +741 -0
  113. package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -0
  114. package/src/filiale/yulinyuchuan/SystemSetUp.vue +332 -0
  115. package/src/filiale/yulinyuchuan/UploadManage.vue +195 -0
  116. package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -0
  117. package/src/index.js +9 -9
  118. package/src/main.js +38 -38
  119. package/src/plugins/const.js +404 -404
  120. package/src/plugins/vue-py.js +37 -37
  121. package/src/stores/AppData.js +91 -63
  122. package/src/systemphone-gaomi.js +105 -105
  123. package/src/systemphone.js +60 -58
  124. package/src/systemphonegrid.js +185 -210
  125. package/src/util/LdapHelper.js +75 -75
  126. package/static/const.js +404 -404
  127. package/static/layui/font/iconfont.svg +554 -554
  128. package/static/vue-py.js +37 -37
  129. package/static/wasm_exec.js +465 -465
@@ -1,141 +1,141 @@
1
- <template>
2
- <div class="nav-bgcolor">
3
- <div class="auto">
4
- <tools-page :need-back="!isMenu" :title="titleName" @back="back()" > </tools-page>
5
-
6
- <div class="row nav-bgcolor" v-show="isMenu" >
7
- <div class="col-sm-6 col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
8
- <img class="butt" :src="imgback(tab.name)">
9
- <p></p>
10
- <p class="navimagesfoot">{{tab.name}}</p>
11
- <p> </p>
12
- <p> </p>
13
- </div>
14
- </div>
15
- <!--<ul class="nav nav-tabs">-->
16
- <!--<li v-for="tab in tabs" @click="tabSelect(tab.link)" :class="{active: tab.link === componentName}">-->
17
- <!--<a href="#" class="tab-befor-img">-->
18
- <!--<img :src="tab.icon" style="height: 30px;width:30px;">{{tab.name}}</a>-->
19
- <!--</li>-->
20
- <!--<li @click="mute()">-->
21
- <!--<a href="#" class="repair-mute-class" >-->
22
- <!--<img src="../assets/guanbishengyin.png" style="height: 30px;width:30px;border-width:0">关闭声音</a>-->
23
- <!--</li>-->
24
- <!--</ul>-->
25
- <div class="row" style="overflow:auto;" v-show="!isMenu">
26
- <route v-ref:route> </route>
27
- </div>
28
- </div>
29
- </div>
30
- </template>
31
-
32
- <script scoped>
33
- import * as Util from '../Util'
34
- export default {
35
- title: '底部导航',
36
- data () {
37
- return {
38
- titleName:'主界面',
39
- isMenu:true,
40
- tabs: Util.f.functions,
41
- text: '导航组件this',
42
- beforeName:'主界面'
43
- }
44
- },
45
- ready () {
46
- // this.$refs.route.init('repair-first')
47
- },
48
- methods: {
49
- imgback(val){
50
- return require('../assets/'+val+'竖屏3.png')
51
- },
52
- // 返回主界面
53
- back(){
54
- this.titleName = '主界面'
55
- this.isMenu = true
56
- },
57
- gotopage(param,title) {
58
- if(title == '退出系统'){
59
- this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
60
- if (res === 'confirm') {
61
- this.$androidUtil.setPreference('f_repairman_id', 'x')
62
- this.$androidUtil.setPreference('f_repairman_name', 'x')
63
- this.$back()
64
- }
65
- })
66
- }else{
67
- this.isMenu = false
68
- if(this.beforeName == title){
69
- return
70
- }
71
- this.titleName = title
72
- this.beforeName = title
73
- let data = {
74
- sourcet: '竖屏'
75
- }
76
- if(title == '待办工单'){
77
- param = param+'V'
78
- }
79
- this.$refs.route.init(param,data)
80
- // if (param !== 'text-chat-pane') {
81
- // this.notified('false')
82
- // } else {
83
- // this.notified('true')
84
- // }
85
- }
86
- },
87
- // notified (stopped) {
88
- // console.log('txtServiceStopped invoked$')
89
- // if (this.$androidUtil.isAndroid) {
90
- // this.$androidUtil.setPreference('txtServiceStopped', stopped)
91
- // this.$androidUtil.setPreference('msgCount', '0')
92
- // }
93
- // },
94
- mute () {
95
- HostApp.mute()
96
- }
97
- },
98
- }
99
- </script>
100
- <style lang="less">
101
- .tab-befor-img {
102
- content: '';
103
- background-size: 30px;
104
- display: inline-block;
105
- margin-right: 8px;
106
- height: 30px;
107
- width: 30px;
108
- vertical-align: -35%;
109
- }
110
- .manbiankuang{
111
- width: 44%;
112
- margin-top: 15px;
113
- margin-left: 4%;
114
- border:1px solid #e3e3e3;
115
- border-radius:10px 10px 10px 10px;
116
- text-align: center;
117
- background-color: #ffffff;
118
- }
119
- .navimagesfoot{
120
- font-size: 14px;
121
- color: #666666;
122
- /* font-family: "Pingfhs";*/
123
- }
124
- .nav-bgcolor{
125
- background-color: #f0f0ef;
126
- }
127
- img[src=""],img:not([src]){
128
- opacity: 0;
129
- border:none;
130
- visibility: hidden;
131
- max-width: none;
132
- }
133
- /* .repair-mute-class {
134
- &::before {
135
- .tab-befor-img("../assets/guanbishengyin.png")
136
- }
137
- }*/
138
- .butt {margin-left: 20%; margin-right: 20%; margin-top: 15%; height: 20%; width: 20%; border-radius: 5%; text-align: center;align-items:center;}
139
- .butt div.content {line-height:320%; height: 100%; font-size: 48px; color: white; text-align:center;}
140
- .butt span{ width: 100%; font-size: 48px; color: white; text-align: center;}
141
- </style>
1
+ <template>
2
+ <div class="nav-bgcolor">
3
+ <div class="auto">
4
+ <tools-page :need-back="!isMenu" :title="titleName" @back="back()" > </tools-page>
5
+
6
+ <div class="row nav-bgcolor" v-show="isMenu" >
7
+ <div class="col-sm-6 col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
8
+ <img class="butt" :src="imgback(tab.name)">
9
+ <p></p>
10
+ <p class="navimagesfoot">{{tab.name}}</p>
11
+ <p> </p>
12
+ <p> </p>
13
+ </div>
14
+ </div>
15
+ <!--<ul class="nav nav-tabs">-->
16
+ <!--<li v-for="tab in tabs" @click="tabSelect(tab.link)" :class="{active: tab.link === componentName}">-->
17
+ <!--<a href="#" class="tab-befor-img">-->
18
+ <!--<img :src="tab.icon" style="height: 30px;width:30px;">{{tab.name}}</a>-->
19
+ <!--</li>-->
20
+ <!--<li @click="mute()">-->
21
+ <!--<a href="#" class="repair-mute-class" >-->
22
+ <!--<img src="../assets/guanbishengyin.png" style="height: 30px;width:30px;border-width:0">关闭声音</a>-->
23
+ <!--</li>-->
24
+ <!--</ul>-->
25
+ <div class="row" style="overflow:auto;" v-show="!isMenu">
26
+ <route v-ref:route> </route>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </template>
31
+
32
+ <script scoped>
33
+ import * as Util from '../Util'
34
+ export default {
35
+ title: '底部导航',
36
+ data () {
37
+ return {
38
+ titleName:'主界面',
39
+ isMenu:true,
40
+ tabs: Util.f.functions,
41
+ text: '导航组件this',
42
+ beforeName:'主界面'
43
+ }
44
+ },
45
+ ready () {
46
+ // this.$refs.route.init('repair-first')
47
+ },
48
+ methods: {
49
+ imgback(val){
50
+ return require('../assets/'+val+'竖屏3.png')
51
+ },
52
+ // 返回主界面
53
+ back(){
54
+ this.titleName = '主界面'
55
+ this.isMenu = true
56
+ },
57
+ gotopage(param,title) {
58
+ if(title == '退出系统'){
59
+ this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
60
+ if (res === 'confirm') {
61
+ this.$androidUtil.setPreference('f_repairman_id', 'x')
62
+ this.$androidUtil.setPreference('f_repairman_name', 'x')
63
+ this.$back()
64
+ }
65
+ })
66
+ }else{
67
+ this.isMenu = false
68
+ if(this.beforeName == title){
69
+ return
70
+ }
71
+ this.titleName = title
72
+ this.beforeName = title
73
+ let data = {
74
+ sourcet: '竖屏'
75
+ }
76
+ if(title == '待办工单'){
77
+ param = param+'V'
78
+ }
79
+ this.$refs.route.init(param,data)
80
+ // if (param !== 'text-chat-pane') {
81
+ // this.notified('false')
82
+ // } else {
83
+ // this.notified('true')
84
+ // }
85
+ }
86
+ },
87
+ // notified (stopped) {
88
+ // console.log('txtServiceStopped invoked$')
89
+ // if (this.$androidUtil.isAndroid) {
90
+ // this.$androidUtil.setPreference('txtServiceStopped', stopped)
91
+ // this.$androidUtil.setPreference('msgCount', '0')
92
+ // }
93
+ // },
94
+ mute () {
95
+ HostApp.mute()
96
+ }
97
+ },
98
+ }
99
+ </script>
100
+ <style lang="less">
101
+ .tab-befor-img {
102
+ content: '';
103
+ background-size: 30px;
104
+ display: inline-block;
105
+ margin-right: 8px;
106
+ height: 30px;
107
+ width: 30px;
108
+ vertical-align: -35%;
109
+ }
110
+ .manbiankuang{
111
+ width: 44%;
112
+ margin-top: 15px;
113
+ margin-left: 4%;
114
+ border:1px solid #e3e3e3;
115
+ border-radius:10px 10px 10px 10px;
116
+ text-align: center;
117
+ background-color: #ffffff;
118
+ }
119
+ .navimagesfoot{
120
+ font-size: 14px;
121
+ color: #666666;
122
+ /* font-family: "Pingfhs";*/
123
+ }
124
+ .nav-bgcolor{
125
+ background-color: #f0f0ef;
126
+ }
127
+ img[src=""],img:not([src]){
128
+ opacity: 0;
129
+ border:none;
130
+ visibility: hidden;
131
+ max-width: none;
132
+ }
133
+ /* .repair-mute-class {
134
+ &::before {
135
+ .tab-befor-img("../assets/guanbishengyin.png")
136
+ }
137
+ }*/
138
+ .butt {margin-left: 20%; margin-right: 20%; margin-top: 15%; height: 20%; width: 20%; border-radius: 5%; text-align: center;align-items:center;}
139
+ .butt div.content {line-height:320%; height: 100%; font-size: 48px; color: white; text-align:center;}
140
+ .butt span{ width: 100%; font-size: 48px; color: white; text-align: center;}
141
+ </style>
@@ -1,185 +1,185 @@
1
- <template>
2
- <div style="height: 7%">
3
- <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
4
- </div>
5
- <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
6
- <div class="row" :style="isMenu?'overflow-y: scroll;overflow-x: hidden;height:80vh':'overflow-y: scroll;overflow-x: hidden;'">
7
- <route v-ref:route> </route>
8
- </div>
9
- <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
10
- </tab-bar>
11
- </div>
12
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="业务提醒">
13
- <header slot="modal-header" class="modal-header">
14
- <h4 class="modal-title">业务提醒</h4>
15
- </header>
16
- <article slot="modal-body" class="modal-body">
17
- <div class="form-group" style="text-align: center">
18
- 安检代办:{{result.safe[0].safenum}}条,其中预约单{{result.safeorder[0].safeyuyuenum}}条 <br/>
19
- 维修代办:{{result.tel[0].telnum}}条,其中预约单{{result.telorder[0].telyuyuenum}}条<br/>
20
- 报建代办:{{result.apply[0].applynum}}条,其中预约单{{result.applyorder[0].applyyuyuenum}}条<br/>
21
- </div>
22
- </article>
23
- <footer slot="modal-footer" class="modal-footer">
24
- <button type="button" @click="closeFile" style="background-color: limegreen;color: white">确定</button>
25
- </footer>
26
- </modal>
27
- </template>
28
-
29
- <script>
30
-
31
- import {HttpResetClass} from "vue-client";
32
- import Vue from 'vue'
33
- export default {
34
- title: 'app',
35
- data: function () {
36
- return {
37
- item: 0,
38
- isMenu:true,
39
- beforeName:'主界面',
40
- titleName:'待办工作',
41
- backthis:'',
42
- safe:false,
43
- showFile:false,
44
- beforetabs:[],
45
- iftabbar:'',
46
- result:[]
47
- }
48
- },
49
- ready(){
50
- let zhi=this.$appdata.getSingleValue('是否开启代办提醒')
51
- if(zhi=='是'){
52
- console.log("99999",Vue.user)
53
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/getModuleUpcoming`,{
54
- id:Vue.user.id,
55
- name:Vue.user.name,
56
- orgid:Vue.user.orgid
57
- }).then(res=>{
58
- console.log("888888===>"+JSON.stringify(res.data))
59
- this.result = res.data
60
- this.showFile=true
61
- // this.$showMessage(`你有${result.safe[0].safenum}条需要处理的安检待办业务,<br/>
62
- // ${result.safeorder[0].safeyuyuenum}条需要处理的安检预约业务,<br/>
63
- // ${result.tel[0].telnum}条需要处理的维修待办业务,<br/>
64
- // ${result.telorder[0].telyuyuenum}条需要处理的维修预约业务,<br/>
65
- // ${result.applyorder[0].applyyuyuenum}条需要处理的报建预约业务,<br/>
66
- // ${result.apply[0].applynum}条需要处理的报建待办业务`)
67
- })
68
- }
69
- },
70
- methods: {
71
- closeFile(){
72
- this.showFile=false
73
- },
74
- back (flag){
75
- if(this.safe && flag == '返回' ){
76
- this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
77
- if (res === 'confirm') {
78
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
79
- this.delback()
80
- this.backthis.$back()
81
- this.closeAndDelAudio()
82
- }
83
- })
84
- }else{
85
- this.delback()
86
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
87
- this.backthis.$back()
88
- }
89
- },
90
- delback(){
91
- // 先确认出 前一个组件的名字
92
- var title = this.beforeName
93
- var beforetitle = '主界面'
94
- var j = -1
95
- for(var i = 0;i<this.beforetabs.length;i++){
96
- if(this.beforetabs[i].titleName == title){
97
- beforetitle = this.beforetabs[i].beforeName
98
- this.backthis =this.beforetabs[i].backthis
99
- this.safe = this.beforetabs[i].safe
100
- j = i
101
- break;
102
- }
103
- }
104
- this.beforetabs.splice(j + 1, 1)
105
- this.beforeName = beforetitle
106
- this.titleName = title
107
- // 判断是否 显示底层导航
108
- if(this.iftabbar == this.titleName){
109
- this.isMenu = true
110
- }
111
- },
112
- onClickTabBarItem(titlefg) {
113
- var param = titlefg.link
114
- if(titlefg.name == '退出系统'){
115
- this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
116
- if (res === 'confirm') {
117
- this.$androidUtil.setPreference('f_repairman_id', 'x')
118
- this.$androidUtil.setPreference('f_repairman_name', 'x')
119
- this.$back()
120
- }
121
- })
122
- }else{
123
- if(this.beforeName == titlefg.name){
124
- return
125
- }
126
- this.titleName = titlefg.name
127
- this.beforeName = titlefg.name
128
- let data = {
129
- sourcet: '竖屏'
130
- }
131
- // if(titlefg.name == '待办工单'){
132
- // param = param+'V'
133
- // }
134
- this.$refs.route.init(param,data)
135
- }
136
- },
137
- closeAndDelAudio() {
138
- console.log("停止无限制录音")
139
- HostApp.startOrStopAudioClip("-----","停止录音")
140
- }
141
- },
142
- events: {
143
- 'gotoson': function (prpdata) {
144
- // 事件回调内的 `this` 自动绑定到注册它的实例上
145
- // safe 返回事件是否进行判断后再返回
146
- // 每进入一次,beforetabs 数组添加 返回 删除
147
- this.backthis = prpdata._this
148
- this.safe = prpdata.safe
149
- this.isMenu = false
150
- // 记录本次跳转
151
- var beforedata = {
152
- beforeName: this.titleName,
153
- titleName: prpdata.title,
154
- backthis:prpdata._this,
155
- safe:prpdata.safe
156
- }
157
- this.beforetabs.push(beforedata)
158
- if( this.beforetabs.length == 1){
159
- this.iftabbar = beforedata.beforeName
160
- }
161
- // 写入跳转后 前后组件名字
162
- this.beforeName = this.titleName
163
- this.titleName = prpdata.title
164
-
165
- console.log('进入子组件,通知外层组件,我已经进入')
166
- },
167
- 'confirm': function () {
168
- // 提交处理返回事件
169
- this.back('提交')
170
- },
171
- 'backarrdel': function () {
172
- this.delback()
173
- },
174
- 'gologin': function () {
175
- this.beforetabs = []
176
- this.$back()
177
- }
178
- }
179
- }
180
- </script>
181
- <style scoped>
182
- .app-height{
183
- height: 93%;
184
- }
185
- </style>
1
+ <template>
2
+ <div style="height: 7%">
3
+ <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
4
+ </div>
5
+ <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
6
+ <div class="row" :style="isMenu?'overflow-y: scroll;overflow-x: hidden;height:80vh':'overflow-y: scroll;overflow-x: hidden;'">
7
+ <route v-ref:route> </route>
8
+ </div>
9
+ <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
10
+ </tab-bar>
11
+ </div>
12
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="业务提醒">
13
+ <header slot="modal-header" class="modal-header">
14
+ <h4 class="modal-title">业务提醒</h4>
15
+ </header>
16
+ <article slot="modal-body" class="modal-body">
17
+ <div class="form-group" style="text-align: center">
18
+ 安检代办:{{result.safe[0].safenum}}条,其中预约单{{result.safeorder[0].safeyuyuenum}}条 <br/>
19
+ 维修代办:{{result.tel[0].telnum}}条,其中预约单{{result.telorder[0].telyuyuenum}}条<br/>
20
+ 报建代办:{{result.apply[0].applynum}}条,其中预约单{{result.applyorder[0].applyyuyuenum}}条<br/>
21
+ </div>
22
+ </article>
23
+ <footer slot="modal-footer" class="modal-footer">
24
+ <button type="button" @click="closeFile" style="background-color: limegreen;color: white">确定</button>
25
+ </footer>
26
+ </modal>
27
+ </template>
28
+
29
+ <script>
30
+
31
+ import {HttpResetClass} from "vue-client";
32
+ import Vue from 'vue'
33
+ export default {
34
+ title: 'app',
35
+ data: function () {
36
+ return {
37
+ item: 0,
38
+ isMenu:true,
39
+ beforeName:'主界面',
40
+ titleName:'待办工作',
41
+ backthis:'',
42
+ safe:false,
43
+ showFile:false,
44
+ beforetabs:[],
45
+ iftabbar:'',
46
+ result:[]
47
+ }
48
+ },
49
+ ready(){
50
+ let zhi=this.$appdata.getSingleValue('是否开启代办提醒')
51
+ if(zhi=='是'){
52
+ console.log("99999",Vue.user)
53
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/getModuleUpcoming`,{
54
+ id:Vue.user.id,
55
+ name:Vue.user.name,
56
+ orgid:Vue.user.orgid
57
+ }).then(res=>{
58
+ console.log("888888===>"+JSON.stringify(res.data))
59
+ this.result = res.data
60
+ this.showFile=true
61
+ // this.$showMessage(`你有${result.safe[0].safenum}条需要处理的安检待办业务,<br/>
62
+ // ${result.safeorder[0].safeyuyuenum}条需要处理的安检预约业务,<br/>
63
+ // ${result.tel[0].telnum}条需要处理的维修待办业务,<br/>
64
+ // ${result.telorder[0].telyuyuenum}条需要处理的维修预约业务,<br/>
65
+ // ${result.applyorder[0].applyyuyuenum}条需要处理的报建预约业务,<br/>
66
+ // ${result.apply[0].applynum}条需要处理的报建待办业务`)
67
+ })
68
+ }
69
+ },
70
+ methods: {
71
+ closeFile(){
72
+ this.showFile=false
73
+ },
74
+ back (flag){
75
+ if(this.safe && flag == '返回' ){
76
+ this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
77
+ if (res === 'confirm') {
78
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
79
+ this.delback()
80
+ this.backthis.$back()
81
+ this.closeAndDelAudio()
82
+ }
83
+ })
84
+ }else{
85
+ this.delback()
86
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
87
+ this.backthis.$back()
88
+ }
89
+ },
90
+ delback(){
91
+ // 先确认出 前一个组件的名字
92
+ var title = this.beforeName
93
+ var beforetitle = '主界面'
94
+ var j = -1
95
+ for(var i = 0;i<this.beforetabs.length;i++){
96
+ if(this.beforetabs[i].titleName == title){
97
+ beforetitle = this.beforetabs[i].beforeName
98
+ this.backthis =this.beforetabs[i].backthis
99
+ this.safe = this.beforetabs[i].safe
100
+ j = i
101
+ break;
102
+ }
103
+ }
104
+ this.beforetabs.splice(j + 1, 1)
105
+ this.beforeName = beforetitle
106
+ this.titleName = title
107
+ // 判断是否 显示底层导航
108
+ if(this.iftabbar == this.titleName){
109
+ this.isMenu = true
110
+ }
111
+ },
112
+ onClickTabBarItem(titlefg) {
113
+ var param = titlefg.link
114
+ if(titlefg.name == '退出系统'){
115
+ this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
116
+ if (res === 'confirm') {
117
+ this.$androidUtil.setPreference('f_repairman_id', 'x')
118
+ this.$androidUtil.setPreference('f_repairman_name', 'x')
119
+ this.$back()
120
+ }
121
+ })
122
+ }else{
123
+ if(this.beforeName == titlefg.name){
124
+ return
125
+ }
126
+ this.titleName = titlefg.name
127
+ this.beforeName = titlefg.name
128
+ let data = {
129
+ sourcet: '竖屏'
130
+ }
131
+ // if(titlefg.name == '待办工单'){
132
+ // param = param+'V'
133
+ // }
134
+ this.$refs.route.init(param,data)
135
+ }
136
+ },
137
+ closeAndDelAudio() {
138
+ console.log("停止无限制录音")
139
+ HostApp.startOrStopAudioClip("-----","停止录音")
140
+ }
141
+ },
142
+ events: {
143
+ 'gotoson': function (prpdata) {
144
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
145
+ // safe 返回事件是否进行判断后再返回
146
+ // 每进入一次,beforetabs 数组添加 返回 删除
147
+ this.backthis = prpdata._this
148
+ this.safe = prpdata.safe
149
+ this.isMenu = false
150
+ // 记录本次跳转
151
+ var beforedata = {
152
+ beforeName: this.titleName,
153
+ titleName: prpdata.title,
154
+ backthis:prpdata._this,
155
+ safe:prpdata.safe
156
+ }
157
+ this.beforetabs.push(beforedata)
158
+ if( this.beforetabs.length == 1){
159
+ this.iftabbar = beforedata.beforeName
160
+ }
161
+ // 写入跳转后 前后组件名字
162
+ this.beforeName = this.titleName
163
+ this.titleName = prpdata.title
164
+
165
+ console.log('进入子组件,通知外层组件,我已经进入')
166
+ },
167
+ 'confirm': function () {
168
+ // 提交处理返回事件
169
+ this.back('提交')
170
+ },
171
+ 'backarrdel': function () {
172
+ this.delback()
173
+ },
174
+ 'gologin': function () {
175
+ this.beforetabs = []
176
+ this.$back()
177
+ }
178
+ }
179
+ }
180
+ </script>
181
+ <style scoped>
182
+ .app-height{
183
+ height: 93%;
184
+ }
185
+ </style>