cloud-web-corejs 1.0.54-dev.625 → 1.0.54-dev.626
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/views/user/user/edit.vue +18 -15
package/package.json
CHANGED
|
@@ -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`,
|