system-phone 3.0.9 → 3.0.11-test

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,268 +1,268 @@
1
- <template>
2
- <div class="nav-bgcolor">
3
- <div class="auto">
4
- <div class="row nav-bgcolor" >
5
- <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name,tab.navigate)">
6
- <div class="badge" v-show="tab.name == '维修派发'">
7
- <div class="badge-content">{{ pointNum?pointNum:0 }}</div>
8
- </div>
9
- <img class="imgs" :src="imgback(tab.name)" alt="">
10
- <p></p>
11
- <p class="pagesfoot">{{tab.name}}</p>
12
- <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
13
- <p></p>
14
- </div>
15
- </div>
16
- <!--<div class="row" style="overflow:auto;">-->
17
- <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
18
- <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
19
- <!--</div>-->
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script scoped>
25
- import Vue from 'vue'
26
- import {HttpResetClass} from "vue-client";
27
-
28
- export default {
29
- title: '在线业务导航',
30
- data () {
31
- return {
32
- titleName:'在线业务',
33
- isMenu:true,
34
- tabs: this.getTabs(),
35
- text: '导航组件this',
36
- beforeName: '在线业务',
37
- sourcet: '竖屏',
38
- pointNum: null
39
-
40
- }
41
- },
42
- ready () {
43
- // this.getModelSum()
44
- },
45
-
46
- methods: {
47
- //看去哪个页面
48
- getModelSum(){
49
- for(var i = 0;i<this.tabs.length;i++){
50
- if(this.tabs[i].link == 'readmeter-home' ){
51
- this.getZhihuan()
52
- }
53
- if(this.tabs[i].link == 'weiup-load' ){
54
- this.getRepair()
55
- }
56
- if(this.tabs[i].link == 'upload-page' ){
57
- this.getSafeCheck()
58
- }
59
- }
60
-
61
- },
62
- getRepair(){
63
- var _this = this;
64
- this.timeoutRepair = window.setInterval(function() {
65
- let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
66
- if (result.code === 200) {
67
- console.log('查询得到的代办2' + JSON.stringify(result))
68
- var crv = {
69
- title: '维修上传',
70
- sum: result.data.length
71
- }
72
- _this.changesum(crv)
73
- }
74
- }, 6000)
75
- },
76
- getSafeCheck(){
77
- var _this = this;
78
- this.timeoutRepair = window.setInterval(function() {
79
- let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
80
- if (result.code === 200) {
81
- console.log('查询得到的安检上传' + JSON.stringify(result))
82
- var crv = {
83
- title: '安检上传',
84
- sum: result.data.length
85
- }
86
- _this.changesum(crv)
87
- }
88
- }, 6000)
89
- },
90
- getZhihuan(){
91
- var _this = this;
92
- this.timeoutZhihuan = window.setInterval(function() {
93
- let result = {code:200}
94
- if (result.code === 200) {
95
- console.log('查询得到的代办2' + JSON.stringify(result))
96
- var crv = {
97
- title: '置换上传',
98
- sum: result.data.length
99
- }
100
- _this.changesum(crv)
101
- }
102
- }, 6000)
103
- },
104
- changesum(titdata){
105
- for(var i = 0;i<this.tabs.length;i++){
106
- if(this.tabs[i].name == titdata.title){
107
- this.tabs[i].icon = titdata.sum + '单'
108
- console.log(JSON.stringify(this.tabs[i].icon))
109
- return
110
- }
111
- }
112
- },
113
- getTabs(){
114
- this.getRepairNum()
115
- for(let funs in Vue.functions){
116
- if(Vue.functions[funs].link == 'online-manage'){
117
- return Vue.functions[funs].children
118
- }
119
- }
120
- },
121
- getRepairNum() {
122
- if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
123
- return
124
- }
125
- window.setInterval(function () {
126
- let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
127
- let val = {
128
- condition: {
129
- condition: condition,
130
- sign: '1 = 1'
131
- },
132
- userid: Vue.user.name
133
- }
134
- let http = new HttpResetClass()
135
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
136
- resolveMsg: null,
137
- rejectMsg: null
138
- }).then((res) => {
139
- this.pointNum = res.data.length
140
- })
141
- },10000)
142
- this.timeOutGetRepairNum()
143
- },
144
- timeOutGetRepairNum(){
145
- let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
146
- let val = {
147
- condition: {
148
- condition: condition,
149
- sign: '1 = 1'
150
- },
151
- userid: Vue.user.name
152
- }
153
- let http = new HttpResetClass()
154
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
155
- resolveMsg: null,
156
- rejectMsg: null
157
- }).then((res) => {
158
- this.pointNum = res.data.length
159
- })
160
- },
161
- imgback(val){
162
- return require('../assets/'+val+'.png')
163
- },
164
- // 返回主界面
165
- back(){
166
- this.titleName = '主界面'
167
- this.isMenu = true
168
-
169
- },
170
- gotopage(param,title,navigate) {
171
- console.log('进入子组件')
172
- var prpdata = {
173
- _this:this,
174
- title:title,
175
- safe:false
176
- }
177
- this.$dispatch('gotoson',prpdata)
178
- if(navigate){
179
- this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
180
- }else{
181
- this.$goto(param,{sourcet:'竖屏',tabname:title})
182
- }
183
- },
184
- mute () {
185
- HostApp.mute()
186
- }
187
- },
188
- }
189
- </script>
190
- <style lang="less">
191
- .badge-content {
192
- color: #fff;
193
- box-sizing: border-box;
194
- min-width: 8px;
195
- font-size: 9px;
196
- line-height: 12px;
197
- white-space: nowrap;
198
- font-weight: 400;
199
- text-align: center;
200
- }
201
-
202
- .badge {
203
- top: 6px;
204
- position: absolute;
205
- max-height: 13px;
206
- min-height: 8px;
207
- right: 0;
208
- display: inline-flex;
209
- vertical-align: middle;
210
- box-sizing: content-box;
211
- border-radius: 100px;
212
- background-color: red;
213
- }
214
-
215
- .tab-befor-img {
216
- content: '';
217
- background-size: 30px;
218
- display: inline-block;
219
- margin-right: 8px;
220
- height: 30px;
221
- width: 30px;
222
- vertical-align: -35%;
223
- }
224
- .pageskuang{
225
- vertical-align:middle;
226
- display:table-cell;
227
- width: 32%;
228
- top:-50%;
229
- margin-top: 1%;
230
- margin-left: 1%;
231
- border:1px solid #e3e3e3;
232
- text-align: center;
233
- background-color: #ffffff;
234
- }
235
- .pgesfoot{
236
- font-size: 14px;
237
- color: #666666;
238
- /* font-family: "Pingfhs";*/
239
- }
240
- .imgs{
241
- width: 35px;
242
- margin-top: 15px;
243
- }
244
- .pages-bgcolor{
245
- text-align: center;
246
- background-color: #f0f0ef;
247
- }
248
- img[src=""],img:not([src]){
249
- opacity: 0;
250
- border:none;
251
- visibility: hidden;
252
- max-width: none;
253
- }
254
-
255
- .manbiankuang {
256
- width: 44%;
257
- margin-top: 15px;
258
- margin-left: 4%;
259
- border: 1px solid #e3e3e3;
260
- border-radius: 10px 10px 10px 10px;
261
- text-align: center;
262
- background-color: #ffffff;
263
- }
264
-
265
- .nav-bgcolor {
266
- background-color: #ffffff;
267
- }
268
- </style>
1
+ <template>
2
+ <div class="nav-bgcolor">
3
+ <div class="auto">
4
+ <div class="row nav-bgcolor" >
5
+ <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name,tab.navigate)">
6
+ <div class="badge" v-show="tab.name == '维修派发'">
7
+ <div class="badge-content">{{ pointNum?pointNum:0 }}</div>
8
+ </div>
9
+ <img class="imgs" :src="imgback(tab.name)" alt="">
10
+ <p></p>
11
+ <p class="pagesfoot">{{tab.name}}</p>
12
+ <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
13
+ <p></p>
14
+ </div>
15
+ </div>
16
+ <!--<div class="row" style="overflow:auto;">-->
17
+ <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
18
+ <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
19
+ <!--</div>-->
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script scoped>
25
+ import Vue from 'vue'
26
+ import {HttpResetClass} from "vue-client";
27
+
28
+ export default {
29
+ title: '在线业务导航',
30
+ data () {
31
+ return {
32
+ titleName:'在线业务',
33
+ isMenu:true,
34
+ tabs: this.getTabs(),
35
+ text: '导航组件this',
36
+ beforeName: '在线业务',
37
+ sourcet: '竖屏',
38
+ pointNum: null
39
+
40
+ }
41
+ },
42
+ ready () {
43
+ // this.getModelSum()
44
+ },
45
+
46
+ methods: {
47
+ //看去哪个页面
48
+ getModelSum(){
49
+ for(var i = 0;i<this.tabs.length;i++){
50
+ if(this.tabs[i].link == 'readmeter-home' ){
51
+ this.getZhihuan()
52
+ }
53
+ if(this.tabs[i].link == 'weiup-load' ){
54
+ this.getRepair()
55
+ }
56
+ if(this.tabs[i].link == 'upload-page' ){
57
+ this.getSafeCheck()
58
+ }
59
+ }
60
+
61
+ },
62
+ getRepair(){
63
+ var _this = this;
64
+ this.timeoutRepair = window.setInterval(function() {
65
+ let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
66
+ if (result.code === 200) {
67
+ console.log('查询得到的代办2' + JSON.stringify(result))
68
+ var crv = {
69
+ title: '维修上传',
70
+ sum: result.data.length
71
+ }
72
+ _this.changesum(crv)
73
+ }
74
+ }, 6000)
75
+ },
76
+ getSafeCheck(){
77
+ var _this = this;
78
+ this.timeoutRepair = window.setInterval(function() {
79
+ let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
80
+ if (result.code === 200) {
81
+ console.log('查询得到的安检上传' + JSON.stringify(result))
82
+ var crv = {
83
+ title: '安检上传',
84
+ sum: result.data.length
85
+ }
86
+ _this.changesum(crv)
87
+ }
88
+ }, 6000)
89
+ },
90
+ getZhihuan(){
91
+ var _this = this;
92
+ this.timeoutZhihuan = window.setInterval(function() {
93
+ let result = {code:200}
94
+ if (result.code === 200) {
95
+ console.log('查询得到的代办2' + JSON.stringify(result))
96
+ var crv = {
97
+ title: '置换上传',
98
+ sum: result.data.length
99
+ }
100
+ _this.changesum(crv)
101
+ }
102
+ }, 6000)
103
+ },
104
+ changesum(titdata){
105
+ for(var i = 0;i<this.tabs.length;i++){
106
+ if(this.tabs[i].name == titdata.title){
107
+ this.tabs[i].icon = titdata.sum + '单'
108
+ console.log(JSON.stringify(this.tabs[i].icon))
109
+ return
110
+ }
111
+ }
112
+ },
113
+ getTabs(){
114
+ this.getRepairNum()
115
+ for(let funs in Vue.functions){
116
+ if(Vue.functions[funs].link == 'online-manage'){
117
+ return Vue.functions[funs].children
118
+ }
119
+ }
120
+ },
121
+ getRepairNum() {
122
+ if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
123
+ return
124
+ }
125
+ window.setInterval( ()=> {
126
+ let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
127
+ let val = {
128
+ condition: {
129
+ condition: condition,
130
+ sign: '1 = 1'
131
+ },
132
+ userid: Vue.user.name
133
+ }
134
+ let http = new HttpResetClass()
135
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
136
+ resolveMsg: null,
137
+ rejectMsg: null
138
+ }).then((res) => {
139
+ this.pointNum = res.data.length
140
+ })
141
+ },10000)
142
+ this.timeOutGetRepairNum()
143
+ },
144
+ timeOutGetRepairNum(){
145
+ let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
146
+ let val = {
147
+ condition: {
148
+ condition: condition,
149
+ sign: '1 = 1'
150
+ },
151
+ userid: Vue.user.name
152
+ }
153
+ let http = new HttpResetClass()
154
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
155
+ resolveMsg: null,
156
+ rejectMsg: null
157
+ }).then((res) => {
158
+ this.pointNum = res.data.length
159
+ })
160
+ },
161
+ imgback(val){
162
+ return require('../assets/'+val+'.png')
163
+ },
164
+ // 返回主界面
165
+ back(){
166
+ this.titleName = '主界面'
167
+ this.isMenu = true
168
+
169
+ },
170
+ gotopage(param,title,navigate) {
171
+ console.log('进入子组件')
172
+ var prpdata = {
173
+ _this:this,
174
+ title:title,
175
+ safe:false
176
+ }
177
+ this.$dispatch('gotoson',prpdata)
178
+ if(navigate){
179
+ this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
180
+ }else{
181
+ this.$goto(param,{sourcet:'竖屏',tabname:title})
182
+ }
183
+ },
184
+ mute () {
185
+ HostApp.mute()
186
+ }
187
+ },
188
+ }
189
+ </script>
190
+ <style lang="less">
191
+ .badge-content {
192
+ color: #fff;
193
+ box-sizing: border-box;
194
+ min-width: 8px;
195
+ font-size: 9px;
196
+ line-height: 12px;
197
+ white-space: nowrap;
198
+ font-weight: 400;
199
+ text-align: center;
200
+ }
201
+
202
+ .badge {
203
+ top: 6px;
204
+ position: absolute;
205
+ max-height: 13px;
206
+ min-height: 8px;
207
+ right: 0;
208
+ display: inline-flex;
209
+ vertical-align: middle;
210
+ box-sizing: content-box;
211
+ border-radius: 100px;
212
+ background-color: red;
213
+ }
214
+
215
+ .tab-befor-img {
216
+ content: '';
217
+ background-size: 30px;
218
+ display: inline-block;
219
+ margin-right: 8px;
220
+ height: 30px;
221
+ width: 30px;
222
+ vertical-align: -35%;
223
+ }
224
+ .pageskuang{
225
+ vertical-align:middle;
226
+ display:table-cell;
227
+ width: 32%;
228
+ top:-50%;
229
+ margin-top: 1%;
230
+ margin-left: 1%;
231
+ border:1px solid #e3e3e3;
232
+ text-align: center;
233
+ background-color: #ffffff;
234
+ }
235
+ .pgesfoot{
236
+ font-size: 14px;
237
+ color: #666666;
238
+ /* font-family: "Pingfhs";*/
239
+ }
240
+ .imgs{
241
+ width: 35px;
242
+ margin-top: 15px;
243
+ }
244
+ .pages-bgcolor{
245
+ text-align: center;
246
+ background-color: #f0f0ef;
247
+ }
248
+ img[src=""],img:not([src]){
249
+ opacity: 0;
250
+ border:none;
251
+ visibility: hidden;
252
+ max-width: none;
253
+ }
254
+
255
+ .manbiankuang {
256
+ width: 44%;
257
+ margin-top: 15px;
258
+ margin-left: 4%;
259
+ border: 1px solid #e3e3e3;
260
+ border-radius: 10px 10px 10px 10px;
261
+ text-align: center;
262
+ background-color: #ffffff;
263
+ }
264
+
265
+ .nav-bgcolor {
266
+ background-color: #ffffff;
267
+ }
268
+ </style>