three-trees-ui 1.0.12 → 1.0.14

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.
@@ -32,7 +32,6 @@
32
32
  class="search-item"
33
33
  >
34
34
  <p>{{ condition.comment }}:</p>
35
- <!-- 单行文本输入框 -->
36
35
  <div v-if="condition.controllerType == '1'">
37
36
  <el-input
38
37
  v-model="queryParams[index][condition.field]"
@@ -43,8 +42,10 @@
43
42
  @keyup.enter.native="hideSearch"
44
43
  ></el-input>
45
44
  </div>
46
- <!-- 单选框 -->
47
- <div v-if="condition.controllerType == '2'">
45
+ <div
46
+ v-if="condition.controllerType == '2'"
47
+ style="margin-right: 10px"
48
+ >
48
49
  <el-radio
49
50
  v-for="(itemR, $index1) in condition.config.options"
50
51
  :key="$index1"
@@ -54,145 +55,45 @@
54
55
  {{ itemR.value }}
55
56
  </el-radio>
56
57
  </div>
57
- <!-- 下拉框 -->
58
- <div v-if="condition.controllerType == '3'">
59
- <!-- 静态选项 -->
58
+ <div
59
+ v-if="condition.controllerType == '3'"
60
+ style="margin-right: 10px"
61
+ >
60
62
  <ht-select
61
63
  v-if="condition.config.choiceType == 'static'"
62
64
  v-model="queryParams[index][condition.field]"
63
- :multiple="condition.config.multiple"
64
65
  :options="condition.config.options"
65
- popper-class="dialog-select"
66
66
  ></ht-select>
67
- <!-- 动态选项时展示数据字典 -->
68
- <ht-dictionary
67
+ <eip-select-dia
69
68
  v-else
70
- v-model="queryParams[index][condition.field]"
71
- :dickey="condition.config.dic"
72
- :filterable="condition.config.filterable"
73
- popper-class="dialog-select"
74
- ></ht-dictionary>
69
+ v-model="queryParams[condition.field]"
70
+ :ganged="{
71
+ alias: condition.config.customQuery.alias,
72
+ valueBind: condition.config.customQuery.valueBind,
73
+ noInit: '',
74
+ labelBind: condition.config.customQuery.labelBind,
75
+ gangedBind: '{}',
76
+ bind: condition.config.bind,
77
+ }"
78
+ :multiple="false"
79
+ :filterable="false"
80
+ :allow-create="false"
81
+ :selectlist="[]"
82
+ :query-params="queryParams"
83
+ ></eip-select-dia>
75
84
  </div>
76
- <!-- 标签 -->
77
- <div v-if="condition.controllerType == '4'">
85
+ <div
86
+ v-if="condition.controllerType == '4'"
87
+ style="margin-right: 10px"
88
+ >
78
89
  <eip-tag
79
90
  v-model="queryParams[index][condition.field]"
80
91
  :tag-key="condition.config.tag"
92
+ :placeholder="quickSearch"
81
93
  :filterable="condition.config.filterable"
82
94
  :expand="condition.config.expand"
83
95
  ></eip-tag>
84
96
  </div>
85
- <!-- 日期 -->
86
- <div v-if="condition.controllerType == '6'">
87
- <!-- 根据日期的条件类型来判断展示单个日期还是日期范围 -->
88
- <div
89
- v-if="condition.condition == 'BETWEEN'"
90
- style="display: flex;align-items: center;"
91
- >
92
- <ht-input
93
- v-model="queryParams[index].startDate"
94
- placeholder="开始日期"
95
- @click.native="showDate(index, 'startDate')"
96
- readonly
97
- ></ht-input>
98
- <span style="margin:0 10px;">至</span>
99
- <ht-input
100
- v-model="queryParams[index].endDate"
101
- placeholder="结束日期"
102
- @click.native="showDate(index, 'endDate')"
103
- readonly
104
- ></ht-input>
105
- </div>
106
- <ht-input
107
- v-else
108
- v-model="queryParams[index][condition.field]"
109
- @click.native="showDate(index, condition.field)"
110
- readonly
111
- ></ht-input>
112
- </div>
113
- <!-- 选择器 -->
114
- <div v-if="condition.controllerType == '7'">
115
- <ht-user-selector-input
116
- v-model="queryParams[index].selectName"
117
- v-if="condition.config.alias == 'user'"
118
- append-to-body
119
- @change="
120
- (data) => {
121
- queryParams[index][condition.field] = getSelectId(data)
122
- }
123
- "
124
- ></ht-user-selector-input>
125
- <ht-org-selector-input
126
- v-model="queryParams[index].selectName"
127
- v-if="condition.config.alias == 'org'"
128
- append-to-body
129
- @change="
130
- (data) => {
131
- queryParams[index][condition.field] = getSelectId(data)
132
- }
133
- "
134
- ></ht-org-selector-input>
135
- <ht-role-selector-input
136
- v-model="queryParams[index].selectName"
137
- v-if="condition.config.alias == 'role'"
138
- append-to-body
139
- @change="
140
- (data) => {
141
- queryParams[index][condition.field] = getSelectId(data)
142
- }
143
- "
144
- ></ht-role-selector-input>
145
- <ht-job-selector-input
146
- v-model="queryParams[index].selectName"
147
- v-if="condition.config.alias == 'job'"
148
- append-to-body
149
- @change="
150
- (data) => {
151
- queryParams[index][condition.field] = getSelectId(data)
152
- }
153
- "
154
- ></ht-job-selector-input>
155
- <ht-post-selector-input
156
- v-model="queryParams[index].selectName"
157
- v-if="condition.config.alias == 'post'"
158
- append-to-body
159
- @change="
160
- (data) => {
161
- queryParams[index][condition.field] = getSelectId(data)
162
- }
163
- "
164
- ></ht-post-selector-input>
165
- <ht-dimension-selector-input
166
- v-model="queryParams[index].selectName"
167
- v-if="condition.config.alias == 'dimension'"
168
- append-to-body
169
- @change="
170
- (data) => {
171
- queryParams[index][condition.field] = getSelectId(data)
172
- }
173
- "
174
- ></ht-dimension-selector-input>
175
- </div>
176
- <!-- 对话框 -->
177
- <div v-if="condition.controllerType == '5'">
178
- <ht-custom-dialog
179
- v-model="queryParams[index][condition.field]"
180
- :model-name="condition.config.keyBind"
181
- dialogType="search"
182
- :custdialog="{
183
- name: '请选择',
184
- icon: '',
185
- custDialog: {
186
- selectNum: 1,
187
- conditions: [],
188
- mappingConf: [],
189
- custQueryJson: [],
190
- alias: condition.config.alias,
191
- type: 'custDialog',
192
- },
193
- }"
194
- ></ht-custom-dialog>
195
- </div>
196
97
  </div>
197
98
  <div v-show="isShowMoreSearch" class="search-btns">
198
99
  <el-button
@@ -270,7 +171,7 @@
270
171
  </template>
271
172
  <div class="custom-mobile_box">
272
173
  <div
273
- v-for="field in sortDisplayfield"
174
+ v-for="field in displayfield"
274
175
  :key="field.field"
275
176
  class="custom-mobile_box_item"
276
177
  >
@@ -353,23 +254,6 @@
353
254
  @check-change="getChecked"
354
255
  ></el-tree>
355
256
  </van-action-sheet>
356
- <!-- 修改时间 -->
357
- <van-popup
358
- v-model="isShowDatePop"
359
- v-if="isShowDatePop"
360
- position="bottom"
361
- round
362
- >
363
- <!-- 日期选择控件 -->
364
- <van-datetime-picker
365
- v-model="currentDate"
366
- :type="dateType"
367
- title="选择日期"
368
- :show-toolbar="true"
369
- @cancel="isShowDatePop = false"
370
- @confirm="confirmFn"
371
- />
372
- </van-popup>
373
257
  </div>
374
258
  </template>
375
259
  <script>
@@ -394,14 +278,9 @@
394
278
  sunIndex: Number,
395
279
  subPath: String,
396
280
  currentSubData: Array,
397
- dialogConfig: Object,
398
- dialogType: String,
399
281
  },
400
282
  data() {
401
283
  return {
402
- dateType: 'date',
403
- currentDate: '', // 当前日期
404
- isShowDatePop: false, // 是否显示日期选择控件
405
284
  isShowMoreSearch: false,
406
285
  treeSelectText: '', // 组合树时选中的查询条件
407
286
  isSelectTreeShow: false, // 组合树显示隐藏
@@ -470,58 +349,8 @@
470
349
  this.selectIds.length > 0 ? `(${this.selectIds.length})` : ''
471
350
  return `${this.$t('ht.common.confirm')}${selectedText}`
472
351
  },
473
- jumpParamKey() {
474
- return this.dialogConfig && this.dialogConfig.jumpParamKey
475
- ? this.dialogConfig.jumpParamKey
476
- : ''
477
- },
478
- // 是否保存成跳转url参数
479
- isHaveJumpUrl() {
480
- return (
481
- this.dialogConfig &&
482
- ((this.isMobile && this.dialogConfig.mobileUrl) ||
483
- (!this.isMobile && this.dialogConfig.pcUrl))
484
- )
485
- },
486
- sortDisplayfield() {
487
- return this.displayfield.sort((a, b) => {
488
- return a.sort > b.sort ? 1 : -1
489
- })
490
- },
491
352
  },
492
353
  methods: {
493
- // 获取已选择的选择器数据id
494
- getSelectId(data) {
495
- if (!data || !data.length) {
496
- return ''
497
- }
498
- let ids = []
499
- data.forEach((item) => {
500
- ids.push(item.id)
501
- })
502
- return ids.join(',')
503
- },
504
- showDate(index, key) {
505
- this.dateType = this.conditionBind[index].config.inputFormat.includes(
506
- 'mm:'
507
- )
508
- ? 'datetime'
509
- : 'date'
510
- this.currentDateData = { index, key }
511
- this.currentDate = this.queryParams[index][key]
512
- ? new Date(this.queryParams[index][key].replace(/-/g, '/'))
513
- : new Date()
514
- this.isShowDatePop = true
515
- },
516
- // 日期确认
517
- confirmFn() {
518
- let currentConfig = this.conditionBind[this.currentDateData.index]
519
- this.queryParams[this.currentDateData.index][
520
- this.currentDateData.key
521
- ] = this.currentDate.format(currentConfig.config.inputFormat)
522
-
523
- this.isShowDatePop = false
524
- },
525
354
  searchInputChange() {
526
355
  if (!this.isShowMoreSearch) {
527
356
  this.search(true)
@@ -567,124 +396,122 @@
567
396
  this.search(true)
568
397
  },
569
398
  showDialog() {
399
+ const this_ = this
570
400
  this.fixedParams = {}
571
- // 如果已存在配置信息就不去请求配置信息 直接初始化数据
572
- if (this.dialogConfig) {
573
- this.initDialog(this.dialogConfig)
574
- return
575
- }
576
401
  var alias = this.custdialog.custDialog.alias
577
402
  this.$requestConfig
578
403
  .getCustomDialogByAlias(alias)
579
404
  .then((customDialog) => {
580
- this.initDialog(customDialog)
581
- })
582
- },
583
- initDialog(customDialog) {
584
- let alias = this.custdialog.custDialog.alias
585
- const this_ = this
586
- if (!customDialog || !customDialog.alias) {
587
- this.$message.error('对话框别名【' + alias + '】不存在!')
588
- return
589
- }
590
- if (customDialog.style == 1) {
591
- var displaylist = JSON.parse(customDialog.displayfield)
592
- this_.nodeKey = displaylist.id
593
- }
594
- if (customDialog.needPage && customDialog.requestType === 'POST') {
595
- let obj = {}
596
- this.getLastKeyByPath(obj, customDialog.pageKey, 1)
597
- this.getLastKeyByPath(obj, customDialog.pageSizeKey, 10)
598
- this.getLastKeyByPath(obj, customDialog.totalKey, true)
599
- const exp = utils.parseExp(customDialog.dataParam, obj, true)
600
- if (exp) {
601
- const params = JSON.parse(exp)
602
- if (params.pageBean) {
603
- this.pagination = {
604
- ...params.pageBean,
605
- }
405
+ if (!customDialog || !customDialog.alias) {
406
+ this.$message.error('对话框别名【' + alias + '】不存在!')
407
+ return
606
408
  }
607
- }
608
- }
609
- //对话框按表单字段查询(参数传入的)
610
- let bindList = this_.custdialog.custDialog.conditions
611
- this_.param = [] //绑定的表单字段
612
- if (bindList.length > 0) {
613
- bindList.forEach((ele) => {
614
- //绑定表单字段
615
- if (
616
- ele.bind &&
617
- (ele.defaultType == '3' || ele.bind.startsWith('data.searchForm'))
618
- ) {
409
+ if (customDialog.style == 1) {
410
+ var displaylist = JSON.parse(customDialog.displayfield)
411
+ this_.nodeKey = displaylist.id
412
+ }
413
+ if (customDialog.needPage && customDialog.requestType === 'POST') {
619
414
  let obj = {}
620
- obj.field = ele.field
621
- obj.bind = ele.bind
622
- obj.bindType = ele.bindType
623
- this_.param.push(obj)
415
+ this.getLastKeyByPath(obj, customDialog.pageKey, 1)
416
+ this.getLastKeyByPath(obj, customDialog.pageSizeKey, 10)
417
+ this.getLastKeyByPath(obj, customDialog.totalKey, true)
418
+ const exp = utils.parseExp(customDialog.dataParam, obj, true)
419
+ if (exp) {
420
+ const params = JSON.parse(exp)
421
+ if (params.pageBean) {
422
+ this.pagination = {
423
+ ...params.pageBean,
424
+ }
425
+ }
426
+ }
624
427
  }
625
- // bindType 1 表单字段 2固定 3脚本
626
- if (ele.defaultType == '3' && ele.bindType === 2) {
627
- this_.fixedParams[ele.field] = ele.bind || ''
428
+ //对话框按表单字段查询(参数传入的)
429
+ let bindList = this_.custdialog.custDialog.conditions
430
+ this_.param = [] //绑定的表单字段
431
+ if (bindList.length > 0) {
432
+ bindList.forEach((ele) => {
433
+ //绑定表单字段
434
+ if (
435
+ ele.bind &&
436
+ (ele.defaultType == '3' ||
437
+ ele.bind.startsWith('data.searchForm'))
438
+ ) {
439
+ let obj = {}
440
+ obj.field = ele.field
441
+ obj.bind = ele.bind
442
+ obj.bindType = ele.bindType
443
+ this_.param.push(obj)
444
+ }
445
+ // bindType 1 表单字段 2固定 3脚本
446
+ if (ele.defaultType == '3' && ele.bindType === 2) {
447
+ this_.fixedParams[ele.field] = ele.bind || ''
448
+ }
449
+ })
628
450
  }
629
- })
630
- }
631
451
 
632
- //判断对话框查询是否有条件
633
- let userInputList = JSON.parse(customDialog.conditionfield)
634
- this_.conditionBind = []
635
- let queryParams = []
636
- let placeholders = []
637
- if (userInputList.length > 0) {
638
- userInputList.forEach((ele) => {
639
- var obj = {}
640
- //条件查询参数(用户输入的) 文本框输入 defaultType 1 用户输入 2固定值 3参数传入 5脚本
641
- if (ele.defaultType == '1') {
642
- obj[ele.field] = ''
643
- queryParams.push(obj)
644
- // queryParams[ele.field] = "";
645
- this_.conditionBind.push(ele)
646
- placeholders.push('请输入' + ele.comment)
647
- }
648
- if (ele.defaultType == '2' && ele.defaultValue) {
649
- this_.fixedParams[ele.field] = ele.defaultValue
452
+ //判断对话框查询是否有条件
453
+ let userInputList = JSON.parse(customDialog.conditionfield)
454
+ this_.conditionBind = []
455
+ let queryParams = []
456
+ let placeholders = []
457
+ if (userInputList.length > 0) {
458
+ userInputList.forEach((ele) => {
459
+ var obj = {}
460
+ //条件查询参数(用户输入的) 文本框输入 defaultType 1 用户输入 2固定值 3参数传入 5脚本
461
+ if (ele.defaultType == '1') {
462
+ obj[ele.field] = ''
463
+ queryParams.push(obj)
464
+ // queryParams[ele.field] = "";
465
+ this_.conditionBind.push(ele)
466
+ placeholders.push('请输入' + ele.comment)
467
+ }
468
+ if (ele.defaultType == '2' && ele.defaultValue) {
469
+ this_.fixedParams[ele.field] = ele.defaultValue
470
+ }
471
+ })
472
+ this.$set(this, 'queryParams', queryParams)
473
+ this.$set(this, 'placeholders', placeholders)
650
474
  }
651
- })
652
- this.$set(this, 'queryParams', queryParams)
653
- this.$set(this, 'placeholders', placeholders)
654
- }
655
- if (customDialog.style == 0 || customDialog.style == 2) {
656
- //列表
657
- this_.customDialogShow({
658
- alias: alias,
659
- customDialog: customDialog,
660
- })
661
- } else if (customDialog.style == 1) {
662
- //树形
663
- this_.pageParam = { alias: alias, customDialog: customDialog }
664
- this_.customDialog = customDialog
665
- let param = {}
666
- this_.conditionfieldTree = []
667
- //判断是否存在条件
668
- if (customDialog.conditionfield) {
669
- this_.conditionfieldTree = JSON.parse(customDialog.conditionfield)
670
- if (this_.conditionfieldTree.length > 0) {
671
- for (let i = this_.conditionfieldTree.length - 1; i >= 0; i--) {
672
- //判断条件字段是否是动态传入(defaultType:4:动态传入,2:固定值 )
673
- if (this_.conditionfieldTree[i].defaultType == '4') {
674
- param[this_.conditionfieldTree[i].field] =
675
- this_.conditionfieldTree[i].comment
475
+ if (customDialog.style == 0 || customDialog.style == 2) {
476
+ //列表
477
+ this_.customDialogShow({
478
+ alias: alias,
479
+ customDialog: customDialog,
480
+ })
481
+ } else if (customDialog.style == 1) {
482
+ //树形
483
+ this_.pageParam = { alias: alias, customDialog: customDialog }
484
+ this_.customDialog = customDialog
485
+ let param = {}
486
+ this_.conditionfieldTree = []
487
+ //判断是否存在条件
488
+ if (customDialog.conditionfield) {
489
+ this_.conditionfieldTree = JSON.parse(
490
+ customDialog.conditionfield
491
+ )
492
+ if (this_.conditionfieldTree.length > 0) {
493
+ for (
494
+ let i = this_.conditionfieldTree.length - 1;
495
+ i >= 0;
496
+ i--
497
+ ) {
498
+ //判断条件字段是否是动态传入(defaultType:4:动态传入,2:固定值
499
+ if (this_.conditionfieldTree[i].defaultType == '4') {
500
+ param[this_.conditionfieldTree[i].field] =
501
+ this_.conditionfieldTree[i].comment
502
+ }
503
+ }
676
504
  }
677
505
  }
506
+ //有动态传入的字段
507
+ if (JSON.stringify(param) != '{}') {
508
+ this_.dialogVisible = true
509
+ } else {
510
+ //无动态传入的字段
511
+ this_.customDialogTreeShow(this_.pageParam)
512
+ }
678
513
  }
679
- }
680
- //有动态传入的字段
681
- if (JSON.stringify(param) != '{}') {
682
- this_.dialogVisible = true
683
- } else {
684
- //无动态传入的字段
685
- this_.customDialogTreeShow(this_.pageParam)
686
- }
687
- }
514
+ })
688
515
  },
689
516
  treeClick(data) {
690
517
  // 单选
@@ -821,22 +648,13 @@
821
648
  }
822
649
  // 添加用户id 岗位id 组织id
823
650
  try {
824
- if (
825
- this.$requestConfig.getUserId &&
826
- this.$requestConfig.getUserId()
827
- ) {
651
+ if (this.$requestConfig.getUserId()) {
828
652
  ctx.userId = this.$requestConfig.getUserId()
829
653
  }
830
- if (
831
- this.$requestConfig.getOrgId &&
832
- this.$requestConfig.getOrgId()
833
- ) {
654
+ if (this.$requestConfig.getOrgId()) {
834
655
  ctx.orgId = this.$requestConfig.getOrgId()
835
656
  }
836
- if (
837
- this.$requestConfig.getPostId &&
838
- this.$requestConfig.getPostId()
839
- ) {
657
+ if (this.$requestConfig.getPostId()) {
840
658
  ctx.postId = this.$requestConfig.getPostId()
841
659
  }
842
660
  } catch (e) {
@@ -933,21 +751,8 @@
933
751
  this.selectOrgs = this.convertComment2Field(str, field)
934
752
  this.custdialog.custDialog.mappingConf.forEach((con) => {
935
753
  var val = ''
936
- str.forEach((item, index) => {
937
- // 此处添加url跳转参数保存逻辑
938
- if (
939
- this.jumpParamKey &&
940
- this.isHaveJumpUrl &&
941
- (this.modelName == 'data.' + con['target'][0] ||
942
- (this.modelName.includes('item.') &&
943
- con['target'][0].endsWith(this.modelName.split('.')[1])))
944
- ) {
945
- val += `${item[con.from]}¯${this.jumpParamKey}:${
946
- this.selectOrgs[index][this.jumpParamKey]
947
- },`
948
- } else {
949
- val += item[con.from] + ','
950
- }
754
+ str.forEach((item) => {
755
+ val += item[con.from] + ','
951
756
  })
952
757
  if (this.modelName == 'data.' + con['target'][0]) {
953
758
  utils.setValueByPath(
@@ -1034,29 +839,6 @@
1034
839
  //用户输入的
1035
840
  if (this.queryParams.length != 0 && this.queryParams[0] != '') {
1036
841
  this.conditionBind.forEach((item, index) => {
1037
- // 日期范围特殊处理
1038
- if (item.dbType == 'date' && item.condition == 'BETWEEN') {
1039
- if (
1040
- (this.queryParams[index].startDate &&
1041
- !this.queryParams[index].endDate) ||
1042
- (!this.queryParams[index].startDate &&
1043
- this.queryParams[index].endDate)
1044
- ) {
1045
- flag = true
1046
- this.$message.info('日期范围未填写完整!')
1047
- return
1048
- }
1049
- if (
1050
- this.queryParams[index].startDate &&
1051
- this.queryParams[index].endDate
1052
- ) {
1053
- this.queryParams[index][
1054
- item.field
1055
- ] = `${this.queryParams[index].startDate},${this.queryParams[index].endDate}`
1056
- } else {
1057
- this.queryParams[index][item.field] = ''
1058
- }
1059
- }
1060
842
  if (this.queryParams[index][item.field]) {
1061
843
  querys.push({
1062
844
  property: item.field,
@@ -1130,22 +912,13 @@
1130
912
  ctx.total = pageBean.pageBean.total
1131
913
  // 添加用户id 岗位id 组织id
1132
914
  try {
1133
- if (
1134
- this.$requestConfig.getUserId &&
1135
- this.$requestConfig.getUserId()
1136
- ) {
915
+ if (this.$requestConfig.getUserId()) {
1137
916
  ctx.userId = this.$requestConfig.getUserId()
1138
917
  }
1139
- if (
1140
- this.$requestConfig.getOrgId &&
1141
- this.$requestConfig.getOrgId()
1142
- ) {
918
+ if (this.$requestConfig.getOrgId()) {
1143
919
  ctx.orgId = this.$requestConfig.getOrgId()
1144
920
  }
1145
- if (
1146
- this.$requestConfig.getPostId &&
1147
- this.$requestConfig.getPostId()
1148
- ) {
921
+ if (this.$requestConfig.getPostId()) {
1149
922
  ctx.postId = this.$requestConfig.getPostId()
1150
923
  }
1151
924
  } catch (e) {
@@ -1178,8 +951,6 @@
1178
951
  } else {
1179
952
  param.pageBean.pageSize = -1
1180
953
  }
1181
- // 日期格式的 改成数组
1182
- // this.changeDateFormat(param)
1183
954
  //构造请求的参数
1184
955
  let requestParam = {
1185
956
  pageBean: param,
@@ -1215,21 +986,6 @@
1215
986
  }
1216
987
  }
1217
988
  },
1218
- changeDateFormat(param) {
1219
- let dateValidate1 = /^\d{4}\-\d{2}\-\d{2}$/
1220
- let dateValidate2 = /^([1-2][0-9][0-9][0-9]-[0-1]{0,1}[0-9]-[0-3]{0,1}[0-9])\s(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
1221
- Object.keys(param).forEach((key) => {
1222
- if (
1223
- param[key] &&
1224
- typeof param[key] == 'string' &&
1225
- param[key].includes(',') &&
1226
- (dateValidate1.test(param[key].split(',')[0]) ||
1227
- dateValidate2.test(param[key].split(',')[0]))
1228
- ) {
1229
- param[key] = param[key].split(',')
1230
- }
1231
- })
1232
- },
1233
989
  getSearchValueByKey() {
1234
990
  let queryParamsObj = {}
1235
991
  if (this.queryParams.length > 0) {
@@ -1449,38 +1205,13 @@
1449
1205
  }
1450
1206
  }
1451
1207
  }
1452
- // 如果是查询中使用的对话框
1453
- if (this.dialogType == 'search') {
1454
- let returnVal = []
1455
- str.forEach((item) => {
1456
- returnVal.push(decodeURIComponent(item[this.modelName]))
1457
- })
1458
- this.$emit('updateInput', returnVal.join(','))
1459
- return
1460
- }
1461
1208
  const pInst = utils.getOnlineFormInstance(this)
1462
1209
  this.custdialog.custDialog.mappingConf.forEach((con) => {
1463
1210
  var val = ''
1464
1211
  var from = con.from.toLowerCase()
1465
1212
  str.forEach((item) => {
1466
1213
  if (item) {
1467
- if (
1468
- this.jumpParamKey &&
1469
- this.isHaveJumpUrl &&
1470
- (this.modelName == 'data.' + con['target'][0] ||
1471
- (this.modelName.includes('item.') &&
1472
- con['target'][0].endsWith(this.modelName.split('.')[1])))
1473
- ) {
1474
- // 需根据key 找到对应 返回数据的返回名称
1475
- let returnMapKey = returnStr.find((k) => {
1476
- return k.field == this.jumpParamKey
1477
- }).comment
1478
- val += `${decodeURIComponent(item[from])}¯${
1479
- this.jumpParamKey
1480
- }:${item[returnMapKey]},`
1481
- } else {
1482
- val += decodeURIComponent(item[from]) + ','
1483
- }
1214
+ val += decodeURIComponent(item[from]) + ','
1484
1215
  }
1485
1216
  })
1486
1217
  if (this.modelName == 'data.' + con['target'][0]) {
@@ -1548,6 +1279,20 @@
1548
1279
  }
1549
1280
  }
1550
1281
  },
1282
+ // getSelected() {
1283
+ // let arr = []
1284
+ // this.selectIds.forEach((item) => {
1285
+ // debugger
1286
+ // let obj = this.dialogData.find((sub) => {
1287
+ // return sub.id_ === item
1288
+ // })
1289
+ // if (obj) {
1290
+ // arr.push(obj)
1291
+ // }
1292
+ // })
1293
+
1294
+ // return arr
1295
+ // },
1551
1296
  calacInputSuffixHeight() {
1552
1297
  this.$emit('calacInputSuffixHeight')
1553
1298
  },
@@ -1871,50 +1616,4 @@
1871
1616
  padding: 10px 5px;
1872
1617
  overflow-y: auto;
1873
1618
  }
1874
- .dialog-select {
1875
- z-index: 2500 !important;
1876
- }
1877
- .mobile-van-action {
1878
- &.min-height-action {
1879
- min-height: 50%;
1880
- }
1881
- .dialog-mobile__title {
1882
- font-size: 18px;
1883
- color: #1a1a1a;
1884
- }
1885
- .dialog-mobile__close {
1886
- float: right;
1887
- }
1888
- .van-action-sheet__cancel {
1889
- padding: 8px 5px;
1890
- background: $base-color-blue;
1891
- color: $base-color-white;
1892
- }
1893
- .search-box {
1894
- padding-right: 60px;
1895
- position: relative;
1896
- > .unfold-icon {
1897
- position: absolute;
1898
- right: 20px;
1899
- top: 17px;
1900
- }
1901
- .search-item {
1902
- display: flex;
1903
- align-items: center;
1904
- > p {
1905
- width: 90px;
1906
- font-size: 14px;
1907
- text-align: right;
1908
- margin-right: 10px;
1909
- }
1910
- > div {
1911
- flex: 1;
1912
- overflow: hidden;
1913
- }
1914
- }
1915
- .search-btns {
1916
- text-align: center;
1917
- }
1918
- }
1919
- }
1920
1619
  </style>