telephone-clients 3.0.104-75 → 3.0.104-77

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": "telephone-clients",
3
- "version": "3.0.104-75",
3
+ "version": "3.0.104-77",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -11,15 +11,15 @@
11
11
  <div class="panel-body " id="upuserinfo_sel" v-show="headername == '基本信息'">
12
12
  <div class="row auto" style="margin: 5px 0">
13
13
  <labe class="righttxt">用户编号:</labe>
14
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly />
14
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly/>
15
15
  </div>
16
16
  <div class="row auto" style="margin: 5px 0">
17
17
  <labe class="righttxt">用户名称:</labe>
18
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly />
18
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly/>
19
19
  </div>
20
20
  <div class="row auto" style="margin: 5px 0">
21
21
  <labe class="righttxt">身份证号:</labe>
22
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_idnumber" />
22
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_idnumber"/>
23
23
  </div>
24
24
  <div class="row auto" style="margin: 5px 0">
25
25
  <labe class="righttxt">用户状态:</labe>
@@ -27,37 +27,38 @@
27
27
  <!-- :width="'60%'"-->
28
28
  <!-- v-model="userinfo.baseinfo.base.f_user_state"-->
29
29
  <!-- :options='userTypes' placeholder='用户状态' close-on-select clear-button value-single></v-select>-->
30
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_state" readonly />
30
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_state" readonly/>
31
31
  </div>
32
32
  <div class="row auto" style="margin: 5px 0">
33
33
  <labe class="righttxt">用户电话:</labe>
34
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone" />
34
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone"/>
35
35
  </div>
36
36
  <div class="row auto" style="margin: 5px 0">
37
37
  <labe class="righttxt">合同日期:</labe>
38
38
  <datepicker class="rightipt" :value.sync="userinfo.baseinfo.base.f_contractdate"
39
- v-model="userinfo.baseinfo.base.f_contractdate" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd 00:00:00'"
39
+ v-model="userinfo.baseinfo.base.f_contractdate" :disabled-days-of-Week="[]"
40
+ :format="'yyyy-MM-dd 00:00:00'"
40
41
  :show-reset-button="reset" readonly="readonly">
41
42
  </datepicker>
42
43
  <!-- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_contractdate" />-->
43
44
  </div>
44
45
  <div class="row auto" style="margin: 5px 0">
45
46
  <labe class="righttxt">租户姓名:</labe>
46
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name" />
47
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name"/>
47
48
  </div>
48
49
  <div class="row auto" style="margin: 5px 0">
49
50
  <labe class="righttxt">租户电话:</labe>
50
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone" />
51
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
51
52
  </div>
52
53
  <div class="row auto" style="margin: 5px 0">
53
54
  <labe class="righttxt">地址类型:</labe>
54
55
  <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
55
56
  <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
56
- id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
57
- for="phone_addressType1">普通地址</label></div>
57
+ id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
58
+ for="phone_addressType1">普通地址</label></div>
58
59
  <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
59
- id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
60
- for="phone_addressType2">特殊地址</label></div>
60
+ id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
61
+ for="phone_addressType2">特殊地址</label></div>
61
62
  </div>
62
63
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
63
64
  <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
@@ -69,7 +70,7 @@
69
70
  <div class="row auto" style="margin: 5px 0">
70
71
  <labe class="righttxt">地区类型:</labe>
71
72
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
72
- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />
73
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
73
74
  <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
74
75
  :width="'60%'"
75
76
  :disabled="true"
@@ -80,7 +81,8 @@
80
81
  <labe class="righttxt">省&ensp;市&ensp;区:</labe>
81
82
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
82
83
  <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
83
- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'" v-model="selectPcd"
84
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'"
85
+ v-model="selectPcd"
84
86
  :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
85
87
  @change="pcd_change()"></v-select>
86
88
  </div>
@@ -88,7 +90,8 @@
88
90
  <labe class="righttxt">街道名称:</labe>
89
91
  <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
90
92
  <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'"
91
- v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
93
+ v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button
94
+ value-single
92
95
  @change="street_change()"></v-select>
93
96
  </div>
94
97
  <div class="row auto" style="margin: 5px 0">
@@ -110,26 +113,26 @@
110
113
  <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
111
114
  <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</labe>
112
115
  <input type="text" @change="changeNewAddress" class="form-control rightipt"
113
- v-model="userinfo.addressinfo.f_building" />
116
+ v-model="userinfo.addressinfo.f_building"/>
114
117
  </div>
115
118
  <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
116
119
  <labe class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</labe>
117
120
  <input type="text" @change="changeNewAddress" class="form-control rightipt"
118
- v-model="userinfo.addressinfo.f_unit" />
121
+ v-model="userinfo.addressinfo.f_unit"/>
119
122
  </div>
120
123
  <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
121
124
  <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</labe>
122
125
  <input type="text" @change="changeNewAddress" class="form-control rightipt"
123
- v-model="userinfo.addressinfo.f_floor" />
126
+ v-model="userinfo.addressinfo.f_floor"/>
124
127
  </div>
125
128
  <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
126
129
  <labe class="righttxt">门&ensp;牌&ensp;号:</labe>
127
130
  <input type="text" @change="changeNewAddress" class="form-control rightipt"
128
- v-model="userinfo.addressinfo.f_room" />
131
+ v-model="userinfo.addressinfo.f_room"/>
129
132
  </div>
130
133
  <div class="row auto" style="margin: 5px 0">
131
134
  <labe class="righttxt">详细地址:</labe>
132
- <input type="text" class="form-control rightipt" v-model="userinfo_old.addressinfo.f_address" />
135
+ <input type="text" class="form-control rightipt" v-model="userinfo_old.addressinfo.f_address"/>
133
136
  </div>
134
137
  <div class="row auto" style="margin: 5px 0">
135
138
  <labe class="righttxt">新&ensp;地&ensp;址:</labe>
@@ -156,7 +159,7 @@
156
159
  <div class="row auto" style="margin: 5px 0">
157
160
  <labe class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</labe>
158
161
  <input type="text" :readonly="userinfo.meterinfo[0].f_table_state != '待开通'" class="form-control rightipt"
159
- style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
162
+ style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber"/>
160
163
  <button type="button" :disabled="userinfo.meterinfo[0].f_table_state != '待开通'" name="button"
161
164
  class="btn btn-primary" style="width: 15%" @click="scan">扫码
162
165
  </button>
@@ -182,18 +185,20 @@
182
185
  <div class="row auto" style="margin: 5px 0">
183
186
  <labe class="righttxt">表&ensp;封&ensp;号:</labe>
184
187
  <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"
185
- :readonly="userinfo.meterinfo[0].f_table_state != '待开通'" />
188
+ :readonly="userinfo.meterinfo[0].f_table_state != '待开通'"/>
186
189
  </div>
187
190
  <div class="row auto" style="margin: 5px 0">
188
191
  <labe class="righttxt">表&ensp;位&ensp;置:</labe>
189
192
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
190
- v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
193
+ v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly
194
+ :options="wz_types"
191
195
  close-on-select value-single></v-select>
192
196
  </div>
193
197
  <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_table_state == '待开通'">
194
198
  <labe class="righttxt">表&ensp;品&ensp;牌:</labe>
195
199
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_gasbrand"
196
- v-model="userinfo.meterinfo[0].f_gasbrand" placeholder='请选择' :width='wid' readonly :options="gasbrands"
200
+ v-model="userinfo.meterinfo[0].f_gasbrand" placeholder='请选择' :width='wid' readonly
201
+ :options="gasbrands"
197
202
  close-on-select value-single></v-select>
198
203
  </div>
199
204
  <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_table_state == '待开通'">
@@ -204,18 +209,20 @@
204
209
  </div>
205
210
  <div class="row auto" style="margin: 5px 0">
206
211
  <labe class="righttxt">初始底数:</labe>
207
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_base" />
212
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_base"/>
208
213
  </div>
209
214
  <div class="row auto" style="margin: 5px 0">
210
215
  <labe class="righttxt">左&ensp;右&ensp;表:</labe>
211
216
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
212
- v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly :options="aroundmeters"
217
+ v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
218
+ :options="aroundmeters"
213
219
  close-on-select value-single></v-select>
214
220
  </div>
215
221
  <div class="row auto" style="margin: 5px 0">
216
222
  <labe class="righttxt">气表类型:</labe>
217
223
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_meter_classify"
218
- v-model="userinfo.meterinfo[0].f_meter_classify" placeholder='请选择' :width='wid' readonly :disabled="true"
224
+ v-model="userinfo.meterinfo[0].f_meter_classify" placeholder='请选择' :width='wid' readonly
225
+ :disabled="true"
219
226
  :options="meter_classifys" close-on-select value-single></v-select>
220
227
  </div>
221
228
  <div class="row auto" style="margin: 5px 0">
@@ -242,41 +249,44 @@
242
249
  </div>
243
250
  <div class="row auto" style="margin: 5px 0">
244
251
  <labe class="righttxt">设备品牌:</labe>
245
- <input type="text" class="form-control rightipt" v-model="row.f_brand" />
252
+ <input type="text" class="form-control rightipt" v-model="row.f_brand"/>
246
253
  </div>
247
254
  <div class="row auto" style="margin: 5px 0">
248
255
  <labe class="righttxt">设备型号:</labe>
249
- <input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
256
+ <input type="text" class="form-control rightipt" v-model="row.f_devices_model"/>
250
257
  </div>
251
258
  <div class="row auto" style="margin: 5px 0">
252
259
  <labe class="righttxt">生产日期:</labe>
253
260
  <datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
254
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
261
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
262
+ readonly="readonly">
255
263
  </datepicker>
256
264
  </div>
257
265
  <div class="row auto" style="margin: 5px 0">
258
266
  <labe class="righttxt">使用年限:</labe>
259
- <input type="number" class="form-control rightipt" v-model="row.f_service_life" />
267
+ <input type="number" class="form-control rightipt" v-model="row.f_service_life"/>
260
268
  </div>
261
269
  <div class="row auto" style="margin: 5px 0">
262
270
  <labe class="righttxt">到期日期:</labe>
263
271
  <datepicker class="rightipt" :value.sync="row.f_expire_date" v-model="row.f_expire_date"
264
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
272
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
273
+ readonly="readonly">
265
274
  </datepicker>
266
275
  </div>
267
276
  <div class="row auto" style="margin: 5px 0">
268
277
  <labe class="righttxt">安&ensp;装&ensp;人:</labe>
269
- <input type="text" class="form-control rightipt" v-model="row.f_input_person" />
278
+ <input type="text" class="form-control rightipt" v-model="row.f_input_person"/>
270
279
  </div>
271
280
  <div class="row auto" style="margin: 5px 0">
272
281
  <labe class="righttxt">安装日期:</labe>
273
282
  <datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
274
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
283
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
284
+ readonly="readonly">
275
285
  </datepicker>
276
286
  </div>
277
287
  <div class="row auto" style="margin: 5px 0">
278
288
  <labe class="righttxt">设备数量:</labe>
279
- <input type="number" class="form-control rightipt" v-model="row.f_devices_num" />
289
+ <input type="number" class="form-control rightipt" v-model="row.f_devices_num"/>
280
290
  </div>
281
291
  <div class="row auto" style="margin: 5px 0">
282
292
  <labe class="righttxt">有无不锈钢波纹管:</labe>
@@ -285,18 +295,20 @@
285
295
  </div>
286
296
  <div class="row auto" style="margin: 5px 0">
287
297
  <labe class="righttxt">波纹管数量:</labe>
288
- <input type="text" class="form-control rightipt" v-model="row.f_pipe_num" />
298
+ <input type="text" class="form-control rightipt" v-model="row.f_pipe_num"/>
289
299
  </div>
290
300
  <div class="row auto" style="margin: 5px 0">
291
301
  <labe class="righttxt">管道安装日期:</labe>
292
302
  <datepicker class="rightipt" :value.sync="row.f_pipeinstall_date" v-model="row.f_pipeinstall_date"
293
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
303
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
304
+ readonly="readonly">
294
305
  </datepicker>
295
306
  </div>
296
307
  <div class="row auto" style="margin: 5px 0">
297
308
  <labe class="righttxt">管道到期日期:</labe>
298
309
  <datepicker class="rightipt" :value.sync="row.f_pipeexpire_date" v-model="row.f_pipeexpire_date"
299
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
310
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
311
+ readonly="readonly">
300
312
  </datepicker>
301
313
  </div>
302
314
  <div class="row auto" style="margin: 5px 0">
@@ -306,7 +318,7 @@
306
318
  </div>
307
319
  <div class="row auto" style="margin: 5px 0">
308
320
  <labe class="righttxt">自闭阀数量:</labe>
309
- <input type="text" class="form-control rightipt" v-model="row.f_zibifa_num" />
321
+ <input type="text" class="form-control rightipt" v-model="row.f_zibifa_num"/>
310
322
  </div>
311
323
  <!--<div class="row auto" style="margin: 5px 0">
312
324
  <labe class="righttxt">管道类型:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
@@ -338,7 +350,7 @@
338
350
  </template>
339
351
 
340
352
  <script>
341
- import { HttpResetClass } from 'vue-client'
353
+ import {HttpResetClass} from 'vue-client'
342
354
  import * as Util from "../../../components/Util";
343
355
  import Vue from 'vue'
344
356
 
@@ -359,9 +371,9 @@
359
371
  gasmodel: [],
360
372
  meter_classifys: this.$appdata.getParam('气表类型'),
361
373
  pipe_types: this.$appdata.getParam('管道类型'),
362
- pipetypes: [{ label: '有', value: '不锈钢波纹管' }, { label: '无', value: '' }],
374
+ pipetypes: [{label: '有', value: '不锈钢波纹管'}, {label: '无', value: ''}],
363
375
  wz_types: [],
364
- cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
376
+ cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
365
377
  aroundmeters: this.$appdata.getParam('左右表'),
366
378
  is_zibifa: this.$appdata.getParam('有无自闭阀'),
367
379
  pcds: [],
@@ -373,9 +385,9 @@
373
385
  area: [],
374
386
  enable: false,
375
387
  f_meterno_path: Vue.nopic,
376
- selectArea: { id: '' },
377
- selectPcd: { id: '' },
378
- selectStreet: { id: '' },
388
+ selectArea: {id: ''},
389
+ selectPcd: {id: ''},
390
+ selectStreet: {id: ''},
379
391
  changemeterno: false,//是否修改了机表表号
380
392
  approveChange: false,//是否需要进行信息变更审核
381
393
  newAddress: '',
@@ -413,69 +425,35 @@
413
425
  methods: {
414
426
  scan() {
415
427
  HostApp.__this__ = this,
416
- HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
428
+ HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
417
429
  },
418
430
  getCode() {
419
431
  var datapa = HostApp.getCode().data;
420
432
  this.userinfo.meterinfo[0].f_meternumber = datapa
421
433
  },
422
434
  checkVal() {
423
- this.approveChange = false
424
- this.changemeterno = false
425
- let checked = { ischeck: true, msg: '' }
426
- if (!this.userinfo.baseinfo.base.f_user_name) {
427
- checked = { ischeck: false, msg: '请输入用户名称!' }
435
+ if (!this.userinfo.baseinfo.base.f_contractdate) {
436
+ return '合同日期未填写'
428
437
  }
429
- if (!this.selectPcd.id) {
430
- checked = { ischeck: false, msg: '请选择省市区!' }
438
+ if (!this.userinfo.meterinfo[0].f_meternumber) {
439
+ return '表号未填写'
431
440
  }
432
- if (!this.selectStreet.id) {
433
- checked = { ischeck: false, msg: '请选择街道!' }
441
+ if (!this.userinfo.meterinfo[0].f_metertitles) {
442
+ return '表封号未填写'
434
443
  }
435
- if (!this.userinfo.addressinfo.f_address) {
436
- checked = { ischeck: false, msg: '新地址不能为空!' }
444
+ if (!this.userinfo.meterinfo[0].f_position) {
445
+ return '表位置未填写'
437
446
  }
438
- if (this.addressType == '普通地址') {
439
- if (!this.selectArea.id) {
440
- checked = { ischeck: false, msg: '请选择小区!' }
441
- }
442
- if (!this.userinfo.addressinfo.f_room) {
443
- checked = { ischeck: false, msg: '新输入门牌号!' }
444
- }
447
+ if (!this.userinfo.meterinfo[0].f_gasbrand) {
448
+ return '表品牌未填写'
445
449
  }
446
- if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
447
- if (this.userinfo.meterinfo[0].f_meternumber) {
448
- if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
449
- if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
450
- checked = { ischeck: false, msg: '请拍摄表号照片!' }
451
- } else {
452
- this.changemeterno = true
453
- }
454
- }
455
- } else {
456
- checked = { ischeck: false, msg: '请输入表号!' }
457
- }
450
+ if (!this.userinfo.meterinfo[0].f_meter_base) {
451
+ return '初始底数未填写'
458
452
  }
459
- for (let check in this.checkField) {
460
- if (typeof check != 'function') {
461
- for (let i = 0; i < this.checkField[check].length; i++) {
462
- if (check == 'checkUserinfoField') {
463
- if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
464
- this.approveChange = true
465
- }
466
- } else if (check == 'checkUserFilesField') {
467
- if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
468
- this.approveChange = true
469
- }
470
- } else if (check == 'checkAddressField') {
471
- if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
472
- this.approveChange = true
473
- }
474
- }
475
- }
476
- }
453
+ if (!this.userinfo.meterinfo[0].f_aroundmeter) {
454
+ return '左右表未填写'
477
455
  }
478
- return checked
456
+ return false
479
457
  },
480
458
  select_search(text) {
481
459
  if (this.selectStreet.id) {
@@ -487,11 +465,11 @@
487
465
  orderitem: "id",
488
466
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
489
467
  }
490
- }, { resolveMsg: null, rejectMsg: null }).then((res) => {
468
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
491
469
  if (res.data.length > 0) {
492
470
  this.area = []
493
471
  res.data.forEach((result) => {
494
- this.area.push({ label: result.f_residential_area, value: result })
472
+ this.area.push({label: result.f_residential_area, value: result})
495
473
  })
496
474
  }
497
475
  })
@@ -534,6 +512,11 @@
534
512
  }
535
513
  },
536
514
  editUserInfo() {
515
+ const msg = this.checkVal()
516
+ if (msg && this.userinfo.meterinfo[0].f_table_state == '待开通') {
517
+ this.$showMessage(msg)
518
+ return
519
+ }
537
520
  for (let i = 0; i < this.model.length; i++) {
538
521
  this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
539
522
  }
@@ -578,12 +561,12 @@
578
561
  f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
579
562
  }
580
563
  }
581
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
564
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
582
565
  if (res1.data.status == 200) {
583
566
  let data = this.userinfo.addressinfo
584
567
  data.f_address = this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
585
568
  data.f_operator = Vue.user.name
586
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, { data: data }).then((res2) => {
569
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
587
570
  this.$showMessage("修改用户地址信息成功!")
588
571
  }).catch(error => {
589
572
  this.$showMessage("修改用户地址信息!")
@@ -631,7 +614,7 @@
631
614
  this.userinfo.addressinfo.f_residential_area = ''
632
615
  this.userinfo.addressinfo.f_residential_area_id = ''
633
616
  this.userinfo.addressinfo.f_slice_area = ''
634
- this.selectArea = { id: '' }
617
+ this.selectArea = {id: ''}
635
618
  this.area = []
636
619
  let pcdText = ` and f_street_id=${this.selectStreet.id}`
637
620
  let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
@@ -641,9 +624,9 @@
641
624
  orderitem: "id",
642
625
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
643
626
  }
644
- }, { resolveMsg: null, rejectMsg: null })
627
+ }, {resolveMsg: null, rejectMsg: null})
645
628
  res.data.forEach((result) => {
646
- this.area.push({ label: result.f_residential_area, value: result })
629
+ this.area.push({label: result.f_residential_area, value: result})
647
630
  })
648
631
  } else {
649
632
  this.area = []
@@ -654,11 +637,11 @@
654
637
  if (this.selectPcd.id) {
655
638
  this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
656
639
  this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
657
- this.selectStreet = { id: '' }
640
+ this.selectStreet = {id: ''}
658
641
  this.userinfo.addressinfo.f_street = ''
659
642
  this.userinfo.addressinfo.f_street_id = ''
660
643
  this.userinfo.addressinfo.f_iscity = ''
661
- this.selectArea = { id: '' }
644
+ this.selectArea = {id: ''}
662
645
  this.userinfo.addressinfo.f_residential_area = ''
663
646
  this.userinfo.addressinfo.f_residential_area_id = ''
664
647
  this.userinfo.addressinfo.f_slice_area = ''
@@ -671,9 +654,9 @@
671
654
  orderitem: "id",
672
655
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
673
656
  }
674
- }, { resolveMsg: null, rejectMsg: null })
657
+ }, {resolveMsg: null, rejectMsg: null})
675
658
  streetlist.data.forEach((result) => {
676
- this.streets.push({ label: result.f_street, value: result })
659
+ this.streets.push({label: result.f_street, value: result})
677
660
  })
678
661
  } else {
679
662
  this.streets = []
@@ -707,7 +690,7 @@
707
690
  f_zones: Vue.user.zones
708
691
  }
709
692
  new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
710
- data, { resolveMsg: null, rejectMsg: null }).then((row) => {
693
+ data, {resolveMsg: null, rejectMsg: null}).then((row) => {
711
694
  this.$showMessage('已成功关阀停气!')
712
695
  this.userinfo.meterinfo[0].f_table_state = '停用'
713
696
  })
@@ -737,7 +720,7 @@
737
720
  "f_brand": null,
738
721
  "f_devices_model": null,
739
722
  "f_devices_no": null,
740
- "img": { "content": null, "filename": null }
723
+ "img": {"content": null, "filename": null}
741
724
  }
742
725
  this.model.push(obj)
743
726
  },
@@ -759,9 +742,9 @@
759
742
  orderitem: "id",
760
743
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
761
744
  }
762
- }, { resolveMsg: null, rejectMsg: null })
745
+ }, {resolveMsg: null, rejectMsg: null})
763
746
  res.data.forEach((result) => {
764
- this.area.push({ label: result.f_residential_area, value: result })
747
+ this.area.push({label: result.f_residential_area, value: result})
765
748
  })
766
749
  this.area.push({
767
750
  label: this.userinfo.addressinfo.f_residential_area,
@@ -785,12 +768,12 @@
785
768
  orderitem: "id",
786
769
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
787
770
  }
788
- }, { resolveMsg: null, rejectMsg: null })
771
+ }, {resolveMsg: null, rejectMsg: null})
789
772
  streetlist.data.forEach((result) => {
790
773
  if (this.selectStreet.id && this.selectStreet.id == result.id) {
791
774
  this.userinfo.addressinfo.f_iscity = result.f_iscity
792
775
  }
793
- this.streets.push({ label: result.f_street, value: result })
776
+ this.streets.push({label: result.f_street, value: result})
794
777
  })
795
778
  } else {
796
779
  this.streets = []
@@ -840,10 +823,10 @@
840
823
  orderitem: "1",
841
824
  condition: ` f_gasbrand_id = '${this.userinfo.meterinfo[0].f_gasbrand_id}'`
842
825
  }
843
- }, { resolveMsg: null, rejectMsg: null }).then(response => {
826
+ }, {resolveMsg: null, rejectMsg: null}).then(response => {
844
827
  this.gasmodel = response.data
845
828
  response.data.forEach(item => {
846
- this.gasmodels.push({ label: item.f_meter_style, value: item.f_meter_style })
829
+ this.gasmodels.push({label: item.f_meter_style, value: item.f_meter_style})
847
830
  })
848
831
  })
849
832
  },
@@ -871,7 +854,7 @@
871
854
  orderitem: "id",
872
855
  condition: `f_orgid = '${Vue.user.orgid}'`
873
856
  }
874
- }, { resolveMsg: null, rejectMsg: null })
857
+ }, {resolveMsg: null, rejectMsg: null})
875
858
 
876
859
  let gasbrand = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
877
860
  data: {
@@ -880,17 +863,17 @@
880
863
  orderitem: "1",
881
864
  condition: ` 1=1`
882
865
  }
883
- }, { resolveMsg: null, rejectMsg: null })
866
+ }, {resolveMsg: null, rejectMsg: null})
884
867
  this.gasbrand = gasbrand.data
885
868
  gasbrand.data.forEach(item => {
886
- this.gasbrands.push({ label: item.f_meter_brand, value: item.f_meter_brand })
869
+ this.gasbrands.push({label: item.f_meter_brand, value: item.f_meter_brand})
887
870
  })
888
871
  pcdlist.data.forEach((result) => {
889
- this.pcds.push({ label: result.f_pcd, value: result })
872
+ this.pcds.push({label: result.f_pcd, value: result})
890
873
  })
891
874
  let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
892
875
  f_userinfo_id: this.f_userinfo_id
893
- }, { resolveMsg: null, rejectMsg: null })
876
+ }, {resolveMsg: null, rejectMsg: null})
894
877
  this.userinfo = res.data
895
878
  this.userinfo_old = JSON.parse(JSON.stringify(res.data))
896
879
  this.model = this.userinfo.meterinfo[0].devicesinfo
@@ -1,217 +1,218 @@
1
- <template>
2
- <dropdown :model='model' class="auto" id="res-tree" v-if="!islist" v-el:dropdown :style="{width:width}">
3
- <button type="button" class="btn btn-default dropdown-toggle select-style" data-toggle="dropdown">
4
- <span class='btn-content' :style="{textOverflow:'ellipsis',overflow: 'hidden'}">{{ resname }}</span>
5
- <span class="caret"></span>
6
- </button>
7
- <tree :model='model' :is-click="false" slot="dropdown-menu" class="dropdown-menu auto" role="menu">
8
- <span partial>
9
- <span class="glyphicon glyphicon-chevron-down" v-show="row.open&&row.data.children.length>0" style="color:balck;"></span>
10
- <span class="glyphicon glyphicon-chevron-right" v-show="!row.open&&row.data.children.length>0" style="color:balck;"></span>
11
- <span class="RightTreeCanSelect" v-if="row.data.hasright" @click.stop="$parent.$parent.$parent.selectclick(row.data)">{{row.data.name}}</span>
12
- <span class="RightTreeCanNotSelect" v-else>{{row.data.name}}</span>
13
- <span class="glyphicon glyphicon-ok " v-if="$parent.$parent.$parent.isSelect(row.data.id)" style="color:balck;"></span>
14
- </span>
15
- </tree>
16
- </dropdown>
17
- <v-select v-if="islist"
18
- placeholder='请选择'
19
- :options='childrenOptions'
20
- @change="selectclick"
21
- :value-single="true"
22
- close-on-select></v-select>
23
- </template>
24
- <script>
25
- import * as ldapHelper from './LdapHelper'
26
- import Vue from 'vue'
27
- export default {
28
- title: '资源树',
29
- props: {
30
- source: {
31
- type: String,
32
- require: true,
33
- default:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`
34
- },
35
- resid: {
36
- },
37
- islist: {
38
- type: Boolean,
39
- default: false
40
- },
41
- //是否有查看上级的权限
42
- Url:{
43
- type: String,
44
- default:''
45
- }
46
- },
47
- data () {
48
- return {
49
- width:'100%',
50
- resobj:{res:Vue.user.orgs, resids:Vue.user.orgid},
51
- userid: Vue.user.id,
52
- resname:[Vue.user.orgs],
53
- orgnames : [Vue.user.orgs],
54
- orgids : [Vue.user.orgid],
55
- orgobj:[],
56
- model: [
57
-
58
- ],
59
- childrenOptions: []
60
- }
61
- },
62
- methods: {
63
- selectRes () {
64
- let newobj={
65
- "res": [this.resname],
66
- "resids": [this.orgids],
67
- }
68
- this.$emit('re-res', newobj)
69
- },
70
- //点击资源的方法
71
- selectclick (row) {
72
- if(this.orgids.includes(row.id)){
73
- this.orgnames=[]
74
- this.orgids=[]
75
- this.removeResChild(row)
76
- this.orgnames.push(row.name)
77
- this.orgids.push(row.id)
78
- this.orgobj.push(row)
79
- }else{
80
- this.orgnames=[]
81
- this.orgids=[]
82
- this.orgobj=[]
83
- this.addResChild(row)
84
- }
85
- console.log(this.orgnames.join(','))
86
- this.resname = this.orgnames.length > 0 ? this.orgnames.join(','):'请选择'
87
- let newobj={
88
- "res": this.orgnames,
89
- "resids": this.orgids,
90
- "orgobj": this.orgobj,
91
- }
92
- this.$emit('re-res', newobj)
93
- },
94
- addResChild(val){
95
- // if(this.orgids.includes(val.id)){
96
- // this.orgnames.splice(this.orgnames.indexOf(val.name),1)
97
- // this.orgids.splice(this.orgids.indexOf(val.id),1)
98
- // }
99
- this.orgnames.push(val.name)
100
- this.orgids.push(val.id)
101
- this.orgobj.push(val)
102
- if(val.children && val.children.length>0){
103
- Object.keys(val.children).forEach((key) => {
104
- this.addResChild(val.children[key])
105
- })
106
- }
107
- },
108
- removeResChild(val){
109
- this.orgnames.splice(this.orgnames.indexOf(val.name),1)
110
- this.orgids.splice(this.orgids.indexOf(val.id),1)
111
- this.orgobj.splice(this.orgids.indexOf(val),1)
112
- if(val.children && val.children.length>0){
113
- Object.keys(val.children).forEach((key) => {
114
- this.removeResChild(val.children[key])
115
- })
116
- }
117
- },
118
- //检查是否显示对勾
119
- isSelect(val) {
120
- if(this.orgids.includes(val)){
121
- return true
122
- }else{
123
- return false
124
- }
125
- },
126
- //树形结构变成list
127
- treetoList(val) {
128
- for (let value of val) {
129
- this.ergodicList(value)
130
- }
131
- },
132
- //找到跟节点
133
- ergodicList (val) {
134
- val.children.length > 0 ? this.treetoList(val.children) : ((val.name == '永济客服部' || val.name == '话务中心') ? this.childrenOptions.push({label: val.name, value: val}) : '')
135
- },
136
- //处理显示默认值
137
- dealResObj (val) {
138
- try{
139
- var arr=val.res.split(".")
140
- //截取最后一个分公司名字
141
- this.resname=arr[arr.length-1].toString()
142
- this.resid = val.resids
143
- }catch (e){
144
- this.resname='请选择组织'
145
- }
146
- },
147
- judgBoundary(){
148
- //判断是否超出边界,超出移动
149
- if(document.documentElement.offsetWidth< this.$els.dropdown.getBoundingClientRect().right){
150
- this.left = document.documentElement.offsetWidth - this.$els.dropdown.getBoundingClientRect().right - 25
151
- }
152
- }
153
- },
154
- events: {
155
-
156
- },
157
- ready () {
158
- console.log('righttree ready')
159
- if(this.$els.dropdown){
160
- console.log('righttree1')
161
- this.width = this.$els.dropdown.clientWidth * 0.7 +'px'
162
- }
163
- console.log('righttree2')
164
- this.dealResObj (this.resobj)
165
- console.log('righttree3')
166
- var data = {
167
- source: this.source,
168
- userid: this.userid
169
- }
170
- console.log('向资源服务发送请求')
171
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, data,{
172
- resolveMsg : null ,
173
- rejectMsg : null,
174
- }).then((ret) => {
175
- console.log('向资源服务请求结束')
176
- // 去掉前面的两层节点
177
- ret.data[0].children[0].children.forEach((item) => {
178
- this.model.push(item)
179
- })
180
- // 给资源添加父关系
181
- ldapHelper.procParent(this.model)
182
- if (this.islist) {
183
- this.treetoList(this.model)
184
- }
185
- this.selectRes()
186
- })
187
- },
188
- watch: {
189
- }
190
- }
191
- </script>
192
- <style lang="less">
193
- #res-tree {
194
- .list-group-item {
195
- background-color: #FFF;
196
- color: #000;
197
- padding: 5px 10px;
198
- border:0px;
199
- white-space: nowrap;
200
- }
201
- }
202
- #res-tree .list-group {
203
- width: auto;
204
- min-width: 100%;
205
- }
206
- .hide-text-overflow{
207
- overflow: hidden;
208
- text-overflow: ellipsis
209
- }
210
- .select-style {
211
- border: 0px;
212
- /*border-bottom: 2px solid #C9CCCF;*/
213
- border: 1px solid #93B2D3;
214
- border-radius: 0px;
215
- color: #555;
216
- }
217
- </style>
1
+ <template>
2
+ <dropdown :model='model' class="auto" id="res-tree" v-if="!islist" v-el:dropdown :style="{width:width}">
3
+ <button type="button" class="btn btn-default dropdown-toggle select-style" data-toggle="dropdown">
4
+ <span class='btn-content' :style="{textOverflow:'ellipsis',overflow: 'hidden'}">{{ resname }}</span>
5
+ <span class="caret"></span>
6
+ </button>
7
+ <tree :model='model' :is-click="false" slot="dropdown-menu" class="dropdown-menu auto" role="menu">
8
+ <span partial>
9
+ <span class="glyphicon glyphicon-chevron-down" v-show="row.open&&row.data.children.length>0" style="color:balck;"></span>
10
+ <span class="glyphicon glyphicon-chevron-right" v-show="!row.open&&row.data.children.length>0" style="color:balck;"></span>
11
+ <span class="RightTreeCanSelect" v-if="row.data.hasright" @click.stop="$parent.$parent.$parent.selectclick(row.data)">{{row.data.name}}</span>
12
+ <span class="RightTreeCanNotSelect" v-else>{{row.data.name}}</span>
13
+ <span class="glyphicon glyphicon-ok " v-if="$parent.$parent.$parent.isSelect(row.data.id)" style="color:balck;"></span>
14
+ </span>
15
+ </tree>
16
+ </dropdown>
17
+ <v-select v-if="islist"
18
+ placeholder='请选择'
19
+ :options='childrenOptions'
20
+ @change="selectclick"
21
+ :width="'100%'"
22
+ :value-single="true"
23
+ close-on-select></v-select>
24
+ </template>
25
+ <script>
26
+ import * as ldapHelper from './LdapHelper'
27
+ import Vue from 'vue'
28
+ export default {
29
+ title: '资源树',
30
+ props: {
31
+ source: {
32
+ type: String,
33
+ require: true,
34
+ default:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`
35
+ },
36
+ resid: {
37
+ },
38
+ islist: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ //是否有查看上级的权限
43
+ Url:{
44
+ type: String,
45
+ default:''
46
+ }
47
+ },
48
+ data () {
49
+ return {
50
+ width:'100%',
51
+ resobj:{res:Vue.user.orgs, resids:Vue.user.orgid},
52
+ userid: Vue.user.id,
53
+ resname:[Vue.user.orgs],
54
+ orgnames : [Vue.user.orgs],
55
+ orgids : [Vue.user.orgid],
56
+ orgobj:[],
57
+ model: [
58
+
59
+ ],
60
+ childrenOptions: []
61
+ }
62
+ },
63
+ methods: {
64
+ selectRes () {
65
+ let newobj={
66
+ "res": [this.resname],
67
+ "resids": [this.orgids],
68
+ }
69
+ this.$emit('re-res', newobj)
70
+ },
71
+ //点击资源的方法
72
+ selectclick (row) {
73
+ if(this.orgids.includes(row.id)){
74
+ this.orgnames=[]
75
+ this.orgids=[]
76
+ this.removeResChild(row)
77
+ this.orgnames.push(row.name)
78
+ this.orgids.push(row.id)
79
+ this.orgobj.push(row)
80
+ }else{
81
+ this.orgnames=[]
82
+ this.orgids=[]
83
+ this.orgobj=[]
84
+ this.addResChild(row)
85
+ }
86
+ console.log(this.orgnames.join(','))
87
+ this.resname = this.orgnames.length > 0 ? this.orgnames.join(','):'请选择'
88
+ let newobj={
89
+ "res": this.orgnames,
90
+ "resids": this.orgids,
91
+ "orgobj": this.orgobj,
92
+ }
93
+ this.$emit('re-res', newobj)
94
+ },
95
+ addResChild(val){
96
+ // if(this.orgids.includes(val.id)){
97
+ // this.orgnames.splice(this.orgnames.indexOf(val.name),1)
98
+ // this.orgids.splice(this.orgids.indexOf(val.id),1)
99
+ // }
100
+ this.orgnames.push(val.name)
101
+ this.orgids.push(val.id)
102
+ this.orgobj.push(val)
103
+ if(val.children && val.children.length>0){
104
+ Object.keys(val.children).forEach((key) => {
105
+ this.addResChild(val.children[key])
106
+ })
107
+ }
108
+ },
109
+ removeResChild(val){
110
+ this.orgnames.splice(this.orgnames.indexOf(val.name),1)
111
+ this.orgids.splice(this.orgids.indexOf(val.id),1)
112
+ this.orgobj.splice(this.orgids.indexOf(val),1)
113
+ if(val.children && val.children.length>0){
114
+ Object.keys(val.children).forEach((key) => {
115
+ this.removeResChild(val.children[key])
116
+ })
117
+ }
118
+ },
119
+ //检查是否显示对勾
120
+ isSelect(val) {
121
+ if(this.orgids.includes(val)){
122
+ return true
123
+ }else{
124
+ return false
125
+ }
126
+ },
127
+ //树形结构变成list
128
+ treetoList(val) {
129
+ for (let value of val) {
130
+ this.ergodicList(value)
131
+ }
132
+ },
133
+ //找到跟节点
134
+ ergodicList (val) {
135
+ val.children.length > 0 ? this.treetoList(val.children) : ((val.name == '永济客服部' || val.name == '话务中心') ? this.childrenOptions.push({label: val.name, value: val}) : '')
136
+ },
137
+ //处理显示默认值
138
+ dealResObj (val) {
139
+ try{
140
+ var arr=val.res.split(".")
141
+ //截取最后一个分公司名字
142
+ this.resname=arr[arr.length-1].toString()
143
+ this.resid = val.resids
144
+ }catch (e){
145
+ this.resname='请选择组织'
146
+ }
147
+ },
148
+ judgBoundary(){
149
+ //判断是否超出边界,超出移动
150
+ if(document.documentElement.offsetWidth< this.$els.dropdown.getBoundingClientRect().right){
151
+ this.left = document.documentElement.offsetWidth - this.$els.dropdown.getBoundingClientRect().right - 25
152
+ }
153
+ }
154
+ },
155
+ events: {
156
+
157
+ },
158
+ ready () {
159
+ console.log('righttree ready')
160
+ if(this.$els.dropdown){
161
+ console.log('righttree1')
162
+ this.width = this.$els.dropdown.clientWidth * 0.7 +'px'
163
+ }
164
+ console.log('righttree2')
165
+ this.dealResObj (this.resobj)
166
+ console.log('righttree3')
167
+ var data = {
168
+ source: this.source,
169
+ userid: this.userid
170
+ }
171
+ console.log('向资源服务发送请求')
172
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, data,{
173
+ resolveMsg : null ,
174
+ rejectMsg : null,
175
+ }).then((ret) => {
176
+ console.log('向资源服务请求结束')
177
+ // 去掉前面的两层节点
178
+ ret.data[0].children[0].children.forEach((item) => {
179
+ this.model.push(item)
180
+ })
181
+ // 给资源添加父关系
182
+ ldapHelper.procParent(this.model)
183
+ if (this.islist) {
184
+ this.treetoList(this.model)
185
+ }
186
+ this.selectRes()
187
+ })
188
+ },
189
+ watch: {
190
+ }
191
+ }
192
+ </script>
193
+ <style lang="less">
194
+ #res-tree {
195
+ .list-group-item {
196
+ background-color: #FFF;
197
+ color: #000;
198
+ padding: 5px 10px;
199
+ border:0px;
200
+ white-space: nowrap;
201
+ }
202
+ }
203
+ #res-tree .list-group {
204
+ width: auto;
205
+ min-width: 100%;
206
+ }
207
+ .hide-text-overflow{
208
+ overflow: hidden;
209
+ text-overflow: ellipsis
210
+ }
211
+ .select-style {
212
+ border: 0px;
213
+ /*border-bottom: 2px solid #C9CCCF;*/
214
+ border: 1px solid #93B2D3;
215
+ border-radius: 0px;
216
+ color: #555;
217
+ }
218
+ </style>
package/src/main.js CHANGED
@@ -1,22 +1,22 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import all from 'vue-client/src/all'
4
- import system from 'system-clients/src/system'
5
- import telephone from './telephone'
6
- import echarts from 'echarts'
7
- Vue.prototype.$echarts = echarts
8
-
9
- /** **************************通用组件******************************/
10
- all()
11
- system(false)
12
- telephone('rizhao')
13
- require('./expandcss.less')
14
- require('system-clients/src/styles/less/bootstrap.less')
15
- require('./telephoneanaly.less')
16
- // 测试
17
-
18
- Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
19
- new Vue({
20
- el: 'body',
21
- components: { App }
22
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import all from 'vue-client/src/all'
4
+ import system from 'system-clients/src/system'
5
+ import telephone from './telephone'
6
+ import echarts from 'echarts'
7
+ Vue.prototype.$echarts = echarts
8
+
9
+ /** **************************通用组件******************************/
10
+ all()
11
+ system(false)
12
+ telephone()
13
+ require('./expandcss.less')
14
+ require('system-clients/src/styles/less/bootstrap.less')
15
+ require('./telephoneanaly.less')
16
+ // 测试
17
+
18
+ Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
19
+ new Vue({
20
+ el: 'body',
21
+ components: { App }
22
+ })