doway-coms 2.1.3 → 2.1.5

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.
Files changed (73) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +53 -53
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +262 -262
  6. package/packages/BaseButton/index.js +7 -7
  7. package/packages/BaseButton/src/index.vue +241 -241
  8. package/packages/BaseCheckbox/index.js +7 -7
  9. package/packages/BaseCheckbox/src/index.vue +134 -134
  10. package/packages/BaseDate/index.js +7 -7
  11. package/packages/BaseDate/src/index.vue +197 -197
  12. package/packages/BaseDateWeek/index.js +7 -7
  13. package/packages/BaseDateWeek/src/index.vue +163 -163
  14. package/packages/BaseDatetime/index.js +7 -7
  15. package/packages/BaseDatetime/src/index.vue +196 -196
  16. package/packages/BaseForm/index.js +7 -7
  17. package/packages/BaseForm/src/index.vue +727 -727
  18. package/packages/BaseGantt/index.js +9 -9
  19. package/packages/BaseGantt/src/index.vue +608 -608
  20. package/packages/BaseGrid/index.js +9 -9
  21. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  22. package/packages/BaseGrid/src/index.vue +3382 -3382
  23. package/packages/BaseGridAdjust/index.js +9 -9
  24. package/packages/BaseGridAdjust/src/index.vue +482 -482
  25. package/packages/BaseInput/index.js +7 -7
  26. package/packages/BaseInput/src/index.vue +164 -164
  27. package/packages/BaseIntervalInput/index.js +7 -7
  28. package/packages/BaseIntervalInput/src/index.vue +310 -310
  29. package/packages/BaseKanbanEmpty/index.js +7 -7
  30. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  31. package/packages/BaseNumberInput/index.js +7 -7
  32. package/packages/BaseNumberInput/src/index.vue +267 -267
  33. package/packages/BasePagination/index.js +7 -7
  34. package/packages/BasePagination/src/index.vue +91 -91
  35. package/packages/BasePictureCard/index.js +7 -7
  36. package/packages/BasePictureCard/src/index.vue +580 -580
  37. package/packages/BasePrintPreview/index.js +7 -7
  38. package/packages/BasePrintPreview/src/index.vue +129 -129
  39. package/packages/BasePulldown/index.js +7 -7
  40. package/packages/BasePulldown/src/index.vue +1165 -1165
  41. package/packages/BaseSearch/index.js +7 -7
  42. package/packages/BaseSearch/src/index.vue +935 -935
  43. package/packages/BaseSelect/index.js +7 -7
  44. package/packages/BaseSelect/src/index.vue +155 -155
  45. package/packages/BaseSelectMulti/index.js +7 -7
  46. package/packages/BaseSelectMulti/src/index.vue +148 -148
  47. package/packages/BaseTextArea/index.js +7 -7
  48. package/packages/BaseTextArea/src/index.vue +178 -178
  49. package/packages/BaseTime/index.js +7 -7
  50. package/packages/BaseTime/src/index.vue +166 -166
  51. package/packages/BaseTool/index.js +7 -7
  52. package/packages/BaseTool/src/index.vue +349 -349
  53. package/packages/BaseToolStatus/index.js +7 -7
  54. package/packages/BaseToolStatus/src/index.vue +388 -388
  55. package/packages/BaseTreeSelect/index.js +8 -8
  56. package/packages/BaseTreeSelect/src/index.vue +416 -416
  57. package/packages/LeaveAMessage/index.js +7 -7
  58. package/packages/LeaveAMessage/src/index.vue +597 -597
  59. package/packages/index.js +191 -191
  60. package/packages/styles/default.css +78 -0
  61. package/packages/styles/default.less +84 -80
  62. package/packages/utils/api.js +99 -99
  63. package/packages/utils/auth.js +38 -38
  64. package/packages/utils/common.js +610 -601
  65. package/packages/utils/dom.js +181 -181
  66. package/packages/utils/enum.js +85 -85
  67. package/packages/utils/filters.js +458 -458
  68. package/packages/utils/gridFormat.js +60 -60
  69. package/packages/utils/msg.js +84 -84
  70. package/packages/utils/patchFiles.js +44 -44
  71. package/packages/utils/request.js +178 -178
  72. package/packages/utils/store.js +303 -303
  73. package/vue.config.js +59 -59
@@ -1,416 +1,416 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div
4
- class="d-control-label"
5
- v-if="showLabel === true"
6
- :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
7
- >
8
- {{ label }}
9
- <span v-if="rules && rules['required']" class="d-control-label-required"
10
- >*</span
11
- >
12
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
13
- <img src="../../styles/icon/help.png" alt="" style="width: 14px" />
14
- </Tooltip>
15
- </div>
16
- <div class="d-control">
17
- <ValidationProvider
18
- v-if="edit === true"
19
- :name="label"
20
- v-slot="v"
21
- :rules="rules"
22
- >
23
- <TreeSelect
24
- ref="treeSelectView"
25
- v-model="currentValue"
26
- :treeData="treeData"
27
- :showSearch="showSearch"
28
- :replaceFields="replaceFields"
29
- :dropdownMatchSelectWidth="dropdownMatchSelectWidth"
30
- :treeDefaultExpandAll="treeDefaultExpandAll"
31
- :treeDefaultExpandedKeys="treeDefaultExpandedKeys"
32
- @change="changeData"
33
- size="small"
34
- :allowClear="allowClear"
35
- @focus="searchData"
36
- @select="selectData"
37
- :dropdownStyle="{
38
- width: treeWidth + 'px',
39
- height: '300px',
40
- ...widthDropdownStyle,
41
- }"
42
- treeNodeFilterProp="title"
43
- :style="{
44
- width: '100%',
45
- }"
46
- :placeholder="placeholder"
47
- ></TreeSelect>
48
- <div class="d-error-msg">
49
- {{ v.errors[0] }}
50
- </div>
51
- </ValidationProvider>
52
-
53
- <span v-else>
54
- <a v-if="route" @click="routeLinkClick">{{ value }}</a>
55
- <span v-else> {{ value }}</span>
56
- </span>
57
- </div>
58
- </div>
59
- </template>
60
-
61
- <script>
62
- import { Tooltip, TreeSelect } from 'ant-design-vue'
63
- import request from '../../utils/request'
64
- import XEUtils from 'xe-utils'
65
- import { ValidationProvider } from 'vee-validate'
66
- export default {
67
- name: 'BaseTreeSelect',
68
- components: {
69
- Tooltip,
70
- TreeSelect,
71
- ValidationProvider,
72
- },
73
- props: {
74
- label: {
75
- type: String,
76
- },
77
- showLabel: {
78
- type: Boolean,
79
- default: function () {
80
- return true
81
- },
82
- },
83
- labelWidth: {
84
- type: Number,
85
- default: function () {
86
- return 100
87
- },
88
- },
89
- api: {
90
- type: String,
91
- required: true,
92
- },
93
- exps: {
94
- // 条件
95
- type: Array,
96
- default: () => {
97
- return []
98
- },
99
- },
100
- value: {
101
- type: String,
102
- default: function () {
103
- return ''
104
- },
105
- },
106
- tooltip: {
107
- type: String,
108
- default: function () {
109
- return ''
110
- },
111
- },
112
- customTitle: {
113
- type: Array,
114
- default: function () {
115
- return []
116
- },
117
- },
118
- // 输入框宽度
119
- width: {
120
- type: Number,
121
- default: function () {
122
- return 100
123
- },
124
- },
125
- // 树宽度
126
- treeWidth: {
127
- type: Number,
128
- default: function () {
129
- return 200
130
- },
131
- },
132
- // 输入框和选择器同宽
133
- dropdownMatchSelectWidth: {
134
- type: Boolean,
135
- default: function () {
136
- return false
137
- },
138
- },
139
- // 替换展示字段
140
- replaceFields: {
141
- type: Object,
142
- default: function () {
143
- return {
144
- children: 'children',
145
- title: 'title',
146
- key: 'key',
147
- value: 'value',
148
- }
149
- },
150
- },
151
- // 是否默认展开所有树节点
152
- treeDefaultExpandAll: {
153
- type: Boolean,
154
- default: function () {
155
- return false
156
- },
157
- },
158
- size: {
159
- type: String,
160
- default: function () {
161
- return 'small'
162
- },
163
- },
164
- // 下拉中显示搜索框
165
- showSearch: {
166
- type: Boolean,
167
- default: function () {
168
- return true
169
- },
170
- },
171
- // 下拉菜单的样式
172
- widthDropdownStyle: {
173
- type: Object,
174
- default: function () {
175
- return {}
176
- },
177
- },
178
- // 清除按钮
179
- allowClear: {
180
- type: Boolean,
181
- default: function () {
182
- return true
183
- },
184
- },
185
- placeholder: {
186
- type: String,
187
- default: function () {
188
- return ''
189
- },
190
- },
191
- rules: {
192
- type: Object,
193
- default: function () {
194
- return null
195
- },
196
- },
197
- formRow: {
198
- type: Object,
199
- default: function () {
200
- return {}
201
- },
202
- },
203
- row: {
204
- type: Object,
205
- default: function () {
206
- return {}
207
- },
208
- },
209
- edit: {
210
- type: Boolean,
211
- default: function () {
212
- return false
213
- },
214
- },
215
- field: {
216
- type: String,
217
- },
218
- columns: {
219
- // 列集合
220
- type: Array,
221
- default: () => {
222
- return []
223
- },
224
- },
225
- propTableData: {
226
- type: Array,
227
- default: function () {
228
- return []
229
- },
230
- },
231
- linkedField: {
232
- type: String,
233
- required: true,
234
- },
235
- linkedTitle: {
236
- type: [],
237
- default: function () {
238
- return []
239
- },
240
- },
241
- method: {
242
- type: String,
243
- default: function () {
244
- return 'post'
245
- },
246
- },
247
- route: Object,
248
- },
249
- data() {
250
- return {
251
- treeData: [],
252
- currentValue: '',
253
- treeDefaultExpandedKeys: [],
254
- }
255
- },
256
- mounted() {
257
- this.searchData()
258
- if (this.treeData.length) {
259
- this.currentValue = this.row[this.linkedField]
260
- } else {
261
- this.currentValue = this.value
262
- }
263
- },
264
- watch: {
265
- treeData(val) {
266
- if (this.treeData.length) {
267
- this.currentValue = this.row[this.linkedField]
268
- this.treeDefaultExpandedKeys = []
269
- this.treeDefaultExpandedKeys.push(this.currentValue)
270
- } else {
271
- this.currentValue = this.value
272
- }
273
- },
274
- edit(value) {
275
- // debugger
276
- if (value) {
277
- if (this.treeData.length) {
278
- this.currentValue = this.row[this.linkedField]
279
- } else {
280
- this.currentValue = this.value
281
- }
282
- }
283
- },
284
- },
285
- computed: {},
286
- methods: {
287
- /**
288
- * 查询数据
289
- */
290
- searchData() {
291
- let tempExp = {
292
- operator: 'or',
293
- expressions: [],
294
- }
295
-
296
- let postExpression = {
297
- field: this.field,
298
- expression: tempExp,
299
- extendParams: {},
300
- }
301
- let repeatRowInfo = {
302
- field: '',
303
- values: [],
304
- }
305
- //查询之前从外部组件构造其他的条件
306
- this.$emit('preSearch', postExpression, repeatRowInfo, this.row)
307
- let postData = {
308
- begin: 1,
309
- size: 0,
310
- expression: postExpression.expression,
311
- sorts: [],
312
- extendParams: postExpression.extendParams,
313
- }
314
- let tempApi = this.getPostApi(postData)
315
- let vm = this
316
- vm.gridLoading = true
317
- request({
318
- url: tempApi,
319
- method: this.method,
320
- data: postData,
321
- })
322
- .then((responseData) => {
323
- vm.treeData = responseData.content
324
- if (this.linkedTitle.length) {
325
- XEUtils.eachTree(vm.treeData, (item) => {
326
- let title = ''
327
- XEUtils.arrayEach(this.linkedTitle, (newTitle) => {
328
- title = title + item[newTitle] + '-'
329
- })
330
- item[this.replaceFields.title] = title.slice(0, -1)
331
- })
332
- }
333
- })
334
- .catch((error) => {
335
- console.error(error)
336
- })
337
- .finally(() => {
338
- vm.gridLoading = false
339
- })
340
- },
341
- getPostApi(postData) {
342
- let tempApi = this.api
343
- if (this.api.indexOf('?') > 0) {
344
- tempApi = this.api.substring(0, this.api.indexOf('?'))
345
- let tempExtenParams = this.api.substring(this.api.indexOf('?') + 1)
346
- tempExtenParams = replaceParam(tempExtenParams, this.formRow)
347
- let tempSplitParams = tempExtenParams.split('&')
348
- for (let i = 0; i < tempSplitParams.length; i++) {
349
- let tempSplitValue = tempSplitParams[i].split('=')
350
- this.$set(postData.extendParams, tempSplitValue[0], tempSplitValue[1])
351
- }
352
- }
353
- return tempApi
354
- },
355
- routeLinkClick() {
356
- //首先需要判断是否有权限
357
- this.$router.pushRoute({
358
- name: this.route.name,
359
- query: { id: this.row[this.route.field] },
360
- })
361
- },
362
- selectData(value, node) {
363
- // this.row[this.linkedField] = value
364
- // this.row[this.field] = node.title
365
- this.$set(this.row, this.linkedField, value)
366
- this.$set(this.row, this.field, node.title)
367
- this.$emit('selectChanged', this.row)
368
- },
369
- changeData(value) {
370
- if (!value) {
371
- this.$set(this.row, this.linkedField, '')
372
- this.$set(this.row, this.field, '')
373
- this.$emit('selectChanged', this.row)
374
- }
375
- },
376
- },
377
- }
378
- </script>
379
-
380
- <style lang="scss" scoped>
381
- // ::v-deep .ant-select-tree-dropdown::-webkit-scrollbar {
382
- // width: 5px;
383
- // }
384
- // ::v-deep .ant-select-tree-dropdown::-webkit-scrollbar-thumb {
385
- // /*滚动条里面小方块*/
386
- // border-radius: 10px;
387
- // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
388
- // background: #e5e5e5;
389
- // }
390
- // ::v-deep .ant-select-tree-dropdown::-webkit-scrollbar-track {
391
- // /*滚动条里面轨道*/
392
- // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
393
- // border-radius: 10px;
394
- // background: #ffffff;
395
- // }
396
- .pulldown-grid {
397
- min-width: 600px;
398
- width: auto;
399
- height: 350px;
400
- background-color: #fff;
401
- box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
402
- }
403
-
404
- .d-grid-control {
405
- height: 30px;
406
- }
407
- .interceptor-class {
408
- padding: 10px;
409
- ::v-deep .ant-btn {
410
- margin: 10px 10px 0;
411
- }
412
- }
413
- </style>
414
- <style lang="less">
415
- @import '../../styles/default.less';
416
- </style>
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div
4
+ class="d-control-label"
5
+ v-if="showLabel === true"
6
+ :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
7
+ >
8
+ {{ label }}
9
+ <span v-if="rules && rules['required']" class="d-control-label-required"
10
+ >*</span
11
+ >
12
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
13
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px" />
14
+ </Tooltip>
15
+ </div>
16
+ <div class="d-control">
17
+ <ValidationProvider
18
+ v-if="edit === true"
19
+ :name="label"
20
+ v-slot="v"
21
+ :rules="rules"
22
+ >
23
+ <TreeSelect
24
+ ref="treeSelectView"
25
+ v-model="currentValue"
26
+ :treeData="treeData"
27
+ :showSearch="showSearch"
28
+ :replaceFields="replaceFields"
29
+ :dropdownMatchSelectWidth="dropdownMatchSelectWidth"
30
+ :treeDefaultExpandAll="treeDefaultExpandAll"
31
+ :treeDefaultExpandedKeys="treeDefaultExpandedKeys"
32
+ @change="changeData"
33
+ size="small"
34
+ :allowClear="allowClear"
35
+ @focus="searchData"
36
+ @select="selectData"
37
+ :dropdownStyle="{
38
+ width: treeWidth + 'px',
39
+ height: '300px',
40
+ ...widthDropdownStyle,
41
+ }"
42
+ treeNodeFilterProp="title"
43
+ :style="{
44
+ width: '100%',
45
+ }"
46
+ :placeholder="placeholder"
47
+ ></TreeSelect>
48
+ <div class="d-error-msg">
49
+ {{ v.errors[0] }}
50
+ </div>
51
+ </ValidationProvider>
52
+
53
+ <span v-else>
54
+ <a v-if="route" @click="routeLinkClick">{{ value }}</a>
55
+ <span v-else> {{ value }}</span>
56
+ </span>
57
+ </div>
58
+ </div>
59
+ </template>
60
+
61
+ <script>
62
+ import { Tooltip, TreeSelect } from 'ant-design-vue'
63
+ import request from '../../utils/request'
64
+ import XEUtils from 'xe-utils'
65
+ import { ValidationProvider } from 'vee-validate'
66
+ export default {
67
+ name: 'BaseTreeSelect',
68
+ components: {
69
+ Tooltip,
70
+ TreeSelect,
71
+ ValidationProvider,
72
+ },
73
+ props: {
74
+ label: {
75
+ type: String,
76
+ },
77
+ showLabel: {
78
+ type: Boolean,
79
+ default: function () {
80
+ return true
81
+ },
82
+ },
83
+ labelWidth: {
84
+ type: Number,
85
+ default: function () {
86
+ return 100
87
+ },
88
+ },
89
+ api: {
90
+ type: String,
91
+ required: true,
92
+ },
93
+ exps: {
94
+ // 条件
95
+ type: Array,
96
+ default: () => {
97
+ return []
98
+ },
99
+ },
100
+ value: {
101
+ type: String,
102
+ default: function () {
103
+ return ''
104
+ },
105
+ },
106
+ tooltip: {
107
+ type: String,
108
+ default: function () {
109
+ return ''
110
+ },
111
+ },
112
+ customTitle: {
113
+ type: Array,
114
+ default: function () {
115
+ return []
116
+ },
117
+ },
118
+ // 输入框宽度
119
+ width: {
120
+ type: Number,
121
+ default: function () {
122
+ return 100
123
+ },
124
+ },
125
+ // 树宽度
126
+ treeWidth: {
127
+ type: Number,
128
+ default: function () {
129
+ return 200
130
+ },
131
+ },
132
+ // 输入框和选择器同宽
133
+ dropdownMatchSelectWidth: {
134
+ type: Boolean,
135
+ default: function () {
136
+ return false
137
+ },
138
+ },
139
+ // 替换展示字段
140
+ replaceFields: {
141
+ type: Object,
142
+ default: function () {
143
+ return {
144
+ children: 'children',
145
+ title: 'title',
146
+ key: 'key',
147
+ value: 'value',
148
+ }
149
+ },
150
+ },
151
+ // 是否默认展开所有树节点
152
+ treeDefaultExpandAll: {
153
+ type: Boolean,
154
+ default: function () {
155
+ return false
156
+ },
157
+ },
158
+ size: {
159
+ type: String,
160
+ default: function () {
161
+ return 'small'
162
+ },
163
+ },
164
+ // 下拉中显示搜索框
165
+ showSearch: {
166
+ type: Boolean,
167
+ default: function () {
168
+ return true
169
+ },
170
+ },
171
+ // 下拉菜单的样式
172
+ widthDropdownStyle: {
173
+ type: Object,
174
+ default: function () {
175
+ return {}
176
+ },
177
+ },
178
+ // 清除按钮
179
+ allowClear: {
180
+ type: Boolean,
181
+ default: function () {
182
+ return true
183
+ },
184
+ },
185
+ placeholder: {
186
+ type: String,
187
+ default: function () {
188
+ return ''
189
+ },
190
+ },
191
+ rules: {
192
+ type: Object,
193
+ default: function () {
194
+ return null
195
+ },
196
+ },
197
+ formRow: {
198
+ type: Object,
199
+ default: function () {
200
+ return {}
201
+ },
202
+ },
203
+ row: {
204
+ type: Object,
205
+ default: function () {
206
+ return {}
207
+ },
208
+ },
209
+ edit: {
210
+ type: Boolean,
211
+ default: function () {
212
+ return false
213
+ },
214
+ },
215
+ field: {
216
+ type: String,
217
+ },
218
+ columns: {
219
+ // 列集合
220
+ type: Array,
221
+ default: () => {
222
+ return []
223
+ },
224
+ },
225
+ propTableData: {
226
+ type: Array,
227
+ default: function () {
228
+ return []
229
+ },
230
+ },
231
+ linkedField: {
232
+ type: String,
233
+ required: true,
234
+ },
235
+ linkedTitle: {
236
+ type: [],
237
+ default: function () {
238
+ return []
239
+ },
240
+ },
241
+ method: {
242
+ type: String,
243
+ default: function () {
244
+ return 'post'
245
+ },
246
+ },
247
+ route: Object,
248
+ },
249
+ data() {
250
+ return {
251
+ treeData: [],
252
+ currentValue: '',
253
+ treeDefaultExpandedKeys: [],
254
+ }
255
+ },
256
+ mounted() {
257
+ this.searchData()
258
+ if (this.treeData.length) {
259
+ this.currentValue = this.row[this.linkedField]
260
+ } else {
261
+ this.currentValue = this.value
262
+ }
263
+ },
264
+ watch: {
265
+ treeData(val) {
266
+ if (this.treeData.length) {
267
+ this.currentValue = this.row[this.linkedField]
268
+ this.treeDefaultExpandedKeys = []
269
+ this.treeDefaultExpandedKeys.push(this.currentValue)
270
+ } else {
271
+ this.currentValue = this.value
272
+ }
273
+ },
274
+ edit(value) {
275
+ // debugger
276
+ if (value) {
277
+ if (this.treeData.length) {
278
+ this.currentValue = this.row[this.linkedField]
279
+ } else {
280
+ this.currentValue = this.value
281
+ }
282
+ }
283
+ },
284
+ },
285
+ computed: {},
286
+ methods: {
287
+ /**
288
+ * 查询数据
289
+ */
290
+ searchData() {
291
+ let tempExp = {
292
+ operator: 'or',
293
+ expressions: [],
294
+ }
295
+
296
+ let postExpression = {
297
+ field: this.field,
298
+ expression: tempExp,
299
+ extendParams: {},
300
+ }
301
+ let repeatRowInfo = {
302
+ field: '',
303
+ values: [],
304
+ }
305
+ //查询之前从外部组件构造其他的条件
306
+ this.$emit('preSearch', postExpression, repeatRowInfo, this.row)
307
+ let postData = {
308
+ begin: 1,
309
+ size: 0,
310
+ expression: postExpression.expression,
311
+ sorts: [],
312
+ extendParams: postExpression.extendParams,
313
+ }
314
+ let tempApi = this.getPostApi(postData)
315
+ let vm = this
316
+ vm.gridLoading = true
317
+ request({
318
+ url: tempApi,
319
+ method: this.method,
320
+ data: postData,
321
+ })
322
+ .then((responseData) => {
323
+ vm.treeData = responseData.content
324
+ if (this.linkedTitle.length) {
325
+ XEUtils.eachTree(vm.treeData, (item) => {
326
+ let title = ''
327
+ XEUtils.arrayEach(this.linkedTitle, (newTitle) => {
328
+ title = title + item[newTitle] + '-'
329
+ })
330
+ item[this.replaceFields.title] = title.slice(0, -1)
331
+ })
332
+ }
333
+ })
334
+ .catch((error) => {
335
+ console.error(error)
336
+ })
337
+ .finally(() => {
338
+ vm.gridLoading = false
339
+ })
340
+ },
341
+ getPostApi(postData) {
342
+ let tempApi = this.api
343
+ if (this.api.indexOf('?') > 0) {
344
+ tempApi = this.api.substring(0, this.api.indexOf('?'))
345
+ let tempExtenParams = this.api.substring(this.api.indexOf('?') + 1)
346
+ tempExtenParams = replaceParam(tempExtenParams, this.formRow)
347
+ let tempSplitParams = tempExtenParams.split('&')
348
+ for (let i = 0; i < tempSplitParams.length; i++) {
349
+ let tempSplitValue = tempSplitParams[i].split('=')
350
+ this.$set(postData.extendParams, tempSplitValue[0], tempSplitValue[1])
351
+ }
352
+ }
353
+ return tempApi
354
+ },
355
+ routeLinkClick() {
356
+ //首先需要判断是否有权限
357
+ this.$router.pushRoute({
358
+ name: this.route.name,
359
+ query: { id: this.row[this.route.field] },
360
+ })
361
+ },
362
+ selectData(value, node) {
363
+ // this.row[this.linkedField] = value
364
+ // this.row[this.field] = node.title
365
+ this.$set(this.row, this.linkedField, value)
366
+ this.$set(this.row, this.field, node.title)
367
+ this.$emit('selectChanged', this.row)
368
+ },
369
+ changeData(value) {
370
+ if (!value) {
371
+ this.$set(this.row, this.linkedField, '')
372
+ this.$set(this.row, this.field, '')
373
+ this.$emit('selectChanged', this.row)
374
+ }
375
+ },
376
+ },
377
+ }
378
+ </script>
379
+
380
+ <style lang="scss" scoped>
381
+ // ::v-deep .ant-select-tree-dropdown::-webkit-scrollbar {
382
+ // width: 5px;
383
+ // }
384
+ // ::v-deep .ant-select-tree-dropdown::-webkit-scrollbar-thumb {
385
+ // /*滚动条里面小方块*/
386
+ // border-radius: 10px;
387
+ // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
388
+ // background: #e5e5e5;
389
+ // }
390
+ // ::v-deep .ant-select-tree-dropdown::-webkit-scrollbar-track {
391
+ // /*滚动条里面轨道*/
392
+ // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
393
+ // border-radius: 10px;
394
+ // background: #ffffff;
395
+ // }
396
+ .pulldown-grid {
397
+ min-width: 600px;
398
+ width: auto;
399
+ height: 350px;
400
+ background-color: #fff;
401
+ box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
402
+ }
403
+
404
+ .d-grid-control {
405
+ height: 30px;
406
+ }
407
+ .interceptor-class {
408
+ padding: 10px;
409
+ ::v-deep .ant-btn {
410
+ margin: 10px 10px 0;
411
+ }
412
+ }
413
+ </style>
414
+ <style lang="less">
415
+ @import '../../styles/default.less';
416
+ </style>