system-phone 3.1.28 → 3.1.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.
@@ -1,4 +1,4 @@
1
- let specialComp = {
2
- 'login-app-v4': (resolve) => { require(['./LoginAppV4'], resolve) },
3
- }
4
- exports.specialComp = specialComp
1
+ let specialComp = {
2
+ 'login-app-v4': (resolve) => { require(['./LoginAppV4'], resolve) },
3
+ }
4
+ exports.specialComp = specialComp
@@ -1,186 +1,186 @@
1
- <template>
2
- <div style="height: 5%;background-color: #499edf;"></div>
3
- <div style="height: 7%">
4
- <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
5
- </div>
6
- <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
7
- <div class="row" :style="isMenu?'overflow-y: scroll;overflow-x: hidden;height:80vh':'overflow-y: scroll;overflow-x: hidden;'">
8
- <route v-ref:route> </route>
9
- </div>
10
- <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
11
- </tab-bar>
12
- </div>
13
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="业务提醒">
14
- <header slot="modal-header" class="modal-header">
15
- <h4 class="modal-title">业务提醒</h4>
16
- </header>
17
- <article slot="modal-body" class="modal-body">
18
- <div class="form-group" style="text-align: center">
19
- 安检代办:{{result.safe[0].safenum}}条,其中预约单{{result.safeorder[0].safeyuyuenum}}条 <br/>
20
- 维修代办:{{result.tel[0].telnum}}条,其中预约单{{result.telorder[0].telyuyuenum}}条<br/>
21
- 报建代办:{{result.apply[0].applynum}}条,其中预约单{{result.applyorder[0].applyyuyuenum}}条<br/>
22
- </div>
23
- </article>
24
- <footer slot="modal-footer" class="modal-footer">
25
- <button type="button" @click="closeFile" style="background-color: limegreen;color: white">确定</button>
26
- </footer>
27
- </modal>
28
- </template>
29
-
30
- <script>
31
-
32
- import {HttpResetClass} from "vue-client";
33
- import Vue from 'vue'
34
- export default {
35
- title: 'app',
36
- data: function () {
37
- return {
38
- item: 0,
39
- isMenu:true,
40
- beforeName:'主界面',
41
- titleName:'待办工作',
42
- backthis:'',
43
- safe:false,
44
- showFile:false,
45
- beforetabs:[],
46
- iftabbar:'',
47
- result:[]
48
- }
49
- },
50
- ready(){
51
- let zhi=this.$appdata.getSingleValue('是否开启代办提醒')
52
- if(zhi=='是'){
53
- console.log("99999",Vue.user)
54
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/getModuleUpcoming`,{
55
- id:Vue.user.id,
56
- name:Vue.user.name,
57
- orgid:Vue.user.orgid
58
- }).then(res=>{
59
- console.log("888888===>"+JSON.stringify(res.data))
60
- this.result = res.data
61
- this.showFile=true
62
- // this.$showMessage(`你有${result.safe[0].safenum}条需要处理的安检待办业务,<br/>
63
- // ${result.safeorder[0].safeyuyuenum}条需要处理的安检预约业务,<br/>
64
- // ${result.tel[0].telnum}条需要处理的维修待办业务,<br/>
65
- // ${result.telorder[0].telyuyuenum}条需要处理的维修预约业务,<br/>
66
- // ${result.applyorder[0].applyyuyuenum}条需要处理的报建预约业务,<br/>
67
- // ${result.apply[0].applynum}条需要处理的报建待办业务`)
68
- })
69
- }
70
- },
71
- methods: {
72
- closeFile(){
73
- this.showFile=false
74
- },
75
- back (flag){
76
- if(this.safe && flag == '返回' ){
77
- this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
78
- if (res === 'confirm') {
79
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
80
- this.delback()
81
- this.backthis.$back()
82
- this.closeAndDelAudio()
83
- }
84
- })
85
- }else{
86
- this.delback()
87
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
88
- this.backthis.$back()
89
- }
90
- },
91
- delback(){
92
- // 先确认出 前一个组件的名字
93
- var title = this.beforeName
94
- var beforetitle = '主界面'
95
- var j = -1
96
- for(var i = 0;i<this.beforetabs.length;i++){
97
- if(this.beforetabs[i].titleName == title){
98
- beforetitle = this.beforetabs[i].beforeName
99
- this.backthis =this.beforetabs[i].backthis
100
- this.safe = this.beforetabs[i].safe
101
- j = i
102
- break;
103
- }
104
- }
105
- this.beforetabs.splice(j + 1, 1)
106
- this.beforeName = beforetitle
107
- this.titleName = title
108
- // 判断是否 显示底层导航
109
- if(this.iftabbar == this.titleName){
110
- this.isMenu = true
111
- }
112
- },
113
- onClickTabBarItem(titlefg) {
114
- var param = titlefg.link
115
- if(titlefg.name == '退出系统'){
116
- this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
117
- if (res === 'confirm') {
118
- this.$androidUtil.setPreference('f_repairman_id', 'x')
119
- this.$androidUtil.setPreference('f_repairman_name', 'x')
120
- this.$back()
121
- }
122
- })
123
- }else{
124
- if(this.beforeName == titlefg.name){
125
- return
126
- }
127
- this.titleName = titlefg.name
128
- this.beforeName = titlefg.name
129
- let data = {
130
- sourcet: '竖屏'
131
- }
132
- // if(titlefg.name == '待办工单'){
133
- // param = param+'V'
134
- // }
135
- this.$refs.route.init(param,data)
136
- }
137
- },
138
- closeAndDelAudio() {
139
- console.log("停止无限制录音")
140
- HostApp.startOrStopAudioClip("-----","停止录音")
141
- }
142
- },
143
- events: {
144
- 'gotoson': function (prpdata) {
145
- // 事件回调内的 `this` 自动绑定到注册它的实例上
146
- // safe 返回事件是否进行判断后再返回
147
- // 每进入一次,beforetabs 数组添加 返回 删除
148
- this.backthis = prpdata._this
149
- this.safe = prpdata.safe
150
- this.isMenu = false
151
- // 记录本次跳转
152
- var beforedata = {
153
- beforeName: this.titleName,
154
- titleName: prpdata.title,
155
- backthis:prpdata._this,
156
- safe:prpdata.safe
157
- }
158
- this.beforetabs.push(beforedata)
159
- if( this.beforetabs.length == 1){
160
- this.iftabbar = beforedata.beforeName
161
- }
162
- // 写入跳转后 前后组件名字
163
- this.beforeName = this.titleName
164
- this.titleName = prpdata.title
165
-
166
- console.log('进入子组件,通知外层组件,我已经进入')
167
- },
168
- 'confirm': function () {
169
- // 提交处理返回事件
170
- this.back('提交')
171
- },
172
- 'backarrdel': function () {
173
- this.delback()
174
- },
175
- 'gologin': function () {
176
- this.beforetabs = []
177
- this.$back()
178
- }
179
- }
180
- }
181
- </script>
182
- <style scoped>
183
- .app-height{
184
- height: 93%;
185
- }
186
- </style>
1
+ <template>
2
+ <div style="height: 5%;background-color: #499edf;"></div>
3
+ <div style="height: 7%">
4
+ <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
5
+ </div>
6
+ <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
7
+ <div class="row" :style="isMenu?'overflow-y: scroll;overflow-x: hidden;height:80vh':'overflow-y: scroll;overflow-x: hidden;'">
8
+ <route v-ref:route> </route>
9
+ </div>
10
+ <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
11
+ </tab-bar>
12
+ </div>
13
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="业务提醒">
14
+ <header slot="modal-header" class="modal-header">
15
+ <h4 class="modal-title">业务提醒</h4>
16
+ </header>
17
+ <article slot="modal-body" class="modal-body">
18
+ <div class="form-group" style="text-align: center">
19
+ 安检代办:{{result.safe[0].safenum}}条,其中预约单{{result.safeorder[0].safeyuyuenum}}条 <br/>
20
+ 维修代办:{{result.tel[0].telnum}}条,其中预约单{{result.telorder[0].telyuyuenum}}条<br/>
21
+ 报建代办:{{result.apply[0].applynum}}条,其中预约单{{result.applyorder[0].applyyuyuenum}}条<br/>
22
+ </div>
23
+ </article>
24
+ <footer slot="modal-footer" class="modal-footer">
25
+ <button type="button" @click="closeFile" style="background-color: limegreen;color: white">确定</button>
26
+ </footer>
27
+ </modal>
28
+ </template>
29
+
30
+ <script>
31
+
32
+ import {HttpResetClass} from "vue-client";
33
+ import Vue from 'vue'
34
+ export default {
35
+ title: 'app',
36
+ data: function () {
37
+ return {
38
+ item: 0,
39
+ isMenu:true,
40
+ beforeName:'主界面',
41
+ titleName:'待办工作',
42
+ backthis:'',
43
+ safe:false,
44
+ showFile:false,
45
+ beforetabs:[],
46
+ iftabbar:'',
47
+ result:[]
48
+ }
49
+ },
50
+ ready(){
51
+ let zhi=this.$appdata.getSingleValue('是否开启代办提醒')
52
+ if(zhi=='是'){
53
+ console.log("99999",Vue.user)
54
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/getModuleUpcoming`,{
55
+ id:Vue.user.id,
56
+ name:Vue.user.name,
57
+ orgid:Vue.user.orgid
58
+ }).then(res=>{
59
+ console.log("888888===>"+JSON.stringify(res.data))
60
+ this.result = res.data
61
+ this.showFile=true
62
+ // this.$showMessage(`你有${result.safe[0].safenum}条需要处理的安检待办业务,<br/>
63
+ // ${result.safeorder[0].safeyuyuenum}条需要处理的安检预约业务,<br/>
64
+ // ${result.tel[0].telnum}条需要处理的维修待办业务,<br/>
65
+ // ${result.telorder[0].telyuyuenum}条需要处理的维修预约业务,<br/>
66
+ // ${result.applyorder[0].applyyuyuenum}条需要处理的报建预约业务,<br/>
67
+ // ${result.apply[0].applynum}条需要处理的报建待办业务`)
68
+ })
69
+ }
70
+ },
71
+ methods: {
72
+ closeFile(){
73
+ this.showFile=false
74
+ },
75
+ back (flag){
76
+ if(this.safe && flag == '返回' ){
77
+ this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
78
+ if (res === 'confirm') {
79
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
80
+ this.delback()
81
+ this.backthis.$back()
82
+ this.closeAndDelAudio()
83
+ }
84
+ })
85
+ }else{
86
+ this.delback()
87
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
88
+ this.backthis.$back()
89
+ }
90
+ },
91
+ delback(){
92
+ // 先确认出 前一个组件的名字
93
+ var title = this.beforeName
94
+ var beforetitle = '主界面'
95
+ var j = -1
96
+ for(var i = 0;i<this.beforetabs.length;i++){
97
+ if(this.beforetabs[i].titleName == title){
98
+ beforetitle = this.beforetabs[i].beforeName
99
+ this.backthis =this.beforetabs[i].backthis
100
+ this.safe = this.beforetabs[i].safe
101
+ j = i
102
+ break;
103
+ }
104
+ }
105
+ this.beforetabs.splice(j + 1, 1)
106
+ this.beforeName = beforetitle
107
+ this.titleName = title
108
+ // 判断是否 显示底层导航
109
+ if(this.iftabbar == this.titleName){
110
+ this.isMenu = true
111
+ }
112
+ },
113
+ onClickTabBarItem(titlefg) {
114
+ var param = titlefg.link
115
+ if(titlefg.name == '退出系统'){
116
+ this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
117
+ if (res === 'confirm') {
118
+ this.$androidUtil.setPreference('f_repairman_id', 'x')
119
+ this.$androidUtil.setPreference('f_repairman_name', 'x')
120
+ this.$back()
121
+ }
122
+ })
123
+ }else{
124
+ if(this.beforeName == titlefg.name){
125
+ return
126
+ }
127
+ this.titleName = titlefg.name
128
+ this.beforeName = titlefg.name
129
+ let data = {
130
+ sourcet: '竖屏'
131
+ }
132
+ // if(titlefg.name == '待办工单'){
133
+ // param = param+'V'
134
+ // }
135
+ this.$refs.route.init(param,data)
136
+ }
137
+ },
138
+ closeAndDelAudio() {
139
+ console.log("停止无限制录音")
140
+ HostApp.startOrStopAudioClip("-----","停止录音")
141
+ }
142
+ },
143
+ events: {
144
+ 'gotoson': function (prpdata) {
145
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
146
+ // safe 返回事件是否进行判断后再返回
147
+ // 每进入一次,beforetabs 数组添加 返回 删除
148
+ this.backthis = prpdata._this
149
+ this.safe = prpdata.safe
150
+ this.isMenu = false
151
+ // 记录本次跳转
152
+ var beforedata = {
153
+ beforeName: this.titleName,
154
+ titleName: prpdata.title,
155
+ backthis:prpdata._this,
156
+ safe:prpdata.safe
157
+ }
158
+ this.beforetabs.push(beforedata)
159
+ if( this.beforetabs.length == 1){
160
+ this.iftabbar = beforedata.beforeName
161
+ }
162
+ // 写入跳转后 前后组件名字
163
+ this.beforeName = this.titleName
164
+ this.titleName = prpdata.title
165
+
166
+ console.log('进入子组件,通知外层组件,我已经进入')
167
+ },
168
+ 'confirm': function () {
169
+ // 提交处理返回事件
170
+ this.back('提交')
171
+ },
172
+ 'backarrdel': function () {
173
+ this.delback()
174
+ },
175
+ 'gologin': function () {
176
+ this.beforetabs = []
177
+ this.$back()
178
+ }
179
+ }
180
+ }
181
+ </script>
182
+ <style scoped>
183
+ .app-height{
184
+ height: 93%;
185
+ }
186
+ </style>