cloud-web-corejs 1.0.54-dev.625 → 1.0.54-dev.627
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/xform/form-designer/designer.js +1993 -9
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +104 -62
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +102 -36
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +68 -24
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +213 -179
- package/src/components/xform/utils/util.js +7 -1
- package/src/views/user/user/edit.vue +18 -15
|
@@ -694,6 +694,8 @@ export const columnFormatMap = {
|
|
|
694
694
|
text: "text",
|
|
695
695
|
checkbox: "checkbox",
|
|
696
696
|
radio: "radio",
|
|
697
|
+
dropdown: "dropdown",
|
|
698
|
+
textarea: "textarea",
|
|
697
699
|
};
|
|
698
700
|
|
|
699
701
|
export function getFieldWidgetById(widgetList, fieldId, staticWidgetsIncluded) {
|
|
@@ -876,7 +878,11 @@ export function buildDefaultFormJson() {
|
|
|
876
878
|
export function cloneFormConfigWithoutEventHandler(e) {
|
|
877
879
|
var t = deepClone(e);
|
|
878
880
|
return (
|
|
879
|
-
(t.onFormCreated = ""),
|
|
881
|
+
(t.onFormCreated = ""),
|
|
882
|
+
(t.onFormBeforeMounted = ""),
|
|
883
|
+
(t.onFormMounted = ""),
|
|
884
|
+
(t.onFormDataChange = ""),
|
|
885
|
+
t
|
|
880
886
|
);
|
|
881
887
|
}
|
|
882
888
|
|
|
@@ -632,7 +632,7 @@ export default {
|
|
|
632
632
|
storageType: "user",
|
|
633
633
|
data: () => {
|
|
634
634
|
this.handleData();
|
|
635
|
-
return this.
|
|
635
|
+
return this.getReqFormData();
|
|
636
636
|
},
|
|
637
637
|
chooseConfirm: (tempStorageData) => {
|
|
638
638
|
this.user = tempStorageData;
|
|
@@ -696,6 +696,22 @@ export default {
|
|
|
696
696
|
this.showExtendedProperties = true;
|
|
697
697
|
}
|
|
698
698
|
},
|
|
699
|
+
getReqFormData() {
|
|
700
|
+
let userCompanyInfoDTOs = this.user.userCompanyInfoDTOs.map((item) => {
|
|
701
|
+
return {
|
|
702
|
+
...item,
|
|
703
|
+
saleOrgGridOption: null,
|
|
704
|
+
roleGridOption: null,
|
|
705
|
+
saleOrgData: null,
|
|
706
|
+
roleData: null,
|
|
707
|
+
};
|
|
708
|
+
});
|
|
709
|
+
let formData = {
|
|
710
|
+
...this.user,
|
|
711
|
+
userCompanyInfoDTOs,
|
|
712
|
+
};
|
|
713
|
+
return formData;
|
|
714
|
+
},
|
|
699
715
|
saveData() {
|
|
700
716
|
let companyCode = this.companyInfo.companyCode;
|
|
701
717
|
this.handleData();
|
|
@@ -718,20 +734,7 @@ export default {
|
|
|
718
734
|
if (valid) {
|
|
719
735
|
this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
|
|
720
736
|
var url = USER_PREFIX + (this.isEdit ? "/user/update" : "/user/save");
|
|
721
|
-
let
|
|
722
|
-
return {
|
|
723
|
-
...item,
|
|
724
|
-
saleOrgGridOption: null,
|
|
725
|
-
roleGridOption: null,
|
|
726
|
-
saleOrgData: null,
|
|
727
|
-
roleData: null,
|
|
728
|
-
};
|
|
729
|
-
});
|
|
730
|
-
let formData = {
|
|
731
|
-
...this.user,
|
|
732
|
-
userCompanyInfoDTOs,
|
|
733
|
-
};
|
|
734
|
-
|
|
737
|
+
let formData = this.getReqFormData();
|
|
735
738
|
this.$http({
|
|
736
739
|
url: url,
|
|
737
740
|
method: `post`,
|