safecheck-client 3.0.32-20 → 3.0.32-21

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.
@@ -1,614 +0,0 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-3">
9
- <label class="font_normal_body">客户编号</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
- </div>
13
- <div class="form-group col-sm-3">
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-3">
19
- <label class="font_normal_body">用气性质</label>
20
- <input type="text" class="input_search" v-model="model.f_residential_area"
21
- style="width: 60%" placeholder="用气性质" condition="f_residential_area like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-3">
24
- <button class="button_spacing button_search" @click="search()">查询</button>
25
- <div style="float: right" class="button_spacing"
26
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
27
- @click="$parent.$parent.hidden()"></div>
28
- </div>
29
-
30
- <!-- <div class="form-group col-sm-3" v-show="$parent.$parent.criteriaShow">-->
31
- <!-- <label class="font_normal_body">客户地址</label>-->
32
- <!-- <input type="text" class="input_search" v-model="model.f_address"-->
33
- <!-- style="width: 60%" placeholder="客户地址" condition="tua.f_address like '%{}%'">-->
34
- <!-- </div>-->
35
- <div class="form-group col-sm-3" v-show="$parent.$parent.criteriaShow">
36
- <label class="font_normal_body">客户类型</label>
37
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
38
- :value-single="true" style="width: 60%"
39
- class="select_list select"
40
- :options='$parent.$parent.userTypes' placeholder='客户类型'
41
- close-on-select
42
- condition="f_user_type ='{}'"></v-select>
43
- </div>
44
- <div class="form-group col-sm-3" v-show="$parent.$parent.criteriaShow">
45
- <label class="font_normal_body">用气类型</label>
46
- <input type="text" class="input_search" v-model="model.f_residential_area"
47
- style="width: 60%" placeholder="用气类型" condition="f_residential_area like '%{}%'">
48
- </div>
49
- <div class="form-group col-sm-3" v-show="$parent.$parent.criteriaShow">
50
- <label class="font_normal_body">用户标签</label>
51
- <input type="text" class="input_search" v-model="model.f_residential_area"
52
- style="width: 60%" placeholder="用户标签" condition="f_residential_area like '%{}%'">
53
- </div>
54
- <div class="col-sm-3 form-group" style="margin-bottom: 0px" v-show="$parent.$parent.criteriaShow">
55
- <label class="font_normal_body">公&emsp;&emsp;司</label>
56
- <right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_orgid" condition="f_orgid in {}"></right-tree-safe>
57
- </div>
58
- <div class="col-sm-3 form-group" v-show="$parent.$parent.criteriaShow">
59
-
60
- <label class="font_normal_body">片区名称</label>
61
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
62
- :value-single="true" style="width: 60%"
63
- class="select_list select"
64
- :options='$parent.$parent.checkBooks' placeholder='片区名称'
65
- close-on-select
66
- condition="f_check_book_id ='{}'"></v-select>
67
-
68
- </div>
69
- <div class="col-sm-3 form-group" v-show="$parent.$parent.criteriaShow">
70
- <label class="font_normal_body">是否在册</label>
71
- <v-select :value.sync="model.f_is_checkbook" v-model='model.f_is_checkbook'
72
- :value-single="true" style="width: 60%"
73
- class="select_list select"
74
- @change="$parent.$parent.changeState"
75
- :options='$parent.$parent.isCheckBook' placeholder='有无所属片区'
76
- close-on-select
77
- condition="{}"></v-select>
78
- </div>
79
- </div>
80
- </div>
81
- </criteria>
82
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
83
- <template partial='head'>
84
- <tr @dblclick.stop="">
85
- <!-- <th>-->
86
- <!-- <nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>-->
87
- <!-- </th>-->
88
- <th>
89
- <nobr>客户姓名</nobr>
90
- </th>
91
- <th>
92
- <nobr>客户编号</nobr>
93
- </th>
94
- <th>
95
- <nobr>客户类型</nobr>
96
- </th>
97
- <th>
98
- <nobr>客户电话</nobr>
99
- </th>
100
- <th>
101
- <nobr>用户单位</nobr>
102
- </th>
103
- <th>
104
- <nobr>客户地址</nobr>
105
- </th>
106
- <th>
107
- <nobr>所属片区</nobr>
108
- </th>
109
- </tr>
110
- </template>
111
- <template partial='body'>
112
- <!-- <td style="text-align: center">-->
113
- <!-- <nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"-->
114
- <!-- @change="$parent.$parent.$parent.checkChange(row, $event)"></input>-->
115
- <!-- </nobr>-->
116
- <!-- </td>-->
117
- <td style="text-align: center">{{ row.f_user_name }}</td>
118
- <td style="text-align: center">{{ row.f_userinfo_code }}</td>
119
- <td style="text-align: center">{{ row.f_user_type }}</td>
120
- <td style="text-align: center">{{ row.f_user_phone }}</td>
121
- <td style="text-align: center">{{ row.f_residential_area }}</td>
122
- <td style="text-align: center">{{ row.f_address }}</td>
123
- <td style="text-align: center">{{ row.f_check_book_name }}</td>
124
- </template>
125
- </data-grid>
126
- </criteria-paged>
127
- </div>
128
- <modal :show.sync="showModal" :backdrop="false">
129
- <div slot="modal-header" class="modal-header">
130
- <h4 class="modal-title">
131
- 创建片区
132
- </h4>
133
- </div>
134
- <div slot="modal-body" class="modal-body">
135
- <div v-if="true">
136
- <div class="row" style="margin-top: 10px">
137
- <!-- <label class="control-label font text-left" style="float:left;margin-left:10%;margin-top:5px">片区名称</label>-->
138
- <!-- <div class="col-xs-8 col-md-8">-->
139
- <!-- <input type="text" class="input_search" style="width: 70%;" v-model="checkBook.f_check_book_name"/>-->
140
- <!-- </div>-->
141
- <div class="col-sm-12 form-group" style="margin: 0">
142
- <role-selector-safe
143
- @re-res="getRes"
144
- role-name="安检员"
145
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
146
- :value.sync="checkBook.f_checker_name"
147
- v-model="checkBook.f_checker_name">
148
- </role-selector-safe>
149
- </div>
150
- <div class="form-group col-sm-6" style="margin-top: 20px">
151
- <label class="font_normal_body">片区名</label>
152
- <input type="text" class="input_search" v-model="checkBook.f_check_book_name"
153
- style="width: 60%" >
154
- </div>
155
- <div class="form-group col-sm-6" style="margin-top: 20px">
156
- <label class="font_normal_body">执行日期</label>
157
- <datepicker
158
- :value.sync="checkBook.f_run_date"
159
- style="width: 60%"
160
- :format="'yyyy-MM-dd'"
161
- v-model="checkBook.f_run_date"
162
- >
163
- </datepicker>
164
- </div>
165
- <div class="form-group col-sm-6" style="margin-top: 20px">
166
- <label class="font_normal_body">执行周期</label>
167
- <input type="number" class="input_search" v-model="checkBook.f_around_time"
168
- style="width: 60%" >
169
- </div>
170
- <div class="form-group col-sm-6" style="margin-top: 20px">
171
- <label class="font_normal_body">周期单位</label>
172
- <v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
173
- :value-single="true" style="width: 60%"
174
- class="select_list select"
175
- :options='aroundUnit' placeholder=''
176
- close-on-select></v-select>
177
- </div>
178
- </div>
179
- </div>
180
- </div>
181
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
182
- <button class="button_search" style="margin-right: 20px" @click="ok">确认</button>
183
- <button class="button_search" @click="cancel">取消</button>
184
- </div>
185
- </modal>
186
- <modal :show.sync="showModal2" :backdrop="false">
187
- <div slot="modal-header" class="modal-header">
188
- <h4 class="modal-title">
189
- 添加用户
190
- </h4>
191
- </div>
192
- <div slot="modal-body" class="modal-body">
193
- <div v-if="true">
194
- <div class="row" style="margin-top: 10px">
195
- <div class="form-group col-sm-12" style="margin-top: 20px">
196
- <label class="font_normal_body">片&ensp;区&ensp;名</label>
197
- <v-select :value.sync="selectBook" v-model='selectBook'
198
- :value-single="true" style="width: 80%"
199
- class="select_list select"
200
- :options='checkBooks' placeholder=''
201
- close-on-select></v-select>
202
- </div>
203
- </div>
204
- </div>
205
- </div>
206
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
207
- <button class="button_search" style="margin-right: 20px" @click="ok2">确认</button>
208
- <button class="button_search" @click="cancel2">取消</button>
209
- </div>
210
- </modal>
211
- <modal :show.sync="showModal3" :backdrop="false">
212
- <div slot="modal-header" class="modal-header">
213
- <h4 class="modal-title">
214
- 调整用户
215
- </h4>
216
- </div>
217
- <div slot="modal-body" class="modal-body">
218
- <div v-if="true">
219
- <div class="row" style="margin-top: 10px;text-align: center">
220
- <div class="form-group col-sm-12" style="margin-top: 20px">
221
- <label class="font_normal_body">安&ensp;检&ensp;册</label>
222
- <v-select :value.sync="selectBook" v-model='selectBook'
223
- :value-single="true" style="width: 80%"
224
- class="select_list select"
225
- :options='checkBooks' placeholder=''
226
- close-on-select></v-select>
227
- </div>
228
- </div>
229
- </div>
230
- </div>
231
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
232
- <button class="button_search" style="margin-right: 20px" @click="ok3">确认</button>
233
- <button class="button_search" @click="cancel3">取消</button>
234
- </div>
235
- </modal>
236
-
237
- </div>
238
- </template>
239
-
240
- <script>
241
- import {PagedList, HttpResetClass} from 'vue-client'
242
- import * as Util from "../../../components/Util";
243
- import bus from "../../../bus";
244
-
245
- export default {
246
- title: '片区管理',
247
- data () {
248
- let model = new PagedList('rs/sql/getUserByCheckBookuser', 20)
249
- return {
250
- model: model,
251
- criteriaShow: false,
252
- excelHeaders: {},
253
- checkBooks: [],
254
- f_orgid: '',
255
- bookAll: false,
256
- bookList: [],
257
- selectBook:'',
258
- userTypes: [{label: '全部', value: ''},{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
259
- // init:false,
260
- aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '月'}],
261
- isCheckBook: [{label: '全部', value: ''}, {label: '是', value: 'f_check_book_name is not null'}, {label: '否', value: 'f_check_book_name is null'}],
262
- isSearch: false,
263
- checkBook: {
264
- f_check_book_name: '',
265
- f_run_date: '',
266
- f_around_time: '',
267
- f_around_unit: '',
268
- f_create_date: Util.toStandardDateString(),
269
- f_create_person: this.$login.f.name,
270
- f_orgid: '',
271
- f_checker_name: ''
272
- },
273
- showModal: false,
274
- showModal2: false,
275
- showModal3: false
276
- }
277
- },
278
- computed: {
279
- searchData () {
280
- return {condition: this.model.condition}
281
- },
282
- bookCondition () {
283
- return this.model.condition
284
- },
285
- isCreateBook () {
286
- return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is null'
287
- },
288
- isChangeBook () {
289
- return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is not null'
290
- }
291
- },
292
- watch:{
293
- 'bookList'(){
294
- this.$emit('book-list',this.bookList)
295
- },
296
- 'bookAll'(val){
297
- if(!val){
298
- this.bookList=[]
299
- }
300
-
301
- this.$emit('book-all',this.bookAll)
302
- }
303
- },
304
- methods: {
305
- async ok2() {
306
- if (!this.selectBook) {
307
- this.$showMessage('请选择片区')
308
- return
309
- }
310
- if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
311
- let userCondition = ''
312
- if (this.bookList.length < 1) {
313
- //tag
314
- userCondition = this.bookCondition
315
- } else {
316
- //tag)
317
-
318
- userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
319
- userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
320
- //tag
321
- }
322
- let addUser = `update t_user_address set f_check_book_id ='${this.selectBook}'
323
- FROM
324
- t_userinfo tui
325
- LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
326
- LEFT JOIN t_user_address tua ON tuf.f_userinfo_id = tua.f_userinfo_id
327
- LEFT JOIN t_check_book tcb ON tua.f_check_book_id= tcb.id
328
- WHERE
329
- tui.f_user_state = '正常'
330
- AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
331
- AND ${userCondition}`
332
- await new HttpResetClass().load('POST', 'rs/logic/runSQL', {data: {sql: addUser}},
333
- {resolveMsg: null, rejectMsg: '添加用户失败'})
334
- this.$showMessage('添加用户成功')
335
- this.selectBook = ''
336
- this.bookAll = false
337
- this.bookList = []
338
- this.showModal2 = false
339
- this.$refs.paged.$refs.criteria.search()
340
- }
341
- },
342
- async ok3() {
343
- if (!this.selectBook) {
344
- this.$showMessage('请选择片区')
345
- return
346
- }
347
- if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
348
- let userCondition = ''
349
- if (this.bookList.length < 1) {
350
- //tag
351
- userCondition = this.bookCondition
352
- } else {
353
- //tag)
354
-
355
- userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
356
- userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
357
- //tag
358
- }
359
- let upUser = `update t_user_address set f_check_book_id ='${this.selectBook}'
360
- FROM
361
- t_userinfo tui
362
- LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
363
- LEFT JOIN t_user_address tua ON tuf.f_userinfo_id = tua.f_userinfo_id
364
- LEFT JOIN t_check_book tcb ON tua.f_check_book_id= tcb.id
365
- WHERE
366
- tui.f_user_state = '正常'
367
- AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
368
- AND ${userCondition}`
369
- await new HttpResetClass().load('POST', 'rs/logic/runSQL', {data: {sql: upUser}},
370
- {resolveMsg: null, rejectMsg: '调整用户失败'})
371
- this.$showMessage('调整用户成功')
372
- this.selectBook = ''
373
- this.bookAll = false
374
- this.bookList = []
375
- this.showModal3 = false
376
- this.$refs.paged.$refs.criteria.search()
377
- }
378
- },
379
- cancel2(){
380
- this.selectBook = ''
381
- this.bookAll = false
382
- this.bookList = []
383
- this.showModal2 = false
384
- this.$refs.paged.$refs.criteria.search()
385
- },
386
- cancel3(){
387
- this.selectBook = ''
388
- this.bookAll = false
389
- this.bookList = []
390
- this.showModal3 = false
391
- this.$refs.paged.$refs.criteria.search()
392
- },
393
- addUser () {
394
- if (!this.isCreateBook) {
395
- this.$showMessage('请选择查询未划分片区的用户')
396
- return
397
- }
398
- if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
399
- this.showModal2 = true
400
- this.freshCheckBook()
401
- return
402
- }
403
- this.$showMessage('请选择用户')
404
- },
405
- upUser () {
406
- if (!this.isChangeBook) {
407
- this.$showMessage('请选择查询已划分片区的用户')
408
- return
409
- }
410
- if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
411
- this.showModal3 = true
412
- this.freshCheckBook()
413
- return
414
- }
415
- this.$showMessage('请选择用户')
416
- },
417
- async delUser () {
418
- if (!this.isChangeBook) {
419
- this.$showMessage('请选择查询已划分片区的用户')
420
- return
421
- }
422
- if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
423
- let userCondition= ''
424
- if (this.bookList.length < 1) {
425
- //tag
426
- userCondition = this.bookCondition
427
- } else {
428
- //tag)
429
-
430
- userCondition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
431
- userCondition = 'tui.f_userinfo_id in (' + userCondition + ')'
432
- //tag
433
- }
434
- let delUser= `update t_user_address set f_check_book_id =null
435
- FROM
436
- t_userinfo tui
437
- LEFT JOIN t_userfiles tuf ON tui.f_userinfo_id= tuf.f_userinfo_id
438
- LEFT JOIN t_user_address tua ON tuf.f_userinfo_id = tua.f_userinfo_id
439
- LEFT JOIN t_check_book tcb ON tua.f_check_book_id= tcb.id
440
- WHERE
441
- tui.f_user_state = '正常'
442
- AND ( tuf.f_table_state= '正常' OR tuf.f_table_state= '停用' )
443
- AND ${userCondition}`
444
- await new HttpResetClass().load('POST', 'rs/logic/runSQL', {data: {sql: delUser}},
445
- {resolveMsg: null, rejectMsg: '删除片区失败'})
446
- this.$showMessage('从片区删除所选用户成功')
447
- this.selectBook = ''
448
- this.bookAll = false
449
- this.bookList = []
450
- this.showModal3 = false
451
- this.$refs.paged.$refs.criteria.search()
452
- return
453
- }
454
- this.$showMessage('请选择用户')
455
- },
456
- beforeCreateBook () {
457
- if (!this.isCreateBook) {
458
- this.$showMessage('请选择查询未划分片区的用户')
459
- return
460
- }
461
- if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
462
- this.showModal = true
463
- return
464
- }
465
- this.$showMessage('请选择用户')
466
- },
467
- ok () {
468
- //tag)
469
- let condition = ''
470
- if (!this.checkBook.f_check_book_name) {
471
- return this.$showMessage('请填写册名')
472
- }
473
- if (!this.checkBook.f_checker_name) {
474
- return this.$showMessage('请选择安检员')
475
- }
476
- if (!this.checkBook.f_around_time || !this.checkBook.f_around_unit) {
477
- return this.$showMessage('请选填写周期信息')
478
- }
479
- if (!this.checkBook.f_run_date) {
480
- return this.$showMessage('执行日期')
481
- }
482
- if (this.bookList.length < 1) {
483
- //tag
484
- condition = this.bookCondition
485
- } else {
486
- //tag)
487
-
488
- condition = JSON.stringify(this.bookList).substring(JSON.stringify(this.bookList).indexOf('[') + 1, JSON.stringify(this.bookList).indexOf(']'))
489
- condition = 'tui.f_userinfo_id in (' + condition + ')'
490
- //tag
491
- }
492
- let data = {
493
- checkBook: this.checkBook,
494
- sqlStr: condition
495
- }
496
- new HttpResetClass().load('post', 'rs/logic/AddCheckBook', {data}).then(res => {
497
- //tag)
498
- if (res.data.id) {
499
- this.$showMessage('创建成功')
500
- this.showModal = false
501
- this.isSearch = false
502
- this.bookList = []
503
- this.bookAll = false
504
- this.freshCheckBook()
505
- this.$refs.paged.$refs.criteria.search()
506
- }
507
- })
508
- },
509
- changeState (val) {
510
- //tag
511
- //tag
512
- this.bookAll = false
513
- this.bookList = []
514
- if (this.$refs.paged.$refs.criteria.model.f_orgid){
515
- this.$refs.paged.$refs.criteria.search()
516
- }
517
- },
518
- cancel () {
519
- this.bookAll = false
520
- this.bookList = []
521
- this.showModal = false
522
- this.$refs.paged.$refs.criteria.search()
523
- },
524
- checkModel (row) {
525
- if (this.bookAll) {
526
- //tag)
527
- return true
528
- } else {
529
- // this.bookList = []
530
- if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
531
- return true
532
- } else {
533
- return false
534
- }
535
- }
536
- },
537
- checkChange (row, e) {
538
- //tag
539
- if (e.target.checked) {
540
- this.bookList.push(row.f_userinfo_id)
541
- } else {
542
- this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
543
- }
544
- // //tag)
545
- },
546
- getRes (obj) {
547
- this.checkBook.f_orgid = obj.resids[0]
548
- },
549
- getResm (obj) {
550
- this.$refs.paged.$refs.criteria.model.f_orgid = this.$login.convertToIn(obj.resids)
551
- },
552
- hidden () {
553
- this.criteriaShow = !this.criteriaShow
554
- },
555
- selfSearch (args) {
556
- this.isSearch = true
557
- this.bookAll = false
558
- this.bookList = []
559
-
560
- console.log("查询66666666666666666")
561
- this.$emit('book-condition',args.condition)
562
- // if (this.$refs.paged.$refs.criteria.model.f_orgid){
563
- // args.condition += `f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`
564
- // }
565
- this.model.search(args.condition, args.model)
566
- },
567
- freshCheckBook () {
568
- this.checkBooks = []
569
- new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
570
- data: {
571
- items: 'id,f_check_book_name,f_check_book_type',
572
- tablename: 't_check_book',
573
- condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`:'1=1',
574
- orderitem: 'id desc'
575
- }
576
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
577
- this.checkBooks.push({label: '全部', value: ''})
578
- res.data.forEach(ress => {
579
- console.log("片区类型",ress)
580
- if(ress.f_check_book_type ==='用户'){
581
- this.checkBooks.push({
582
- label: ress.f_check_book_name,
583
- value: ress.id
584
- })
585
- }
586
-
587
- })
588
- })
589
- }
590
- },
591
- beforeDestroy() {
592
- //tag
593
- bus.$off('fresh-user')
594
- },
595
- ready () {
596
- bus.$on('fresh-user',()=>{
597
- console.log("进入方法")
598
- this.bookAll = false
599
- this.bookList = []
600
- this.$refs.paged.$refs.criteria.search()
601
- })
602
- this.$refs.paged.$refs.criteria.model.f_is_checkbook = 'f_check_book_name is null'
603
- //tag
604
- // this.init=true
605
- this.freshCheckBook()
606
- }
607
- }
608
- </script>
609
- <style scoped>
610
- /*.btn-group > .btn:first-child {*/
611
- /* margin-left: 0;*/
612
- /* width: 100%;*/
613
- /*}*/
614
- </style>