CD配唱片
2025-04-28 05ccb2e972f245456f6ec247a4e06443fd1e7114
提交i18n
已修改5个文件
已添加3个文件
34 ■■■■ 文件已修改
package.json 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/i18n/index.js 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/i18n/locales/en.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/i18n/locales/zh.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mainPlan/gasPlanning/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mainPlan/gasProduceStatics/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mainPlan/pipeProduceStatics/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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",
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')
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
src/utils/i18n/locales/en.json
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
{
}
src/utils/i18n/locales/zh.json
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,3 @@
{
}
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"
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);
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);