address-client 3.2.110 → 3.2.111-1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.2.110",
3
+ "version": "3.2.111-1",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -363,17 +363,17 @@
363
363
  </div>
364
364
  </validator>
365
365
 
366
- <modal :show.sync="isshow" large backdrop="false" :width="900">
367
- <header slot="modal-header" class="modal-header">
368
- </header>
369
- <article slot="modal-body" class="modal-body">
370
- <amap-location :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location>
371
- </article>
372
- <footer slot="modal-footer" class="modal-footer">
373
- <button v-show="isshow" type="button" class="button_search button_spacing" @click='confirmLocation'>确认</button>
374
- <button v-show="isshow" type="button" class="button_clear button_spacing" @click='closeModal'>取消</button>
375
- </footer>
376
- </modal>
366
+ <!-- <modal :show.sync="isshow" large backdrop="false" :width="900">-->
367
+ <!-- <header slot="modal-header" class="modal-header">-->
368
+ <!-- </header>-->
369
+ <!-- <article slot="modal-body" class="modal-body">-->
370
+ <!-- <amap-location :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location>-->
371
+ <!-- </article>-->
372
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
373
+ <!-- <button v-show="isshow" type="button" class="button_search button_spacing" @click='confirmLocation'>确认</button>-->
374
+ <!-- <button v-show="isshow" type="button" class="button_clear button_spacing" @click='closeModal'>取消</button>-->
375
+ <!-- </footer>-->
376
+ <!-- </modal>-->
377
377
 
378
378
  </div>
379
379
  </template>
@@ -385,8 +385,8 @@
385
385
  let getAreaConfig = async function (self) {
386
386
  // 获取气价里面的配置
387
387
  await self.$getConfig(self, 'UserAddress')
388
- console.log('原地址配置',self.config)
389
- console.log('获取地址配置',self.config)
388
+ // console.log('原地址配置',self.config)
389
+ // console.log('获取地址配置',self.config)
390
390
  // Object.assign(self.model, self.config)
391
391
  }
392
392
 
@@ -475,7 +475,7 @@
475
475
  this.initdata()
476
476
  getAreaConfig(this)
477
477
  //打印config
478
- console.log(this.config)
478
+ // console.log(this.config)
479
479
  this.model.f_building_suffix=this.config.f_building_suffix
480
480
  this.model.f_unit_suffix=this.config.f_unit_suffix
481
481
  this.model.f_floor_suffix=this.config.f_floor_suffix
@@ -525,7 +525,7 @@
525
525
  id: row.id
526
526
  })
527
527
  })
528
- console.log("获取到的redata",redata)
528
+ // console.log("获取到的redata",redata)
529
529
  this.areaslist=redata
530
530
  },
531
531
  standardyanzheng() {
@@ -0,0 +1,409 @@
1
+ <template>
2
+ <div class="flex" @keyup.enter="search">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">组织机构</label>
9
+ <res-select restype='organization'
10
+ @res-select="$parent.$parent.getorg"
11
+ is-mul="false"
12
+ :initresid='$parent.$parent.curorgid'>
13
+ </res-select>
14
+ </div>
15
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
16
+ <label class="font_normal_body">小区编号</label>
17
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
18
+ condition="f_area_id = '{}'" placeholder="小区编号"/>
19
+ </div>
20
+ <div :class="$parent.$parent.style" v-if="false">
21
+ <label class="font_normal_body">省&emsp;&emsp;份</label>
22
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_province"
23
+ condition="f_province like '%{}%'" placeholder="省份"/>
24
+ </div>
25
+ <!--<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">-->
26
+ <div :class="$parent.$parent.style" v-if="false">
27
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
28
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
29
+ condition="f_city like '%{}%'" placeholder="城市"/>
30
+ </div>
31
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
32
+ <label class="font_normal_body">区&emsp;&emsp;县</label>
33
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
34
+ condition="f_district like '%{}%'" placeholder="区县"/>
35
+ </div>
36
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
37
+ <label class="font_normal_body">街道/乡镇</label>
38
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
39
+ condition="f_street like '%{}%'" placeholder="街道/乡镇"/>
40
+ </div>
41
+ <div class="col-sm-4 form-group button-range">
42
+ <button class="button_search button_spacing" @click="search()" >查询</button>
43
+ <button class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
44
+ <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
45
+ <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
46
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
47
+ <export-excel :data="$parent.$parent.getCondition"
48
+ :field="$parent.$parent.getfield"
49
+ sqlurl="api/af-revenue/logic/exportfile"
50
+ sql-name="manage_getarealist"
51
+ template-name='小区信息查询导出'
52
+ :choose-col="true"></export-excel>
53
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-if="$parent.$parent.criteriaShow">
57
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
58
+ <label class="font_normal_body">小区编号</label>
59
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
60
+ condition="f_area_id = '{}'" placeholder="小区编号"/>
61
+ </div>
62
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
64
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
65
+ condition="f_city like '%{}%'" placeholder="城市"
66
+ :size="model.f_city ? model.f_city.length*2 : 6"/>
67
+ </div>
68
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
69
+ <label class="font_normal_body">区&emsp;&emsp;县</label>
70
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
71
+ condition="f_district like '%{}%'" placeholder="区县"
72
+ :size="model.f_district ? model.f_district.length*2 : 6"/>
73
+ </div>
74
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
75
+ <label class="font_normal_body">街道/乡镇</label>
76
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
77
+ condition="f_street like '%{}%'" placeholder="街道/乡镇"
78
+ :size="model.f_street ? model.f_street.length*2 : 6"/>
79
+ </div>
80
+ <div :class="$parent.$parent.style">
81
+ <label class="font_normal_body">小区名称</label>
82
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
83
+ condition="f_residential_area like '%{}%'" placeholder="小区"
84
+ :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
85
+ </div>
86
+ <div :class="$parent.$parent.style">
87
+ <label class="font_normal_body">房屋类型</label>
88
+ <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
89
+ close-on-select condition="f_house_type='{}'"
90
+ placeholder='房屋类型' v-model="model.f_house_type"></v-select>
91
+ </div>
92
+ <div :class="$parent.$parent.style">
93
+ <label class="font_normal_body">安装位置</label>
94
+ <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
95
+ close-on-select condition="f_position='{}'"
96
+ placeholder='安装位置' v-model="model.f_position"></v-select>
97
+ </div>
98
+ <div :class="$parent.$parent.style">
99
+ <label class="font_normal_body">&emsp;抄表员</label>
100
+ <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
101
+ close-on-select condition="f_inputtor='{}'"
102
+ placeholder='抄表员' v-model="model.f_inputtor"></v-select>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </criteria>
107
+
108
+ <data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
109
+ <template partial='head'>
110
+ <th><nobr>序号</nobr></th>
111
+ <!-- <th v-if="false"><nobr>省份</nobr></th>-->
112
+ <!-- <th v-if="false"><nobr>城市</nobr></th>-->
113
+ <!-- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>区/县</nobr></th>-->
114
+ <th><nobr>街道/乡镇</nobr></th>
115
+ <!--民用小区信息开始-->
116
+ <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
117
+ <th v-if="!$parent.$parent.$parent.f_special"><nobr>地址</nobr></th>
118
+ <th v-if="!$parent.$parent.$parent.f_special && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
119
+ <!--民用小区信息结束-->
120
+ <!--非民用单位信息开始-->
121
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
122
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
123
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
124
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
125
+ <!--非民用单位信息结束-->
126
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>抄表员</nobr></th>
127
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>房屋类型</nobr></th>
128
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
129
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>片区/管理站 </nobr></th>
130
+ <th><nobr>操作人</nobr></th>
131
+ <th><nobr>操作日期</nobr></th>
132
+ <th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
133
+ <th><nobr>操作</nobr></th>
134
+ </template>
135
+ <template partial='body'>
136
+ <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
137
+ <!-- <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>-->
138
+ <!-- <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>-->
139
+ <!-- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>-->
140
+ <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
141
+ <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
142
+ <td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
143
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
144
+ <!--非民用单位信息开始-->
145
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
146
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
147
+ <!--非民用单位信息结束-->
148
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
149
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
150
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
151
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
152
+ <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
153
+ <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
154
+ <td style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
155
+ <td><nobr>
156
+ <!--<button type="button" name="button" class="btn btn-link"
157
+ @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
158
+ <button v-if="!row.addressnum>0" type="button" name="button" class="btn btn-danger"
159
+ style="padding: 5px 12px"
160
+ @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
161
+ </nobr>
162
+ </td>
163
+ </template>
164
+ <template partial='foot'></template>
165
+ </data-grid>
166
+ </criteria-paged>
167
+ <modal :show="showDelete" large backdrop="false" :width="900">
168
+ <header slot="modal-header" class="modal-header">
169
+ <p class="bg-info text-center" style="padding: 8px;">提示</p>
170
+ </header>
171
+ <article slot="modal-body" class="modal-body">
172
+ <p>您一共选中{{selectDataLen}}个小区,您确定是否要删除吗?</p>
173
+ </article>
174
+ <footer slot="modal-footer" class="modal-footer">
175
+ <button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
176
+ <button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
177
+ </footer>
178
+ </modal>
179
+ </div>
180
+ </template>
181
+
182
+ <script>
183
+ import { PagedList } from 'vue-client'
184
+ let readyGen = async function (self) {
185
+ self.getfield = self.config.excelHeaders
186
+ self.search()
187
+ }
188
+ export default {
189
+
190
+ data () {
191
+ return {
192
+ showDelete: false,
193
+ criteriaShow: false,
194
+ model: new PagedList('api/af-revenue/sql/address_getarealist',20),
195
+ selectDataLen: 0,
196
+ addflag: false,
197
+ addtitle:'',
198
+ getfield: {},
199
+ getRowData:[],
200
+ // 公司下拉
201
+ curorgid: [this.$login.f.orgid],
202
+ f_orgid: '',
203
+ //初始化小区数据
204
+ areaslist:[],
205
+ config: {
206
+ // 导出列要和查询列相同
207
+ excelHeaders: {
208
+ 'f_street':'街道名称',
209
+ 'f_residential_area':'小区名称',
210
+ 'f_area_address':'小区地址',
211
+ 'f_comments':'小区备注',
212
+ 'f_inputtor':'抄表员',
213
+ 'f_house_type':'房屋类型',
214
+ 'f_position':'安装位置',
215
+ 'f_slice_area':'片区/管理站',
216
+ 'f_operator':'操作人',
217
+ 'f_operate_date':'操作日期',
218
+ 'addressnum':'地址数'
219
+ }
220
+ },
221
+ housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
222
+ position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
223
+ }
224
+ },
225
+ title: '小区管理',
226
+ props:{
227
+ f_filialeids:{
228
+ type: String
229
+ },
230
+ style: {
231
+ type: String,
232
+ default: 'col-sm-2 form-group'
233
+ },
234
+ f_special:{
235
+ type: String
236
+ }
237
+ },
238
+ ready(){
239
+ readyGen(this)
240
+
241
+ },
242
+ methods: {
243
+ hidden() {
244
+ this.criteriaShow = !this.criteriaShow
245
+ },
246
+ search() {
247
+ this.$refs.paged.$refs.cri.search()
248
+ },
249
+
250
+ async delete(row){
251
+ if(row.id >= 0){
252
+ var id = row.id
253
+ let useraredss = await this.$resetpost('api/af-revenue/sql/address_singleTable',
254
+ {data: {
255
+ items: 'f_residential_area_id',
256
+ tablename: 't_user_address',
257
+ condition: `f_residential_area_id='${id}'`}
258
+ },
259
+ {resolveMsg: null, rejectMsg: null})
260
+ if(useraredss.data.length>0){
261
+ this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
262
+ }else{
263
+ this.$resetdelete('api/af-revenue/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
264
+ this.$dispatch('cancel')
265
+ })
266
+ }
267
+ }
268
+ },
269
+ add(val){
270
+ if (this.f_filialeids) {
271
+ this.$refs.paged.$refs.grid.selectStore.selected = null
272
+ this.$dispatch('add')
273
+ } else {
274
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
275
+ }
276
+ },
277
+ modify(val){
278
+ this.$refs.paged.$refs.grid.selectStore.selected = null
279
+ this.$dispatch('modify',val)
280
+ },
281
+ selfSearch (args) {
282
+
283
+ if (!this.f_orgid) {
284
+ this.getorg([this.$login.f.orgid])
285
+ }
286
+ if(this.f_special){
287
+ args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
288
+ }else{
289
+ args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
290
+ }
291
+ this.model.search(args.condition, args.model)
292
+ },
293
+ //清空
294
+ clear(){
295
+ this.$refs.paged.$refs.cri.model = {}
296
+ },
297
+ getorg (val) {
298
+ this.f_orgid = this.$login.convertToIn(val)
299
+ this.f_filialeids = val[0]
300
+ },
301
+ async batchDelete () {
302
+ let flag = true
303
+ if (this.f_filialeids) {
304
+ if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
305
+ // 获取要批量删除的小区数据
306
+ this.getRowData = this.$refs.paged.$refs.grid.getRowData()
307
+ this.getRowData.forEach((row,n) => {
308
+ console.log(JSON.stringify(row) + '==========')
309
+ if (row.addressnum > 0 ) {
310
+ this.$showAlert('您所选择的小区下已有地址信息,无法删除!','warning',2000)
311
+ this.selectDataLen = 0
312
+ flag = false
313
+ }
314
+ })
315
+ if(flag){
316
+ this.selectDataLen = this.getRowData.length
317
+ console.log(this.selectDataLen + '-----------------------')
318
+ this.showDelete = true
319
+ }
320
+ } else {
321
+ this.$showAlert('请至少选择一项!', 'warning', 2000)
322
+ }
323
+ }else {
324
+ this.$showAlert('请先选择左上角的所在分公司!', 'warning', 2000)
325
+ }
326
+ },
327
+ confirmDelete () {
328
+ let msg = {
329
+ resolveMsg: '批量删除成功!',
330
+ rejectMsg: '批量删除失败!'
331
+ }
332
+ let oldAreaIds = this.getRowData
333
+ console.log('所选中的小区信息:=======' + JSON.stringify(oldAreaIds))
334
+ this.$resetpost('api/af-revenue/logic/batchDelete',{
335
+ data:{
336
+ oldAreaIds:oldAreaIds,
337
+ f_operator: this.$login.f.name,
338
+ f_operatorid: this.$login.f.id,
339
+ f_orgid: this.$login.f.orgid,
340
+ f_orgname: this.$login.f.orgs,
341
+ f_depid: this.$login.f.depids,
342
+ f_depname: this.$login.f.deps
343
+ }
344
+ },msg)
345
+ this.$refs.paged.$refs.grid.selectInit()
346
+ this.$refs.paged.$refs.cri.search()
347
+ this.showDelete = false
348
+ },
349
+ cancelDelete () {
350
+ this.$refs.paged.$refs.grid.selectInit()
351
+ this.$refs.paged.$refs.cri.search()
352
+ this.showDelete = false
353
+ },
354
+ // areaChange(val){
355
+ // console.log("小区变化",val)
356
+ // let selectArea // 选中的小区数据
357
+ // for (let row of this.areaslist) {
358
+ // if (val == row.value) {
359
+ // selectArea = row.data
360
+ // break
361
+ // }
362
+ // }
363
+ // if (selectArea) {
364
+ // this.areamodel.f_residential_area_id = selectArea.id
365
+ // this.areamodel.f_pcd = selectArea.f_pcd
366
+ // this.areamodel.f_pcd_id = selectArea.f_pcd_id
367
+ // this.areamodel.f_street = selectArea.f_street
368
+ // this.areamodel.f_street_id = selectArea.f_street_id
369
+ // this.areamodel.f_slice_area = selectArea.f_slice_area
370
+ // this.areamodel.f_residential_area = selectArea.f_residential_area
371
+ // }
372
+ // this.$nextTick(() => {
373
+ // this.$resetValidation()
374
+ // })
375
+ // },
376
+ },
377
+ watch:{
378
+
379
+ },
380
+ computed:{
381
+ getCondition() {
382
+ var condition=''
383
+ if(this.f_special){
384
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
385
+ }else{
386
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
387
+ }
388
+ return {
389
+ condition: condition
390
+ }
391
+ },
392
+ inputtores () {
393
+ // 获取抄表员
394
+ let rs = new Array()
395
+ if (this.$login.f.f_gasman.length > 0) {
396
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
397
+ let temp = {
398
+ label: this.$login.f.f_gasman[i].name,
399
+ value: this.$login.f.f_gasman[i].name
400
+ }
401
+ rs.push(temp)
402
+ }
403
+ }
404
+ return rs
405
+ }
406
+ }
407
+
408
+ }
409
+ </script>
@@ -0,0 +1,238 @@
1
+ <template>
2
+ <div class="flex" @keyup.enter="search">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' @sort="sort()" v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
8
+ <label class="font_normal_body">组织机构</label>
9
+ <res-select restype='organization'
10
+ @res-select="$parent.$parent.getorg"
11
+ :initresid='$parent.$parent.curorgid'>
12
+ </res-select>
13
+ </div>
14
+ <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
15
+ <label class="font_normal_body">街道名称</label>
16
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
17
+ condition="f_street like '%{}%'" placeholder="街道名称"/>
18
+ </div>
19
+ <div class="col-sm-4 form-group button-range">
20
+ <button class="button_search button_spacing" @click="search()" >查询</button>
21
+ <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('省市区')">省市区管理</button>
22
+ <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('街道')">添加街道</button>
23
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
24
+ <export-excel :data="$parent.$parent.getCondition"
25
+ :field="$parent.$parent.getfield"
26
+ sqlurl="api/af-revenue/logic/exportfile"
27
+ sql-name="manage_getstreetlist"
28
+ template-name='街道信息查询导出'
29
+ :choose-col="true"></export-excel>
30
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
31
+ </div>
32
+ </div>
33
+ <div class="row" v-show="$parent.$parent.criteriaShow">
34
+ <div class="form-group" v-if="$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
35
+ <label class="font_normal_body">省&emsp;&emsp;份</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_province"
37
+ condition="f_province like '%{}%'" placeholder="省份"
38
+ :size="model.f_province ? model.f_province.length*2 : 6"/>
39
+ </div>
40
+ <div class="form-group" v-if="$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
41
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
42
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_city"
43
+ condition="f_city like '%{}%'" placeholder="城市"
44
+ :size="model.f_city ? model.f_city.length*2 : 6"/>
45
+ </div>
46
+ <div class="form-group" v-if="!$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
47
+ <label class="font_normal_body">省&emsp;&emsp;份</label>
48
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_province"
49
+ condition="f_province like '%{}%'" placeholder="省份"
50
+ :size="model.f_province ? model.f_province.length*2 : 6"/>
51
+ </div>
52
+ <div class="form-group" v-if="!$parent.$parent.$parent.areaShow" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
53
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_city"
55
+ condition="f_city like '%{}%'" placeholder="城市"
56
+ :size="model.f_city ? model.f_city.length*2 : 6"/>
57
+ </div>
58
+ <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
59
+ <label class="font_normal_body">区&emsp;&emsp;县</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_district"
61
+ condition="f_district like '%{}%'" placeholder="区县"
62
+ :size="model.f_district ? model.f_district.length*2 : 6"/>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </criteria>
67
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
68
+ <template partial='head'>
69
+ <tr>
70
+ <th><nobr>序号</nobr></th>
71
+ <!-- <th><nobr>省份</nobr></th>-->
72
+ <!-- <th><nobr>城市</nobr></th>-->
73
+ <!-- <th><nobr>区/县</nobr></th>-->
74
+ <th><data-order field="f_iscity" name="地区类型"
75
+ :order.sync="$parent.$parent.$parent.$parent.orderFields.f_iscity"></data-order></th>
76
+ <th><nobr>街道/乡镇</nobr></th>
77
+ <th><nobr>街道编号</nobr></th>
78
+ <th><data-order field="f_address" name="地址"
79
+ :order.sync="$parent.$parent.$parent.$parent.orderFields.f_address"></data-order></th>
80
+ <th><nobr>分公司</nobr></th>
81
+ <th title="该街道下现有的小区数"><nobr>小区数量</nobr></th>
82
+ <th><nobr>操作</nobr></th>
83
+ </tr>
84
+ </template>
85
+ <template partial='body'>
86
+ <tr @click="$parent.$parent.changestyle()">
87
+ <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
88
+ <!-- <td style="text-align:center"><nobr>{{row.f_province}}</nobr></td>-->
89
+ <!-- <td style="text-align:center"><nobr>{{row.f_city}}</nobr></td>-->
90
+ <!-- <td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>-->
91
+ <td style="text-align:center"><nobr>{{row.f_iscity}}</nobr></td>
92
+ <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
93
+ <td style="text-align:center"><nobr>{{row.f_street_number}}</nobr></td>
94
+ <td style="text-align:center"><nobr>{{row.f_pcd}}{{row.f_street}}</nobr></td>
95
+ <td style="text-align:center"><nobr>{{row.f_org_name}}</nobr></td>
96
+ <td style="text-align:center"><nobr>{{row.streenum}}</nobr></td>
97
+ <td style="text-align:center"><nobr>
98
+ <!-- <button type="button" name="button" class="btn btn-link"
99
+ @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
100
+ <button v-if="!row.streetid" type="button" name="button" class="btn btn-danger"
101
+ style="padding: 5px 12px"
102
+ @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
103
+ </nobr></td>
104
+ </tr>
105
+ </template>
106
+ <template partial='foot'></template>
107
+ </data-grid>
108
+ </criteria-paged>
109
+ </div>
110
+ </template>
111
+
112
+ <script>
113
+ import { PagedList } from 'vue-client'
114
+ let readyGen = async function (self) {
115
+ self.getfield = self.config.excelHeaders
116
+ }
117
+ export default {
118
+ data () {
119
+ return {
120
+ criteriaShow: false,
121
+ model: new PagedList('api/af-revenue/sql/address_getstreetlist',20,{orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_city,f_district,f_iscity,f_street desc'`}),
122
+ addflag: false,
123
+ getfield: {},
124
+ //排序
125
+ orderitem:'f_city,f_district,f_iscity,f_street desc',
126
+ addtitle:'',
127
+ // 公司下拉
128
+ curorgid: [this.$login.f.orgid],
129
+ f_orgid: '',
130
+ config: {
131
+ // 导出列要和查询列相同
132
+ excelHeaders: {
133
+ 'f_street':'街道名称',
134
+ 'f_org_name':'分公司',
135
+ 'streenum':'小区数量'
136
+ }
137
+ },
138
+ orderFields: {
139
+ f_operate_date: 'no'
140
+ },
141
+ }
142
+ },
143
+ title: '街道管理',
144
+ props:{
145
+ f_filialeids:{
146
+ type: String
147
+ }
148
+ },
149
+ ready(){
150
+ console.log("===========",this.$login.f.orgid)
151
+ readyGen(this)
152
+ this.search()
153
+ },
154
+ methods: {
155
+ hidden() {
156
+ this.criteriaShow = !this.criteriaShow
157
+ },
158
+ search () {
159
+ this.$refs.paged.$refs.cri.search()
160
+ },
161
+ async delete(row){
162
+ if(row.id >= 0 ){
163
+ var id = row.id
164
+ let useraredss = await this.$resetpost('api/af-revenue/sql/address_singleTable',
165
+ {data: {
166
+ items: 'f_street_id',
167
+ tablename: 't_area',
168
+ condition: `f_street_id='${id}'`}
169
+ },
170
+ {resolveMsg: null, rejectMsg: null})
171
+ if(useraredss.data.length>0){
172
+ this.$showAlert('该街道下已有小区信息,无法删除!','warning',1000)
173
+ }else{
174
+ this.$resetdelete('api/af-revenue/entity/t_street', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
175
+ this.$dispatch('cancel')
176
+ })
177
+ }
178
+ }
179
+ },
180
+ add(val){
181
+ if (this.f_filialeids) {
182
+ this.$refs.paged.$refs.grid.selectStore.selected = null
183
+ this.$dispatch('add',val)
184
+ } else {
185
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
186
+ }
187
+ },
188
+ modify(val){
189
+ this.$refs.paged.$refs.grid.selectStore.selected = null
190
+ this.$dispatch('modify',val)
191
+ },
192
+ selfSearch (args) {
193
+ if (!this.f_orgid) {
194
+ this.getorg([this.$login.f.orgid])
195
+ }
196
+ args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
197
+ this.model.search(args.condition, args.model)
198
+ },
199
+ //清空
200
+ clear(){
201
+ this.$refs.paged.$refs.cri.model = {}
202
+ },
203
+ getorg (val) {
204
+ this.f_orgid = this.$login.convertToIn(val)
205
+ this.f_filialeids = val[0]
206
+ }
207
+ },
208
+ computed: {
209
+ getCondition() {
210
+ return {
211
+ condition: `${this.$refs.paged.$refs.cri.condition}` + `and s.f_filialeid = '${this.f_filialeids}'`,
212
+ orderitem: this.orderitem?`${this.orderitem}`: " id desc"
213
+ }
214
+ }
215
+ },
216
+ events:{
217
+ 'sort' (field, rule) {
218
+ // 将所有排序方式设为不排序,实现相互排斥
219
+ console.log("field",field, rule)
220
+ for (let key in this.orderFields) {
221
+ if (key === field) {
222
+ this.orderFields[key] = rule
223
+ } else {
224
+ this.orderFields[key] = 'no'
225
+ }
226
+ }
227
+ // 如果新规则不排序,还原为默认排序
228
+ if (rule === 'no') {
229
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
230
+ } else {
231
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
232
+ }
233
+
234
+ this.search()
235
+ },
236
+ },
237
+ }
238
+ </script>
@@ -0,0 +1,14 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ let specialComp = {
5
+ //街道列表
6
+ 'street-list':(resolve) => { require(['./StreetList'], resolve) },
7
+ //小区列表
8
+ 'area-list':(resolve) => { require(['./AreaList'], resolve) }
9
+ }
10
+ exports.specialComp = specialComp
11
+
12
+
13
+
14
+
package/src/main.js CHANGED
@@ -10,7 +10,7 @@ Vue.config.silent = true
10
10
 
11
11
  /** **************************通用组件******************************/
12
12
  all()
13
- address("lixianV3")
13
+ address()
14
14
  system(false)
15
15
  ldap()
16
16
  sale()
File without changes
File without changes
Binary file
File without changes
@@ -1,2 +0,0 @@
1
- Manifest-Version: 1.0
2
-
Binary file
@@ -1,7 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4
- networkTimeout=10000
5
- validateDistributionUrl=true
6
- zipStoreBase=GRADLE_USER_HOME
7
- zipStorePath=wrapper/dists
package/gradlew DELETED
@@ -1,249 +0,0 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright © 2015-2021 the original authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- #
21
- # Gradle start up script for POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- # This is normally unused
84
- # shellcheck disable=SC2034
85
- APP_BASE_NAME=${0##*/}
86
- # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
88
-
89
- # Use the maximum available, or set MAX_FD != -1 to use that value.
90
- MAX_FD=maximum
91
-
92
- warn () {
93
- echo "$*"
94
- } >&2
95
-
96
- die () {
97
- echo
98
- echo "$*"
99
- echo
100
- exit 1
101
- } >&2
102
-
103
- # OS specific support (must be 'true' or 'false').
104
- cygwin=false
105
- msys=false
106
- darwin=false
107
- nonstop=false
108
- case "$( uname )" in #(
109
- CYGWIN* ) cygwin=true ;; #(
110
- Darwin* ) darwin=true ;; #(
111
- MSYS* | MINGW* ) msys=true ;; #(
112
- NONSTOP* ) nonstop=true ;;
113
- esac
114
-
115
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
116
-
117
-
118
- # Determine the Java command to use to start the JVM.
119
- if [ -n "$JAVA_HOME" ] ; then
120
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121
- # IBM's JDK on AIX uses strange locations for the executables
122
- JAVACMD=$JAVA_HOME/jre/sh/java
123
- else
124
- JAVACMD=$JAVA_HOME/bin/java
125
- fi
126
- if [ ! -x "$JAVACMD" ] ; then
127
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
128
-
129
- Please set the JAVA_HOME variable in your environment to match the
130
- location of your Java installation."
131
- fi
132
- else
133
- JAVACMD=java
134
- if ! command -v java >/dev/null 2>&1
135
- then
136
- die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
-
138
- Please set the JAVA_HOME variable in your environment to match the
139
- location of your Java installation."
140
- fi
141
- fi
142
-
143
- # Increase the maximum file descriptors if we can.
144
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145
- case $MAX_FD in #(
146
- max*)
147
- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
- # shellcheck disable=SC2039,SC3045
149
- MAX_FD=$( ulimit -H -n ) ||
150
- warn "Could not query maximum file descriptor limit"
151
- esac
152
- case $MAX_FD in #(
153
- '' | soft) :;; #(
154
- *)
155
- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
- # shellcheck disable=SC2039,SC3045
157
- ulimit -n "$MAX_FD" ||
158
- warn "Could not set maximum file descriptor limit to $MAX_FD"
159
- esac
160
- fi
161
-
162
- # Collect all arguments for the java command, stacking in reverse order:
163
- # * args from the command line
164
- # * the main class name
165
- # * -classpath
166
- # * -D...appname settings
167
- # * --module-path (only if needed)
168
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
169
-
170
- # For Cygwin or MSYS, switch paths to Windows format before running java
171
- if "$cygwin" || "$msys" ; then
172
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174
-
175
- JAVACMD=$( cygpath --unix "$JAVACMD" )
176
-
177
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
178
- for arg do
179
- if
180
- case $arg in #(
181
- -*) false ;; # don't mess with options #(
182
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183
- [ -e "$t" ] ;; #(
184
- *) false ;;
185
- esac
186
- then
187
- arg=$( cygpath --path --ignore --mixed "$arg" )
188
- fi
189
- # Roll the args list around exactly as many times as the number of
190
- # args, so each arg winds up back in the position where it started, but
191
- # possibly modified.
192
- #
193
- # NB: a `for` loop captures its iteration list before it begins, so
194
- # changing the positional parameters here affects neither the number of
195
- # iterations, nor the values presented in `arg`.
196
- shift # remove old arg
197
- set -- "$@" "$arg" # push replacement arg
198
- done
199
- fi
200
-
201
-
202
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
-
205
- # Collect all arguments for the java command:
206
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
- # and any embedded shellness will be escaped.
208
- # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
- # treated as '${Hostname}' itself on the command line.
210
-
211
- set -- \
212
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
213
- -classpath "$CLASSPATH" \
214
- org.gradle.wrapper.GradleWrapperMain \
215
- "$@"
216
-
217
- # Stop when "xargs" is not available.
218
- if ! command -v xargs >/dev/null 2>&1
219
- then
220
- die "xargs is not available"
221
- fi
222
-
223
- # Use "xargs" to parse quoted args.
224
- #
225
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
226
- #
227
- # In Bash we could simply go:
228
- #
229
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
230
- # set -- "${ARGS[@]}" "$@"
231
- #
232
- # but POSIX shell has neither arrays nor command substitution, so instead we
233
- # post-process each arg (as a line of input to sed) to backslash-escape any
234
- # character that might be a shell metacharacter, then use eval to reverse
235
- # that process (while maintaining the separation between arguments), and wrap
236
- # the whole thing up as a single "set" statement.
237
- #
238
- # This will of course break if any of these variables contains a newline or
239
- # an unmatched quote.
240
- #
241
-
242
- eval "set -- $(
243
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244
- xargs -n1 |
245
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246
- tr '\n' ' '
247
- )" '"$@"'
248
-
249
- exec "$JAVACMD" "$@"
package/gradlew.bat DELETED
@@ -1,92 +0,0 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%"=="" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%"=="" set DIRNAME=.
29
- @rem This is normally unused
30
- set APP_BASE_NAME=%~n0
31
- set APP_HOME=%DIRNAME%
32
-
33
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
-
36
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
-
39
- @rem Find java.exe
40
- if defined JAVA_HOME goto findJavaFromJavaHome
41
-
42
- set JAVA_EXE=java.exe
43
- %JAVA_EXE% -version >NUL 2>&1
44
- if %ERRORLEVEL% equ 0 goto execute
45
-
46
- echo.
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
- echo.
49
- echo Please set the JAVA_HOME variable in your environment to match the
50
- echo location of your Java installation.
51
-
52
- goto fail
53
-
54
- :findJavaFromJavaHome
55
- set JAVA_HOME=%JAVA_HOME:"=%
56
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
-
58
- if exist "%JAVA_EXE%" goto execute
59
-
60
- echo.
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
- echo.
63
- echo Please set the JAVA_HOME variable in your environment to match the
64
- echo location of your Java installation.
65
-
66
- goto fail
67
-
68
- :execute
69
- @rem Setup the command line
70
-
71
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
-
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if %ERRORLEVEL% equ 0 goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- set EXIT_CODE=%ERRORLEVEL%
85
- if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
- if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
- exit /b %EXIT_CODE%
88
-
89
- :mainEnd
90
- if "%OS%"=="Windows_NT" endlocal
91
-
92
- :omega