three-trees-ui 1.0.60 → 1.0.61
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.
- package/lib/three-trees-ui.common.js +142 -136
- package/lib/three-trees-ui.umd.js +142 -136
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/mixins/querySqlPreview.js +32 -40
package/package.json
CHANGED
|
@@ -554,19 +554,11 @@ export default {
|
|
|
554
554
|
? operationType[operation]
|
|
555
555
|
: operation
|
|
556
556
|
} else if (
|
|
557
|
-
typeof $(searchItems[i])
|
|
558
|
-
.children()
|
|
559
|
-
.attr('ht-query') != 'undefined'
|
|
557
|
+
typeof $(searchItems[i]).children().attr('ht-query') != 'undefined'
|
|
560
558
|
) {
|
|
561
559
|
//查询条件类型
|
|
562
|
-
operation = $(searchItems[i])
|
|
563
|
-
|
|
564
|
-
.attr('operation')
|
|
565
|
-
operationMap[
|
|
566
|
-
$(searchItems[i])
|
|
567
|
-
.children()
|
|
568
|
-
.attr('ht-query')
|
|
569
|
-
] =
|
|
560
|
+
operation = $(searchItems[i]).children().attr('operation')
|
|
561
|
+
operationMap[$(searchItems[i]).children().attr('ht-query')] =
|
|
570
562
|
typeof operationType[operation] != 'undefined'
|
|
571
563
|
? operationType[operation]
|
|
572
564
|
: operation
|
|
@@ -588,16 +580,12 @@ export default {
|
|
|
588
580
|
searchItems[i]
|
|
589
581
|
).attr('field-query')
|
|
590
582
|
} else if (
|
|
591
|
-
typeof $(searchItems[i])
|
|
592
|
-
.children()
|
|
593
|
-
.attr('ht-query') != 'undefined'
|
|
583
|
+
typeof $(searchItems[i]).children().attr('ht-query') != 'undefined'
|
|
594
584
|
) {
|
|
595
585
|
//查询条件字段
|
|
596
|
-
fieldQueryMap[
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
.attr('ht-query')
|
|
600
|
-
] = $(searchItems[i])
|
|
586
|
+
fieldQueryMap[$(searchItems[i]).children().attr('ht-query')] = $(
|
|
587
|
+
searchItems[i]
|
|
588
|
+
)
|
|
601
589
|
.children()
|
|
602
590
|
.attr('field-query')
|
|
603
591
|
}
|
|
@@ -619,19 +607,12 @@ export default {
|
|
|
619
607
|
? true
|
|
620
608
|
: false
|
|
621
609
|
} else if (
|
|
622
|
-
typeof $(searchItems[i])
|
|
623
|
-
.children()
|
|
624
|
-
.attr('ht-query') != 'undefined'
|
|
610
|
+
typeof $(searchItems[i]).children().attr('ht-query') != 'undefined'
|
|
625
611
|
) {
|
|
626
612
|
//查询条件字段
|
|
627
|
-
fieldQueryMap[
|
|
628
|
-
$(searchItems[i])
|
|
629
|
-
|
|
630
|
-
.attr('ht-query')
|
|
631
|
-
] =
|
|
632
|
-
typeof $(searchItems[i])
|
|
633
|
-
.children()
|
|
634
|
-
.attr('special-query') != 'undefined'
|
|
613
|
+
fieldQueryMap[$(searchItems[i]).children().attr('ht-query')] =
|
|
614
|
+
typeof $(searchItems[i]).children().attr('special-query') !=
|
|
615
|
+
'undefined'
|
|
635
616
|
? true
|
|
636
617
|
: false
|
|
637
618
|
}
|
|
@@ -727,7 +708,7 @@ export default {
|
|
|
727
708
|
punchOrder() {
|
|
728
709
|
this.$store
|
|
729
710
|
.dispatch('storeProcess/downLoadToFile', 'Batchkeijyo')
|
|
730
|
-
.then(() => {
|
|
711
|
+
.then(() => {})
|
|
731
712
|
},
|
|
732
713
|
beforeAvatarUpload(file) {
|
|
733
714
|
var fileName = new Array()
|
|
@@ -754,7 +735,7 @@ export default {
|
|
|
754
735
|
this.$message.success('送付状成功')
|
|
755
736
|
window.location.reload()
|
|
756
737
|
},
|
|
757
|
-
handlePreview() {
|
|
738
|
+
handlePreview() {},
|
|
758
739
|
//确定导出
|
|
759
740
|
submitExport() {
|
|
760
741
|
if (!this.exportData || this.exportData.expField.length < 1) {
|
|
@@ -772,17 +753,28 @@ export default {
|
|
|
772
753
|
expField += this.exportData.expField[i].fieldName
|
|
773
754
|
}
|
|
774
755
|
expField = Base64.encode(expField).replace(/\+/g, '%2B')
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
756
|
+
const dataTemplateQueryVo = {
|
|
757
|
+
queryFilter: this.queryParam,
|
|
758
|
+
}
|
|
759
|
+
//保存查询参数,用于作为导出的查询参数
|
|
760
|
+
if (this.queryViewOptions) {
|
|
761
|
+
//关联查询字段
|
|
762
|
+
if (
|
|
763
|
+
this.queryViewOptions.selectList &&
|
|
764
|
+
this.queryViewOptions.selectList.length > 0
|
|
765
|
+
) {
|
|
766
|
+
dataTemplateQueryVo.selectList = this.queryViewOptions.selectList
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
779
770
|
let data = {
|
|
780
771
|
sqlAlias: this.sqlAlias || this.queryView.sqlAlias,
|
|
781
772
|
alias: this.alias || this.queryView.alias,
|
|
782
773
|
getType: this.exportData.getType,
|
|
783
774
|
expField: expField,
|
|
775
|
+
query: dataTemplateQueryVo,
|
|
784
776
|
}
|
|
785
|
-
|
|
777
|
+
|
|
786
778
|
let loadingInstance = Loading.service({ fullscreen: true }) //开始
|
|
787
779
|
this.$requestConfig
|
|
788
780
|
.querySqlViewExport(data)
|
|
@@ -1029,9 +1021,9 @@ export default {
|
|
|
1029
1021
|
)
|
|
1030
1022
|
return checkField.length
|
|
1031
1023
|
? checkField.filter(
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1024
|
+
(field) =>
|
|
1025
|
+
field.checked && ['序号', '操作'].indexOf(field.value) == -1
|
|
1026
|
+
)
|
|
1035
1027
|
: customColumns
|
|
1036
1028
|
},
|
|
1037
1029
|
ChangeRecordDialogsShow(FormDataid, templateKey) {
|