jiabin 10 месяцев назад
Родитель
Сommit
966443d77d
1 измененных файлов с 9 добавлено и 4 удалено
  1. 9 4
      raycos_datacenter_api/src/main/resources/static/index.html

+ 9 - 4
raycos_datacenter_api/src/main/resources/static/index.html

@@ -45,8 +45,8 @@
 <body>
     <div id="app">
         <div class="container">
-            <div class="form-container">
-                <h1>{{ '授权-沙盒' }}</h1>
+            <div class="form-container" v-if="submitShow">
+                <h1>{{ '亚马逊沙盒环境授权' }}</h1>
                 <el-form :model="AuthorizationForm" :rules="loginRules" ref="AuthorizationFormRef" label-width="120px">
                     <el-form-item label="店铺名称:" prop="storeName">
                         <el-input v-model="AuthorizationForm.storeName" placeholder="卖家自定义,以做区分" clearable></el-input>
@@ -79,10 +79,13 @@
                         </el-checkbox-group>
                     </el-form-item>
                     <el-form-item>
-                        <el-button type="primary" :loading="loading" @click="submit()">确定</el-button>
+                        <el-button type="primary" :loading="loading"  @click="submit()">确定</el-button>
                     </el-form-item>
                 </el-form>
             </div>
+            <div class="form-container" v-else>
+                <h1>{{ '操作成功!' }}</h1>
+            </div>
         </div>
     </div>
 
@@ -101,7 +104,7 @@
                     storeModel: ['1'],
                     checkAll: false,
                 });
-
+                const submitShow = ref(true)
                 const regionList = ref([
                     { label: '美国', value: 'https://sellercentral.amazon.com', cities: ['美国', '加拿大', '墨西哥', '巴西'] },
                     { label: '欧洲', value: 'https://sellercentral-europe.amazon.com ', cities: ['英国', '德国', '法国', '意大利', '西班牙'] },
@@ -171,6 +174,7 @@
                         const authUrl = generateAuthUrl(formData.region, uuid);
                         window.open(authUrl, '_blank');
                         ElMessage.success('提交成功');
+                        submitShow.value=false
                     } else {
                         ElMessage.error(response.data.msg || '提交失败');
                     }
@@ -195,6 +199,7 @@
                 };
 
                 return {
+                    submitShow,
                     AuthorizationForm,
                     regionList,
                     loading,