apply-clients 3.3.72 → 3.3.74-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,320 +1,320 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">组织机构:</label>
9
- <res-select
10
- restype='organization'
11
- :initresid='$parent.$parent.curorgid'
12
- @res-select="$parent.$parent.getorg"
13
- is-mul="false"
14
- ></res-select>
15
- </div>
16
- <div class="form-group col-sm-3">
17
- <label class="font_normal_body">工程编号:</label>
18
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
19
- v-on:keyup.enter="$parent.$parent.search()"
20
- condition="f_apply_num = '{}'">
21
- </div>
22
- <div class="form-group col-sm-3">
23
- <label class="font_normal_body">客户名称:</label>
24
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
25
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
26
- </div>
27
- <div class="form-group col-sm-3 button-range">
28
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
30
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
31
- <div
32
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
33
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
34
- class="button_spacing"
35
- style="float: right">
36
- </div>
37
- </div>
38
- </div>
39
- <div class="row" v-show="$parent.$parent.criteriaShow">
40
- <div class="form-group col-sm-3">
41
- <label class="font_normal_body">联系电话:</label>
42
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
43
- v-on:keyup.enter="$parent.$parent.search()"
44
- condition="f_phone like '%{}%'">
45
- </div>
46
- <div class="form-group col-sm-3">
47
- <label class="font_normal_body">身份证号:</label>
48
- <input type="text" style="width:60%" class="input_search" placeholder='身份证号' v-model="model.f_idnumber"
49
- v-on:keyup.enter="$parent.$parent.search()"
50
- condition="f_idnumber like '%{}%'">
51
- </div>
52
- <div class="form-group col-sm-3">
53
- <label class="font_normal_body">合同编号:</label>
54
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
55
- v-on:keyup.enter="$parent.$parent.search()"
56
- condition="f_contract_number = '{}'">
57
- </div>
58
- <div class="form-group col-sm-3">
59
- <label class="font_normal_body">报建类型:</label>
60
- <v-select
61
- v-model="model.f_apply_type"
62
- placeholder='报建类型'
63
- condition="f_apply_type = '{}'"
64
- :value.sync="model.f_apply_type"
65
- :options='$parent.$parent.applytype'
66
- class="select select_list"
67
- :value-single="true"
68
- @change="$parent.$parent.applyTypeChange()"
69
- close-on-select ></v-select>
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label class="font_normal_body">办理环节:</label>
73
- <v-select
74
- v-model="model.defname"
75
- placeholder='办理环节'
76
- condition="defname = '{}'"
77
- :value.sync="model.defname"
78
- :options='$parent.$parent.defnames'
79
- class="select select_list"
80
- :value-single="true"
81
- close-on-select ></v-select>
82
- </div>
83
- <div class="form-group col-sm-3">
84
- <label class="font_normal_body">报建性质:</label>
85
- <v-select
86
- v-model="model.f_apply_nature"
87
- placeholder='报建性质'
88
- condition="f_apply_nature = '{}'"
89
- :value.sync="model.f_apply_nature"
90
- :options='$parent.$parent.applyNatures'
91
- class="select select_list"
92
- :value-single="true"
93
- close-on-select ></v-select>
94
- </div>
95
- <div class="form-group col-sm-3">
96
- <label class="font_normal_body">用户地址:</label>
97
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
98
- v-on:keyup.enter="$parent.$parent.search()"
99
- condition="f_address like '%{}%'">
100
- </div>
101
- <div class="form-group col-sm-3">
102
- <label for="startDate" class="font_normal_body">开始时间:</label>
103
- <datepicker id="startDate" placeholder="开始日期"
104
- style="width: 60%!important;"
105
- v-model="model.startDate"
106
- :value.sync="model.startDate"
107
- :format="'yyyy-MM-dd 00:00:00'"
108
- :show-reset-button="true"
109
- condition="f_apply_date >= '{}'">
110
- </datepicker>
111
- </div>
112
- <div class="form-group col-sm-3">
113
- <label for="endDate" class="font_normal_body">结束时间:</label>
114
- <datepicker id="endDate" placeholder="结束日期"
115
- style="width: 60%!important;"
116
- v-model="model.endDate"
117
- :value.sync="model.endDate"
118
- :format="'yyyy-MM-dd 23:59:59'"
119
- :show-reset-button="true"
120
- condition="f_apply_date <= '{}'">
121
- </datepicker>
122
- </div>
123
- </div>
124
- </div>
125
- </criteria>
126
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
127
- <template partial='head'>
128
- <tr class="title">
129
- <th style="white-space: nowrap;">序号</th>
130
- <th style="white-space: nowrap;">工程编号</th>
131
- <th style="white-space: nowrap;">客户名称</th>
132
- <th style="white-space: nowrap;">合同编号</th>
133
- <th style="white-space: nowrap;">电话</th>
134
- <th style="white-space: nowrap;">地址</th>
135
- <th style="white-space: nowrap;">身份证号</th>
136
- <th style="white-space: nowrap;">报建类型</th>
137
- <th style="white-space: nowrap;">办理环节</th>
138
- <th style="white-space: nowrap;">流程状态</th>
139
- <th style="white-space: nowrap;">报建日期</th>
140
- <th style="white-space: nowrap;">操作</th>
141
- </tr>
142
- </template>
143
- <template partial='body'>
144
- <tr>
145
- <td style="text-align: center;">
146
- <nobr>{{$index+1}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_apply_num}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_user_name}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_contract_number}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_phone}}</nobr>
159
- </td>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_address}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_idnumber}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_apply_type}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.defname}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_sub_state}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.f_apply_date}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <dropdown>
180
- <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
181
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
182
- </button>
183
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
184
- <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
185
- <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
186
- </li>
187
- </ul>
188
- </dropdown>
189
- </td>
190
- </tr>
191
- </template>
192
- </data-grid>
193
- </criteria-paged>
194
- </div>
195
- </template>
196
- <script>
197
- import {PagedList} from 'vue-client'
198
- import {isEmpty} from '../../Util'
199
- export default {
200
- title: '报建业务信息',
201
- props: ['showData'],
202
- data () {
203
- return {
204
- model: new PagedList('rs/sql/checkuserfunction', 20, {
205
- data: {
206
- orgid: this.$login.f.orgid
207
- }
208
- }),
209
- funcs: [], // 功能列表
210
- curorgid: [this.$login.f.orgid],
211
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
212
- defnames: [{label: '全部', value: ''}], // 流程节点
213
- applyNatures: [{label: '全部', value: ''}], // 报建性质
214
- criteriaShow: false
215
- }
216
- },
217
- ready () {
218
- // 调用查询
219
- this.search()
220
- },
221
- methods: {
222
- // 查询
223
- search () {
224
- this.$dispatch('search')
225
- },
226
- loadPage () {
227
- this.$dispatch('loadPage')
228
- },
229
- // 获取配置
230
- async checkfuncs (row) {
231
-
232
- this.funcs = []
233
- let functions = JSON.parse(JSON.stringify(this.$function_vue.functions))
234
-
235
- for (const item of functions) {
236
- // 显示类型
237
- if (item.showApplyTypes) {
238
- if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
239
- continue
240
- }
241
- }
242
- // 显示节点
243
- if (item.showDefnames) {
244
- if (item.showDefnames.indexOf(row.defname) === -1) {
245
- continue
246
- }
247
- }
248
- // 显示设备
249
- if (item.device && item.device !== 'pc') {
250
- continue
251
- }
252
- // if (item.device || item.device !== 'pc') {
253
- // continue
254
- // }
255
- this.funcs.push(item)
256
- }
257
- },
258
- // 点击功能操作
259
- func (func, row) {
260
- this.$dispatch('func', func, row)
261
- },
262
- // 权限控制
263
- showFunc (personexpression) {
264
-
265
- if (isEmpty(personexpression)) {
266
- return true
267
- }
268
-
269
- let mark = personexpression.charAt(0)
270
-
271
- let str = personexpression.substring(2, personexpression.length-1)
272
-
273
- if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
274
- return true
275
- }
276
- if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
277
- return true
278
- }
279
- if (mark === 'P' && this.$login.f.id.includes(str)) {
280
- return true
281
- }
282
-
283
- return false
284
- },
285
- async applyTypeChange () {
286
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
287
- let res = await this.$resetpost('rs/logic/getDefnameByType',
288
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
289
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
290
- )
291
-
292
- this.defnames = [{label: '全部', value: ''}, ...res.data]
293
-
294
- this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
295
- } else {
296
- this.defnames = [{label: '全部', value: ''}]
297
-
298
- this.applyNatures = [{label: '全部', value: ''}]
299
- }
300
- },
301
- clear () {
302
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
303
- this.$refs.cp.$refs.cri.model[key] = null
304
- })
305
- },
306
- getorg (val) {
307
- if (val.length <= 0) {
308
- return
309
- }
310
- this.model.params.data.orgid = val[0]
311
- }
312
- },
313
- computed: {
314
- },
315
- events: {
316
- }
317
- }
318
- </script>
319
- <style scoped>
320
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">组织机构:</label>
9
+ <res-select
10
+ restype='organization'
11
+ :initresid='$parent.$parent.curorgid'
12
+ @res-select="$parent.$parent.getorg"
13
+ is-mul="false"
14
+ ></res-select>
15
+ </div>
16
+ <div class="form-group col-sm-3">
17
+ <label class="font_normal_body">工程编号:</label>
18
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
19
+ v-on:keyup.enter="$parent.$parent.search()"
20
+ condition="f_apply_num = '{}'">
21
+ </div>
22
+ <div class="form-group col-sm-3">
23
+ <label class="font_normal_body">客户名称:</label>
24
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
25
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
26
+ </div>
27
+ <div class="form-group col-sm-3 button-range">
28
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
30
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
31
+ <div
32
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
33
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
34
+ class="button_spacing"
35
+ style="float: right">
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div class="row" v-show="$parent.$parent.criteriaShow">
40
+ <div class="form-group col-sm-3">
41
+ <label class="font_normal_body">联系电话:</label>
42
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
43
+ v-on:keyup.enter="$parent.$parent.search()"
44
+ condition="f_phone like '%{}%'">
45
+ </div>
46
+ <div class="form-group col-sm-3">
47
+ <label class="font_normal_body">身份证号:</label>
48
+ <input type="text" style="width:60%" class="input_search" placeholder='身份证号' v-model="model.f_idnumber"
49
+ v-on:keyup.enter="$parent.$parent.search()"
50
+ condition="f_idnumber like '%{}%'">
51
+ </div>
52
+ <div class="form-group col-sm-3">
53
+ <label class="font_normal_body">合同编号:</label>
54
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
55
+ v-on:keyup.enter="$parent.$parent.search()"
56
+ condition="f_contract_number = '{}'">
57
+ </div>
58
+ <div class="form-group col-sm-3">
59
+ <label class="font_normal_body">报建类型:</label>
60
+ <v-select
61
+ v-model="model.f_apply_type"
62
+ placeholder='报建类型'
63
+ condition="f_apply_type = '{}'"
64
+ :value.sync="model.f_apply_type"
65
+ :options='$parent.$parent.applytype'
66
+ class="select select_list"
67
+ :value-single="true"
68
+ @change="$parent.$parent.applyTypeChange()"
69
+ close-on-select ></v-select>
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label class="font_normal_body">办理环节:</label>
73
+ <v-select
74
+ v-model="model.defname"
75
+ placeholder='办理环节'
76
+ condition="defname = '{}'"
77
+ :value.sync="model.defname"
78
+ :options='$parent.$parent.defnames'
79
+ class="select select_list"
80
+ :value-single="true"
81
+ close-on-select ></v-select>
82
+ </div>
83
+ <div class="form-group col-sm-3">
84
+ <label class="font_normal_body">报建性质:</label>
85
+ <v-select
86
+ v-model="model.f_apply_nature"
87
+ placeholder='报建性质'
88
+ condition="f_apply_nature = '{}'"
89
+ :value.sync="model.f_apply_nature"
90
+ :options='$parent.$parent.applyNatures'
91
+ class="select select_list"
92
+ :value-single="true"
93
+ close-on-select ></v-select>
94
+ </div>
95
+ <div class="form-group col-sm-3">
96
+ <label class="font_normal_body">用户地址:</label>
97
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
98
+ v-on:keyup.enter="$parent.$parent.search()"
99
+ condition="f_address like '%{}%'">
100
+ </div>
101
+ <div class="form-group col-sm-3">
102
+ <label for="startDate" class="font_normal_body">开始时间:</label>
103
+ <datepicker id="startDate" placeholder="开始日期"
104
+ style="width: 60%!important;"
105
+ v-model="model.startDate"
106
+ :value.sync="model.startDate"
107
+ :format="'yyyy-MM-dd 00:00:00'"
108
+ :show-reset-button="true"
109
+ condition="f_apply_date >= '{}'">
110
+ </datepicker>
111
+ </div>
112
+ <div class="form-group col-sm-3">
113
+ <label for="endDate" class="font_normal_body">结束时间:</label>
114
+ <datepicker id="endDate" placeholder="结束日期"
115
+ style="width: 60%!important;"
116
+ v-model="model.endDate"
117
+ :value.sync="model.endDate"
118
+ :format="'yyyy-MM-dd 23:59:59'"
119
+ :show-reset-button="true"
120
+ condition="f_apply_date <= '{}'">
121
+ </datepicker>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </criteria>
126
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
127
+ <template partial='head'>
128
+ <tr class="title">
129
+ <th style="white-space: nowrap;">序号</th>
130
+ <th style="white-space: nowrap;">工程编号</th>
131
+ <th style="white-space: nowrap;">客户名称</th>
132
+ <th style="white-space: nowrap;">合同编号</th>
133
+ <th style="white-space: nowrap;">电话</th>
134
+ <th style="white-space: nowrap;">地址</th>
135
+ <th style="white-space: nowrap;">身份证号</th>
136
+ <th style="white-space: nowrap;">报建类型</th>
137
+ <th style="white-space: nowrap;">办理环节</th>
138
+ <th style="white-space: nowrap;">流程状态</th>
139
+ <th style="white-space: nowrap;">报建日期</th>
140
+ <th style="white-space: nowrap;">操作</th>
141
+ </tr>
142
+ </template>
143
+ <template partial='body'>
144
+ <tr>
145
+ <td style="text-align: center;">
146
+ <nobr>{{$index+1}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_apply_num}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.f_user_name}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_contract_number}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_phone}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_address}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_idnumber}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_apply_type}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.defname}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_sub_state}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_apply_date}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <dropdown>
180
+ <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
181
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
182
+ </button>
183
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
184
+ <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
185
+ <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
186
+ </li>
187
+ </ul>
188
+ </dropdown>
189
+ </td>
190
+ </tr>
191
+ </template>
192
+ </data-grid>
193
+ </criteria-paged>
194
+ </div>
195
+ </template>
196
+ <script>
197
+ import {PagedList} from 'vue-client'
198
+ import {isEmpty} from '../../Util'
199
+ export default {
200
+ title: '报建业务信息',
201
+ props: ['showData'],
202
+ data () {
203
+ return {
204
+ model: new PagedList('rs/sql/checkuserfunction', 20, {
205
+ data: {
206
+ orgid: this.$login.f.orgid
207
+ }
208
+ }),
209
+ funcs: [], // 功能列表
210
+ curorgid: [this.$login.f.orgid],
211
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
212
+ defnames: [{label: '全部', value: ''}], // 流程节点
213
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
214
+ criteriaShow: false
215
+ }
216
+ },
217
+ ready () {
218
+ // 调用查询
219
+ this.search()
220
+ },
221
+ methods: {
222
+ // 查询
223
+ search () {
224
+ this.$dispatch('search')
225
+ },
226
+ loadPage () {
227
+ this.$dispatch('loadPage')
228
+ },
229
+ // 获取配置
230
+ async checkfuncs (row) {
231
+
232
+ this.funcs = []
233
+ let functions = JSON.parse(JSON.stringify(this.$function_vue.functions))
234
+
235
+ for (const item of functions) {
236
+ // 显示类型
237
+ if (item.showApplyTypes) {
238
+ if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
239
+ continue
240
+ }
241
+ }
242
+ // 显示节点
243
+ if (item.showDefnames) {
244
+ if (item.showDefnames.indexOf(row.defname) === -1) {
245
+ continue
246
+ }
247
+ }
248
+ // 显示设备
249
+ if (item.device && item.device !== 'pc') {
250
+ continue
251
+ }
252
+ // if (item.device || item.device !== 'pc') {
253
+ // continue
254
+ // }
255
+ this.funcs.push(item)
256
+ }
257
+ },
258
+ // 点击功能操作
259
+ func (func, row) {
260
+ this.$dispatch('func', func, row)
261
+ },
262
+ // 权限控制
263
+ showFunc (personexpression) {
264
+
265
+ if (isEmpty(personexpression)) {
266
+ return true
267
+ }
268
+
269
+ let mark = personexpression.charAt(0)
270
+
271
+ let str = personexpression.substring(2, personexpression.length-1)
272
+
273
+ if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
274
+ return true
275
+ }
276
+ if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
277
+ return true
278
+ }
279
+ if (mark === 'P' && this.$login.f.id.includes(str)) {
280
+ return true
281
+ }
282
+
283
+ return false
284
+ },
285
+ async applyTypeChange () {
286
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
287
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
288
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
289
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
290
+ )
291
+
292
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
293
+
294
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
295
+ } else {
296
+ this.defnames = [{label: '全部', value: ''}]
297
+
298
+ this.applyNatures = [{label: '全部', value: ''}]
299
+ }
300
+ },
301
+ clear () {
302
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
303
+ this.$refs.cp.$refs.cri.model[key] = null
304
+ })
305
+ },
306
+ getorg (val) {
307
+ if (val.length <= 0) {
308
+ return
309
+ }
310
+ this.model.params.data.orgid = val[0]
311
+ }
312
+ },
313
+ computed: {
314
+ },
315
+ events: {
316
+ }
317
+ }
318
+ </script>
319
+ <style scoped>
320
+ </style>