address-client 3.0.24 → 3.0.26-aode

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/CHANGELOG.md CHANGED
@@ -1,15 +1,12 @@
1
- # Change Log
2
- 所有关于本产品的变化都在该文档里。
3
-
4
- ## 3.0.24-2020-10-15 @张科科
5
- --地址管理 特殊建档 增加小区选择
6
-
7
- ## 1.3.2-2018-11-12 @刘江涛
8
- - 地址查询修改
9
-
10
- ## 1.3.1-2018-11-11 @何宁社
11
- - 地址管理完成
12
- - 地址查询完成
13
-
14
- ## 1.2.0-2018-11-11 @何宁社
15
- - 删除样式
1
+ # Change Log
2
+ 所有关于本产品的变化都在该文档里。
3
+
4
+ ## 1.3.2-2018-11-12 @刘江涛
5
+ - 地址查询修改
6
+
7
+ ## 1.3.1-2018-11-11 @何宁社
8
+ - 地址管理完成
9
+ - 地址查询完成
10
+
11
+ ## 1.2.0-2018-11-11 @何宁社
12
+ - 删除样式
@@ -10,7 +10,7 @@ var proxy = httpProxy.createProxyServer()
10
10
 
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
- var str = 'http://127.0.0.1:8091/ldap', str2= 'http://127.0.0.1:8300'
13
+ var str = 'http://127.0.0.1:8091/ldap', str2= 'http://192.168.10.14:8300'
14
14
  var proxyTable = {
15
15
 
16
16
  '/rs/logic/getLogin': {
@@ -32,11 +32,11 @@ var proxyTable = {
32
32
  target: str2
33
33
  },
34
34
  '/rs/logic/getSaleInitData': {
35
- target: 'http://127.0.0.1:8090/product'
35
+ target: str2
36
36
  },
37
37
  '/rs': {
38
38
  // target: 'http://192.168.50.199:8300'
39
- target: 'http://127.0.0.1:8092/address'
39
+ target: str2
40
40
  }
41
41
  }
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.0.24",
3
+ "version": "3.0.26-aode",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -72,15 +72,15 @@
72
72
  "mocha": "^3.2.0",
73
73
  "ncp": "^2.0.0",
74
74
  "rimraf": "^2.5.0",
75
- "sale-client": "^3.0.0",
75
+ "sale-client": "1.0.66-aode",
76
76
  "selenium-server": "2.52.0",
77
77
  "sinon": "^2.1.0",
78
78
  "sinon-chai": "^2.8.0",
79
79
  "style": "0.0.3",
80
80
  "style-loader": "^0.20.3",
81
- "system-clients": "3.0.52",
81
+ "system-clients": "3.1.84",
82
82
  "url-loader": "^0.5.7",
83
- "vue-client": "1.21.47",
83
+ "vue-client": "1.22.20-5",
84
84
  "vue-hot-reload-api": "^1.2.0",
85
85
  "vue-html-loader": "^1.0.0",
86
86
  "vue-loader": "^8.2.1",
@@ -92,6 +92,12 @@
92
92
  "webpack": "^1.12.2",
93
93
  "webpack-dev-middleware": "^1.4.0",
94
94
  "webpack-hot-middleware": "^2.6.0",
95
- "webpack-merge": "^0.8.3"
95
+ "webpack-merge": "^0.8.3",
96
+ "jsencrypt": "3.0.0-rc.1"
97
+ },
98
+ "directories": {
99
+ "doc": "doc",
100
+ "example": "examples",
101
+ "test": "test"
96
102
  }
97
103
  }
package/src/address.js CHANGED
@@ -27,6 +27,8 @@ export default function () {
27
27
  Vue.component('add-street-pcd', (resolve) => { require(['./components/AddStreetOrPcd'], resolve) })
28
28
  //小区列表
29
29
  Vue.component('area-list', (resolve) => { require(['./components/AreaList'], resolve) })
30
+ // 使用该小区的用户信息
31
+ Vue.component('area-user', (resolve) => { require(['./components/areauser/AreaUser.vue'], resolve) })
30
32
  //小区管理(包含修改表具,小区的添加)
31
33
  Vue.component('area-manage', (resolve) => { require(['./components/AreaManage'], resolve) })
32
34
  //单位管理()
@@ -43,4 +45,5 @@ export default function () {
43
45
  Vue.component('user-address-change', (resolve) => { require(['./components/UserAddressChange'], resolve) })
44
46
  //批量置换接单
45
47
  Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
48
+
46
49
  }
@@ -298,18 +298,22 @@
298
298
 
299
299
  async initSlice (val) {
300
300
  if (val) {
301
- let getAllArea = await this.$resetpost('/rs/search', {
302
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
303
- userid: this.$login.f.id
301
+ this.sliceArea = [];
302
+ let getAllArea = await this.$resetpost('/rs/sql/address_singleTableOrderBy', {
303
+ data:{
304
+ items: '*',
305
+ tablename: 't_zone',
306
+ orderitem: 'id',
307
+ condition: ` parentid = ${val}`
308
+ }
304
309
  }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
305
310
 
306
- let arr = getAllArea.data.filter((res) => {
307
- return res.parentid == val
308
- })
309
- this.sliceArea = []
310
- arr.forEach((res) => {
311
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
312
- })
311
+ if(getAllArea.data){
312
+ getAllArea.data.forEach((res) => {
313
+ this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
314
+ })
315
+ }
316
+
313
317
  }
314
318
  },
315
319
 
@@ -2,7 +2,7 @@
2
2
  <div class="flex" @keyup.enter="search">
3
3
  <criteria-paged :model="model" v-ref:paged>
4
4
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
 
7
7
  <div class="row">
8
8
 
@@ -10,9 +10,9 @@
10
10
  <label class="font_normal_body">组织机构</label>
11
11
  <res-select
12
12
  restype='organization'
13
- @res-select="$parent.$parent.getorg"
14
- is-mul="false"
15
- :initresid='$parent.$parent.curorgid'
13
+ @res-select="$parent.$parent.getorg"
14
+ is-mul="false"
15
+ :initresid='$parent.$parent.curorgid'
16
16
  >
17
17
  </res-select>
18
18
  </div>
@@ -59,19 +59,19 @@
59
59
  <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showrightchange">
60
60
  <label class="font_normal_body">楼&emsp;&emsp;号</label>
61
61
  <input type="text" class="input_search" style="width:60%" v-model="model.f_building" style="width:60%"
62
- condition="a.f_building like '%{}%'" placeholder="楼号"
62
+ condition="a.f_building like '{}'" placeholder="楼号"
63
63
  :size="model.f_building ? model.f_building.length*2 : 6"/>
64
64
  </div>
65
65
  <div :class="$parent.$parent.style" >
66
66
  <label class="font_normal_body">单&emsp;&emsp;元</label>
67
67
  <input type="text" class="input_search" style="width:60%" v-model="model.f_unit" style="width:60%"
68
- condition="a.f_unit like '%{}%'" placeholder="单元"
68
+ condition="a.f_unit like '{}'" placeholder="单元"
69
69
  :size="model.f_unit ? model.f_unit.length*2 : 6"/>
70
70
  </div>
71
71
  <div :class="$parent.$parent.style">
72
72
  <label class="font_normal_body">楼&emsp;&emsp;层</label>
73
73
  <input type="text" class="input_search" style="width:60%" v-model="model.f_floor" style="width:60%"
74
- condition="a.f_floor like '%{}%'" placeholder="楼层"
74
+ condition="a.f_floor like '{}'" placeholder="楼层"
75
75
  :size="model.f_floor ? model.f_floor.length*2 : 6"/>
76
76
  </div>
77
77
  <div :class="$parent.$parent.style">
@@ -80,13 +80,6 @@
80
80
  condition="a.f_room like '%{}%'" placeholder="门牌号"
81
81
  :size="model.f_room ? model.f_room.length*2 : 6"/>
82
82
  </div>
83
- <div :class="$parent.$parent.style">
84
- <label class="font_normal_body">小&emsp;&emsp;区</label>
85
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"
86
- condition="ta.f_residential_area like '%{}%'" placeholder="小区"
87
- :size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>
88
- </div>
89
-
90
83
  <div :class="$parent.$parent.style">
91
84
  <label class="font_normal_body">地址&emsp;ID</label>
92
85
  <input type="text" class="input_search" style="width:60%" v-model="model.id" style="width:60%"
@@ -99,6 +92,15 @@
99
92
  condition="a.f_address like '%{}%'" placeholder="详细地址"
100
93
  :size="model.f_address ? model.f_address.length*2 : 8"/>
101
94
  </div>
95
+ <div :class="$parent.$parent.style" >
96
+ <label class="font_normal_body">特殊地址</label>
97
+ <v-select :value.sync="model.f_special"
98
+ v-model="model.f_special"
99
+ :options='$parent.$parent.specialoptions' placeholder='请选择'
100
+ condition=" {} "
101
+ close-on-select></v-select>
102
+ </div>
103
+
102
104
  </div>
103
105
  </div>
104
106
  </criteria>
@@ -135,8 +137,8 @@
135
137
  <td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
136
138
  <td style="text-align:center"><nobr>{{row.f_create_date}}</nobr></td>
137
139
  <td style="text-align:center">
138
- <!-- <button type="button" name="button" class="btn btn-link"
139
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
140
+ <!-- <button type="button" name="button" class="btn btn-link"
141
+ @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
140
142
  <button type="button" name="button" class="btn btn-link"
141
143
  @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
142
144
  </td>
@@ -158,6 +160,8 @@
158
160
  </article>
159
161
  <footer slot="modal-footer" class="modal-footer"></footer>
160
162
  </modal>
163
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
164
+
161
165
  </template>
162
166
 
163
167
  <script>
@@ -166,6 +170,7 @@
166
170
  export default {
167
171
  data () {
168
172
  return {
173
+ iswork: false,
169
174
  criteriaShow: false,
170
175
  model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
171
176
  addflag: false,
@@ -177,7 +182,8 @@
177
182
 
178
183
  //文件上传弹框
179
184
  showFile: false,
180
- showrightchange:true
185
+ showrightchange:true,
186
+ specialoptions:[{label:"全部",value:""},{label:"是",value:"a.f_special ='1'"},{label:"否",value:"a.f_special is null"}]
181
187
  }
182
188
  },
183
189
  title: '地址列表',
@@ -222,67 +228,80 @@
222
228
  this.$dispatch('modify',val)
223
229
  },
224
230
  async delete(row){
225
- if(row.id){
226
- var id = row.id
227
- let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
228
- if(userfiles.data.length){
229
- this.$showAlert('该地址下已有正常表具档案,无法删除!','warning',1000)
230
- }else{
231
- this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
232
- this.$dispatch('cancel')
233
- })
234
- }
235
- }
236
- },
237
231
 
238
- search () {
239
- this.$refs.paged.$refs.cri.search()
240
- },
241
-
242
- selfSearch (args) {
243
-
244
- if (!this.f_orgid) {
245
- this.getorg([this.$login.f.orgid])
232
+ if(row.id){
233
+ var id = row.id
234
+ let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state in ('正常','待开通')`}},{resolveMsg: null, rejectMsg: null})
235
+ let isdelete = await this.$resetpost('rs/sql/isDeleteAddress', {data: {f_addressid: id}},{resolveMsg: null, rejectMsg: null})
236
+ if(userfiles.data.length){
237
+ this.$showAlert('该地址下已有正常/待开通表具档案,无法删除!','warning',1000)
238
+ return
239
+ }
240
+ if(isdelete.data.length){
241
+ this.$showAlert('该地址下已有正在工作的置换单,无法删除!','warning',1000)
242
+ return
246
243
  }
244
+ this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
245
+ this.$dispatch('cancel')
246
+ })
247
+ }
248
+ },
247
249
 
248
- args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
249
- this.model.search(args.condition, args.model)
250
- },
250
+ search () {
251
+ this.$refs.paged.$refs.cri.search()
252
+ },
251
253
 
252
- //清空
253
- clear(){
254
- this.$refs.paged.$refs.cri.model = {}
255
- },
256
- getorg (val) {
257
- this.f_orgid = this.$login.convertToIn(val)
258
- this.f_filialeids = val[0]
254
+ selfSearch (args) {
255
+ debugger
256
+ //去除空格
257
+ for(let key in args.model){
258
+ if(args.model[key] instanceof String){
259
+ args.model[key] = args.model[key].trim();
259
260
  }
260
- },
261
- events: {
262
- onFileUpload: async function (file, res) {
263
- console.log("上传完毕"+JSON.stringify(res))
264
- let data = {
265
- filepath: res.f_downloadpath,
266
- user:this.$login.f
267
- }
268
- console.log("filepath="+JSON.stringify(data))
269
- await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
270
- if(res.data.type=="success"){
271
- this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
272
- }else{
273
- this.$showMessage(res.data.msg);
274
- }
261
+ }
262
+ if (!this.f_orgid) {
263
+ this.getorg([this.$login.f.orgid])
264
+ }
265
+ console.log("xxx"+this.f_filialeids)
266
+ args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
267
+ this.model.search(args.condition, args.model)
268
+ },
275
269
 
276
- //关闭上传框
277
- this.closeFile()
278
- //重新查询
270
+ //清空
271
+ clear(){
272
+ this.$refs.paged.$refs.cri.model = {}
273
+ },
274
+ getorg (val) {
275
+ this.f_orgid = this.$login.convertToIn(val)
276
+ if (!this.f_orgid) {
277
+ this.f_orgid = this.f_filialeids
278
+ }
279
+ this.f_filialeids = val[0]
280
+ }
281
+ },
282
+ events: {
283
+ onFileUpload: async function (file, res) {
284
+ this.$showAlert('文件上传成功','success',1000);
285
+ this.iswork = true
286
+ console.log("上传完毕"+JSON.stringify(res))
287
+ let data = {
288
+ filepath: res.f_downloadpath,
289
+ user:this.$login.f
290
+ }
291
+ this.closeFile();
292
+ try{
293
+ await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
294
+ this.$showAlert("导入成功",'success', 2000);
295
+ this.iswork = false
279
296
  this.init()
280
297
  })
281
- },
282
- 'onFileError'(error) {
283
- this.$showAlert(error, 'warning', 2000)
298
+ }catch(e){
284
299
  }
300
+ },
301
+ 'onFileError'(error) {
302
+ this.$showAlert(error, 'warning', 2000)
285
303
  }
304
+ }
286
305
 
287
306
  }
288
307
  </script>
@@ -1,73 +1,73 @@
1
- <template>
2
- <div style="width: auto;">
3
- <criteria-paged :model="model" v-ref:paged :pager="false">
4
- <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:criteria >
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="col-sm-9 ">
7
- <input type="text" class="input_search button_spacing" v-model="model.f_residential_area"
8
- condition="f_residential_area like '%{}%'" placeholder='小区名称'>
9
- </div>
10
- <div class="span" style="float:right;"id='filesArea'>
11
- <button class="button_search button_spacing" @click="search()">查询</button>
12
- </div>
13
- </div>
14
- </criteria>
15
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" >
16
- <template partial='head'>
17
- <tr>
18
- <th>序号</th>
19
- <th>小区详细地址</th>
20
- <th>操作</th>
21
- </tr>
22
- </template>
23
- <template partial='body'>
24
- <td id = "1" style="text-align: center;">{{$index + 1}}</td>
25
- <td>{{row.f_area_address}}-{{row.f_residential_area}}-{{row.f_comments}}</td>
26
- <td style="text-align: center;">
27
- <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.foundFile(row)">建档</button>
28
- </td>
29
- </template>
30
- </data-grid>
31
- </criteria-paged>
32
- </div>
33
- </template>
34
-
35
- <script>
36
- import { PagedList } from 'vue-client'
37
- export default {
38
- title: '小区列表',
39
- data () {
40
- return {
41
- model: new PagedList('rs/sql/address_getArea', 20)
42
- }
43
- },
44
- props: ['f_filialeid'],
45
- // ready () {
46
- // this.search()
47
- // },
48
- watch: {
49
- 'f_filialeid' (val) {
50
- this.search()
51
- }
52
- },
53
- methods: {
54
- foundFile (row) {
55
- console.log('小区建档', row)
56
- this.$emit('re-ref', row)
57
- },
58
- search () {
59
- this.$refs.paged.$refs.criteria.search()
60
- },
61
- selfsearch (datas) {
62
- console.log('查询小区', this.f_filialeid)
63
- datas.condition += ` and a.f_filialeid = '${this.f_filialeid}'`
64
- this.$refs.paged.$refs.grid.$el.scrollTop = 0
65
- this.model.search(datas.condition, this.model)
66
- },
67
- // 主要提供外部组件调用,刷新数据
68
- reflash () {
69
- this.$refs.paged.$refs.criteria.search()
70
- }
71
- }
72
- }
73
- </script>
1
+ <template>
2
+ <div style="width: auto;">
3
+ <criteria-paged :model="model" v-ref:paged :pager="false">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:criteria >
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="col-sm-9 ">
7
+ <input type="text" class="input_search button_spacing" v-model="model.f_residential_area"
8
+ condition="f_residential_area like '%{}%'" placeholder='小区名称'>
9
+ </div>
10
+ <div class="span" style="float:right;"id='filesArea'>
11
+ <button class="button_search button_spacing" @click="search()">查询</button>
12
+ </div>
13
+ </div>
14
+ </criteria>
15
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" >
16
+ <template partial='head'>
17
+ <tr>
18
+ <th>序号</th>
19
+ <th>小区详细地址</th>
20
+ <th>操作</th>
21
+ </tr>
22
+ </template>
23
+ <template partial='body'>
24
+ <td id = "1" style="text-align: center;">{{$index + 1}}</td>
25
+ <td>{{row.f_area_address}}-{{row.f_residential_area}}-{{row.f_comments}}</td>
26
+ <td style="text-align: center;">
27
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.foundFile(row)">建档</button>
28
+ </td>
29
+ </template>
30
+ </data-grid>
31
+ </criteria-paged>
32
+ </div>
33
+ </template>
34
+
35
+ <script>
36
+ import { PagedList } from 'vue-client'
37
+ export default {
38
+ title: '小区列表',
39
+ data () {
40
+ return {
41
+ model: new PagedList('rs/sql/address_getArea', 20)
42
+ }
43
+ },
44
+ props: ['f_filialeid'],
45
+ // ready () {
46
+ // this.search()
47
+ // },
48
+ watch: {
49
+ 'f_filialeid' (val) {
50
+ this.search()
51
+ }
52
+ },
53
+ methods: {
54
+ foundFile (row) {
55
+ console.log('小区建档', row)
56
+ this.$emit('re-ref', row)
57
+ },
58
+ search () {
59
+ this.$refs.paged.$refs.criteria.search()
60
+ },
61
+ selfsearch (datas) {
62
+ console.log('查询小区', this.f_filialeid)
63
+ datas.condition += ` and a.f_filialeid = '${this.f_filialeid}'`
64
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
65
+ this.model.search(datas.condition, this.model)
66
+ },
67
+ // 主要提供外部组件调用,刷新数据
68
+ reflash () {
69
+ this.$refs.paged.$refs.criteria.search()
70
+ }
71
+ }
72
+ }
73
+ </script>
@@ -38,6 +38,16 @@
38
38
  <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
39
39
  condition="f_street like '%{}%'" placeholder="街道"/>
40
40
  </div>
41
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
42
+ <label class="font_normal_body">户数大于</label>
43
+ <input type="text" class="input_search" style="width:60%" v-model="model.areacount"
44
+ condition="isnull(resi.areacount,0) >= '{}'" placeholder="使用人数大于等于"/>
45
+ </div>
46
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
47
+ <label class="font_normal_body">户数小于</label>
48
+ <input type="text" class="input_search" style="width:60%" v-model="model.areacount_end"
49
+ condition="isnull(resi.areacount,0) <='{}'" placeholder="使用人数小于等于"/>
50
+ </div>
41
51
  <div class="col-sm-4 form-group button-range">
42
52
  <button class="button_search button_spacing" @click="search()" >查询</button>
43
53
  <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
@@ -97,6 +107,8 @@
97
107
  <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
98
108
  <!--非民用单位信息结束-->
99
109
  <th><nobr>片区/管理站 </nobr></th>
110
+ <th><nobr>使用人数 </nobr></th>
111
+ <th><nobr>关联地址 </nobr></th>
100
112
  <th><nobr>操作人</nobr></th>
101
113
  <th><nobr>操作日期</nobr></th>
102
114
  <th><nobr>操作</nobr></th>
@@ -118,12 +130,14 @@
118
130
  <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
119
131
  <!--非民用单位信息结束-->
120
132
  <td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
133
+ <td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.id,row.f_residential_area)" class="btn btn-link">{{row.areacount}}</button></td>
134
+ <td style="text-align:center"><nobr>{{row.addresscount}}</nobr></td>
121
135
  <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
122
136
  <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
123
137
  <td><nobr>
124
138
  <!--<button type="button" name="button" class="btn btn-link"
125
139
  @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
126
- <button type="button" name="button" class="btn btn-link"
140
+ <button type="button" name="button" class="btn btn-link" v-if="row.areacount===0"
127
141
  @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
128
142
  </nobr></td>
129
143
  </tr>
@@ -168,6 +182,12 @@
168
182
  this.search()
169
183
  },
170
184
  methods: {
185
+ operate (f_residential_area_id,f_residential_area) {
186
+ this.$parent.areaShow = false;
187
+ this.$parent.usershow=true
188
+ this.$parent.f_residential_area_id=f_residential_area_id
189
+ this.$parent.f_residential_area=f_residential_area
190
+ },
171
191
  hidden() {
172
192
  this.criteriaShow = !this.criteriaShow
173
193
  },
@@ -207,7 +227,8 @@
207
227
  this.$dispatch('modify',val)
208
228
  },
209
229
  selfSearch (args) {
210
-
230
+ this.$parent.usershow = false;
231
+ this.$parent.areaShow = false;
211
232
  if (!this.f_orgid) {
212
233
  this.getorg([this.$login.f.orgid])
213
234
  }