address-client 3.0.44-aodeToV4 → 3.0.46-aodeToV4

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Fri Jul 10 10:01:08 CST 2020
2
- gradle.version=3.5
1
+ #Thu May 14 16:23:28 CST 2026
2
+ gradle.version=8.9
File without changes
@@ -62,7 +62,7 @@ export default class Comp {
62
62
  async searchTower(f){
63
63
  await this.tower.searchList('/rs/sql/address_getAddress',{
64
64
  'id':" 1=1 and a.f_filialeid = '{}'",
65
- 'com':" a.f_residential_area_id = {} "
65
+ 'com':" a.f_residential_area_id = '{}' "
66
66
  },{})
67
67
  while(this.tower.list.loadMoreState){
68
68
  await this.tower.list.loadMore()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.0.44-aodeToV4",
3
+ "version": "3.0.46-aodeToV4",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
package/src/App.vue CHANGED
@@ -10,7 +10,7 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
- export default {
13
+ export default {
14
14
 
15
- }
15
+ }
16
16
  </script>
@@ -532,7 +532,7 @@ export default {
532
532
  items: '*',
533
533
  tablename: 't_zone',
534
534
  orderitem: 'id',
535
- condition: ` parentid = ${val}`
535
+ condition: ` parentid = '${val}'`
536
536
  }
537
537
  }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
538
538
 
@@ -81,7 +81,7 @@
81
81
  } else {
82
82
  // 子地址 || 根地址
83
83
  if(val.f_parentId == null) {
84
- data = {data: {f_parentId: null, condition: `f_locationId=${val.f_locationId} and f_locationType='${val.f_locationType}' and f_name='${val.f_name}'`}}
84
+ data = {data: {f_parentId: null, condition: `f_locationId='${val.f_locationId}' and f_locationType='${val.f_locationType}' and f_name='${val.f_name}'`}}
85
85
  } else {
86
86
  data = {data: {f_parentId: val.f_parentId.id, condition: `f_name='${val.f_name}'`}}
87
87
  }
@@ -448,7 +448,7 @@
448
448
  let asyncGetRoot = async function(self) {
449
449
  let condition = ""
450
450
  if(self.f_location) {
451
- condition = `f_locationId=${self.f_location.f_locationId} and f_locationType='${self.f_location.f_locationType}'`
451
+ condition = `f_locationId='${self.f_location.f_locationId}' and f_locationType='${self.f_location.f_locationType}'`
452
452
  } else {
453
453
  condition = " 1=1 "
454
454
  }
@@ -1004,7 +1004,7 @@
1004
1004
  if(this.f_special){
1005
1005
  args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
1006
1006
  }else{
1007
- args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
1007
+ args.condition = `${args.condition} and s.f_filialeid = '${this.f_orgid}'`
1008
1008
  }
1009
1009
  this.condition = args.condition
1010
1010
  this.model.search(args.condition, args.model)
@@ -455,7 +455,7 @@
455
455
  let asyncGetRoot = async function(self) {
456
456
  let condition = ""
457
457
  if(self.f_location) {
458
- condition = `f_locationId=${self.f_location.f_locationId} and f_locationType='${self.f_location.f_locationType}'`
458
+ condition = `f_locationId='${self.f_location.f_locationId}' and f_locationType='${self.f_location.f_locationType}'`
459
459
  } else {
460
460
  condition = " 1=1 "
461
461
  }
@@ -221,7 +221,7 @@
221
221
  this.$refs.paged.$refs.cri.search()
222
222
  },
223
223
  selfSearch(args) {
224
- args.condition = `${args.condition}` + " and f_orgid = " + this.f_filialeid;
224
+ args.condition = `${args.condition} and f_orgid = '${this.f_filialeid}'`;
225
225
  // args.condition = `${args.condition} `;
226
226
  this.model.search(args.condition, args.model);
227
227
  },
@@ -396,7 +396,7 @@
396
396
  items: '*',
397
397
  tablename: 't_zone',
398
398
  orderitem: 'id',
399
- condition: ` parentid = ${val}`
399
+ condition: ` parentid = '${val}'`
400
400
  }
401
401
  }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
402
402
 
@@ -356,7 +356,7 @@
356
356
  items: '*',
357
357
  tablename: 't_zone',
358
358
  orderitem: 'id',
359
- condition: ` parentid = ${val}`
359
+ condition: ` parentid = '${val}'`
360
360
  }
361
361
  }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
362
362
 
@@ -195,7 +195,7 @@
195
195
  this.$showAlert("请选择组织进行操作!!",'warning',2000);
196
196
  return;
197
197
  }
198
- args.condition = `${args.condition} and id = '${this.f_residential_area_id}' and f_orgid = ${this.f_filialeid}`
198
+ args.condition = `${args.condition} and id = '${this.f_residential_area_id}' and f_orgid = '${this.f_filialeid}'`
199
199
  this.condition = args.condition
200
200
  this.model.search(args.condition, args.model)
201
201
  },
@@ -24,7 +24,7 @@ describe('AddressAddAddress: 添加地址', () => {
24
24
  vm.model.f_type = '楼'
25
25
  let res = await vm.addChild()
26
26
  // 检查数据是否正确
27
- res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {condition: `id=${res.data.id}`}})
27
+ res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {condition: `id='${res.data.id}'`}})
28
28
  assert.equal(res.data[0].f_name, '1号楼')
29
29
  assert.equal(res.data[0].f_type, '楼')
30
30
  })
@@ -36,20 +36,20 @@ describe('AddressAddAddress: 添加地址', () => {
36
36
  vm.model.f_type = '单元'
37
37
  let res = await vm.addChild()
38
38
  // 检查数据是否正确
39
- res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {f_parentId: 1, condition: `id=${res.data.id}`}})
39
+ res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {f_parentId: 1, condition: `id='${res.data.id}'`}})
40
40
  assert.equal(res.data[0].f_name, '2单元')
41
41
  assert.equal(res.data[0].f_type, '单元')
42
42
  })
43
43
 
44
44
  it('修改地址', async function() {
45
45
  // 取到要修改的数据
46
- let res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {condition: `id=2`}})
46
+ let res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {condition: `id='2'`}})
47
47
  vm = TestUtil.createTest(AddressAddAddress, {row: res.data[0]})
48
48
  assert.include(vm.$el.innerText, '位置类型:')
49
49
  vm.model.f_name = '8号楼'
50
50
  await vm.addChild()
51
51
  // 检查数据是否正确
52
- res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {condition: `id=2`}})
52
+ res = await vm.$resetpost(`rs/sql/address_getAddress`, {data: {condition: `id='2'`}})
53
53
  assert.equal(res.data[0].f_name, '8号楼')
54
54
  assert.equal(res.data[0].f_type, '楼')
55
55
  })
@@ -44,7 +44,7 @@ describe('AddressTree: 地址树', () => {
44
44
  addNode.model.f_type = '单元'
45
45
  let res = await addNode.addChild()
46
46
  // 检查数据是否正确
47
- res = await addNode.$resetpost(`rs/path/address_getRoot`, {data: {f_parentId: 1, condition: `id=${res.data.id}`}})
47
+ res = await addNode.$resetpost(`rs/path/address_getRoot`, {data: {f_parentId: 1, condition: `id='${res.data.id}'`}})
48
48
  assert.equal(res.data[0].f_name, '2单元')
49
49
  assert.equal(res.data[0].f_type, '单元')
50
50
  })
@@ -72,7 +72,7 @@ describe('AddressTree: 地址树', () => {
72
72
  addNode.model.f_type = '单元'
73
73
  let res = await addNode.addChild()
74
74
  // 检查数据是否正确
75
- res = await addNode.$resetpost(`rs/path/address_getRoot`, {data: {f_parentId: null, condition: `id=${res.data.id}`}})
75
+ res = await addNode.$resetpost(`rs/path/address_getRoot`, {data: {f_parentId: null, condition: `id='${res.data.id}'`}})
76
76
  assert.equal(res.data[0].f_name, '2单元')
77
77
  assert.equal(res.data[0].f_type, '单元')
78
78
  })