Browse Source

fix:"添加一些时区,优化退款提醒功能"

soobin 10 months ago
parent
commit
8e2ee02250

+ 13 - 8
src/components/commom/kTimezone/index.vue

@@ -2,7 +2,7 @@
     <!-- 时区弹窗 -->
     <van-popup v-model:show="timezonePopshow" round position="bottom">
         <van-cascader @close="timezonePopshow = false" v-model="cascaderValue" :title="$t('kTimezone.selectTimezone')"
-            :options="options" @finish="onFinish"/>
+            :options="options" @finish="onFinish" />
     </van-popup>
 </template>
 
@@ -26,13 +26,18 @@ export default {
         };
 
         const options = ref([
-            { text: '上海', value: 'Asia/Shanghai' },
-            { text: '東京', value: 'Asia/Tokyo' },
-            { text: 'NewYork', value: 'America/New_York' },
-            { text: 'Paris', value: 'Europe/Paris' },
-            { text: 'London', value: 'Europe/London' },
-            { text: 'Madrid', value: 'Europe/Madrid' },
-            { text: 'São Paulo', value: 'America/Sao_Paulo' },
+            { text: '上海(UTC+8)', value: 'Asia/Shanghai' },
+            { text: '東京(UTC+9)', value: 'Asia/Tokyo' },
+            { text: 'NewYork(UTC-5)', value: 'America/New_York' },
+            { text: 'Paris(UTC+1)', value: 'Europe/Paris' },
+            { text: 'London(UTC+0)', value: 'Europe/London' },
+            { text: 'Madrid(UTC+1)', value: 'Europe/Madrid' },
+            { text: 'São Paulo(UTC-3)', value: 'America/Sao_Paulo' },
+            { text: 'Vancouver(UTC-8)', value: 'America/Vancouver' },
+            { text: 'Edmonton(UTC-7)', value: 'America/Edmonton' },
+            { text: 'Winnipeg(UTC-6)', value: 'America/Winnipeg' },
+            { text: 'Toronto(UTC-5)', value: 'America/Toronto' },
+            { text: 'Moncton(UTC-4)', value: 'America/Moncton' }
         ]);
 
 

+ 1 - 41
src/views/commonTools/index.vue

@@ -5,7 +5,7 @@
         <div class="commonToolsBox flex-col">
             <div class="outer11 flex-row">
                 <div class="main25 flex-col" v-for="(item, index) in pushToolList" :key="index"
-                @click="pushToolPage(item.value)">
+                    @click="pushToolPage(item.value)">
                     <img class="mod7 flex-col" :src="showLogo(item.value)" />
                     <div class="TextGroup14 flex-col">
                         <!-- <span class="info15" v-html="item.label"></span> -->
@@ -75,42 +75,12 @@ export default {
             // pushToolList.value = menuList;
             pushToolList.push(...menuList);
 
-            // 查询是否有apk管理权限
-            const isApkMan = user.menuCodeList.some((item) => {
-                return item === "M19";
-            });
 
             // 查询是否有账号权限
             const isAccount = user.menuCodeList.some((item) => {
                 return item === "M8";
             });
 
-            // 查询是否有订单数据权限
-            // isOrderData.value = user.menuCodeList.some((item) => {
-            //     return item === "M4";
-            // })
-
-            // 查询是否有订单导出权限
-            // const isOrderExport = user.menuCodeList.some((item) => {
-            //   return item === "M9";
-            // })
-
-            // 查询是否有数据概览权限
-            // const isDataOverview = user.menuCodeList.some((item) => {
-            //     return item === "M14";
-            // })
-
-            // 如果没有apk管理
-            if (!isApkMan) {
-                // 如果是公司人,要把apk添加上去
-                // if (user.type === 0 || user.type === 1) {
-                //   pushToolList.value.push({
-                //     label: t("home.apkMan"),
-                //     value: "M19"
-                //   });
-                // }
-            }
-
             // 如果没有账号权限
             if (!isAccount) {
                 //  如果是公司人type=0,要把账号权限添加上去
@@ -122,16 +92,6 @@ export default {
                 }
             }
 
-            // 子商家以上级别,默认可以看到订单详情
-            // if (user.type === 0 || user.type === 2) {
-            //     showDataDiv.value = true;
-            // } else {
-            //     // 如果有数据概览权限 和 订单数据权限
-            //     if (isDataOverview && isOrderData.value) {
-            //         showDataDiv.value = true;
-            //     }
-            // }
-
         };
 
         // 常用操作跳转页面

+ 0 - 1
src/views/device/index.vue

@@ -717,7 +717,6 @@ export default {
       })
     };
 
-
     return {
       showAlert,
       ...toRefs(searchParams),

+ 6 - 2
src/views/home/index.vue

@@ -408,7 +408,7 @@ export default {
             xAxis: {
               type: "category",
               axisLabel: {
-                rotate: 45,
+                rotate: 35,
               },
               data: data.data.categories,
             },
@@ -440,9 +440,13 @@ export default {
           };
 
           option.dataZoom[0]["startValue"] =
-            data.data.categories[data.data.categories.length - 5];
+            data.data.categories[data.data.categories.length - 4];
           option.dataZoom[0]["endValue"] =
             data.data.categories[data.data.categories.length - 1];
+          // option.dataZoom[0].start =
+          //   (data.data.categories.length - 5) * 10;
+          // option.dataZoom[0].end =
+          //   (data.data.categories.length - 1) * 10;
           chartObj && chartObj.setOption(option);
           //图形宽度随屏幕宽度改变而改变
           window.onresize = chartObj.resize;

+ 1 - 0
src/views/orderCenter/index.vue

@@ -455,6 +455,7 @@ export default {
       const params = {
         id: row.id,
         customerPhone: customerPhone.value,
+        adminId: user.id,
       }
       showConfirmDialog({
         message: '是否确认发送短信?',