system-phone 3.0.38 → 3.0.40
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/AttendManage.vue +471 -471
- package/src/components/LoginApp.vue +3 -3
- package/src/components/OnlineManage.vue +363 -363
- package/src/components/PhoneChangemeterInfo.vue +116 -116
- package/src/components/PhoneMeterInfo.vue +132 -132
- package/src/components/PhoneUserFind.vue +138 -138
- package/src/components/RightTree.vue +217 -217
- package/src/components/ToolsPage.vue +176 -176
- package/src/components/info/ConfigInfo.vue +122 -122
- package/src/components/info/FindUserInfo.vue +157 -157
- package/src/components/info/InfoTable.vue +37 -37
- package/src/systemphonegrid.js +206 -206
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page-header app-header auto">
|
|
3
|
-
<span style="margin-left:33px">{{title}}</span>
|
|
4
|
-
<div class="app-header-back" @click='back()' v-show="needBack">
|
|
5
|
-
<img src="../assets/返回.png" style="height: 20px;margin-right:-10px"/>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="app-header-back" style="height: auto" v-show="!needBack">
|
|
8
|
-
<img src="../assets/denglu.png" style="height: 20px;margin-right:-10px;margin-top:-10px"/>
|
|
9
|
-
<span style="margin-left:5px;color: #ffffff;font-size: 1.0em;">{{loginname}}</span>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="app-header-list" v-if="showList">
|
|
12
|
-
<dropdown>
|
|
13
|
-
<a href="#" data-toggle="dropdown" class="dropdown-toggle" style="color: white;font-size:19px">
|
|
14
|
-
<div class="app-header-newaddserver" style="line-height: 1px;margin-top: -5px">
|
|
15
|
-
<img src="../assets/newadd3.png" style="height: 20px;margin-right:-10px"/>
|
|
16
|
-
</div>
|
|
17
|
-
</a>
|
|
18
|
-
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
19
|
-
<li >
|
|
20
|
-
<a href="#" @click="gotopage('sell-info',{user:user})">
|
|
21
|
-
<img src="../assets/待办工单竖屏3.png"> 报修工单
|
|
22
|
-
</a>
|
|
23
|
-
<hr>
|
|
24
|
-
<a href="#" @click="gotopage('repair-message',{user:user})">
|
|
25
|
-
<img src="../assets/安检导航竖屏3.png"/> 安检计划
|
|
26
|
-
</a>
|
|
27
|
-
<hr>
|
|
28
|
-
<a href="#" @click="gotopage('changemeter-info',{user:user})">
|
|
29
|
-
<img src="../assets/手机抄表竖屏3.png"/> 抄表计划
|
|
30
|
-
</a>
|
|
31
|
-
<hr>
|
|
32
|
-
<hr>
|
|
33
|
-
</li>
|
|
34
|
-
</ul>
|
|
35
|
-
</dropdown>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="app-header-guanbishengyin" style="line-height: 25px" @click='mute()'>
|
|
38
|
-
<img v-if="f_voiceSwitch" src="../assets/jingyin3.png" style="height: 20px; width: 20px;"/>
|
|
39
|
-
<img v-if="!f_voiceSwitch" src="../assets/yinliang.png" style="height: 20px; width: 20px;"/>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script>
|
|
45
|
-
import Vue from 'vue'
|
|
46
|
-
export default {
|
|
47
|
-
title: '通用头部组件',
|
|
48
|
-
data () {
|
|
49
|
-
return {
|
|
50
|
-
loginname: Vue.user.name,
|
|
51
|
-
f_voiceSwitch:true
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
props: {
|
|
55
|
-
user:{
|
|
56
|
-
type:Object
|
|
57
|
-
},
|
|
58
|
-
userinfo:{
|
|
59
|
-
type:Object
|
|
60
|
-
},
|
|
61
|
-
// 是否显示列表控件
|
|
62
|
-
showList: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
},
|
|
66
|
-
title: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: '燃气应用'
|
|
69
|
-
},
|
|
70
|
-
needBack: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: true
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
methods: {
|
|
76
|
-
// 新增工单
|
|
77
|
-
newadd(){
|
|
78
|
-
// 事件
|
|
79
|
-
},
|
|
80
|
-
// 跳转页面
|
|
81
|
-
gotopage(param,props) {
|
|
82
|
-
this.$goto(param,props)
|
|
83
|
-
},
|
|
84
|
-
back () {
|
|
85
|
-
// console.log('发送返回事件')
|
|
86
|
-
this.$emit('back')
|
|
87
|
-
},
|
|
88
|
-
// 关闭新消息响铃(静音)
|
|
89
|
-
mute () {
|
|
90
|
-
if(navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')){
|
|
91
|
-
window.prompt("mute","")
|
|
92
|
-
}else{
|
|
93
|
-
HostApp.mute()
|
|
94
|
-
switch (HostApp.getPreference('f_voiceSwitch').data){
|
|
95
|
-
case 'true' : HostApp.setPreference('f_voiceSwitch','false')
|
|
96
|
-
this.f_voiceSwitch= true
|
|
97
|
-
break
|
|
98
|
-
case 'false' : HostApp.setPreference('f_voiceSwitch','true')
|
|
99
|
-
this.f_voiceSwitch= false
|
|
100
|
-
break
|
|
101
|
-
default : HostApp.setPreference('f_voiceSwitch','true')
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</script>
|
|
108
|
-
<style scoped>
|
|
109
|
-
.app-header {
|
|
110
|
-
position: fixed;
|
|
111
|
-
top:0px;
|
|
112
|
-
width: 100%;
|
|
113
|
-
margin: 0px;
|
|
114
|
-
background: #499edf;
|
|
115
|
-
color: #FFF;
|
|
116
|
-
padding: 10px;
|
|
117
|
-
text-align: center;
|
|
118
|
-
font-size: 15px;
|
|
119
|
-
height: 7%;
|
|
120
|
-
|
|
121
|
-
/*margin-bottom: 20px;*/
|
|
122
|
-
}
|
|
123
|
-
.app-header-back {
|
|
124
|
-
position: absolute;
|
|
125
|
-
top: 12px;
|
|
126
|
-
color: #D8DCE5;
|
|
127
|
-
}
|
|
128
|
-
.app-header-list {
|
|
129
|
-
height: 40px;
|
|
130
|
-
float: right;
|
|
131
|
-
color: #D8DCE5;
|
|
132
|
-
}
|
|
133
|
-
.app-header-guanbishengyin {
|
|
134
|
-
margin-right: 10px;
|
|
135
|
-
float: right;
|
|
136
|
-
color: #D8DCE5;
|
|
137
|
-
}
|
|
138
|
-
.app-header-newaddserver {
|
|
139
|
-
margin-right: 10px;
|
|
140
|
-
float: right;
|
|
141
|
-
color: #D8DCE5;
|
|
142
|
-
}
|
|
143
|
-
.app-header-volume {
|
|
144
|
-
position: absolute;
|
|
145
|
-
top: 0;
|
|
146
|
-
display: flex;
|
|
147
|
-
flex-direction: column;
|
|
148
|
-
justify-content: center;
|
|
149
|
-
right: 20px;
|
|
150
|
-
color: #D8DCE5;
|
|
151
|
-
font-size: 1.5em;
|
|
152
|
-
}
|
|
153
|
-
.dropdown-menu {
|
|
154
|
-
background-color: #212a35;
|
|
155
|
-
}
|
|
156
|
-
.dropdown-menu a{
|
|
157
|
-
color: white;
|
|
158
|
-
}
|
|
159
|
-
.dropdown-menu a:hover{
|
|
160
|
-
color: white;
|
|
161
|
-
background-color: #6b85a3;
|
|
162
|
-
}
|
|
163
|
-
.dropdown-menu img{
|
|
164
|
-
width: 22%;
|
|
165
|
-
margin-top: -5px;
|
|
166
|
-
}
|
|
167
|
-
.dropdown-menu hr{
|
|
168
|
-
margin-top: 0px;
|
|
169
|
-
margin-bottom: 0px;
|
|
170
|
-
margin-right:0px;
|
|
171
|
-
width: 80%;
|
|
172
|
-
}
|
|
173
|
-
.glyphicon-menu-left{
|
|
174
|
-
color:#fff;
|
|
175
|
-
}
|
|
176
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-header app-header auto">
|
|
3
|
+
<span style="margin-left:33px">{{title}}</span>
|
|
4
|
+
<div class="app-header-back" @click='back()' v-show="needBack">
|
|
5
|
+
<img src="../assets/返回.png" style="height: 20px;margin-right:-10px"/>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="app-header-back" style="height: auto" v-show="!needBack">
|
|
8
|
+
<img src="../assets/denglu.png" style="height: 20px;margin-right:-10px;margin-top:-10px"/>
|
|
9
|
+
<span style="margin-left:5px;color: #ffffff;font-size: 1.0em;">{{loginname}}</span>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="app-header-list" v-if="showList">
|
|
12
|
+
<dropdown>
|
|
13
|
+
<a href="#" data-toggle="dropdown" class="dropdown-toggle" style="color: white;font-size:19px">
|
|
14
|
+
<div class="app-header-newaddserver" style="line-height: 1px;margin-top: -5px">
|
|
15
|
+
<img src="../assets/newadd3.png" style="height: 20px;margin-right:-10px"/>
|
|
16
|
+
</div>
|
|
17
|
+
</a>
|
|
18
|
+
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
19
|
+
<li >
|
|
20
|
+
<a href="#" @click="gotopage('sell-info',{user:user})">
|
|
21
|
+
<img src="../assets/待办工单竖屏3.png"> 报修工单
|
|
22
|
+
</a>
|
|
23
|
+
<hr>
|
|
24
|
+
<a href="#" @click="gotopage('repair-message',{user:user})">
|
|
25
|
+
<img src="../assets/安检导航竖屏3.png"/> 安检计划
|
|
26
|
+
</a>
|
|
27
|
+
<hr>
|
|
28
|
+
<a href="#" @click="gotopage('changemeter-info',{user:user})">
|
|
29
|
+
<img src="../assets/手机抄表竖屏3.png"/> 抄表计划
|
|
30
|
+
</a>
|
|
31
|
+
<hr>
|
|
32
|
+
<hr>
|
|
33
|
+
</li>
|
|
34
|
+
</ul>
|
|
35
|
+
</dropdown>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="app-header-guanbishengyin" style="line-height: 25px" @click='mute()'>
|
|
38
|
+
<img v-if="f_voiceSwitch" src="../assets/jingyin3.png" style="height: 20px; width: 20px;"/>
|
|
39
|
+
<img v-if="!f_voiceSwitch" src="../assets/yinliang.png" style="height: 20px; width: 20px;"/>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import Vue from 'vue'
|
|
46
|
+
export default {
|
|
47
|
+
title: '通用头部组件',
|
|
48
|
+
data () {
|
|
49
|
+
return {
|
|
50
|
+
loginname: Vue.user.name,
|
|
51
|
+
f_voiceSwitch:true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
props: {
|
|
55
|
+
user:{
|
|
56
|
+
type:Object
|
|
57
|
+
},
|
|
58
|
+
userinfo:{
|
|
59
|
+
type:Object
|
|
60
|
+
},
|
|
61
|
+
// 是否显示列表控件
|
|
62
|
+
showList: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false
|
|
65
|
+
},
|
|
66
|
+
title: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: '燃气应用'
|
|
69
|
+
},
|
|
70
|
+
needBack: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
methods: {
|
|
76
|
+
// 新增工单
|
|
77
|
+
newadd(){
|
|
78
|
+
// 事件
|
|
79
|
+
},
|
|
80
|
+
// 跳转页面
|
|
81
|
+
gotopage(param,props) {
|
|
82
|
+
this.$goto(param,props)
|
|
83
|
+
},
|
|
84
|
+
back () {
|
|
85
|
+
// console.log('发送返回事件')
|
|
86
|
+
this.$emit('back')
|
|
87
|
+
},
|
|
88
|
+
// 关闭新消息响铃(静音)
|
|
89
|
+
mute () {
|
|
90
|
+
if(navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')){
|
|
91
|
+
window.prompt("mute","")
|
|
92
|
+
}else{
|
|
93
|
+
HostApp.mute()
|
|
94
|
+
switch (HostApp.getPreference('f_voiceSwitch').data){
|
|
95
|
+
case 'true' : HostApp.setPreference('f_voiceSwitch','false')
|
|
96
|
+
this.f_voiceSwitch= true
|
|
97
|
+
break
|
|
98
|
+
case 'false' : HostApp.setPreference('f_voiceSwitch','true')
|
|
99
|
+
this.f_voiceSwitch= false
|
|
100
|
+
break
|
|
101
|
+
default : HostApp.setPreference('f_voiceSwitch','true')
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</script>
|
|
108
|
+
<style scoped>
|
|
109
|
+
.app-header {
|
|
110
|
+
position: fixed;
|
|
111
|
+
top:0px;
|
|
112
|
+
width: 100%;
|
|
113
|
+
margin: 0px;
|
|
114
|
+
background: #499edf;
|
|
115
|
+
color: #FFF;
|
|
116
|
+
padding: 10px;
|
|
117
|
+
text-align: center;
|
|
118
|
+
font-size: 15px;
|
|
119
|
+
height: 7%;
|
|
120
|
+
|
|
121
|
+
/*margin-bottom: 20px;*/
|
|
122
|
+
}
|
|
123
|
+
.app-header-back {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 12px;
|
|
126
|
+
color: #D8DCE5;
|
|
127
|
+
}
|
|
128
|
+
.app-header-list {
|
|
129
|
+
height: 40px;
|
|
130
|
+
float: right;
|
|
131
|
+
color: #D8DCE5;
|
|
132
|
+
}
|
|
133
|
+
.app-header-guanbishengyin {
|
|
134
|
+
margin-right: 10px;
|
|
135
|
+
float: right;
|
|
136
|
+
color: #D8DCE5;
|
|
137
|
+
}
|
|
138
|
+
.app-header-newaddserver {
|
|
139
|
+
margin-right: 10px;
|
|
140
|
+
float: right;
|
|
141
|
+
color: #D8DCE5;
|
|
142
|
+
}
|
|
143
|
+
.app-header-volume {
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 0;
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
right: 20px;
|
|
150
|
+
color: #D8DCE5;
|
|
151
|
+
font-size: 1.5em;
|
|
152
|
+
}
|
|
153
|
+
.dropdown-menu {
|
|
154
|
+
background-color: #212a35;
|
|
155
|
+
}
|
|
156
|
+
.dropdown-menu a{
|
|
157
|
+
color: white;
|
|
158
|
+
}
|
|
159
|
+
.dropdown-menu a:hover{
|
|
160
|
+
color: white;
|
|
161
|
+
background-color: #6b85a3;
|
|
162
|
+
}
|
|
163
|
+
.dropdown-menu img{
|
|
164
|
+
width: 22%;
|
|
165
|
+
margin-top: -5px;
|
|
166
|
+
}
|
|
167
|
+
.dropdown-menu hr{
|
|
168
|
+
margin-top: 0px;
|
|
169
|
+
margin-bottom: 0px;
|
|
170
|
+
margin-right:0px;
|
|
171
|
+
width: 80%;
|
|
172
|
+
}
|
|
173
|
+
.glyphicon-menu-left{
|
|
174
|
+
color:#fff;
|
|
175
|
+
}
|
|
176
|
+
</style>
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
<template >
|
|
2
|
-
<div class="panel panel-default auto repair-info-content">
|
|
3
|
-
<div class="panel-body" v-show="show">
|
|
4
|
-
<div class="panel panel-default well" v-for="row in model">
|
|
5
|
-
<div class="bg-info">
|
|
6
|
-
<div class="row form-group">
|
|
7
|
-
<div class="col-xs-12 col-sm-12 col-md-12">
|
|
8
|
-
<div class="row" v-for="item in dataConfig">
|
|
9
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
|
10
|
-
{{item.value}}:
|
|
11
|
-
</div>
|
|
12
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
|
13
|
-
{{row[item.name]}}
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<p v-show="model.length == 0 ">此用户暂无购气记录</p>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
27
|
-
import co from 'co'
|
|
28
|
-
export default {
|
|
29
|
-
title: '查询用户',
|
|
30
|
-
data () {
|
|
31
|
-
return {
|
|
32
|
-
model: [],
|
|
33
|
-
show: false,
|
|
34
|
-
row: Object,
|
|
35
|
-
dataConfig:[]
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
props: {
|
|
39
|
-
user: {
|
|
40
|
-
type: Object
|
|
41
|
-
},
|
|
42
|
-
f_userinfo_id:'',
|
|
43
|
-
config:"",
|
|
44
|
-
},
|
|
45
|
-
methods: {
|
|
46
|
-
convertArray(arr) {
|
|
47
|
-
return arr.map(obj => {
|
|
48
|
-
const key = Object.keys(obj)[0];
|
|
49
|
-
return {
|
|
50
|
-
name: key,
|
|
51
|
-
value: obj[key]
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
getmodel () {
|
|
57
|
-
let userinfoid
|
|
58
|
-
if(this.f_userinfo_id){
|
|
59
|
-
userinfoid = this.f_userinfo_id
|
|
60
|
-
}else{
|
|
61
|
-
userinfoid = this.user.f_userinfo_id
|
|
62
|
-
console.log(this.user.f_userinfo_id)
|
|
63
|
-
}
|
|
64
|
-
console.log(userinfoid)
|
|
65
|
-
new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/geUserInfoIdData`, {data: {condition:`f_userinfo_id = '${userinfoid}'`,type:this.config}},{resolveMsg : null,rejectMsg :null}).then((row) => {
|
|
66
|
-
console.log("9898988",row)
|
|
67
|
-
if(row.data.state===200){
|
|
68
|
-
this.model = row.data.userdata
|
|
69
|
-
this.dataConfig = this.convertArray(row.data.filename)
|
|
70
|
-
this.show=true
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
back(){
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
watch: {
|
|
80
|
-
'user' (val) {
|
|
81
|
-
// this.model.search(`card_id = ${this.user.card_id}`)
|
|
82
|
-
if(this.user){
|
|
83
|
-
if (!(this.user.isNuN)) {
|
|
84
|
-
this.model= []
|
|
85
|
-
this.getmodel()
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
'f_userinfo_id'(){
|
|
90
|
-
if(this.f_userinfo_id){
|
|
91
|
-
this.model= []
|
|
92
|
-
this.getmodel()
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
ready () {
|
|
97
|
-
console.log("9797977",this.config)
|
|
98
|
-
if (this.user && this.user.f_userinfo_id) {
|
|
99
|
-
// this.model.search(`card_id = ${this.user.card_id}`)
|
|
100
|
-
this.getmodel()
|
|
101
|
-
}
|
|
102
|
-
if(this.f_userinfo_id){
|
|
103
|
-
this.getmodel()
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</script>
|
|
108
|
-
<style>
|
|
109
|
-
.app-botton {
|
|
110
|
-
position:fixed;
|
|
111
|
-
background: #87b2dd;
|
|
112
|
-
color: #FFF;
|
|
113
|
-
padding: 8px;
|
|
114
|
-
text-align: center;
|
|
115
|
-
font-size: 1.2em;
|
|
116
|
-
z-index: 10;
|
|
117
|
-
opacity:0.5;
|
|
118
|
-
bottom: 50px;
|
|
119
|
-
margin-top: -10px;
|
|
120
|
-
height: 40px;
|
|
121
|
-
}
|
|
122
|
-
</style>
|
|
1
|
+
<template >
|
|
2
|
+
<div class="panel panel-default auto repair-info-content">
|
|
3
|
+
<div class="panel-body" v-show="show">
|
|
4
|
+
<div class="panel panel-default well" v-for="row in model">
|
|
5
|
+
<div class="bg-info">
|
|
6
|
+
<div class="row form-group">
|
|
7
|
+
<div class="col-xs-12 col-sm-12 col-md-12">
|
|
8
|
+
<div class="row" v-for="item in dataConfig">
|
|
9
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
|
10
|
+
{{item.value}}:
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
|
13
|
+
{{row[item.name]}}
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<p v-show="model.length == 0 ">此用户暂无购气记录</p>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
27
|
+
import co from 'co'
|
|
28
|
+
export default {
|
|
29
|
+
title: '查询用户',
|
|
30
|
+
data () {
|
|
31
|
+
return {
|
|
32
|
+
model: [],
|
|
33
|
+
show: false,
|
|
34
|
+
row: Object,
|
|
35
|
+
dataConfig:[]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
props: {
|
|
39
|
+
user: {
|
|
40
|
+
type: Object
|
|
41
|
+
},
|
|
42
|
+
f_userinfo_id:'',
|
|
43
|
+
config:"",
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
convertArray(arr) {
|
|
47
|
+
return arr.map(obj => {
|
|
48
|
+
const key = Object.keys(obj)[0];
|
|
49
|
+
return {
|
|
50
|
+
name: key,
|
|
51
|
+
value: obj[key]
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
getmodel () {
|
|
57
|
+
let userinfoid
|
|
58
|
+
if(this.f_userinfo_id){
|
|
59
|
+
userinfoid = this.f_userinfo_id
|
|
60
|
+
}else{
|
|
61
|
+
userinfoid = this.user.f_userinfo_id
|
|
62
|
+
console.log(this.user.f_userinfo_id)
|
|
63
|
+
}
|
|
64
|
+
console.log(userinfoid)
|
|
65
|
+
new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/geUserInfoIdData`, {data: {condition:`f_userinfo_id = '${userinfoid}'`,type:this.config}},{resolveMsg : null,rejectMsg :null}).then((row) => {
|
|
66
|
+
console.log("9898988",row)
|
|
67
|
+
if(row.data.state===200){
|
|
68
|
+
this.model = row.data.userdata
|
|
69
|
+
this.dataConfig = this.convertArray(row.data.filename)
|
|
70
|
+
this.show=true
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
},
|
|
75
|
+
back(){
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
watch: {
|
|
80
|
+
'user' (val) {
|
|
81
|
+
// this.model.search(`card_id = ${this.user.card_id}`)
|
|
82
|
+
if(this.user){
|
|
83
|
+
if (!(this.user.isNuN)) {
|
|
84
|
+
this.model= []
|
|
85
|
+
this.getmodel()
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
'f_userinfo_id'(){
|
|
90
|
+
if(this.f_userinfo_id){
|
|
91
|
+
this.model= []
|
|
92
|
+
this.getmodel()
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
ready () {
|
|
97
|
+
console.log("9797977",this.config)
|
|
98
|
+
if (this.user && this.user.f_userinfo_id) {
|
|
99
|
+
// this.model.search(`card_id = ${this.user.card_id}`)
|
|
100
|
+
this.getmodel()
|
|
101
|
+
}
|
|
102
|
+
if(this.f_userinfo_id){
|
|
103
|
+
this.getmodel()
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</script>
|
|
108
|
+
<style>
|
|
109
|
+
.app-botton {
|
|
110
|
+
position:fixed;
|
|
111
|
+
background: #87b2dd;
|
|
112
|
+
color: #FFF;
|
|
113
|
+
padding: 8px;
|
|
114
|
+
text-align: center;
|
|
115
|
+
font-size: 1.2em;
|
|
116
|
+
z-index: 10;
|
|
117
|
+
opacity:0.5;
|
|
118
|
+
bottom: 50px;
|
|
119
|
+
margin-top: -10px;
|
|
120
|
+
height: 40px;
|
|
121
|
+
}
|
|
122
|
+
</style>
|