three-trees-ui 1.0.13 → 1.0.15
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 +165 -109
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +165 -109
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/CustomDialog/src/customDialog.vue +17 -4
- package/packages/CustomDialog/src/customMobileDialog.vue +19 -8
- package/packages/CustomDialog/src/main.vue +53 -3
package/package.json
CHANGED
|
@@ -1013,8 +1013,14 @@
|
|
|
1013
1013
|
(this.modelName.includes('item.') &&
|
|
1014
1014
|
con['target'][0].endsWith(this.modelName.split('.')[1])))
|
|
1015
1015
|
) {
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
let jumpParamKey = this.jumpParamKey
|
|
1017
|
+
let jumpParamValue = this.jumpParamKey
|
|
1018
|
+
if (this.jumpParamKey.includes(':')) {
|
|
1019
|
+
jumpParamKey = this.jumpParamKey.split(':')[0]
|
|
1020
|
+
jumpParamValue = this.jumpParamKey.split(':')[1]
|
|
1021
|
+
}
|
|
1022
|
+
val += `${item[con.from]}¯${jumpParamKey}:${
|
|
1023
|
+
this.selectOrgs[index][jumpParamValue]
|
|
1018
1024
|
},`
|
|
1019
1025
|
} else {
|
|
1020
1026
|
val += item[con.from] + ','
|
|
@@ -1676,15 +1682,22 @@
|
|
|
1676
1682
|
(this.modelName.includes('item.') &&
|
|
1677
1683
|
con['target'][0].endsWith(this.modelName.split('.')[1])))
|
|
1678
1684
|
) {
|
|
1685
|
+
// 如果有冒号 冒号前面是传值key 后面是取值key
|
|
1686
|
+
let jumpParamKey = this.jumpParamKey
|
|
1687
|
+
let jumpParamValue = this.jumpParamKey
|
|
1688
|
+
if (this.jumpParamKey.includes(':')) {
|
|
1689
|
+
jumpParamKey = this.jumpParamKey.split(':')[0]
|
|
1690
|
+
jumpParamValue = this.jumpParamKey.split(':')[1]
|
|
1691
|
+
}
|
|
1679
1692
|
// 需根据key 找到对应 返回数据的返回名称
|
|
1680
1693
|
let returnMap = returnStr.find((k) => {
|
|
1681
1694
|
return (
|
|
1682
|
-
k.field.toLowerCase() ==
|
|
1695
|
+
k.field.toLowerCase() == jumpParamValue.toLowerCase()
|
|
1683
1696
|
)
|
|
1684
1697
|
})
|
|
1685
1698
|
let returnMapKey = returnMap ? returnMap.comment : ''
|
|
1686
1699
|
val += `${decodeURIComponent(item[from])}¯${
|
|
1687
|
-
|
|
1700
|
+
jumpParamKey
|
|
1688
1701
|
}:${decodeURIComponent(item[returnMapKey])},`
|
|
1689
1702
|
} else {
|
|
1690
1703
|
val += decodeURIComponent(item[from]) + ','
|
|
@@ -936,8 +936,15 @@
|
|
|
936
936
|
(this.modelName.includes('item.') &&
|
|
937
937
|
con['target'][0].endsWith(this.modelName.split('.')[1])))
|
|
938
938
|
) {
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
// 如果有冒号 冒号前面是传值key 后面是取值key
|
|
940
|
+
let jumpParamKey = this.jumpParamKey
|
|
941
|
+
let jumpParamValue = this.jumpParamKey
|
|
942
|
+
if (this.jumpParamKey.includes(':')) {
|
|
943
|
+
jumpParamKey = this.jumpParamKey.split(':')[0]
|
|
944
|
+
jumpParamValue = this.jumpParamKey.split(':')[1]
|
|
945
|
+
}
|
|
946
|
+
val += `${item[con.from]}¯${jumpParamKey}:${
|
|
947
|
+
this.selectOrgs[index][jumpParamValue]
|
|
941
948
|
},`
|
|
942
949
|
} else {
|
|
943
950
|
val += item[con.from] + ','
|
|
@@ -1465,16 +1472,20 @@
|
|
|
1465
1472
|
(this.modelName.includes('item.') &&
|
|
1466
1473
|
con['target'][0].endsWith(this.modelName.split('.')[1])))
|
|
1467
1474
|
) {
|
|
1475
|
+
let jumpParamKey = this.jumpParamKey
|
|
1476
|
+
let jumpParamValue = this.jumpParamKey
|
|
1477
|
+
if (this.jumpParamKey.includes(':')) {
|
|
1478
|
+
jumpParamKey = this.jumpParamKey.split(':')[0]
|
|
1479
|
+
jumpParamValue = this.jumpParamKey.split(':')[1]
|
|
1480
|
+
}
|
|
1468
1481
|
// 需根据key 找到对应 返回数据的返回名称
|
|
1469
1482
|
let returnMap = returnStr.find((k) => {
|
|
1470
|
-
return (
|
|
1471
|
-
k.field.toLowerCase() == this.jumpParamKey.toLowerCase()
|
|
1472
|
-
)
|
|
1483
|
+
return k.field.toLowerCase() == jumpParamValue.toLowerCase()
|
|
1473
1484
|
})
|
|
1474
1485
|
let returnMapKey = returnMap ? returnMap.comment : ''
|
|
1475
|
-
val += `${decodeURIComponent(
|
|
1476
|
-
|
|
1477
|
-
}:${decodeURIComponent(item[returnMapKey])},`
|
|
1486
|
+
val += `${decodeURIComponent(
|
|
1487
|
+
item[from]
|
|
1488
|
+
)}¯${jumpParamKey}:${decodeURIComponent(item[returnMapKey])},`
|
|
1478
1489
|
} else {
|
|
1479
1490
|
val += decodeURIComponent(item[from]) + ','
|
|
1480
1491
|
}
|
|
@@ -144,6 +144,29 @@
|
|
|
144
144
|
<slot name="labeldesc">{{ inputName }}</slot>
|
|
145
145
|
</span>
|
|
146
146
|
<ht-field-tail :field-name="inputName" :input-value="value" />
|
|
147
|
+
<el-dialog
|
|
148
|
+
title="表单详情"
|
|
149
|
+
:visible.sync="isDialogFormShow"
|
|
150
|
+
v-if="isDialogFormShow"
|
|
151
|
+
width="100%"
|
|
152
|
+
custom-class="custom-dialog-form"
|
|
153
|
+
fullscreen
|
|
154
|
+
append-to-body
|
|
155
|
+
>
|
|
156
|
+
<div class="iframe-box">
|
|
157
|
+
<iframe
|
|
158
|
+
:src="mobileSrc"
|
|
159
|
+
width="100%"
|
|
160
|
+
frameborder="0"
|
|
161
|
+
style="height: 100%;"
|
|
162
|
+
></iframe>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="custom-dialog-form_footer">
|
|
165
|
+
<el-button size="smal" @click="isDialogFormShow = false">
|
|
166
|
+
关闭
|
|
167
|
+
</el-button>
|
|
168
|
+
</div>
|
|
169
|
+
</el-dialog>
|
|
147
170
|
</div>
|
|
148
171
|
</template>
|
|
149
172
|
<script>
|
|
@@ -182,6 +205,8 @@
|
|
|
182
205
|
},
|
|
183
206
|
data() {
|
|
184
207
|
return {
|
|
208
|
+
mobileSrc: '',
|
|
209
|
+
isDialogFormShow: false,
|
|
185
210
|
dialogConfig: null, // 对话框配置信息
|
|
186
211
|
isEditInputShow: false,
|
|
187
212
|
customValue: '',
|
|
@@ -316,7 +341,12 @@
|
|
|
316
341
|
} else {
|
|
317
342
|
endUrl += `&bnsToken=${token}&${item.jumpParamKey}=${item.jumpParamValue}`
|
|
318
343
|
}
|
|
319
|
-
|
|
344
|
+
if (this.isMobile) {
|
|
345
|
+
this.mobileSrc = endUrl
|
|
346
|
+
this.isDialogFormShow = true
|
|
347
|
+
} else {
|
|
348
|
+
window.open(endUrl)
|
|
349
|
+
}
|
|
320
350
|
} else {
|
|
321
351
|
this.$message.info(res.message || '获取token失败!')
|
|
322
352
|
}
|
|
@@ -484,7 +514,7 @@
|
|
|
484
514
|
overflow-y: auto;
|
|
485
515
|
}
|
|
486
516
|
@media (max-width: 1280px) {
|
|
487
|
-
.el-dialog {
|
|
517
|
+
.el-dialog:not(.custom-dialog-form) {
|
|
488
518
|
width: 96% !important;
|
|
489
519
|
margin-top: 2vh !important;
|
|
490
520
|
}
|
|
@@ -497,7 +527,7 @@
|
|
|
497
527
|
}
|
|
498
528
|
}
|
|
499
529
|
|
|
500
|
-
.el-dialog {
|
|
530
|
+
.el-dialog:not(.custom-dialog-form) {
|
|
501
531
|
height: 90%;
|
|
502
532
|
min-height: 400px;
|
|
503
533
|
}
|
|
@@ -631,4 +661,24 @@
|
|
|
631
661
|
}
|
|
632
662
|
}
|
|
633
663
|
}
|
|
664
|
+
::v-deep .custom-dialog-form {
|
|
665
|
+
.el-dialog__header {
|
|
666
|
+
display: none;
|
|
667
|
+
}
|
|
668
|
+
.el-dialog__body {
|
|
669
|
+
height: 100%;
|
|
670
|
+
display: flex;
|
|
671
|
+
flex-direction: column;
|
|
672
|
+
.iframe-box {
|
|
673
|
+
width: 100%;
|
|
674
|
+
flex: 1;
|
|
675
|
+
overflow: hidden;
|
|
676
|
+
}
|
|
677
|
+
.custom-dialog-form_footer {
|
|
678
|
+
text-align: center;
|
|
679
|
+
margin-top: 10px;
|
|
680
|
+
padding-bottom: 10px;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
634
684
|
</style>
|