-
+
@@ -68,16 +68,16 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -318,26 +318,34 @@ export default {
sexDictDatas: getDictDatas(DICT_TYPE.DICT_SYS_USER_SEX),
cusBusiTypeDictDatas: getDictDatas(DICT_TYPE.DICT_CUS_BUSI_TYPE),
buttonLoading: false,
+ dialogLoading: null,
}
},
methods: {
async open(data) {
- this.reset()
- if (data?.userInfo?.id){
- this.formData.userInfo = {
- ...this.formData.userInfo,
- ...data.userInfo
- }
- }
- if (data?.carInfo?.id){
- this.formData.carInfo = {
- ...this.formData.carInfo,
- ...data.carInfo,
- brandAndModel: [data.carInfo?.carBrand, data.carInfo?.carModel]
- }
- }
- await this.listLevel()
this.dialogVisible = true
+ try {
+ this.reset()
+ // this.dialogLoading = this.$loading({
+ // target: this.$refs.dialogRef.$el
+ // })
+ if (data?.userInfo?.id){
+ this.formData.userInfo = {
+ ...this.formData.userInfo,
+ ...data.userInfo
+ }
+ }
+ if (data?.carInfo?.id){
+ this.formData.carInfo = {
+ ...this.formData.carInfo,
+ ...data.carInfo,
+ brandAndModel: [data.carInfo?.carBrand, data.carInfo?.carModel]
+ }
+ }
+ // await this.listLevel()
+ }finally {
+ // this.dialogLoading.close()
+ }
},
async compute(){
this.buttonLoading = true