address-client 1.5.22 → 1.5.23
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/{6.8/gc.properties → buildOutputCleanup/built.bin} +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/build/dev-server.js +115 -115
- package/package.json +97 -97
- package/src/components/AddressList.vue +210 -204
- package/src/components/AreaList.vue +175 -169
- package/src/components/StreetList.vue +145 -139
- package/src/main.js +19 -21
- package/.gradle/6.8/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/.gradle/6.8/fileHashes/fileHashes.bin +0 -0
- package/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/configuration-cache/gc.properties +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -185
- package/gradlew.bat +0 -89
|
@@ -1,169 +1,175 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-inline auto" partial>
|
|
6
|
-
<div class="form-group form-input-group">
|
|
7
|
-
<right-tree
|
|
8
|
-
:userid.sync='$parent.$parent.userid'
|
|
9
|
-
:source.sync='$parent.$parent.source'
|
|
10
|
-
@re-res="$parent.$parent.getRes"></right-tree>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="form-group form-input-group">
|
|
13
|
-
<input type="text" class="form-control" v-model="model.f_province"
|
|
14
|
-
condition="f_province like '%{}%'" placeholder="省份"
|
|
15
|
-
:size="model.f_province ? model.f_province.length*2 : 2"/>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="form-group form-input-group">
|
|
18
|
-
<input type="text" class="form-control" v-model="model.f_city"
|
|
19
|
-
condition="f_city like '%{}%'" placeholder="城市"
|
|
20
|
-
:size="model.f_city ? model.f_city.length*2 : 2"/>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-group form-input-group">
|
|
23
|
-
<input type="text" class="form-control" v-model="model.f_district"
|
|
24
|
-
condition="f_district like '%{}%'" placeholder="区县"
|
|
25
|
-
:size="model.f_district ? model.f_district.length*2 : 2"/>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="form-group form-input-group">
|
|
28
|
-
<input type="text" class="form-control" v-model="model.f_street"
|
|
29
|
-
condition="f_street like '%{}%'" placeholder="街道"
|
|
30
|
-
:size="model.f_street ? model.f_street.length*2 : 2"/>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="form-group form-input-group">
|
|
33
|
-
<input type="text" class="form-control" v-model="model.f_residential_area"
|
|
34
|
-
condition="f_residential_area like '%{}%'" placeholder="小区"
|
|
35
|
-
:size="model.f_residential_area ? model.f_residential_area.length*2 : 2"/>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="form-group form-input-group">
|
|
38
|
-
<button class="btn btn-success width-80" @click="search()" >查询</button>
|
|
39
|
-
<button v-if="!$parent.$parent.f_special" class="btn btn-success width-80" @click="$parent.$parent.add('小区')">添加小区</button>
|
|
40
|
-
<button v-if="$parent.$parent.f_special"class="btn btn-success width-80" @click="$parent.$parent.add('单位')">添加单位</button>
|
|
41
|
-
<button class="btn btn-success width-80" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</criteria>
|
|
45
|
-
<data-grid :model="model" partial='list' v-ref:grid>
|
|
46
|
-
<template partial='head'>
|
|
47
|
-
<tr>
|
|
48
|
-
<th><nobr>id</nobr></th>
|
|
49
|
-
<th><nobr>省份</nobr></th>
|
|
50
|
-
<th><nobr>城市</nobr></th>
|
|
51
|
-
<th><nobr>区/县</nobr></th>
|
|
52
|
-
<th><nobr>街道名称</nobr></th>
|
|
53
|
-
<!--民用小区信息开始-->
|
|
54
|
-
<th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
|
|
55
|
-
<th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
|
|
56
|
-
<!--民用小区信息结束-->
|
|
57
|
-
<!--非民用单位信息开始-->
|
|
58
|
-
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
|
|
59
|
-
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
|
|
60
|
-
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
|
|
61
|
-
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
|
|
62
|
-
<!--非民用单位信息结束-->
|
|
63
|
-
<th><nobr>片区/管理站 </nobr></th>
|
|
64
|
-
<th><nobr>营业网点</nobr></th>
|
|
65
|
-
<th><nobr>操作人</nobr></th>
|
|
66
|
-
<th><nobr>操作日期</nobr></th>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<td style="text-align:center"><nobr>{{row.
|
|
73
|
-
<td style="text-align:center"><nobr>{{row.
|
|
74
|
-
<td style="text-align:center"><nobr>{{row.
|
|
75
|
-
<td style="text-align:center"><nobr>{{row.
|
|
76
|
-
<td style="text-align:center"><nobr>{{row.
|
|
77
|
-
<td style="text-align:center"><nobr>{{row.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<td v-if="$parent.$parent.$parent.f_special"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<td style="text-align:center"><nobr>{{row.
|
|
84
|
-
<td style="text-align:center"><nobr>{{row.
|
|
85
|
-
<td style="text-align:center"><nobr>{{row.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</template>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-inline auto" partial>
|
|
6
|
+
<div class="form-group form-input-group">
|
|
7
|
+
<right-tree
|
|
8
|
+
:userid.sync='$parent.$parent.userid'
|
|
9
|
+
:source.sync='$parent.$parent.source'
|
|
10
|
+
@re-res="$parent.$parent.getRes"></right-tree>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="form-group form-input-group">
|
|
13
|
+
<input type="text" class="form-control" v-model="model.f_province"
|
|
14
|
+
condition="f_province like '%{}%'" placeholder="省份"
|
|
15
|
+
:size="model.f_province ? model.f_province.length*2 : 2"/>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="form-group form-input-group">
|
|
18
|
+
<input type="text" class="form-control" v-model="model.f_city"
|
|
19
|
+
condition="f_city like '%{}%'" placeholder="城市"
|
|
20
|
+
:size="model.f_city ? model.f_city.length*2 : 2"/>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group form-input-group">
|
|
23
|
+
<input type="text" class="form-control" v-model="model.f_district"
|
|
24
|
+
condition="f_district like '%{}%'" placeholder="区县"
|
|
25
|
+
:size="model.f_district ? model.f_district.length*2 : 2"/>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group form-input-group">
|
|
28
|
+
<input type="text" class="form-control" v-model="model.f_street"
|
|
29
|
+
condition="f_street like '%{}%'" placeholder="街道"
|
|
30
|
+
:size="model.f_street ? model.f_street.length*2 : 2"/>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="form-group form-input-group">
|
|
33
|
+
<input type="text" class="form-control" v-model="model.f_residential_area"
|
|
34
|
+
condition="f_residential_area like '%{}%'" placeholder="小区"
|
|
35
|
+
:size="model.f_residential_area ? model.f_residential_area.length*2 : 2"/>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="form-group form-input-group">
|
|
38
|
+
<button class="btn btn-success width-80" @click="search()" >查询</button>
|
|
39
|
+
<button v-if="!$parent.$parent.f_special" class="btn btn-success width-80" @click="$parent.$parent.add('小区')">添加小区</button>
|
|
40
|
+
<button v-if="$parent.$parent.f_special"class="btn btn-success width-80" @click="$parent.$parent.add('单位')">添加单位</button>
|
|
41
|
+
<button class="btn btn-success width-80" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</criteria>
|
|
45
|
+
<data-grid :model="model" partial='list' v-ref:grid>
|
|
46
|
+
<template partial='head'>
|
|
47
|
+
<tr>
|
|
48
|
+
<th><nobr>id</nobr></th>
|
|
49
|
+
<th><nobr>省份</nobr></th>
|
|
50
|
+
<th><nobr>城市</nobr></th>
|
|
51
|
+
<th><nobr>区/县</nobr></th>
|
|
52
|
+
<th><nobr>街道名称</nobr></th>
|
|
53
|
+
<!--民用小区信息开始-->
|
|
54
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
|
|
55
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
|
|
56
|
+
<!--民用小区信息结束-->
|
|
57
|
+
<!--非民用单位信息开始-->
|
|
58
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
|
|
59
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
|
|
60
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
|
|
61
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
|
|
62
|
+
<!--非民用单位信息结束-->
|
|
63
|
+
<th><nobr>片区/管理站 </nobr></th>
|
|
64
|
+
<th><nobr>营业网点</nobr></th>
|
|
65
|
+
<th><nobr>操作人</nobr></th>
|
|
66
|
+
<th><nobr>操作日期</nobr></th>
|
|
67
|
+
<th><nobr>操作</nobr></th>
|
|
68
|
+
</tr>
|
|
69
|
+
</template>
|
|
70
|
+
<template partial='body'>
|
|
71
|
+
<tr>
|
|
72
|
+
<td style="text-align:center"><nobr>{{row.id}}</nobr></td>
|
|
73
|
+
<td style="text-align:center"><nobr>{{row.f_province}}</nobr></td>
|
|
74
|
+
<td style="text-align:center"><nobr>{{row.f_city}}</nobr></td>
|
|
75
|
+
<td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
|
|
76
|
+
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
77
|
+
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
78
|
+
<td style="text-align:center"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
|
|
79
|
+
<!--非民用单位信息开始-->
|
|
80
|
+
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
|
|
81
|
+
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
|
|
82
|
+
<!--非民用单位信息结束-->
|
|
83
|
+
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
84
|
+
<td style="text-align:center"><nobr>{{row.f_outlets}}</nobr></td>
|
|
85
|
+
<td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
|
|
86
|
+
<td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
87
|
+
<td style="text-align:center">
|
|
88
|
+
<button type="button" name="button" class="btn btn-danger" style="padding: 5px 12px"
|
|
89
|
+
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
</template>
|
|
93
|
+
<template partial='foot'></template>
|
|
94
|
+
</data-grid>
|
|
95
|
+
</criteria-paged>
|
|
96
|
+
</div>
|
|
97
|
+
</template>
|
|
98
|
+
|
|
99
|
+
<script>
|
|
100
|
+
import { PagedList } from 'vue-client'
|
|
101
|
+
|
|
102
|
+
export default {
|
|
103
|
+
data () {
|
|
104
|
+
return {
|
|
105
|
+
model: new PagedList('rs/sql/address_getarealist',20),
|
|
106
|
+
userid: this.$login.f.id,
|
|
107
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
108
|
+
addflag: false,
|
|
109
|
+
jurisdiction: this.$login.r,
|
|
110
|
+
addtitle:''
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
title: '小区管理',
|
|
114
|
+
props:{
|
|
115
|
+
f_filialeids:{
|
|
116
|
+
type: String
|
|
117
|
+
},
|
|
118
|
+
f_special:{
|
|
119
|
+
type: String
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
ready(){
|
|
123
|
+
|
|
124
|
+
},
|
|
125
|
+
methods: {
|
|
126
|
+
async delete(row){
|
|
127
|
+
if(row.id){
|
|
128
|
+
var id = row.id
|
|
129
|
+
let useraredss = await this.$resetpost('rs/sql/address_singleTable',
|
|
130
|
+
{data: {
|
|
131
|
+
items: 'f_residential_area_id',
|
|
132
|
+
tablename: 't_user_address',
|
|
133
|
+
condition: `f_residential_area_id='${id}'`}
|
|
134
|
+
},
|
|
135
|
+
{resolveMsg: null, rejectMsg: null})
|
|
136
|
+
if(useraredss.data.length>0){
|
|
137
|
+
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
138
|
+
}else{
|
|
139
|
+
this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
140
|
+
this.$dispatch('cancel')
|
|
141
|
+
})
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
add(val){
|
|
146
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
147
|
+
this.$dispatch('add')
|
|
148
|
+
},
|
|
149
|
+
modify(val){
|
|
150
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
151
|
+
this.$dispatch('modify',val)
|
|
152
|
+
},
|
|
153
|
+
search (args) {
|
|
154
|
+
if(this.f_special){
|
|
155
|
+
args.condition = `${args.condition} and s.f_filiale='1' and s.f_filialeids = '${this.f_filialeids}'`
|
|
156
|
+
}else{
|
|
157
|
+
args.condition = `${args.condition} and s.f_filialeids = '${this.f_filialeids}'`
|
|
158
|
+
}
|
|
159
|
+
this.model.search(args.condition, args.model)
|
|
160
|
+
},
|
|
161
|
+
//清空
|
|
162
|
+
clear(){
|
|
163
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
164
|
+
},
|
|
165
|
+
getRes (obj) {
|
|
166
|
+
console.log(obj,'选择到公司')
|
|
167
|
+
this.f_filialeids = obj.resids
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
watch:{
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|
|
175
|
+
</script>
|