system-phone 1.2.97 → 1.2.98
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/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/checksums/md5-checksums.bin +0 -0
- package/.gradle/checksums/sha1-checksums.bin +0 -0
- package/package.json +1 -1
- package/src/assets//347/253/231/347/202/271/345/267/245/345/215/225.png +0 -0
- package/src/components/SystemSetUp.vue +298 -298
- package/src/stores/AppData.js +4 -31
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,298 +1,298 @@
|
|
|
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)">
|
|
6
|
-
<img class="imgs" :src="imgback(tab.name)">
|
|
7
|
-
<p></p>
|
|
8
|
-
<p class="pagesfoot">{{tab.name}}</p>
|
|
9
|
-
<p></p>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
14
|
-
<header slot="modal-header" class="modal-header text-center">
|
|
15
|
-
<h4 class="modal-title">清除项选择</h4>
|
|
16
|
-
<input type="checkbox" class="" id="f_operator" v-model="all">
|
|
17
|
-
<label for="f_operator" class="font-size">全选</label>
|
|
18
|
-
</header>
|
|
19
|
-
<article slot="modal-body" v-if="show">
|
|
20
|
-
<div class="auto col-sm-11 col-xs-11 col-xs-offset-1 col-md-offset-1" style="margin-top: 10px;">
|
|
21
|
-
<div class="col-sm-4 col-xs-4" v-for="f in fields">
|
|
22
|
-
<input type="checkbox" class="" :id="'export-col-'+$index" v-model="modelval" :value="$key">
|
|
23
|
-
<label :for="'export-col-'+$index" class="font-size">{{f}}</label>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</article>
|
|
27
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
28
|
-
<center>
|
|
29
|
-
<button v-show="show" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
30
|
-
<button v-show="show" type="button" class="btn btn-success" @click='clear()'>确定</button>
|
|
31
|
-
</center>
|
|
32
|
-
</footer>
|
|
33
|
-
</modal>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import Vue from 'vue'
|
|
39
|
-
|
|
40
|
-
export default {
|
|
41
|
-
title: '系统设置',
|
|
42
|
-
data() {
|
|
43
|
-
return {
|
|
44
|
-
titleName:'系统设置',
|
|
45
|
-
all: false,
|
|
46
|
-
flag:true,
|
|
47
|
-
show:false,
|
|
48
|
-
fields: {},
|
|
49
|
-
dataclear:[],
|
|
50
|
-
tabs: this.getTabs(),
|
|
51
|
-
//tabs:[{name:"清空数据"}],
|
|
52
|
-
modelval: [],
|
|
53
|
-
text: '导航组件this',
|
|
54
|
-
beforeName:'系统设置',
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
ready(){
|
|
58
|
-
// if(Vue.config.safecheck.clearPhone){
|
|
59
|
-
// let cleartable=Vue.config.safecheck.clearPhone.cleardata
|
|
60
|
-
// for (let i = 0; i < cleartable.length; i++) {
|
|
61
|
-
// this.fields[cleartable[i].module]=cleartable[i].module
|
|
62
|
-
// }
|
|
63
|
-
// }
|
|
64
|
-
},
|
|
65
|
-
methods: {
|
|
66
|
-
// clear(){
|
|
67
|
-
// let cleartable=Vue.config.safecheck.clearPhone.cleardata
|
|
68
|
-
// console.log(this.modelval)
|
|
69
|
-
// for (let i = 0; i < cleartable.length; i++) {
|
|
70
|
-
// for (let j = 0; j < this.modelval.length; j++) {
|
|
71
|
-
// if (cleartable[i].module==this.modelval[i]){
|
|
72
|
-
// this.dataclear=Object.assign([],this.dataclear,cleartable[i].tables)
|
|
73
|
-
// }
|
|
74
|
-
// }
|
|
75
|
-
// }
|
|
76
|
-
// console.log(this.dataclear)
|
|
77
|
-
// this.cleandata()
|
|
78
|
-
// },
|
|
79
|
-
close(){
|
|
80
|
-
this.show=false
|
|
81
|
-
this.all=false
|
|
82
|
-
this.flag=true
|
|
83
|
-
this.modelval=[]
|
|
84
|
-
},
|
|
85
|
-
sortModelval () {
|
|
86
|
-
let sortModel = []
|
|
87
|
-
Object.keys(this.fields).forEach((key) => {
|
|
88
|
-
if (this.modelval.includes(key)) {
|
|
89
|
-
sortModel.push(key)
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
console.log('看看选择的顺序。。。', sortModel)
|
|
93
|
-
console.log('看看选择的顺序。。。', this.modelval)
|
|
94
|
-
if (sortModel.length==this.modelval.length-1){
|
|
95
|
-
this.flag=false
|
|
96
|
-
console.log("66666666666666")
|
|
97
|
-
this.all=false
|
|
98
|
-
}
|
|
99
|
-
console.log(Object.keys(this.fields).length)
|
|
100
|
-
if (sortModel.length==Object.keys(this.fields).length){
|
|
101
|
-
this.all=true
|
|
102
|
-
}
|
|
103
|
-
this.modelval = sortModel
|
|
104
|
-
},
|
|
105
|
-
imgback(val){
|
|
106
|
-
return require('../assets/'+val+'.png')
|
|
107
|
-
},
|
|
108
|
-
getTabs(){
|
|
109
|
-
for(let funs in Vue.user.functions){
|
|
110
|
-
if(Vue.user.functions[funs].link == 'system-setup'){
|
|
111
|
-
return Vue.user.functions[funs].children
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
gotopage(link,name) {
|
|
116
|
-
if(name == '清空数据'){
|
|
117
|
-
this.cleanalldata()
|
|
118
|
-
}
|
|
119
|
-
// else if (name == '清除数据'){
|
|
120
|
-
// this.openclear()
|
|
121
|
-
// }
|
|
122
|
-
else if (name == '声音开关'){
|
|
123
|
-
this.voiceSwitch()
|
|
124
|
-
} else if(name == '导出数据'){
|
|
125
|
-
this.outdata()
|
|
126
|
-
}else if(name == '退出系统'){
|
|
127
|
-
HostApp.back_home()
|
|
128
|
-
}else if(name == '退出登录'){
|
|
129
|
-
this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
|
|
130
|
-
if (res === 'confirm') {
|
|
131
|
-
this.$androidUtil.setPreference('f_repairman_id', 'x')
|
|
132
|
-
this.$androidUtil.setPreference('f_repairman_name', 'x')
|
|
133
|
-
this.$dispatch('gologin')
|
|
134
|
-
}
|
|
135
|
-
})
|
|
136
|
-
}else{
|
|
137
|
-
console.log('进入子组件')
|
|
138
|
-
var prpdata = {
|
|
139
|
-
_this:this,
|
|
140
|
-
title:name,
|
|
141
|
-
safe:true
|
|
142
|
-
}
|
|
143
|
-
this.$dispatch('gotoson',prpdata)
|
|
144
|
-
this.$goto(link)
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
cleanalldata(){
|
|
148
|
-
this.$showMessage('此操作为清理数据,无法恢复!', ['confirm', 'cancel']).then((res) => {
|
|
149
|
-
if (res === 'confirm') {
|
|
150
|
-
let result = this.$androidUtil.bzLogic('clearPhoneData', {flag: 0})
|
|
151
|
-
console.log((result.result))
|
|
152
|
-
if(result.result == '成功'){
|
|
153
|
-
this.$showMessage('清除数据完成!')
|
|
154
|
-
}else{
|
|
155
|
-
this.$showMessage('清除数据失败!')
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
})
|
|
159
|
-
},
|
|
160
|
-
// 清空数据
|
|
161
|
-
cleandata(){
|
|
162
|
-
console.log("88888888888")
|
|
163
|
-
this.$showMessage('此操作为清理数据,无法恢复!', ['confirm', 'cancel']).then((res) => {
|
|
164
|
-
if (res === 'confirm') {
|
|
165
|
-
let result = this.$androidUtil.bzLogic('clearPhoneDataNew', {tables: this.dataclear})
|
|
166
|
-
console.log((result.result))
|
|
167
|
-
if(result.result == '成功'){
|
|
168
|
-
this.$showMessage('清除数据完成!')
|
|
169
|
-
}else{
|
|
170
|
-
this.$showMessage('清除数据失败!')
|
|
171
|
-
}
|
|
172
|
-
this.close()
|
|
173
|
-
}
|
|
174
|
-
})
|
|
175
|
-
},
|
|
176
|
-
// 导出数据
|
|
177
|
-
openclear(){
|
|
178
|
-
this.show=true
|
|
179
|
-
},
|
|
180
|
-
voiceSwitch(){
|
|
181
|
-
console.log("进入声音开关")
|
|
182
|
-
let voicedata=this.$androidUtil.getPreference('f_voiceSwitch')
|
|
183
|
-
console.log(voicedata)
|
|
184
|
-
let voicechange ='开启'
|
|
185
|
-
if (voicedata=="true"){
|
|
186
|
-
console.log("进入判断")
|
|
187
|
-
voicechange = '关闭'
|
|
188
|
-
}
|
|
189
|
-
this.$showMessage('此操作为'+voicechange+'提示音,请再次确认!', ['confirm', 'cancel']).then((res) => {
|
|
190
|
-
if (res=='confirm'){
|
|
191
|
-
if (voicechange=='关闭'){
|
|
192
|
-
this.$androidUtil.setPreference('f_voiceSwitch', "false")
|
|
193
|
-
this.$showMessage('提示音关闭成功!')
|
|
194
|
-
}else{
|
|
195
|
-
this.$androidUtil.setPreference('f_voiceSwitch', "true")
|
|
196
|
-
this.$showMessage('提示音开启成功!')
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
})
|
|
200
|
-
},
|
|
201
|
-
outdata(){
|
|
202
|
-
HostApp.backupDatabase()
|
|
203
|
-
this.$showMessage('数据导出成功!')
|
|
204
|
-
},
|
|
205
|
-
//取消自动登录
|
|
206
|
-
cancelAutoLogin(){
|
|
207
|
-
let auto=this.$androidUtil.getPreference('autoLogin')
|
|
208
|
-
if(auto){
|
|
209
|
-
this.$androidUtil.setPreference('autoLogin', false)
|
|
210
|
-
this.$showMessage('已取消自动登录!')
|
|
211
|
-
}else{
|
|
212
|
-
this.$showMessage('当前已处于非自动登录!')
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
watch: {
|
|
217
|
-
'all' (val) {
|
|
218
|
-
if (val) {
|
|
219
|
-
this.modelval = Object.keys(this.fields)
|
|
220
|
-
} else {
|
|
221
|
-
console.log(this.flag)
|
|
222
|
-
if (this.flag){
|
|
223
|
-
this.modelval = []
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
this.flag=true
|
|
227
|
-
},
|
|
228
|
-
'modelval.length' () {
|
|
229
|
-
this.sortModelval()
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
</script>
|
|
235
|
-
<style scoped>
|
|
236
|
-
.flex-between {
|
|
237
|
-
display: flex;
|
|
238
|
-
justify-content: space-between;
|
|
239
|
-
align-items: center;
|
|
240
|
-
}
|
|
241
|
-
.flex-between span {
|
|
242
|
-
padding-right: 10px;
|
|
243
|
-
}
|
|
244
|
-
.flex-full {
|
|
245
|
-
flex: 1;
|
|
246
|
-
}
|
|
247
|
-
.name{
|
|
248
|
-
font: 15px PingFang-SC-Medium;
|
|
249
|
-
color: #666666;
|
|
250
|
-
}
|
|
251
|
-
.imgs{
|
|
252
|
-
width: 35px;
|
|
253
|
-
margin-top: 15px;
|
|
254
|
-
}
|
|
255
|
-
.plan {
|
|
256
|
-
border-bottom: 0.5px solid #EAEAEA;
|
|
257
|
-
border-right: 0.5px solid #EAEAEA;
|
|
258
|
-
height: 120px;
|
|
259
|
-
}
|
|
260
|
-
.manbiankuang{
|
|
261
|
-
width: 44%;
|
|
262
|
-
margin-top: 15px;
|
|
263
|
-
margin-left: 4%;
|
|
264
|
-
border:1px solid #e3e3e3;
|
|
265
|
-
border-radius:10px 10px 10px 10px;
|
|
266
|
-
text-align: center;
|
|
267
|
-
background-color: #ffffff;
|
|
268
|
-
}
|
|
269
|
-
.user{
|
|
270
|
-
border-bottom: 0.5px solid #EAEAEA;
|
|
271
|
-
border-right: 0.5px solid #EAEAEA;
|
|
272
|
-
border-left: 0.5px solid #EAEAEA;
|
|
273
|
-
height: 120px;
|
|
274
|
-
}
|
|
275
|
-
.safecheck{
|
|
276
|
-
border-bottom: 0.5px solid #EAEAEA;
|
|
277
|
-
border-left: 0.5px solid #EAEAEA;
|
|
278
|
-
height: 120px;
|
|
279
|
-
}
|
|
280
|
-
.appointment{
|
|
281
|
-
border-top: 0.5px solid #EAEAEA;
|
|
282
|
-
border-right: 0.5px solid #EAEAEA;
|
|
283
|
-
height: 120px;
|
|
284
|
-
}
|
|
285
|
-
.search{
|
|
286
|
-
border-top: 0.5px solid #EAEAEA;
|
|
287
|
-
border-right: 0.5px solid #EAEAEA;
|
|
288
|
-
border-left: 0.5px solid #EAEAEA;
|
|
289
|
-
height: 120px;
|
|
290
|
-
}
|
|
291
|
-
.upload{
|
|
292
|
-
border-top: 0.5px solid #EAEAEA;
|
|
293
|
-
border-left: 0.5px solid #EAEAEA;
|
|
294
|
-
height: 120px;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
</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)">
|
|
6
|
+
<img class="imgs" :src="imgback(tab.name)">
|
|
7
|
+
<p></p>
|
|
8
|
+
<p class="pagesfoot">{{tab.name}}</p>
|
|
9
|
+
<p></p>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
14
|
+
<header slot="modal-header" class="modal-header text-center">
|
|
15
|
+
<h4 class="modal-title">清除项选择</h4>
|
|
16
|
+
<input type="checkbox" class="" id="f_operator" v-model="all">
|
|
17
|
+
<label for="f_operator" class="font-size">全选</label>
|
|
18
|
+
</header>
|
|
19
|
+
<article slot="modal-body" v-if="show">
|
|
20
|
+
<div class="auto col-sm-11 col-xs-11 col-xs-offset-1 col-md-offset-1" style="margin-top: 10px;">
|
|
21
|
+
<div class="col-sm-4 col-xs-4" v-for="f in fields">
|
|
22
|
+
<input type="checkbox" class="" :id="'export-col-'+$index" v-model="modelval" :value="$key">
|
|
23
|
+
<label :for="'export-col-'+$index" class="font-size">{{f}}</label>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</article>
|
|
27
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
28
|
+
<center>
|
|
29
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
30
|
+
<button v-show="show" type="button" class="btn btn-success" @click='clear()'>确定</button>
|
|
31
|
+
</center>
|
|
32
|
+
</footer>
|
|
33
|
+
</modal>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import Vue from 'vue'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
title: '系统设置',
|
|
42
|
+
data() {
|
|
43
|
+
return {
|
|
44
|
+
titleName:'系统设置',
|
|
45
|
+
all: false,
|
|
46
|
+
flag:true,
|
|
47
|
+
show:false,
|
|
48
|
+
fields: {},
|
|
49
|
+
dataclear:[],
|
|
50
|
+
tabs: this.getTabs(),
|
|
51
|
+
//tabs:[{name:"清空数据"}],
|
|
52
|
+
modelval: [],
|
|
53
|
+
text: '导航组件this',
|
|
54
|
+
beforeName:'系统设置',
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
ready(){
|
|
58
|
+
// if(Vue.config.safecheck.clearPhone){
|
|
59
|
+
// let cleartable=Vue.config.safecheck.clearPhone.cleardata
|
|
60
|
+
// for (let i = 0; i < cleartable.length; i++) {
|
|
61
|
+
// this.fields[cleartable[i].module]=cleartable[i].module
|
|
62
|
+
// }
|
|
63
|
+
// }
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
// clear(){
|
|
67
|
+
// let cleartable=Vue.config.safecheck.clearPhone.cleardata
|
|
68
|
+
// console.log(this.modelval)
|
|
69
|
+
// for (let i = 0; i < cleartable.length; i++) {
|
|
70
|
+
// for (let j = 0; j < this.modelval.length; j++) {
|
|
71
|
+
// if (cleartable[i].module==this.modelval[i]){
|
|
72
|
+
// this.dataclear=Object.assign([],this.dataclear,cleartable[i].tables)
|
|
73
|
+
// }
|
|
74
|
+
// }
|
|
75
|
+
// }
|
|
76
|
+
// console.log(this.dataclear)
|
|
77
|
+
// this.cleandata()
|
|
78
|
+
// },
|
|
79
|
+
close(){
|
|
80
|
+
this.show=false
|
|
81
|
+
this.all=false
|
|
82
|
+
this.flag=true
|
|
83
|
+
this.modelval=[]
|
|
84
|
+
},
|
|
85
|
+
sortModelval () {
|
|
86
|
+
let sortModel = []
|
|
87
|
+
Object.keys(this.fields).forEach((key) => {
|
|
88
|
+
if (this.modelval.includes(key)) {
|
|
89
|
+
sortModel.push(key)
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
console.log('看看选择的顺序。。。', sortModel)
|
|
93
|
+
console.log('看看选择的顺序。。。', this.modelval)
|
|
94
|
+
if (sortModel.length==this.modelval.length-1){
|
|
95
|
+
this.flag=false
|
|
96
|
+
console.log("66666666666666")
|
|
97
|
+
this.all=false
|
|
98
|
+
}
|
|
99
|
+
console.log(Object.keys(this.fields).length)
|
|
100
|
+
if (sortModel.length==Object.keys(this.fields).length){
|
|
101
|
+
this.all=true
|
|
102
|
+
}
|
|
103
|
+
this.modelval = sortModel
|
|
104
|
+
},
|
|
105
|
+
imgback(val){
|
|
106
|
+
return require('../assets/'+val+'.png')
|
|
107
|
+
},
|
|
108
|
+
getTabs(){
|
|
109
|
+
for(let funs in Vue.user.functions){
|
|
110
|
+
if(Vue.user.functions[funs].link == 'system-setup'){
|
|
111
|
+
return Vue.user.functions[funs].children
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
gotopage(link,name) {
|
|
116
|
+
if(name == '清空数据'){
|
|
117
|
+
this.cleanalldata()
|
|
118
|
+
}
|
|
119
|
+
// else if (name == '清除数据'){
|
|
120
|
+
// this.openclear()
|
|
121
|
+
// }
|
|
122
|
+
else if (name == '声音开关'){
|
|
123
|
+
this.voiceSwitch()
|
|
124
|
+
} else if(name == '导出数据'){
|
|
125
|
+
this.outdata()
|
|
126
|
+
}else if(name == '退出系统'){
|
|
127
|
+
HostApp.back_home()
|
|
128
|
+
}else if(name == '退出登录'){
|
|
129
|
+
this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
|
|
130
|
+
if (res === 'confirm') {
|
|
131
|
+
this.$androidUtil.setPreference('f_repairman_id', 'x')
|
|
132
|
+
this.$androidUtil.setPreference('f_repairman_name', 'x')
|
|
133
|
+
this.$dispatch('gologin')
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
}else{
|
|
137
|
+
console.log('进入子组件')
|
|
138
|
+
var prpdata = {
|
|
139
|
+
_this:this,
|
|
140
|
+
title:name,
|
|
141
|
+
safe:true
|
|
142
|
+
}
|
|
143
|
+
this.$dispatch('gotoson',prpdata)
|
|
144
|
+
this.$goto(link)
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
cleanalldata(){
|
|
148
|
+
this.$showMessage('此操作为清理数据,无法恢复!', ['confirm', 'cancel']).then((res) => {
|
|
149
|
+
if (res === 'confirm') {
|
|
150
|
+
let result = this.$androidUtil.bzLogic('clearPhoneData', {flag: 0})
|
|
151
|
+
console.log((result.result))
|
|
152
|
+
if(result.result == '成功'){
|
|
153
|
+
this.$showMessage('清除数据完成!')
|
|
154
|
+
}else{
|
|
155
|
+
this.$showMessage('清除数据失败!')
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
},
|
|
160
|
+
// 清空数据
|
|
161
|
+
cleandata(){
|
|
162
|
+
console.log("88888888888")
|
|
163
|
+
this.$showMessage('此操作为清理数据,无法恢复!', ['confirm', 'cancel']).then((res) => {
|
|
164
|
+
if (res === 'confirm') {
|
|
165
|
+
let result = this.$androidUtil.bzLogic('clearPhoneDataNew', {tables: this.dataclear})
|
|
166
|
+
console.log((result.result))
|
|
167
|
+
if(result.result == '成功'){
|
|
168
|
+
this.$showMessage('清除数据完成!')
|
|
169
|
+
}else{
|
|
170
|
+
this.$showMessage('清除数据失败!')
|
|
171
|
+
}
|
|
172
|
+
this.close()
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
},
|
|
176
|
+
// 导出数据
|
|
177
|
+
openclear(){
|
|
178
|
+
this.show=true
|
|
179
|
+
},
|
|
180
|
+
voiceSwitch(){
|
|
181
|
+
console.log("进入声音开关")
|
|
182
|
+
let voicedata=this.$androidUtil.getPreference('f_voiceSwitch')
|
|
183
|
+
console.log(voicedata)
|
|
184
|
+
let voicechange ='开启'
|
|
185
|
+
if (voicedata=="true"){
|
|
186
|
+
console.log("进入判断")
|
|
187
|
+
voicechange = '关闭'
|
|
188
|
+
}
|
|
189
|
+
this.$showMessage('此操作为'+voicechange+'提示音,请再次确认!', ['confirm', 'cancel']).then((res) => {
|
|
190
|
+
if (res=='confirm'){
|
|
191
|
+
if (voicechange=='关闭'){
|
|
192
|
+
this.$androidUtil.setPreference('f_voiceSwitch', "false")
|
|
193
|
+
this.$showMessage('提示音关闭成功!')
|
|
194
|
+
}else{
|
|
195
|
+
this.$androidUtil.setPreference('f_voiceSwitch', "true")
|
|
196
|
+
this.$showMessage('提示音开启成功!')
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
},
|
|
201
|
+
outdata(){
|
|
202
|
+
HostApp.backupDatabase()
|
|
203
|
+
this.$showMessage('数据导出成功!')
|
|
204
|
+
},
|
|
205
|
+
//取消自动登录
|
|
206
|
+
cancelAutoLogin(){
|
|
207
|
+
let auto=this.$androidUtil.getPreference('autoLogin')
|
|
208
|
+
if(auto){
|
|
209
|
+
this.$androidUtil.setPreference('autoLogin', false)
|
|
210
|
+
this.$showMessage('已取消自动登录!')
|
|
211
|
+
}else{
|
|
212
|
+
this.$showMessage('当前已处于非自动登录!')
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
watch: {
|
|
217
|
+
'all' (val) {
|
|
218
|
+
if (val) {
|
|
219
|
+
this.modelval = Object.keys(this.fields)
|
|
220
|
+
} else {
|
|
221
|
+
console.log(this.flag)
|
|
222
|
+
if (this.flag){
|
|
223
|
+
this.modelval = []
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
this.flag=true
|
|
227
|
+
},
|
|
228
|
+
'modelval.length' () {
|
|
229
|
+
this.sortModelval()
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
</script>
|
|
235
|
+
<style scoped>
|
|
236
|
+
.flex-between {
|
|
237
|
+
display: flex;
|
|
238
|
+
justify-content: space-between;
|
|
239
|
+
align-items: center;
|
|
240
|
+
}
|
|
241
|
+
.flex-between span {
|
|
242
|
+
padding-right: 10px;
|
|
243
|
+
}
|
|
244
|
+
.flex-full {
|
|
245
|
+
flex: 1;
|
|
246
|
+
}
|
|
247
|
+
.name{
|
|
248
|
+
font: 15px PingFang-SC-Medium;
|
|
249
|
+
color: #666666;
|
|
250
|
+
}
|
|
251
|
+
.imgs{
|
|
252
|
+
width: 35px;
|
|
253
|
+
margin-top: 15px;
|
|
254
|
+
}
|
|
255
|
+
.plan {
|
|
256
|
+
border-bottom: 0.5px solid #EAEAEA;
|
|
257
|
+
border-right: 0.5px solid #EAEAEA;
|
|
258
|
+
height: 120px;
|
|
259
|
+
}
|
|
260
|
+
.manbiankuang{
|
|
261
|
+
width: 44%;
|
|
262
|
+
margin-top: 15px;
|
|
263
|
+
margin-left: 4%;
|
|
264
|
+
border:1px solid #e3e3e3;
|
|
265
|
+
border-radius:10px 10px 10px 10px;
|
|
266
|
+
text-align: center;
|
|
267
|
+
background-color: #ffffff;
|
|
268
|
+
}
|
|
269
|
+
.user{
|
|
270
|
+
border-bottom: 0.5px solid #EAEAEA;
|
|
271
|
+
border-right: 0.5px solid #EAEAEA;
|
|
272
|
+
border-left: 0.5px solid #EAEAEA;
|
|
273
|
+
height: 120px;
|
|
274
|
+
}
|
|
275
|
+
.safecheck{
|
|
276
|
+
border-bottom: 0.5px solid #EAEAEA;
|
|
277
|
+
border-left: 0.5px solid #EAEAEA;
|
|
278
|
+
height: 120px;
|
|
279
|
+
}
|
|
280
|
+
.appointment{
|
|
281
|
+
border-top: 0.5px solid #EAEAEA;
|
|
282
|
+
border-right: 0.5px solid #EAEAEA;
|
|
283
|
+
height: 120px;
|
|
284
|
+
}
|
|
285
|
+
.search{
|
|
286
|
+
border-top: 0.5px solid #EAEAEA;
|
|
287
|
+
border-right: 0.5px solid #EAEAEA;
|
|
288
|
+
border-left: 0.5px solid #EAEAEA;
|
|
289
|
+
height: 120px;
|
|
290
|
+
}
|
|
291
|
+
.upload{
|
|
292
|
+
border-top: 0.5px solid #EAEAEA;
|
|
293
|
+
border-left: 0.5px solid #EAEAEA;
|
|
294
|
+
height: 120px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
</style>
|
package/src/stores/AppData.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
|
-
|
|
2
|
+
import {HttpResetClass} from 'vue-client'
|
|
3
3
|
let GetAppDataService = {
|
|
4
4
|
install(Vue, options) {
|
|
5
5
|
// 给vue增添对话框显示方法
|
|
@@ -7,8 +7,8 @@ let GetAppDataService = {
|
|
|
7
7
|
},
|
|
8
8
|
|
|
9
9
|
// 开启卡监听
|
|
10
|
-
load () {
|
|
11
|
-
let result =
|
|
10
|
+
async load () {
|
|
11
|
+
let result = await new HttpResetClass().load('POST',`${Vue.androidUtil.getProxyUrl()}/rs/logic/getInitData`, {data: {f_filialeids: Vue.user.orgid}}, {resolveMsg: null, rejectMsg: null})
|
|
12
12
|
console.log('system加载参数')
|
|
13
13
|
console.log(JSON.stringify(result))
|
|
14
14
|
result.data.singleValues.forEach((item) => {
|
|
@@ -23,13 +23,7 @@ let GetAppDataService = {
|
|
|
23
23
|
})
|
|
24
24
|
this.params[item.name] = value
|
|
25
25
|
})
|
|
26
|
-
|
|
27
|
-
// this.saleParams = JSON.parse(result.data.saleParams)
|
|
28
|
-
// }
|
|
29
|
-
// if (result.data.safeCheckParams) {
|
|
30
|
-
// this.safeCheckParams = JSON.parse(result.data.safeCheckParams)
|
|
31
|
-
// }
|
|
32
|
-
let getParams = Vue.androidUtil.bzLogic('httpGetInitData', {url: `${Vue.androidUtil.getProxyUrl()}/rs/logic/getSaleInitData`,data: {f_orgid: Vue.user.orgid}})
|
|
26
|
+
let getParams = await new HttpResetClass().load('post',`${Vue.androidUtil.getProxyUrl()}/rs/logic/getSaleInitData`, {data: {f_orgid: Vue.user.orgid}}, {resolveMsg: null, rejectMsg: null})
|
|
33
27
|
console.log('获取营收参数')
|
|
34
28
|
console.log(JSON.stringify(getParams))
|
|
35
29
|
if (getParams.data) {
|
|
@@ -46,27 +40,6 @@ let GetAppDataService = {
|
|
|
46
40
|
this.params[item.f_meter_brand] = gasmodel
|
|
47
41
|
})
|
|
48
42
|
}
|
|
49
|
-
/*return Vue.resetpost(`${Vue.androidUtil.getProxyUrl()}/rs/logic/getInitData`, {data: {f_filialeids: Vue.user.f_orgids}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
50
|
-
console.log('system加载参数', res)
|
|
51
|
-
res.data.singleValues.forEach((item) => {
|
|
52
|
-
this.singleValues[item.name] = item.value
|
|
53
|
-
})
|
|
54
|
-
res.data.params.forEach((item) => {
|
|
55
|
-
let value = []
|
|
56
|
-
item.f_paramvalues.forEach((item, index) => {
|
|
57
|
-
value[index] = {}
|
|
58
|
-
value[index].label = item.name
|
|
59
|
-
value[index].value = item.name
|
|
60
|
-
})
|
|
61
|
-
this.params[item.name] = value
|
|
62
|
-
})
|
|
63
|
-
if (res.data.saleParams) {
|
|
64
|
-
this.saleParams = JSON.parse(res.data.saleParams)
|
|
65
|
-
}
|
|
66
|
-
if (res.data.safeCheckParams) {
|
|
67
|
-
this.safeCheckParams = JSON.parse(res.data.safeCheckParams)
|
|
68
|
-
}
|
|
69
|
-
})*/
|
|
70
43
|
},
|
|
71
44
|
|
|
72
45
|
params: {},
|