浏览代码

增加endate国际协调时间

吴sir 2 月之前
父节点
当前提交
24c360a52e

+ 0 - 3
.env.development

@@ -1,3 +0,0 @@
-# 开发环境
-VITE_API_URL=http://sim.nanodreamtech.com
-VITE_ENV=development

+ 0 - 3
.env.production

@@ -1,3 +0,0 @@
-# 生产环境api
-VITE_API_URL=http://sim.ainets.net
-VITE_ENV=production

+ 1 - 1
src/utils/axios.js

@@ -125,7 +125,7 @@ function DataViewsProvider(data) {
   if (!Array.isArray(data)) return data
 
   if (data && data.records) {
-    return { ...data, records: data.records.map(item => ({ ...item, createdAt: timeLoadTemeYear(item.createdAt || false), updatedAt: timeLoadTemeYear(item.updatedAt || false) })) }
+    return { ...data, records: data.records.map(item => ({ ...item, createdAt: timeLoadTemeYear(item.createdAt || false), updatedAt: timeLoadTemeYear(item.updatedAt || false) ,endDate: timeLoadTemeYear(item.endDate || false) })) }
   }else{
     return data.map(item => ({...item, createdAt: timeLoadTemeYear(item.createdAt || false), updatedAt: timeLoadTemeYear(item.updatedAt || false) }))
   }

+ 2 - 2
src/views/admin/order/BuyCard/index.vue

@@ -35,8 +35,8 @@
             }}</a-button>
           <a-button @click="openPriceing(record)" type="text" v-if="record.moderationStatus == 2 ">{{
             $t('order.UploadAmount') }}</a-button>
-          <a-button @click="openEndDate(record)" type="text" v-if=" record.moderationStatus == 2">{{
-            $t('order.ChangeValidity') }}</a-button>
+          <!-- <a-button @click="openEndDate(record)" type="text" v-if=" record.moderationStatus == 2">{{
+            $t('order.ChangeValidity') }}</a-button> -->
           <a-button @click="openDetail(record)" type="text">{{ $t('order.view') }}</a-button>
         </div>
       </template>

+ 1 - 1
src/views/admin/tariffManagement/Management/add.vue

@@ -229,7 +229,7 @@ const handleSubmit = ({ values, errors }) => {
             formVal.simDataPlanId = String(values.simDataPlanId)
             formVal.simDataPlanId = String(values.simDataPlanId)
             formVal.pricing = Number(values.pricing)
-
+            formVal.oldPricing = Number(values.oldPricing)
             if (typeIndexSet.value === 2) {
                 const { code, data } = await updateTariff(formVal)
 

+ 2 - 2
vite.config.js

@@ -65,8 +65,8 @@ export default defineConfig(({ command, mode }) => {
             hmr: true,
             proxy: {
                 "/api": {
-                    target:"https://sim.nanodreamtech.com",
-                    // target: "http://127.0.0.1:3001",
+                    // target:"https://sim.nanodreamtech.com",
+                    target: "http://192.168.0.78:3001",
                     // target: process.env.VITE_DEV_TYPE == 0 ? "http://sim.ainets.net" : "https://flexi.flexistream.link",
                     changeOrigin: true,
                     ws: true,