From 05ccb2e972f245456f6ec247a4e06443fd1e7114 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期一, 28 四月 2025 14:21:58 +0800
Subject: [PATCH] 提交i18n

---
 src/views/mainPlan/pipeProduceStatics/index.vue |    2 ++
 src/utils/i18n/locales/en.json                  |    3 +++
 src/views/mainPlan/gasPlanning/index.vue        |    2 +-
 src/main.js                                     |    3 ++-
 package.json                                    |    5 +++--
 src/utils/i18n/locales/zh.json                  |    3 +++
 src/views/mainPlan/gasProduceStatics/index.vue  |    2 ++
 src/utils/i18n/index.js                         |   14 ++++++++++++++
 8 files changed, 30 insertions(+), 4 deletions(-)

diff --git a/package.json b/package.json
index c43b476..5d3a564 100644
--- a/package.json
+++ b/package.json
@@ -34,12 +34,13 @@
     "splitpanes": "3.1.5",
     "vue": "3.4.31",
     "vue-cropper": "1.1.1",
+    "vue-i18n": "^12.0.0-alpha.2",
     "vue-router": "4.4.0",
     "vuedraggable": "4.1.0",
     "vxe-pc-ui": "4.5.15",
-    "xlsx": "^0.18.5",
     "vxe-table": "^4.13.8",
-    "xe-utils": "^3.7.4"
+    "xe-utils": "^3.7.4",
+    "xlsx": "^0.18.5"
   },
   "devDependencies": {
     "@vitejs/plugin-vue": "5.0.5",
diff --git a/src/main.js b/src/main.js
index 3177e06..8ed84c8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -47,7 +47,7 @@
 import 'vxe-pc-ui/lib/style.css'
 import VxeUITable from 'vxe-table'
 import 'vxe-table/lib/style.css'
-
+import i18n from '@/utils/i18n' // 寮曞叆 i18n 閰嶇疆鏂囦欢
 
 const app = createApp(App)
 
@@ -86,4 +86,5 @@
 })
 app.use(VxeUIAll)
 app.use(VxeUITable)
+app.use(i18n)
 app.mount('#app')
diff --git a/src/utils/i18n/index.js b/src/utils/i18n/index.js
new file mode 100644
index 0000000..d70138c
--- /dev/null
+++ b/src/utils/i18n/index.js
@@ -0,0 +1,14 @@
+// i18n.js 鎴栫被浼肩殑閰嶇疆鏂囦欢
+import { createI18n } from 'vue-i18n'
+import en from './locales/en.json' // 鑻辨枃璇█鍖�
+import zh from './locales/zh.json' // 涓枃璇█鍖�
+ 
+const i18n = createI18n({
+  locale: 'en', // 璁剧疆榛樿璇█涓鸿嫳鏂�
+  messages: {
+    en,
+    zh,
+  },
+})
+ 
+export default i18n
\ No newline at end of file
diff --git a/src/utils/i18n/locales/en.json b/src/utils/i18n/locales/en.json
new file mode 100644
index 0000000..544b7b4
--- /dev/null
+++ b/src/utils/i18n/locales/en.json
@@ -0,0 +1,3 @@
+{
+    
+}
\ No newline at end of file
diff --git a/src/utils/i18n/locales/zh.json b/src/utils/i18n/locales/zh.json
new file mode 100644
index 0000000..544b7b4
--- /dev/null
+++ b/src/utils/i18n/locales/zh.json
@@ -0,0 +1,3 @@
+{
+    
+}
\ No newline at end of file
diff --git a/src/views/mainPlan/gasPlanning/index.vue b/src/views/mainPlan/gasPlanning/index.vue
index 33b6b60..89ff416 100644
--- a/src/views/mainPlan/gasPlanning/index.vue
+++ b/src/views/mainPlan/gasPlanning/index.vue
@@ -309,7 +309,7 @@
           :data="gasPlanList"
           @cell-click="cellClickEventGas"
         >
-          <vxe-column field="processName" title="鏍囧噯宸ュ簭鍚嶇О" min-width="150">
+          <vxe-column field="processName" title="鏍囧噯宸ュ簭鍚嶇О" min-width="150" fixed="left">
           </vxe-column>
           <vxe-column
             field="dayProduceType"
diff --git a/src/views/mainPlan/gasProduceStatics/index.vue b/src/views/mainPlan/gasProduceStatics/index.vue
index 2952384..00fb5b5 100644
--- a/src/views/mainPlan/gasProduceStatics/index.vue
+++ b/src/views/mainPlan/gasProduceStatics/index.vue
@@ -59,6 +59,7 @@
           icon="Download"
           @click="handleExport"
           v-hasPermi="['aps:apsGasPipingRouteStat:exportExcel']"
+          :disabled="loading"
           >瀵煎嚭</el-button
         >
       </el-col>
@@ -275,6 +276,7 @@
           // item[`resourceName`] = flag
           //   ? `<div class='el-badge'><sup class="el-badge__content is-fixed is-dot"></sup>${key}</div>`
           //   : key;
+          item[`resourceName`] = key;
         }
         exportData.value.push(data);
         dataList.push(item);
diff --git a/src/views/mainPlan/pipeProduceStatics/index.vue b/src/views/mainPlan/pipeProduceStatics/index.vue
index 49b0121..0a78dd0 100644
--- a/src/views/mainPlan/pipeProduceStatics/index.vue
+++ b/src/views/mainPlan/pipeProduceStatics/index.vue
@@ -69,6 +69,7 @@
           icon="Refresh"
           @click="handleRefresh"
           v-hasPermi="['aps:apsGasPipingRouteStat:computeCapacity']"
+          :disabled="loading"
           >鏇存柊</el-button
         >
       </el-col>
@@ -290,6 +291,7 @@
           // item[`resourceName`] = flag
           //   ? `<div class='el-badge'><sup class="el-badge__content is-fixed is-dot"></sup>${key}</div>`
           //   : key;
+          item[`resourceName`] = key
         }
         exportData.value.push(data);
         dataList.push(item);

--
Gitblit v1.9.3