safecheck-client 3.0.34-52 → 3.0.34-54

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "3.0.34-52",
4
+ "version": "3.0.34-54",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -1,294 +1,300 @@
1
- <template>
2
- <div style="height: 100%">
3
- <div class="panel auto">
4
- <div class="panel-body ">
5
- <div class="row auto" style="margin: 5px 0">
6
- <label class="righttxt" style="width: 30%;">负责人姓名:</label>
7
- <input v-model="bindingData.f_head_name" class="form-control rightipt" type="text"/>
8
- </div>
9
- </div>
10
- </div>
11
- <div class="panel auto">
12
- <div class="panel-body ">
13
- <div class="row auto" style="margin: 5px 0">
14
- <label class="righttxt" style="width: 30%;">负责人职务:</label>
15
- <v-select v-model="bindingData.f_head_post" :options='headPostTypes' :value.sync="bindingData.f_head_post" :width="'60%'"
16
- class="input-font" clear-button close-on-select placeholder='类型' style="margin-left: 5%;"
17
- value-single></v-select>
18
- </div>
19
- </div>
20
- </div>
21
- <div class="panel auto">
22
- <div class="panel-body ">
23
- <div class="row auto" style="margin: 5px 0">
24
- <label class="righttxt" style="width: 30%;">负责人电话:</label>
25
- <input v-model="bindingData.f_head_phone" class="form-control rightipt" type="text"/>
26
- </div>
27
- </div>
28
- </div>
29
- <div class="panel auto">
30
- <div class="panel-body ">
31
- <div class="row auto" style="margin: 5px 0">
32
- <label class="righttxt" style="width: 30%;">绑定类型:</label>
33
- <v-select v-model="bindingData.f_type" :options='types' :value.sync="bindingData.f_type" :width="'60%'"
34
- class="input-font" clear-button close-on-select placeholder='类型' style="margin-left: 5%;"
35
- value-single></v-select>
36
- </div>
37
- </div>
38
- </div>
39
- <div v-if="bindingData.f_type == '小区'" class="panel auto">
40
- <div class="panel-body ">
41
- <div class="row auto" style="margin: 5px 0">
42
- <label class="righttxt" style="width: 30%;">小区名称:</label>
43
- <v-select v-model="bindingData.f_userinfo" :options='residentialAreas' :value.sync="bindingData.f_userinfo" :width="'60%'"
44
- class="input-font" clear-button close-on-select placeholder='小区名称'
45
- style="margin-left: 5%;" value-single></v-select>
46
- </div>
47
- </div>
48
- </div>
49
- <div v-if="bindingData.f_type == '用户'" class="panel auto">
50
- <div class="panel-body ">
51
- <div class="row auto" style="margin: 5px 0">
52
- <label class="righttxt" style="width: 30%;">用户名称:</label>
53
- <v-select v-model="bindingData.f_userinfo" :options='userNames' :value.sync="bindingData.f_userinfo" :width="'60%'"
54
- class="input-font" clear-button close-on-select placeholder='用户名称' @select-search="refreshUser"
55
- style="margin-left: 5%;" menu-mode="align-button"
56
- value-single></v-select>
57
- </div>
58
- </div>
59
- </div>
60
- <div class="panel auto">
61
- <div class="panel-body">
62
- <label class="row auto text-left col-md-4 col-xs-4">备注</label>
63
- <div class="col-md-12 col-sm-12 col-xs-12">
64
- <textarea v-model="bindingData.f_comments" class="form-control"></textarea>
65
- </div>
66
- </div>
67
- </div>
68
- <div class="panel auto">
69
- <div class="panel-body ">
70
- <div class="row auto" style="margin: 5px 0">
71
- <label class="righttxt">图片:</label>
72
- <div class="col-xs-6" style="height: 160px;width:160px;overflow: scroll;top: 1px">
73
- <img-self v-if="bindingData.f_head_pic" :src="bindingData.f_head_pic" width="140" height="140"></img-self>
74
- <button v-if="!bindingData.f_head_pic" type="button" name="button" class="btn btn-primary" @click="takePictures('com.aofeng.hybrid.android.peripheral.CameraActivity')">拍照</button>
75
- <button v-if="!bindingData.f_head_pic" type="button" name="button" class="btn btn-primary" @click="takePictures('com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity')">相册</button>
76
- </div>
77
- </div>
78
- </div>
79
- </div>
80
- <div class="panel auto">
81
- <div class="panel-body">
82
- <div style="display: flex;justify-content: center;">
83
- <button class="col-sm-3 btn btn-primary" @click="binding()">绑定</button>
84
- </div>
85
- </div>
86
- </div>
87
- </div>
88
- </template>
89
-
90
- <script>
91
- import {HttpResetClass} from 'vue-client'
92
- import * as Util from '../../Util'
93
-
94
-
95
- export default {
96
- title: '二维码绑定',
97
- data() {
98
- return {
99
- bindingData: {},
100
- residentialAreas: [{label: '请选择', value: ''}],
101
- userNames: [{label: '请选择', value: ''}],
102
- headPostTypes:[{label: '请选择', value: ''} ,...this.$appdata.getParam('负责人职务')],
103
- types: [{label: '请选择', value: ''}, {label: '小区', value: '小区'}, {label: '用户', value: '用户'}]
104
- }
105
- },
106
- props: {
107
- row: {
108
- type: Object
109
- }
110
- },
111
- methods: {
112
- async fetchUsers(condition) {
113
- try {
114
- const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
115
- data: {
116
- items: 'ui.f_user_name,ui.f_userinfo_id,ui.f_userinfo_code',
117
- tablename: 't_userinfo ui LEFT JOIN t_userfiles uf on ui.f_userinfo_id = uf.f_userinfo_id',
118
- condition: condition,
119
- orderitem: '1'
120
- }
121
- });
122
- return response.data;
123
- } catch (error) {
124
- return [];
125
- }
126
- },
127
- async refreshUser(val) {
128
- let condition = `1=1 and f_user_name is not null and uf.f_user_type = '非民用' and uf.f_table_state in ('正常','停用') and (ui.f_user_name like '${val}%' or ui.f_userinfo_code like '${this.bindingData.f_userinfo_code}%')`;
129
- const users = await this.fetchUsers(condition);
130
- users.forEach(item => {
131
- if (!this.userNames.some(user => user.value.f_userinfo_id == item.f_userinfo_id)) {
132
- this.userNames.push({ label: `${item.f_user_name}:${item.f_userinfo_code}`, value: item })
133
- }
134
- })
135
- },
136
- cameraCallBack(prop,fileName) {
137
- this.$set('bindingData.f_head_pic',fileName)
138
- },
139
- takePictures(page){
140
- HostApp.__callback__ = this.cameraCallBack
141
- HostApp.__this__ = this
142
- let prop = 'QRCode'
143
- this.fileName = Util.guid() +'.jpg'
144
- HostApp._open_a_page({
145
- type: 'boomerang',
146
- page: page,
147
- param: {
148
- file: this.fileName,
149
- requestCode: 111,
150
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
151
- watermark: ''
152
- }
153
- })
154
- },
155
- async binding() {
156
- if (!this.bindingData.f_head_pic){
157
- this.$showMessage('请上传图片')
158
- return
159
- }
160
- let tableImages = []
161
- if (!this.row.f_head_pic){
162
- tableImages.push({
163
- path:this.bindingData.f_head_pic
164
- })
165
- }
166
- let data = {
167
- tableImages: tableImages
168
- }
169
- HostApp.__this__ = this
170
- HostApp.logicWithHint({
171
- 'logic': 'imagesUploadAndroid', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
172
- 'data': data, 'backresult': 1
173
- })
174
- },
175
- async commitCallBack(jo) {
176
- if (jo.state == 'ok') {
177
- if (this.bindingData.f_userinfo && this.bindingData.f_type == '用户'){
178
- this.bindingData.f_user_name = this.bindingData.f_userinfo.split(':')[0].trim()
179
- this.bindingData.f_userinfo_id = this.bindingData.f_userinfo.split(':')[1].trim()
180
- }else if (this.bindingData.f_userinfo && this.bindingData.f_type == '小区') {
181
- this.bindingData.f_user_name = this.bindingData.f_userinfo.split(':')[0].trim()
182
- this.bindingData.f_userinfo_id = this.bindingData.f_userinfo.split(':')[1].trim()
183
- }
184
- const res = JSON.parse(jo.result)
185
- let sql = ''
186
- if (res.images && res.images.length > 0){
187
- sql = `update t_qr_code set f_head_name = '${this.bindingData.f_head_name}',f_head_post = '${this.bindingData.f_head_post}',f_head_phone = '${this.bindingData.f_head_phone}',f_type = '${this.bindingData.f_type}',f_user_name = '${this.bindingData.f_user_name}',f_userinfo_id = '${this.bindingData.f_userinfo_id}',f_comments = '${this.bindingData.f_comments}',f_head_pic='${res.images[0].imgfileName}' where id = '${this.bindingData.id}'`
188
- }else {
189
- sql = `update t_qr_code set f_head_name = '${this.bindingData.f_head_name}',f_head_post = '${this.bindingData.f_head_post}',f_head_phone = '${this.bindingData.f_head_phone}',f_type = '${this.bindingData.f_type}',f_user_name = '${this.bindingData.f_user_name}',f_userinfo_id = '${this.bindingData.f_userinfo_id}',f_comments = '${this.bindingData.f_comments}' where id = '${this.bindingData.id}'`
190
- }
191
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/runSQL`, {data: {sql: sql}}).then(()=>{
192
- this.$showMessage('绑定成功')
193
- this.$dispatch('confirm')
194
- }).catch(()=>{
195
- this.$showMessage('绑定失败')
196
- })
197
- }else {
198
- this.$showMessage('图片上传失败')
199
- }
200
- },
201
- },
202
- async ready() {
203
- this.bindingData = JSON.parse(JSON.stringify(this.row))
204
- if(this.bindingData.f_head_pic){
205
- this.bindingData.f_head_pic = `${this.$androidUtil.getProxyUrl()}/rs/image/file/${this.bindingData.f_head_pic}`
206
- }
207
- let residentialArea = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
208
- data: {
209
- items: 'f_residential_area,id',
210
- tablename: 't_area',
211
- condition: `1=1 and f_residential_area is not null`,
212
- orderitem: '1'
213
- }
214
- })
215
- residentialArea.data.forEach(item => {
216
- if (item.id == this.bindingData.f_userinfo_id){
217
- this.bindingData.f_userinfo = `${item.f_residential_area}:${item.id}`
218
- }
219
- this.residentialAreas.push({label: item.f_residential_area, value: `${item.f_residential_area}:${item.id}`});
220
- })
221
- const users = await this.fetchUsers(`1=1 and f_user_name is not null and uf.f_user_type = '非民用' and uf.f_table_state in ('正常','停用')`)
222
- users.forEach(item => {
223
- if (this.bindingData.f_userinfo_id == item.f_userinfo_code){
224
- this.bindingData.f_userinfo = `${item.f_user_name}:${item.f_userinfo_code}`
225
- }
226
- this.userNames.push({ label: `${item.f_user_name}:${item.f_userinfo_code}`, value: `${item.f_user_name}:${item.f_userinfo_code}` })
227
- })
228
- }
229
- }
230
- </script>
231
- <style lang="less" scoped>
232
- .butt3 {
233
- float: right;
234
- width: 12px;
235
- margin: 1% 2% 0 0;
236
- }
237
-
238
- .rightipt {
239
- width: 60%;
240
- float: left;
241
- margin-left: 5%;
242
- }
243
-
244
- .righttxt {
245
- border: none;
246
- margin-left: 5px;
247
- /*border-left: 5px solid #A2C2EB;*/
248
- float: left;
249
- width: 25%;
250
- margin-bottom: 3px;
251
- text-align: left;
252
- word-wrap: break-word;
253
- white-space: normal;
254
- }
255
-
256
- .spanboder {
257
- border-bottom: 2px solid #499edf;
258
- padding-bottom: 8px
259
- }
260
-
261
- #upuserinfo_sel /deep/ ul {
262
- width: 100% !important;
263
- left: 0 !important;
264
- }
265
-
266
- .btn-photo {
267
- border: 0;
268
- border-radius: 7px;
269
- background-color: #7dc1f4;
270
- font: 15px PingFang-SC-Bold;
271
- height: 20%;
272
- }
273
-
274
- .panel-self {
275
- border-radius: 10px;
276
- border: 1px solid #499EDF;
277
- background-color: #F8F8F8;
278
- }
279
-
280
- .div-photo {
281
- width: auto;
282
- height: auto;
283
- /* margin-top: 10px; */
284
- position: absolute;
285
- bottom: 10px;
286
- right: 10px;
287
- }
288
- </style>
289
- <style lang="less">
290
- #upuserinfo_sel ul {
291
- width: 100% !important;
292
- left: 0 !important;
293
- }
294
- </style>
1
+ <template>
2
+ <div style="height: 100%">
3
+ <div class="panel auto">
4
+ <div class="panel-body ">
5
+ <div class="row auto" style="margin: 5px 0">
6
+ <label class="righttxt" style="width: 30%;">负责人姓名:</label>
7
+ <input v-model="bindingData.f_head_name" class="form-control rightipt" type="text"/>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <div class="panel auto">
12
+ <div class="panel-body ">
13
+ <div class="row auto" style="margin: 5px 0">
14
+ <label class="righttxt" style="width: 30%;">负责人职务:</label>
15
+ <v-select v-model="bindingData.f_head_post" :options='headPostTypes' :value.sync="bindingData.f_head_post" :width="'60%'"
16
+ class="input-font" clear-button close-on-select placeholder='类型' style="margin-left: 5%;"
17
+ value-single></v-select>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ <div class="panel auto">
22
+ <div class="panel-body ">
23
+ <div class="row auto" style="margin: 5px 0">
24
+ <label class="righttxt" style="width: 30%;">负责人电话:</label>
25
+ <input v-model="bindingData.f_head_phone" class="form-control rightipt" type="text"/>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <div class="panel auto">
30
+ <div class="panel-body ">
31
+ <div class="row auto" style="margin: 5px 0">
32
+ <label class="righttxt" style="width: 30%;">绑定类型:</label>
33
+ <v-select v-model="bindingData.f_type" :options='types' :value.sync="bindingData.f_type" :width="'60%'"
34
+ class="input-font" clear-button close-on-select placeholder='类型' style="margin-left: 5%;"
35
+ value-single></v-select>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div v-if="bindingData.f_type == '小区'" class="panel auto">
40
+ <div class="panel-body ">
41
+ <div class="row auto" style="margin: 5px 0">
42
+ <label class="righttxt" style="width: 30%;">小区名称:</label>
43
+ <v-select v-model="bindingData.f_userinfo" :options='residentialAreas' :value.sync="bindingData.f_userinfo" :width="'60%'"
44
+ class="input-font" clear-button close-on-select placeholder='小区名称'
45
+ style="margin-left: 5%;" value-single></v-select>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <div v-if="bindingData.f_type == '用户'" class="panel auto">
50
+ <div class="panel-body ">
51
+ <div class="row auto" style="margin: 5px 0">
52
+ <label class="righttxt" style="width: 30%;">用户名称:</label>
53
+ <v-select v-model="bindingData.f_userinfo" :options='userNames' :value.sync="bindingData.f_userinfo" :width="'60%'"
54
+ class="input-font" clear-button close-on-select placeholder='用户名称' @select-search="refreshUser"
55
+ style="margin-left: 5%;" menu-mode="align-button"
56
+ value-single></v-select>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ <div class="panel auto">
61
+ <div class="panel-body">
62
+ <label class="row auto text-left col-md-4 col-xs-4">备注</label>
63
+ <div class="col-md-12 col-sm-12 col-xs-12">
64
+ <textarea v-model="bindingData.f_comments" class="form-control"></textarea>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ <div class="panel auto">
69
+ <div class="panel-body ">
70
+ <div class="row auto" style="margin: 5px 0">
71
+ <label class="righttxt">图片:</label>
72
+ <div class="col-xs-6" style="height: 160px;width:160px;overflow: scroll;top: 1px">
73
+ <img-self v-if="bindingData.f_head_pic" :src="bindingData.f_head_pic" width="140" height="140"></img-self>
74
+ <button v-if="!bindingData.f_head_pic" type="button" name="button" class="btn btn-primary" @click="takePictures('com.aofeng.hybrid.android.peripheral.CameraActivity')">拍照</button>
75
+ <button v-if="!bindingData.f_head_pic" type="button" name="button" class="btn btn-primary" @click="takePictures('com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity')">相册</button>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ <div class="panel auto">
81
+ <div class="panel-body">
82
+ <div style="display: flex;justify-content: center;">
83
+ <button class="col-sm-3 btn btn-primary" @click="binding()">绑定</button>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </template>
89
+
90
+ <script>
91
+ import {HttpResetClass} from 'vue-client'
92
+ import * as Util from '../../Util'
93
+
94
+
95
+ export default {
96
+ title: '二维码绑定',
97
+ data() {
98
+ return {
99
+ bindingData: {},
100
+ residentialAreas: [{label: '请选择', value: ''}],
101
+ userNames: [{label: '请选择', value: ''}],
102
+ headPostTypes:[{label: '请选择', value: ''} ,...this.$appdata.getParam('负责人职务')],
103
+ types: [{label: '请选择', value: ''}, {label: '小区', value: '小区'}, {label: '用户', value: '用户'}]
104
+ }
105
+ },
106
+ props: {
107
+ row: {
108
+ type: Object
109
+ }
110
+ },
111
+ methods: {
112
+ async fetchUsers(condition) {
113
+ try {
114
+ const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
115
+ data: {
116
+ items: 'ui.f_user_name,ui.f_userinfo_id,ui.f_userinfo_code',
117
+ tablename: 't_userinfo ui LEFT JOIN t_userfiles uf on ui.f_userinfo_id = uf.f_userinfo_id',
118
+ condition: condition,
119
+ orderitem: '1'
120
+ }
121
+ });
122
+ return response.data;
123
+ } catch (error) {
124
+ return [];
125
+ }
126
+ },
127
+ async refreshUser(val) {
128
+ let condition = `1=1 and f_user_name is not null and uf.f_user_type = '非民用' and uf.f_table_state in ('正常','停用') and (ui.f_user_name like '${val}%' or ui.f_userinfo_code like '${this.bindingData.f_userinfo_code}%')`;
129
+ const users = await this.fetchUsers(condition);
130
+ users.forEach(item => {
131
+ if (!this.userNames.some(user => user.value.f_userinfo_id == item.f_userinfo_id)) {
132
+ this.userNames.push({ label: `${item.f_user_name}:${item.f_userinfo_code}`, value: item })
133
+ }
134
+ })
135
+ },
136
+ cameraCallBack(prop,fileName) {
137
+ this.$set('bindingData.f_head_pic',fileName)
138
+ },
139
+ takePictures(page){
140
+ HostApp.__callback__ = this.cameraCallBack
141
+ HostApp.__this__ = this
142
+ let prop = 'QRCode'
143
+ this.fileName = Util.guid() +'.jpg'
144
+ HostApp._open_a_page({
145
+ type: 'boomerang',
146
+ page: page,
147
+ param: {
148
+ file: this.fileName,
149
+ requestCode: 111,
150
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
151
+ watermark: ''
152
+ }
153
+ })
154
+ },
155
+ async binding() {
156
+ if (!this.bindingData.f_head_pic){
157
+ this.$showMessage('请上传图片')
158
+ return
159
+ }
160
+ let tableImages = []
161
+ if (!this.row.f_head_pic){
162
+ tableImages.push({
163
+ path:this.bindingData.f_head_pic
164
+ })
165
+ }
166
+ let data = {
167
+ tableImages: tableImages
168
+ }
169
+ HostApp.__this__ = this
170
+ HostApp.logicWithHint({
171
+ 'logic': 'imagesUploadAndroid', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
172
+ 'data': data, 'backresult': 1
173
+ })
174
+ },
175
+ async commitCallBack(jo) {
176
+ if (jo.state == 'ok') {
177
+ if (this.bindingData.f_userinfo && this.bindingData.f_type == '用户'){
178
+ this.bindingData.f_user_name = this.bindingData.f_userinfo.split(':')[0].trim()
179
+ this.bindingData.f_userinfo_id = this.bindingData.f_userinfo.split(':')[1].trim()
180
+ }else if (this.bindingData.f_userinfo && this.bindingData.f_type == '小区') {
181
+ this.bindingData.f_user_name = this.bindingData.f_userinfo.split(':')[0].trim()
182
+ this.bindingData.f_userinfo_id = this.bindingData.f_userinfo.split(':')[1].trim()
183
+ }
184
+ const res = JSON.parse(jo.result)
185
+ let sql = ''
186
+ if (res.images && res.images.length > 0){
187
+ sql = `update t_qr_code set f_head_name = '${this.bindingData.f_head_name}',f_head_post = '${this.bindingData.f_head_post}',f_head_phone = '${this.bindingData.f_head_phone}',f_type = '${this.bindingData.f_type}',f_user_name = '${this.bindingData.f_user_name}',f_userinfo_id = '${this.bindingData.f_userinfo_id}',f_comments = '${this.bindingData.f_comments}',f_head_pic='${res.images[0].imgfileName}' where id = '${this.bindingData.id}'`
188
+ }else {
189
+ sql = `update t_qr_code set f_head_name = '${this.bindingData.f_head_name}',f_head_post = '${this.bindingData.f_head_post}',f_head_phone = '${this.bindingData.f_head_phone}',f_type = '${this.bindingData.f_type}',f_user_name = '${this.bindingData.f_user_name}',f_userinfo_id = '${this.bindingData.f_userinfo_id}',f_comments = '${this.bindingData.f_comments}' where id = '${this.bindingData.id}'`
190
+ }
191
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/runSQL`, {data: {sql: sql}}).then(()=>{
192
+ this.$showMessage('绑定成功')
193
+ this.$dispatch('confirm')
194
+ }).catch(()=>{
195
+ this.$showMessage('绑定失败')
196
+ })
197
+ }else {
198
+ this.$showMessage('图片上传失败')
199
+ }
200
+ },
201
+ },
202
+ async ready() {
203
+ this.bindingData = JSON.parse(JSON.stringify(this.row))
204
+ if(this.bindingData.f_head_pic && !this.bindingData.url){
205
+ this.bindingData.f_head_pic = `${this.$androidUtil.getProxyUrl()}/rs/image/file/${this.bindingData.f_head_pic}`
206
+ }
207
+ if (this.bindingData.url && !this.bindingData.f_head_pic){
208
+ this.bindingData.f_head_pic = `${this.$androidUtil.getProxyUrl()}${this.bindingData.url}`
209
+ }
210
+ if (this.bindingData.f_head_pic && this.bindingData.url){
211
+ this.bindingData.f_head_pic = `${this.$androidUtil.getProxyUrl()}${this.bindingData.url}`
212
+ }
213
+ let residentialArea = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
214
+ data: {
215
+ items: 'f_residential_area,id',
216
+ tablename: 't_area',
217
+ condition: `1=1 and f_residential_area is not null`,
218
+ orderitem: '1'
219
+ }
220
+ })
221
+ residentialArea.data.forEach(item => {
222
+ if (item.id == this.bindingData.f_userinfo_id){
223
+ this.bindingData.f_userinfo = `${item.f_residential_area}:${item.id}`
224
+ }
225
+ this.residentialAreas.push({label: item.f_residential_area, value: `${item.f_residential_area}:${item.id}`});
226
+ })
227
+ const users = await this.fetchUsers(`1=1 and f_user_name is not null and uf.f_user_type = '非民用' and uf.f_table_state in ('正常','停用')`)
228
+ users.forEach(item => {
229
+ if (this.bindingData.f_userinfo_id == item.f_userinfo_code){
230
+ this.bindingData.f_userinfo = `${item.f_user_name}:${item.f_userinfo_code}`
231
+ }
232
+ this.userNames.push({ label: `${item.f_user_name}:${item.f_userinfo_code}`, value: `${item.f_user_name}:${item.f_userinfo_code}` })
233
+ })
234
+ }
235
+ }
236
+ </script>
237
+ <style lang="less" scoped>
238
+ .butt3 {
239
+ float: right;
240
+ width: 12px;
241
+ margin: 1% 2% 0 0;
242
+ }
243
+
244
+ .rightipt {
245
+ width: 60%;
246
+ float: left;
247
+ margin-left: 5%;
248
+ }
249
+
250
+ .righttxt {
251
+ border: none;
252
+ margin-left: 5px;
253
+ /*border-left: 5px solid #A2C2EB;*/
254
+ float: left;
255
+ width: 25%;
256
+ margin-bottom: 3px;
257
+ text-align: left;
258
+ word-wrap: break-word;
259
+ white-space: normal;
260
+ }
261
+
262
+ .spanboder {
263
+ border-bottom: 2px solid #499edf;
264
+ padding-bottom: 8px
265
+ }
266
+
267
+ #upuserinfo_sel /deep/ ul {
268
+ width: 100% !important;
269
+ left: 0 !important;
270
+ }
271
+
272
+ .btn-photo {
273
+ border: 0;
274
+ border-radius: 7px;
275
+ background-color: #7dc1f4;
276
+ font: 15px PingFang-SC-Bold;
277
+ height: 20%;
278
+ }
279
+
280
+ .panel-self {
281
+ border-radius: 10px;
282
+ border: 1px solid #499EDF;
283
+ background-color: #F8F8F8;
284
+ }
285
+
286
+ .div-photo {
287
+ width: auto;
288
+ height: auto;
289
+ /* margin-top: 10px; */
290
+ position: absolute;
291
+ bottom: 10px;
292
+ right: 10px;
293
+ }
294
+ </style>
295
+ <style lang="less">
296
+ #upuserinfo_sel ul {
297
+ width: 100% !important;
298
+ left: 0 !important;
299
+ }
300
+ </style>