three-trees-ui 1.0.32 → 1.0.34
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 +70 -59
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +70 -59
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/CustomDialog/src/customDialog.vue +10 -3
- package/packages/CustomDialog/src/main.vue +2 -1
- package/src/mixins/onlineSubtable.js +6 -0
package/package.json
CHANGED
|
@@ -527,6 +527,7 @@
|
|
|
527
527
|
executeScriptResult: null,
|
|
528
528
|
customDialogParams: {},
|
|
529
529
|
treeDialogConfig: null,
|
|
530
|
+
isPreview: false,
|
|
530
531
|
}
|
|
531
532
|
},
|
|
532
533
|
computed: {
|
|
@@ -608,7 +609,8 @@
|
|
|
608
609
|
})
|
|
609
610
|
return ids.join(',')
|
|
610
611
|
},
|
|
611
|
-
showDialog(isMounted = false) {
|
|
612
|
+
showDialog(isMounted = false, isPreview = false) {
|
|
613
|
+
this.isPreview = isPreview
|
|
612
614
|
this.fixedParams = {}
|
|
613
615
|
// 如果已存在配置信息就不去请求配置信息 直接初始化数据
|
|
614
616
|
if (this.dialogConfig) {
|
|
@@ -1122,8 +1124,12 @@
|
|
|
1122
1124
|
let flag = false
|
|
1123
1125
|
if (this.queryParams.length != 0 && this.queryParams[0] != '') {
|
|
1124
1126
|
this.conditionBind.forEach((item, index) => {
|
|
1125
|
-
if (
|
|
1126
|
-
|
|
1127
|
+
if (
|
|
1128
|
+
item.isRequire == 1 &&
|
|
1129
|
+
!this.queryParams[index][item.field] &&
|
|
1130
|
+
!this.isPreview
|
|
1131
|
+
) {
|
|
1132
|
+
!flag && this.$message.error(`${item.comment}必填`)
|
|
1127
1133
|
flag = true
|
|
1128
1134
|
return
|
|
1129
1135
|
}
|
|
@@ -1161,6 +1167,7 @@
|
|
|
1161
1167
|
}
|
|
1162
1168
|
})
|
|
1163
1169
|
}
|
|
1170
|
+
this.isPreview = false
|
|
1164
1171
|
if (flag) {
|
|
1165
1172
|
return
|
|
1166
1173
|
}
|
|
@@ -412,7 +412,8 @@
|
|
|
412
412
|
if (this.isMobile) {
|
|
413
413
|
this.$refs.customMobileDialogRef.showDialog()
|
|
414
414
|
} else {
|
|
415
|
-
|
|
415
|
+
// 第二个参数是为了处理点击预览按钮时,不立即触发必传验证提示
|
|
416
|
+
this.$refs.customDialogRef.showDialog(false, true)
|
|
416
417
|
}
|
|
417
418
|
},
|
|
418
419
|
removeSelectOrg(item) {
|
|
@@ -25,6 +25,12 @@ export default {
|
|
|
25
25
|
return SubPagination.getPageOffset(datapath, this)
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
+
// 是否为待办单
|
|
29
|
+
isTodoForm() {
|
|
30
|
+
const types = ['MyDelegate', 'done', 'LeaderDone', 'request']
|
|
31
|
+
const type = this.$route.query.type || ''
|
|
32
|
+
return types.includes(type) || this.$route.query.readId
|
|
33
|
+
},
|
|
28
34
|
},
|
|
29
35
|
mounted() {
|
|
30
36
|
// 如果当前表单的element为Comment说明表单加载失败了。
|