three-trees-ui 1.0.5 → 1.0.6

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.
@@ -39,7 +39,6 @@
39
39
  direction="vertical"
40
40
  ></el-divider>
41
41
  <el-container>
42
- <!-- 查询条件 -->
43
42
  <el-header v-if="querysShow" class="middle-header">
44
43
  <div
45
44
  v-for="(condition, index) in conditionBind"
@@ -47,7 +46,6 @@
47
46
  class="search-item"
48
47
  >
49
48
  <p style="font-size: 14px">{{ condition.comment }}:</p>
50
- <!-- input输入框 -->
51
49
  <div v-if="condition.controllerType == '1'">
52
50
  <el-input
53
51
  v-model="queryParams[index][condition.field]"
@@ -59,7 +57,6 @@
59
57
  @keyup.enter.native="searchEnterFun"
60
58
  ></el-input>
61
59
  </div>
62
- <!-- 单选按钮 -->
63
60
  <div
64
61
  v-if="condition.controllerType == '2'"
65
62
  style="margin-right: 10px"
@@ -73,28 +70,35 @@
73
70
  {{ itemR.value }}
74
71
  </el-radio>
75
72
  </div>
76
- <!-- 下拉框 -->
77
73
  <div
78
74
  v-if="condition.controllerType == '3'"
79
75
  style="margin-right: 10px"
80
76
  >
81
- <!-- 静态选项 -->
82
77
  <ht-select
83
78
  v-if="condition.config.choiceType == 'static'"
84
79
  v-model="queryParams[index][condition.field]"
85
80
  :placeholder="quickSearch"
86
- :multiple="condition.config.multiple"
87
81
  :options="condition.config.options"
88
82
  ></ht-select>
89
- <!-- 动态选项时展示数据字典 -->
90
- <ht-dictionary
83
+ <eip-select-dia
91
84
  v-else
92
- v-model="queryParams[index][condition.field]"
93
- :dickey="condition.config.dic"
94
- :filterable="condition.config.filterable"
95
- ></ht-dictionary>
85
+ v-model="queryParams[condition.field]"
86
+ :placeholder="quickSearch"
87
+ :ganged="{
88
+ alias: condition.config.customQuery.alias,
89
+ valueBind: condition.config.customQuery.valueBind,
90
+ noInit: '',
91
+ labelBind: condition.config.customQuery.labelBind,
92
+ gangedBind: '{}',
93
+ bind: condition.config.bind,
94
+ }"
95
+ :multiple="false"
96
+ :filterable="false"
97
+ :allow-create="false"
98
+ :selectlist="[]"
99
+ :query-params="queryParams"
100
+ ></eip-select-dia>
96
101
  </div>
97
- <!-- 标签 -->
98
102
  <div
99
103
  v-if="condition.controllerType == '4'"
100
104
  style="margin-right: 10px"
@@ -107,121 +111,6 @@
107
111
  :expand="condition.config.expand"
108
112
  ></eip-tag>
109
113
  </div>
110
- <!-- 日期 -->
111
- <div
112
- v-if="condition.controllerType == '6'"
113
- style="margin-right: 10px"
114
- >
115
- <!-- 根据日期的条件类型来判断展示单个日期还是日期范围 -->
116
- <div v-if="condition.condition == 'BETWEEN'">
117
- <ht-date
118
- v-model="queryParams[index].startDate"
119
- :format="condition.config.inputFormat"
120
- :valueFormat="condition.config.inputFormat"
121
- ></ht-date>
122
-
123
- <ht-date
124
- v-model="queryParams[index].endDate"
125
- :format="condition.config.inputFormat"
126
- :valueFormat="condition.config.inputFormat"
127
- ></ht-date>
128
- </div>
129
- <ht-date
130
- v-model="queryParams[index][condition.field]"
131
- v-else
132
- :format="condition.config.inputFormat"
133
- :valueFormat="condition.config.inputFormat"
134
- ></ht-date>
135
- </div>
136
- <!-- 选择器 -->
137
- <div
138
- v-if="condition.controllerType == '7'"
139
- style="margin-right: 10px"
140
- >
141
- <ht-user-selector-input
142
- v-model="queryParams[index].selectName"
143
- v-if="condition.config.alias == 'user'"
144
- append-to-body
145
- @change="
146
- (data) => {
147
- queryParams[index][condition.field] = getSelectId(data)
148
- }
149
- "
150
- ></ht-user-selector-input>
151
- <ht-org-selector-input
152
- v-model="queryParams[index].selectName"
153
- v-if="condition.config.alias == 'org'"
154
- append-to-body
155
- @change="
156
- (data) => {
157
- queryParams[index][condition.field] = getSelectId(data)
158
- }
159
- "
160
- ></ht-org-selector-input>
161
- <ht-role-selector-input
162
- v-model="queryParams[index].selectName"
163
- v-if="condition.config.alias == 'role'"
164
- append-to-body
165
- @change="
166
- (data) => {
167
- queryParams[index][condition.field] = getSelectId(data)
168
- }
169
- "
170
- ></ht-role-selector-input>
171
- <ht-job-selector-input
172
- v-model="queryParams[index].selectName"
173
- v-if="condition.config.alias == 'job'"
174
- append-to-body
175
- @change="
176
- (data) => {
177
- queryParams[index][condition.field] = getSelectId(data)
178
- }
179
- "
180
- ></ht-job-selector-input>
181
- <ht-post-selector-input
182
- v-model="queryParams[index].selectName"
183
- v-if="condition.config.alias == 'post'"
184
- append-to-body
185
- @change="
186
- (data) => {
187
- queryParams[index][condition.field] = getSelectId(data)
188
- }
189
- "
190
- ></ht-post-selector-input>
191
- <ht-dimension-selector-input
192
- v-model="queryParams[index].selectName"
193
- v-if="condition.config.alias == 'dimension'"
194
- append-to-body
195
- @change="
196
- (data) => {
197
- queryParams[index][condition.field] = getSelectId(data)
198
- }
199
- "
200
- ></ht-dimension-selector-input>
201
- </div>
202
- <!-- 对话框 -->
203
- <div
204
- v-if="condition.controllerType == '5'"
205
- style="margin-right: 10px"
206
- >
207
- <ht-custom-dialog
208
- v-model="queryParams[index][condition.field]"
209
- :model-name="condition.config.keyBind"
210
- dialogType="search"
211
- :custdialog="{
212
- name: '请选择',
213
- icon: '',
214
- custDialog: {
215
- selectNum: 1,
216
- conditions: [],
217
- mappingConf: [],
218
- custQueryJson: [],
219
- alias: condition.config.alias,
220
- type: 'custDialog',
221
- },
222
- }"
223
- ></ht-custom-dialog>
224
- </div>
225
114
  </div>
226
115
  <div
227
116
  v-if="conditionBind && conditionBind.length > 0"
@@ -285,11 +174,12 @@
285
174
  label="序号"
286
175
  ></el-table-column>
287
176
  <el-table-column
288
- v-for="field in sortDisplayfield"
177
+ v-for="field in displayfield"
289
178
  :key="field.field"
179
+ :show-overflow-tooltip="true"
290
180
  :prop="field.field"
291
181
  :label="field.comment"
292
- :width="field.width || ''"
182
+ style="width: 100%"
293
183
  ></el-table-column>
294
184
  </el-table>
295
185
  </el-main>
@@ -438,13 +328,9 @@
438
328
  type: Boolean,
439
329
  default: false,
440
330
  },
441
- dialogConfig: Object,
442
- dialogType: String,
443
331
  },
444
332
  data() {
445
333
  return {
446
- startDate: '', // 日期控件
447
- endDate: '', // 日期控件
448
334
  tableHeight: 350,
449
335
  isEditInputShow: false,
450
336
  customValue: '',
@@ -516,24 +402,6 @@
516
402
  }
517
403
  return []
518
404
  },
519
- jumpParamKey() {
520
- return this.dialogConfig && this.dialogConfig.jumpParamKey
521
- ? this.dialogConfig.jumpParamKey
522
- : ''
523
- },
524
- // 是否保存成跳转url参数
525
- isHaveJumpUrl() {
526
- return (
527
- this.dialogConfig &&
528
- ((this.isMobile && this.dialogConfig.mobileUrl) ||
529
- (!this.isMobile && this.dialogConfig.pcUrl))
530
- )
531
- },
532
- sortDisplayfield() {
533
- return this.displayfield.sort((a, b) => {
534
- return a.sort > b.sort ? 1 : -1
535
- })
536
- },
537
405
  },
538
406
  watch: {
539
407
  dialogData: {
@@ -570,156 +438,143 @@
570
438
  })
571
439
  },
572
440
  methods: {
573
- // 获取已选择的选择器数据id
574
- getSelectId(data) {
575
- if (!data || !data.length) {
576
- return ''
577
- }
578
- let ids = []
579
- data.forEach((item) => {
580
- ids.push(item.id)
581
- })
582
- return ids.join(',')
583
- },
584
441
  showDialog(isMounted = false) {
442
+ const this_ = this
585
443
  this.fixedParams = {}
586
- // 如果已存在配置信息就不去请求配置信息 直接初始化数据
587
- if (this.dialogConfig) {
588
- this.initDialog(this.dialogConfig, isMounted)
589
- return
590
- }
591
444
  var alias = this.custdialog.custDialog.alias
592
445
  this.$requestConfig
593
446
  .getCustomDialogByAlias(alias)
594
447
  .then((customDialog) => {
595
- this.initDialog(customDialog, isMounted)
596
- })
597
- },
598
- initDialog(customDialog, isMounted) {
599
- let alias = this.custdialog.custDialog.alias
600
- const this_ = this
601
- if (!customDialog || !customDialog.alias) {
602
- this.$message.error('对话框别名【' + alias + '】不存在!')
603
- return
604
- }
605
- if (customDialog.style == 1) {
606
- var displaylist = JSON.parse(customDialog.displayfield)
607
- this_.nodeKey = displaylist.id
608
- }
609
- if (customDialog.needPage && customDialog.requestType === 'POST') {
610
- let obj = {}
611
- this.getLastKeyByPath(obj, customDialog.pageKey, 1)
612
- this.getLastKeyByPath(obj, customDialog.pageSizeKey, 10)
613
- this.getLastKeyByPath(obj, customDialog.totalKey, true)
614
- const exp = utils.parseExp(customDialog.dataParam, obj, true)
615
- if (exp) {
616
- const params = JSON.parse(exp)
617
- if (params.pageBean) {
618
- this.pagination = {
619
- ...params.pageBean,
620
- }
448
+ if (!customDialog || !customDialog.alias) {
449
+ this.$message.error('对话框别名【' + alias + '】不存在!')
450
+ return
621
451
  }
622
- }
623
- }
624
- //对话框按表单字段查询(参数传入的)
625
- let bindList = this_.custdialog.custDialog.conditions
626
- this_.param = [] //绑定的表单字段
627
- if (bindList.length > 0) {
628
- bindList.forEach((ele) => {
629
- //绑定表单字段
630
- if (
631
- ele.bind &&
632
- (ele.defaultType == '3' || ele.bind.startsWith('data.searchForm'))
633
- ) {
452
+ if (customDialog.style == 1) {
453
+ var displaylist = JSON.parse(customDialog.displayfield)
454
+ this_.nodeKey = displaylist.id
455
+ }
456
+ if (customDialog.needPage && customDialog.requestType === 'POST') {
634
457
  let obj = {}
635
- obj.field = ele.field
636
- obj.bind = ele.bind
637
- obj.bindType = ele.bindType
638
- this_.param.push(obj)
458
+ this.getLastKeyByPath(obj, customDialog.pageKey, 1)
459
+ this.getLastKeyByPath(obj, customDialog.pageSizeKey, 10)
460
+ this.getLastKeyByPath(obj, customDialog.totalKey, true)
461
+ const exp = utils.parseExp(customDialog.dataParam, obj, true)
462
+ if (exp) {
463
+ const params = JSON.parse(exp)
464
+ if (params.pageBean) {
465
+ this.pagination = {
466
+ ...params.pageBean,
467
+ }
468
+ }
469
+ }
639
470
  }
640
- //取值对象为脚本时获取value
641
- if (ele.bindType === 3) {
642
- this_.$requestConfig.executeScript(ele.bind).then((res) => {
643
- this_.executeScriptResult = res && res.value
471
+ //对话框按表单字段查询(参数传入的)
472
+ let bindList = this_.custdialog.custDialog.conditions
473
+ this_.param = [] //绑定的表单字段
474
+ if (bindList.length > 0) {
475
+ bindList.forEach((ele) => {
476
+ //绑定表单字段
477
+ if (
478
+ ele.bind &&
479
+ (ele.defaultType == '3' ||
480
+ ele.bind.startsWith('data.searchForm'))
481
+ ) {
482
+ let obj = {}
483
+ obj.field = ele.field
484
+ obj.bind = ele.bind
485
+ obj.bindType = ele.bindType
486
+ this_.param.push(obj)
487
+ }
488
+ //取值对象为脚本时获取value
489
+ if (ele.bindType === 3) {
490
+ this_.$requestConfig.executeScript(ele.bind).then((res) => {
491
+ this_.executeScriptResult = res && res.value
492
+ })
493
+ }
644
494
  })
645
495
  }
646
- })
647
- }
648
- //判断对话框查询是否有条件
649
- let userInputList = JSON.parse(customDialog.conditionfield)
650
- this_.quickSearch = '' //填写提示 placeholder
651
- this_.conditionBind = []
652
- let queryParams = []
653
- let placeholders = []
654
- if (userInputList.length > 0) {
655
- userInputList.forEach((ele) => {
656
- var obj = {}
657
- //条件查询参数(用户输入的) 文本框输入 defaultType 1 用户输入 2固定值 3参数传入 5脚本
658
- if (ele.defaultType == '1') {
659
- obj[ele.field] = ''
660
- queryParams.push(obj)
661
- // queryParams[ele.field] = "";
662
- this_.conditionBind.push(ele)
663
- placeholders.push('请输入' + ele.comment)
496
+ //判断对话框查询是否有条件
497
+ let userInputList = JSON.parse(customDialog.conditionfield)
498
+ this_.quickSearch = '' //填写提示 placeholder
499
+ this_.conditionBind = []
500
+ let queryParams = []
501
+ let placeholders = []
502
+ if (userInputList.length > 0) {
503
+ userInputList.forEach((ele) => {
504
+ var obj = {}
505
+ //条件查询参数(用户输入的) 文本框输入 defaultType 1 用户输入 2固定值 3参数传入 5脚本
506
+ if (ele.defaultType == '1') {
507
+ obj[ele.field] = ''
508
+ queryParams.push(obj)
509
+ // queryParams[ele.field] = "";
510
+ this_.conditionBind.push(ele)
511
+ placeholders.push('请输入' + ele.comment)
512
+ }
513
+ if (ele.defaultType == '2' && ele.defaultValue) {
514
+ this_.fixedParams[ele.field] = ele.defaultValue
515
+ }
516
+ })
517
+ this.$set(this, 'queryParams', queryParams)
518
+ this.$set(this, 'placeholders', placeholders)
664
519
  }
665
- if (ele.defaultType == '2' && ele.defaultValue) {
666
- this_.fixedParams[ele.field] = ele.defaultValue
520
+ //判断是否显示条件查询输入框
521
+ if (this_.quickSearch != '') {
522
+ this_.querysShow = true
523
+ } else {
524
+ this_.querysShow = true
667
525
  }
668
- })
669
- this.$set(this, 'queryParams', queryParams)
670
- this.$set(this, 'placeholders', placeholders)
671
- }
672
- //判断是否显示条件查询输入框
673
- if (this_.quickSearch != '') {
674
- this_.querysShow = true
675
- } else {
676
- this_.querysShow = true
677
- }
678
- this_.quickSearch = '请输入' + this.quickSearch + '查询'
679
- this_.style = 'height:' + customDialog.height + 'px'
680
- if (window.screen.height && window.screen.height <= 900) {
681
- this.style = 'height:440px'
682
- }
683
- if (customDialog.style == 0 || customDialog.style == 2) {
684
- //列表
685
- setTimeout(() => {
686
- this_.customDialogShow(
687
- {
688
- alias: alias,
689
- customDialog: customDialog,
690
- },
691
- isMounted
692
- )
693
- }, 100)
694
- } else if (customDialog.style == 1) {
695
- //树形
696
- this_.pageParam = { alias: alias, customDialog: customDialog }
697
- this_.customDialog = customDialog
698
- let param = {}
699
- this_.conditionfieldTree = []
700
- //判断是否存在条件
701
- if (customDialog.conditionfield) {
702
- this_.conditionfieldTree = JSON.parse(customDialog.conditionfield)
703
- if (this_.conditionfieldTree.length > 0) {
704
- for (let i = this_.conditionfieldTree.length - 1; i >= 0; i--) {
705
- //判断条件字段是否是动态传入(defaultType:4:动态传入,2:固定值 )
706
- if (this_.conditionfieldTree[i].defaultType == '4') {
707
- param[this_.conditionfieldTree[i].field] =
708
- this_.conditionfieldTree[i].comment
526
+ this_.quickSearch = '请输入' + this.quickSearch + '查询'
527
+ this_.style = 'height:' + customDialog.height + 'px'
528
+ if (window.screen.height && window.screen.height <= 900) {
529
+ this.style = 'height:440px'
530
+ }
531
+ if (customDialog.style == 0 || customDialog.style == 2) {
532
+ //列表
533
+ setTimeout(() => {
534
+ this_.customDialogShow(
535
+ {
536
+ alias: alias,
537
+ customDialog: customDialog,
538
+ },
539
+ isMounted
540
+ )
541
+ }, 100)
542
+ } else if (customDialog.style == 1) {
543
+ //树形
544
+ this_.pageParam = { alias: alias, customDialog: customDialog }
545
+ this_.customDialog = customDialog
546
+ let param = {}
547
+ this_.conditionfieldTree = []
548
+ //判断是否存在条件
549
+ if (customDialog.conditionfield) {
550
+ this_.conditionfieldTree = JSON.parse(
551
+ customDialog.conditionfield
552
+ )
553
+ if (this_.conditionfieldTree.length > 0) {
554
+ for (
555
+ let i = this_.conditionfieldTree.length - 1;
556
+ i >= 0;
557
+ i--
558
+ ) {
559
+ //判断条件字段是否是动态传入(defaultType:4:动态传入,2:固定值
560
+ if (this_.conditionfieldTree[i].defaultType == '4') {
561
+ param[this_.conditionfieldTree[i].field] =
562
+ this_.conditionfieldTree[i].comment
563
+ }
564
+ }
565
+ }
566
+ }
567
+ //有动态传入的字段
568
+ if (!isMounted) {
569
+ if (JSON.stringify(param) != '{}') {
570
+ this_.dialogVisible = true
571
+ } else {
572
+ //无动态传入的字段
573
+ this_.customDialogTreeShow(this_.pageParam)
709
574
  }
710
575
  }
711
576
  }
712
- }
713
- //有动态传入的字段
714
- if (!isMounted) {
715
- if (JSON.stringify(param) != '{}') {
716
- this_.dialogVisible = true
717
- } else {
718
- //无动态传入的字段
719
- this_.customDialogTreeShow(this_.pageParam)
720
- }
721
- }
722
- }
577
+ })
723
578
  },
724
579
  initTableHeight() {
725
580
  this.$nextTick(() => {
@@ -869,22 +724,13 @@
869
724
  }
870
725
  // 添加用户id 岗位id 组织id
871
726
  try {
872
- if (
873
- this.$requestConfig.getUserId &&
874
- this.$requestConfig.getUserId()
875
- ) {
727
+ if (this.$requestConfig.getUserId()) {
876
728
  ctx.userId = this.$requestConfig.getUserId()
877
729
  }
878
- if (
879
- this.$requestConfig.getOrgId &&
880
- this.$requestConfig.getOrgId()
881
- ) {
730
+ if (this.$requestConfig.getOrgId()) {
882
731
  ctx.orgId = this.$requestConfig.getOrgId()
883
732
  }
884
- if (
885
- this.$requestConfig.getPostId &&
886
- this.$requestConfig.getPostId()
887
- ) {
733
+ if (this.$requestConfig.getPostId()) {
888
734
  ctx.postId = this.$requestConfig.getPostId()
889
735
  }
890
736
  } catch (e) {
@@ -981,19 +827,8 @@
981
827
  this.selectOrgs = this.convertComment2Field(str, field)
982
828
  this.custdialog.custDialog.mappingConf.forEach((con) => {
983
829
  var val = ''
984
- str.forEach((item, index) => {
985
- // 此处添加url跳转参数保存逻辑
986
- if (
987
- this.jumpParamKey &&
988
- this.isHaveJumpUrl &&
989
- this.modelName == 'data.' + con['target'][0]
990
- ) {
991
- val += `${item[con.from]}¯${this.jumpParamKey}:${
992
- this.selectOrgs[index][this.jumpParamKey]
993
- },`
994
- } else {
995
- val += item[con.from] + ','
996
- }
830
+ str.forEach((item) => {
831
+ val += item[con.from] + ','
997
832
  })
998
833
  if (this.modelName == 'data.' + con['target'][0]) {
999
834
  utils.setValueByPath(
@@ -1078,46 +913,19 @@
1078
913
  pageBean.pageBean = { page: 1, pageSize: 10, showTotal: true }
1079
914
  }
1080
915
  //用户输入的
1081
- let flag = false
1082
916
  if (this.queryParams.length != 0 && this.queryParams[0] != '') {
1083
917
  this.conditionBind.forEach((item, index) => {
1084
- // 日期范围特殊处理
1085
- if (item.dbType == 'date' && item.condition == 'BETWEEN') {
1086
- if (
1087
- (this.queryParams[index].startDate &&
1088
- !this.queryParams[index].endDate) ||
1089
- (!this.queryParams[index].startDate &&
1090
- this.queryParams[index].endDate)
1091
- ) {
1092
- flag = true
1093
- this.$message.info('日期范围未填写完整!')
1094
- return
1095
- }
1096
- if (
1097
- this.queryParams[index].startDate &&
1098
- this.queryParams[index].endDate
1099
- ) {
1100
- this.queryParams[index][
1101
- item.field
1102
- ] = `${this.queryParams[index].startDate},${this.queryParams[index].endDate}`
1103
- } else {
1104
- this.queryParams[index][item.field] = ''
1105
- }
1106
- }
1107
918
  if (this.queryParams[index][item.field]) {
1108
919
  querys.push({
1109
920
  property: item.field,
1110
921
  value: this.queryParams[index][item.field],
1111
922
  group: 'main',
1112
- operation: item.condition,
923
+ operation: 'LIKE',
1113
924
  relation: 'AND',
1114
925
  })
1115
926
  }
1116
927
  })
1117
928
  }
1118
- if (flag) {
1119
- return
1120
- }
1121
929
  //参数传入的查询拼接
1122
930
  if (this.param) {
1123
931
  this.param.forEach((item) => {
@@ -1183,22 +991,13 @@
1183
991
  queryParamMap.total = pageBean.pageBean.total
1184
992
  // 添加用户id 岗位id 组织id
1185
993
  try {
1186
- if (
1187
- this.$requestConfig.getUserId &&
1188
- this.$requestConfig.getUserId()
1189
- ) {
994
+ if (this.$requestConfig.getUserId()) {
1190
995
  ctx.userId = this.$requestConfig.getUserId()
1191
996
  }
1192
- if (
1193
- this.$requestConfig.getOrgId &&
1194
- this.$requestConfig.getOrgId()
1195
- ) {
997
+ if (this.$requestConfig.getOrgId()) {
1196
998
  ctx.orgId = this.$requestConfig.getOrgId()
1197
999
  }
1198
- if (
1199
- this.$requestConfig.getPostId &&
1200
- this.$requestConfig.getPostId()
1201
- ) {
1000
+ if (this.$requestConfig.getPostId()) {
1202
1001
  ctx.postId = this.$requestConfig.getPostId()
1203
1002
  }
1204
1003
  } catch (e) {
@@ -1223,14 +1022,12 @@
1223
1022
  value: queryParamMap[bindKey] || ctx[bindKey] || '',
1224
1023
  }
1225
1024
  })
1226
- param.querys = queryList || []
1025
+ param.querys = queryList
1227
1026
  if (this.customDialog.needPage) {
1228
1027
  param.pageBean = obj
1229
1028
  } else {
1230
1029
  param.pageBean.pageSize = -1
1231
1030
  }
1232
- // 日期格式的 改成数组
1233
- // this.changeDateFormat(param)
1234
1031
  //构造请求的参数
1235
1032
  let requestParam = {
1236
1033
  pageBean: param,
@@ -1270,21 +1067,6 @@
1270
1067
  }
1271
1068
  this.tableRadioVal = ''
1272
1069
  },
1273
- changeDateFormat(param) {
1274
- let dateValidate1 = /^\d{4}\-\d{2}\-\d{2}$/
1275
- 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$/
1276
- Object.keys(param).forEach((key) => {
1277
- if (
1278
- param[key] &&
1279
- typeof param[key] == 'string' &&
1280
- param[key].includes(',') &&
1281
- (dateValidate1.test(param[key].split(',')[0]) ||
1282
- dateValidate2.test(param[key].split(',')[0]))
1283
- ) {
1284
- param[key] = param[key].split(',')
1285
- }
1286
- })
1287
- },
1288
1070
  getSearchValueByKey() {
1289
1071
  let queryParamsObj = {}
1290
1072
  if (this.queryParams.length > 0) {
@@ -1539,8 +1321,6 @@
1539
1321
  },
1540
1322
  // 同步选择结果
1541
1323
  syncInputValue() {
1542
- // 对话框跳转url需要两个参数 1当前控件绑定的对象参数modelName 2对话框配置中配置的key名称
1543
- // 同步值时,如果有绑定url跳转参数,值格式为 名称¯跳转key:跳转value
1544
1324
  let thisIndex = null //当前数据所在下标
1545
1325
  let parentIndex = null //父节点所在下标
1546
1326
  if (this.$parent.$el) {
@@ -1628,33 +1408,13 @@
1628
1408
  }
1629
1409
  }
1630
1410
  }
1631
- // 如果是查询中使用的对话框
1632
- if (this.dialogType == 'search') {
1633
- let returnVal = []
1634
- str.forEach((item) => {
1635
- returnVal.push(decodeURIComponent(item[this.modelName]))
1636
- })
1637
- this.$emit('updateInput', returnVal.join(','))
1638
- return
1639
- }
1640
1411
  const pInst = utils.getOnlineFormInstance(this)
1641
1412
  this.custdialog.custDialog.mappingConf.forEach((con) => {
1642
1413
  var val = ''
1643
1414
  var from = con.from.toLowerCase()
1644
1415
  str.forEach((item) => {
1645
- // 如果有绑定url跳转参数 需获取跳转参数的key
1646
1416
  if (item) {
1647
- if (
1648
- this.jumpParamKey &&
1649
- this.isHaveJumpUrl &&
1650
- this.modelName == 'data.' + con['target'][0]
1651
- ) {
1652
- val += `${decodeURIComponent(item[from])}¯${
1653
- this.jumpParamKey
1654
- }:${item[this.jumpParamKey]},`
1655
- } else {
1656
- val += decodeURIComponent(item[from]) + ','
1657
- }
1417
+ val += decodeURIComponent(item[from]) + ','
1658
1418
  }
1659
1419
  })
1660
1420
  if (this.modelName == 'data.' + con['target'][0]) {
@@ -1695,6 +1455,7 @@
1695
1455
  const _val = val.substring(0, val.length - 1)
1696
1456
  if (path) {
1697
1457
  if (this.modelName && this.modelName.endsWith(path)) {
1458
+ // this.$emit('input', _val)
1698
1459
  this.$emit('updateInput', _val)
1699
1460
  }
1700
1461
  utils.setValueByPath(