system-phone 3.0.2-tc → 3.0.3
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.
- package/package.json +1 -1
- package/src/components/OnlineManage.vue +56 -32
package/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
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,tab.navigate)">
|
|
6
|
-
<div class="badge"
|
|
6
|
+
<div class="badge" v-show="tab.name == '维修派发'">
|
|
7
|
+
<div class="badge-content">{{ pointNum }}</div>
|
|
8
|
+
</div>
|
|
7
9
|
<img class="imgs" :src="imgback(tab.name)" alt="">
|
|
8
10
|
<p></p>
|
|
9
11
|
<p class="pagesfoot">{{tab.name}}</p>
|
|
@@ -21,6 +23,8 @@
|
|
|
21
23
|
|
|
22
24
|
<script scoped>
|
|
23
25
|
import Vue from 'vue'
|
|
26
|
+
import {HttpResetClass} from "vue-client";
|
|
27
|
+
|
|
24
28
|
export default {
|
|
25
29
|
title: '在线业务导航',
|
|
26
30
|
data () {
|
|
@@ -29,8 +33,9 @@
|
|
|
29
33
|
isMenu:true,
|
|
30
34
|
tabs: this.getTabs(),
|
|
31
35
|
text: '导航组件this',
|
|
32
|
-
beforeName:'在线业务',
|
|
33
|
-
sourcet:'竖屏'
|
|
36
|
+
beforeName: '在线业务',
|
|
37
|
+
sourcet: '竖屏',
|
|
38
|
+
pointNum: null
|
|
34
39
|
|
|
35
40
|
}
|
|
36
41
|
},
|
|
@@ -106,34 +111,52 @@
|
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
getTabs(){
|
|
114
|
+
this.getRepairNum()
|
|
109
115
|
for(let funs in Vue.functions){
|
|
110
116
|
if(Vue.functions[funs].link == 'online-manage'){
|
|
111
117
|
return Vue.functions[funs].children
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
|
-
this.getNum()
|
|
115
120
|
},
|
|
116
|
-
|
|
117
|
-
if (Vue.android) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
129
|
-
for (let i = 0; i < this.tabs.length; i++) {
|
|
130
|
-
if (this.tabs[i].name =='维修派发'){
|
|
131
|
-
this.tabs[i].pointNum=res.data.length
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
})
|
|
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
|
|
135
133
|
}
|
|
134
|
+
let http = new HttpResetClass()
|
|
135
|
+
http.load('POST', `/rs/path/operatorService`, {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
|
|
136
152
|
}
|
|
153
|
+
let http = new HttpResetClass()
|
|
154
|
+
http.load('POST', `/rs/path/operatorService`, {data: val}, {
|
|
155
|
+
resolveMsg: null,
|
|
156
|
+
rejectMsg: null
|
|
157
|
+
}).then((res) => {
|
|
158
|
+
this.pointNum = res.data.length
|
|
159
|
+
})
|
|
137
160
|
},
|
|
138
161
|
imgback(val){
|
|
139
162
|
return require('../assets/'+val+'.png')
|
|
@@ -165,7 +188,7 @@
|
|
|
165
188
|
}
|
|
166
189
|
</script>
|
|
167
190
|
<style lang="less">
|
|
168
|
-
.badge-content{
|
|
191
|
+
.badge-content {
|
|
169
192
|
color: #fff;
|
|
170
193
|
box-sizing: border-box;
|
|
171
194
|
min-width: 8px;
|
|
@@ -175,20 +198,21 @@
|
|
|
175
198
|
font-weight: 400;
|
|
176
199
|
text-align: center;
|
|
177
200
|
}
|
|
178
|
-
|
|
201
|
+
|
|
202
|
+
.badge {
|
|
179
203
|
top: 6px;
|
|
180
204
|
position: absolute;
|
|
181
205
|
max-height: 13px;
|
|
182
206
|
min-height: 8px;
|
|
183
|
-
|
|
184
|
-
right:0;
|
|
207
|
+
right: 0;
|
|
185
208
|
display: inline-flex;
|
|
186
209
|
vertical-align: middle;
|
|
187
210
|
box-sizing: content-box;
|
|
188
211
|
border-radius: 100px;
|
|
189
212
|
background-color: red;
|
|
190
213
|
}
|
|
191
|
-
|
|
214
|
+
|
|
215
|
+
.tab-befor-img {
|
|
192
216
|
content: '';
|
|
193
217
|
background-size: 30px;
|
|
194
218
|
display: inline-block;
|
|
@@ -228,17 +252,17 @@
|
|
|
228
252
|
max-width: none;
|
|
229
253
|
}
|
|
230
254
|
|
|
231
|
-
.manbiankuang{
|
|
255
|
+
.manbiankuang {
|
|
232
256
|
width: 44%;
|
|
233
257
|
margin-top: 15px;
|
|
234
258
|
margin-left: 4%;
|
|
235
|
-
border:1px solid #e3e3e3;
|
|
236
|
-
border-radius:10px 10px 10px 10px;
|
|
259
|
+
border: 1px solid #e3e3e3;
|
|
260
|
+
border-radius: 10px 10px 10px 10px;
|
|
237
261
|
text-align: center;
|
|
238
262
|
background-color: #ffffff;
|
|
239
263
|
}
|
|
240
264
|
|
|
241
|
-
.nav-bgcolor{
|
|
265
|
+
.nav-bgcolor {
|
|
242
266
|
background-color: #ffffff;
|
|
243
267
|
}
|
|
244
268
|
</style>
|