Pārlūkot izejas kodu

店铺logo上传异常问题,修复控制台异常报错

yjwang 1 mēnesi atpakaļ
vecāks
revīzija
d2344be745
1 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  1. 8 3
      src/views/store/storeConfig/userInfo.vue

+ 8 - 3
src/views/store/storeConfig/userInfo.vue

@@ -329,13 +329,13 @@
       <el-row>
         <el-col :span="12">
           <el-form-item label="状态">
-            <el-radio-group v-model="form.status">
+            <el-radio-group v-model="form.status" disabled>
               <el-radio
                 v-for="dict in statusOptions"
                 :key="dict.dictValue"
                 :label="parseInt(dict.dictValue)"
               >{{dict.dictLabel}}</el-radio>
-            </el-radio-group disabled>
+            </el-radio-group>
           </el-form-item>
         </el-col>
         <el-col :span="12">
@@ -374,6 +374,8 @@ export default {
   data() {
 
     return {
+      title:'',
+      statusOptions: [],
       citys: [],
       medicalMallConfig: {},
       shippingTypeOptions: [{
@@ -500,12 +502,15 @@ export default {
         this.medicalMallConfig = JSON.parse(response.data.configValue)
       }
     })
+    this.getDicts("sys_company_status").then(response => {
+      this.statusOptions = response.data;
+    });
   },
   methods: {
 
     handleAvatarSuccess(res, file) {
       if (res.code == 200) {
-        this.user.logoUrl = res.url
+        this.form.logoUrl = res.url
         self.$forceUpdate()
       } else {
         this.msgError(res.msg)