cloud-web-corejs 1.0.54-dev.252 → 1.0.54-dev.254
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/package.json +1 -1
- package/src/components/table/index.js +1034 -1
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +121 -57
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -3
- package/src/components/xform/form-render/container-item/data-table-item.vue +51 -37
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2371 -1
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +36 -9
- package/src/components/xform/mixins/defaultHandle.js +322 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -172
- package/src/components/xform/utils/validators.js +133 -4
- package/src/utils/vab.js +6 -2
@@ -59,6 +59,7 @@
|
|
59
59
|
<importDialog v-if="showImportDialog" :visiable.sync="showImportDialog" :param="importDialogOption"
|
60
60
|
:parentTarget="_self"></importDialog>
|
61
61
|
<formDrawer v-if="showFormDrawer" :visiable.sync="showFormDrawer" :option="formDrawerOption"></formDrawer>
|
62
|
+
<fileReferenceDialog v-if="showFileReferenceDialog" :visiable.sync="showFileReferenceDialog" :option="fileReferenceDialogOption"></fileReferenceDialog>
|
62
63
|
</div>
|
63
64
|
</template>
|
64
65
|
|
@@ -76,7 +77,9 @@ export default {
|
|
76
77
|
searchFormDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/searchFormDialog.vue"),
|
77
78
|
formDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/formDialog.vue"),
|
78
79
|
importDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/importDialog.vue"),
|
79
|
-
formDrawer: () => import("../../../components/xform/form-designer/form-widget/dialog/formDrawer.vue")
|
80
|
+
formDrawer: () => import("../../../components/xform/form-designer/form-widget/dialog/formDrawer.vue"),
|
81
|
+
fileReferenceDialog: () => import("../../../components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue")
|
82
|
+
|
80
83
|
},
|
81
84
|
mixins: [indexMixin],
|
82
85
|
};
|
@@ -190,7 +190,10 @@ modules = {
|
|
190
190
|
bdService: null,
|
191
191
|
globalParam: {},
|
192
192
|
widgetEditOnWf: null,
|
193
|
-
wfModifyEnabled: false
|
193
|
+
wfModifyEnabled: false,
|
194
|
+
|
195
|
+
fileReferenceDialogOption: null,
|
196
|
+
showFileReferenceDialog:false,
|
194
197
|
};
|
195
198
|
},
|
196
199
|
computed: {
|
@@ -549,8 +552,7 @@ modules = {
|
|
549
552
|
this.hanldeWfWidgetNew1(widget)
|
550
553
|
if (wfInfo.taskStep == "9999") {
|
551
554
|
this.hanldeWfWidgetItemNew(widget)
|
552
|
-
}
|
553
|
-
else if (toModify) {
|
555
|
+
} else if (toModify) {
|
554
556
|
//后台返回流程可以修改单据
|
555
557
|
//设置组件的特定流程节点的可编辑,仅显示,隐藏
|
556
558
|
if (taskDefinitionKey) {
|
@@ -2391,12 +2393,28 @@ modules = {
|
|
2391
2393
|
}
|
2392
2394
|
},
|
2393
2395
|
validate(callback) {
|
2394
|
-
this.$refs['renderForm'].$baseValidate(valid => {
|
2395
|
-
|
2396
|
-
|
2397
|
-
|
2396
|
+
this.$refs['renderForm'].$baseValidate((valid, obj) => {
|
2397
|
+
if (!valid) {
|
2398
|
+
let message = null
|
2399
|
+
let keys = Object.keys(obj);
|
2400
|
+
if (keys.length) {
|
2401
|
+
let item = obj[keys[0]];
|
2402
|
+
if (item && item.length) {
|
2403
|
+
message = item[0].message;
|
2404
|
+
}
|
2405
|
+
}
|
2406
|
+
if (!message) {
|
2407
|
+
message = this.$t2("必填项不能为空", "system.message.required");
|
2408
|
+
}
|
2409
|
+
|
2410
|
+
this.$message({
|
2411
|
+
message: message,
|
2412
|
+
type: "error",
|
2413
|
+
duration: 2000,
|
2414
|
+
});
|
2415
|
+
}
|
2398
2416
|
callback && callback(valid);
|
2399
|
-
})
|
2417
|
+
}, {errorTip: false})
|
2400
2418
|
},
|
2401
2419
|
/*scrollToFirstError() {
|
2402
2420
|
// 获取第一个验证失败的字段
|
@@ -2465,7 +2483,16 @@ modules = {
|
|
2465
2483
|
this.formDrawerOption.confirm && this.formDrawerOption.confirm()
|
2466
2484
|
},
|
2467
2485
|
|
2468
|
-
|
2486
|
+
openFileReferenceDialog(option) {
|
2487
|
+
this.fileReferenceDialogOption = option;
|
2488
|
+
this.showFileReferenceDialog = true;
|
2489
|
+
},
|
2490
|
+
confirmFileReferenceDialog() {
|
2491
|
+
this.fileReferenceDialogOption.confirm && this.fileReferenceDialogOption.confirm()
|
2492
|
+
},
|
2493
|
+
getFormRef(){
|
2494
|
+
return this;
|
2495
|
+
}
|
2469
2496
|
}
|
2470
2497
|
};
|
2471
2498
|
|