system-phone 3.1.1 → 3.1.4

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 (106) 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//346/215/242/350/241/250/347/273/264/344/277/256.png +0 -0
  14. package/src/assets//351/200/232/347/224/250/350/203/214/346/231/257/345/233/276.png +0 -0
  15. package/src/components/AloneLoadParams.vue +26 -26
  16. package/src/components/AlreadyService.vue +193 -193
  17. package/src/components/AttendManage.vue +534 -534
  18. package/src/components/LoadAppdata.vue +38 -38
  19. package/src/components/LoginApp.vue +732 -732
  20. package/src/components/LoginAppNew.vue +587 -587
  21. package/src/components/LoginAppV4.vue +716 -716
  22. package/src/components/ModifyPassWord.vue +216 -216
  23. package/src/components/NavBottom.vue +117 -117
  24. package/src/components/NavBottomV.vue +141 -141
  25. package/src/components/NavBottomVVV.vue +185 -185
  26. package/src/components/OnlineManage.vue +256 -256
  27. package/src/components/PhoneAllInfo.vue +68 -68
  28. package/src/components/PhoneChangemeterInfo.vue +116 -116
  29. package/src/components/PhoneImageInfo.vue +102 -102
  30. package/src/components/PhoneInfoTable.vue +39 -39
  31. package/src/components/PhoneMeterInfo.vue +132 -132
  32. package/src/components/PhoneRepairInfo.vue +146 -146
  33. package/src/components/PhoneSafeInfo.vue +101 -101
  34. package/src/components/PhoneSellInfo.vue +148 -148
  35. package/src/components/PhoneSellInfoLite.vue +112 -112
  36. package/src/components/PhoneUser.vue +202 -202
  37. package/src/components/PhoneUserDetil.vue +70 -70
  38. package/src/components/PhoneUserFind.vue +138 -138
  39. package/src/components/RightTree.vue +217 -217
  40. package/src/components/SystemSetUp.vue +332 -332
  41. package/src/components/TabBarPhone.vue +81 -81
  42. package/src/components/Test.vue +14 -14
  43. package/src/components/ToolsPage.vue +199 -199
  44. package/src/components/UploadManage.vue +194 -194
  45. package/src/components/gaomi/NavBottomV.vue +223 -223
  46. package/src/components/gaomi/NavBottomVVVV.vue +210 -210
  47. package/src/components/gaomi/Scroller.vue +63 -63
  48. package/src/components/gaomi/SystemSetUp.vue +186 -186
  49. package/src/components/gaomi/ToolsPage.vue +168 -168
  50. package/src/components/idea/feedBack.vue +150 -150
  51. package/src/components/idea/feedbackAdd.vue +366 -366
  52. package/src/components/info/ConfigInfo.vue +122 -122
  53. package/src/components/info/FindUserInfo.vue +157 -157
  54. package/src/components/info/InfoTable.vue +37 -37
  55. package/src/components/iot/InstructMessage.vue +313 -313
  56. package/src/components/iot/IotBaseInfo.vue +97 -97
  57. package/src/components/iot/IotMeterInfo.vue +77 -77
  58. package/src/components/iot/iotMonitoringMain.vue +501 -501
  59. package/src/components/online/ApplyOnline.vue +581 -581
  60. package/src/components/online/BJZhongRan/ApplyOnline.vue +600 -600
  61. package/src/components/screen/ChargeContentPage.vue +656 -656
  62. package/src/components/screen/ContentPage.vue +611 -611
  63. package/src/components/screen/GongdanContentPage.vue +149 -149
  64. package/src/components/screen/ListCountItem.vue +93 -93
  65. package/src/components/screen/ModuleTitle.vue +48 -48
  66. package/src/components/screen/SafeOrderContentPage.vue +440 -440
  67. package/src/components/screen/SecurityCheckItem.vue +50 -50
  68. package/src/components/screen/TotalItem.vue +76 -76
  69. package/src/components/screen/TotalUserNumber.vue +77 -77
  70. package/src/components/screen/WorkOrderItem.vue +51 -51
  71. package/src/components/screen/WorkOrderRightDownItem.vue +103 -103
  72. package/src/components/screen/WorkOrderRightItem.vue +115 -115
  73. package/src/components/userinfo/paymentQuery.vue +189 -189
  74. package/src/components/userinfo/queryFile.vue +190 -190
  75. package/src/components/wasm.vue +18 -18
  76. package/src/expandcssAndroid.less +521 -521
  77. package/src/filiale/liaoyuan/NavBottomVVV.vue +186 -0
  78. package/src/filiale/liaoyuan/ToolsPage.vue +199 -0
  79. package/src/filiale/liaoyuan/systemphonegrid.js +5 -0
  80. package/src/filiale/yulinyuchuan/AlreadyService.vue +194 -194
  81. package/src/filiale/yulinyuchuan/AttendManage.vue +537 -537
  82. package/src/filiale/yulinyuchuan/LoginApp.vue +741 -741
  83. package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -256
  84. package/src/filiale/yulinyuchuan/SystemSetUp.vue +332 -332
  85. package/src/filiale/yulinyuchuan/UploadManage.vue +195 -195
  86. package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -9
  87. package/src/filiale/yulinyuchuanTY/AlreadyService.vue +194 -0
  88. package/src/filiale/yulinyuchuanTY/AttendManage.vue +537 -0
  89. package/src/filiale/yulinyuchuanTY/LoginApp.vue +741 -0
  90. package/src/filiale/yulinyuchuanTY/OnlineManage.vue +256 -0
  91. package/src/filiale/yulinyuchuanTY/SystemSetUp.vue +332 -0
  92. package/src/filiale/yulinyuchuanTY/UploadManage.vue +195 -0
  93. package/src/filiale/yulinyuchuanTY/systemphonegrid.js +9 -0
  94. package/src/index.js +9 -9
  95. package/src/main.js +38 -38
  96. package/src/plugins/const.js +404 -404
  97. package/src/plugins/vue-py.js +37 -37
  98. package/src/stores/AppData.js +79 -79
  99. package/src/systemphone-gaomi.js +105 -105
  100. package/src/systemphone.js +60 -60
  101. package/src/systemphonegrid.js +185 -185
  102. package/src/util/LdapHelper.js +75 -75
  103. package/static/const.js +404 -404
  104. package/static/layui/font/iconfont.svg +554 -554
  105. package/static/vue-py.js +37 -37
  106. 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>