diff --git a/.env.development b/.env.development index 2744ed2..38cb478 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ # 页面标题 -VITE_APP_TITLE = 若依管理系统 +VITE_APP_TITLE = 天然气工具平台 # 开发环境配置 VITE_APP_ENV = 'development' -# 若依管理系统/开发环境 +# 天然气工具平台/开发环境 VITE_APP_BASE_API = '/dev-api' diff --git a/.env.production b/.env.production index d857bba..5f720a4 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,10 @@ # 页面标题 -VITE_APP_TITLE = 若依管理系统 +VITE_APP_TITLE = 天然气工具平台 # 生产环境配置 VITE_APP_ENV = 'production' -# 若依管理系统/生产环境 +# 天然气工具平台/生产环境 VITE_APP_BASE_API = '/prod-api' # 是否在打包时开启压缩,支持 gzip 和 brotli diff --git a/.env.staging b/.env.staging index fa7c357..0290f88 100644 --- a/.env.staging +++ b/.env.staging @@ -1,10 +1,10 @@ # 页面标题 -VITE_APP_TITLE = 若依管理系统 +VITE_APP_TITLE = 天然气工具平台 # 生产环境配置 VITE_APP_ENV = 'staging' -# 若依管理系统/生产环境 +# 天然气工具平台/生产环境 VITE_APP_BASE_API = '/stage-api' # 是否在打包时开启压缩,支持 gzip 和 brotli diff --git a/index.html b/index.html index 179579b..6c6f048 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - 若依管理系统 + 天然气工具平台 diff --git a/src/components/NGTools/NGResult.vue b/src/components/NGTools/NGResult.vue new file mode 100644 index 0000000..683543c --- /dev/null +++ b/src/components/NGTools/NGResult.vue @@ -0,0 +1,326 @@ + + + + + diff --git a/src/components/NGTools/meterPar.vue b/src/components/NGTools/meterPar.vue new file mode 100644 index 0000000..8a9b1ae --- /dev/null +++ b/src/components/NGTools/meterPar.vue @@ -0,0 +1,422 @@ + + + + diff --git a/src/components/NGTools/meterResult.vue b/src/components/NGTools/meterResult.vue new file mode 100644 index 0000000..09e3b14 --- /dev/null +++ b/src/components/NGTools/meterResult.vue @@ -0,0 +1,231 @@ + + + + diff --git a/src/components/inputValueUnit/index.vue b/src/components/inputValueUnit/index.vue new file mode 100644 index 0000000..af26c04 --- /dev/null +++ b/src/components/inputValueUnit/index.vue @@ -0,0 +1,482 @@ + + + + + diff --git a/src/views/index.vue b/src/views/index.vue index d221efd..9836bcb 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,1095 +1,117 @@ - - - - - - + + + + + diff --git a/src/views/ngtools/FlowCal/index.vue b/src/views/ngtools/FlowCal/index.vue new file mode 100644 index 0000000..197ffaa --- /dev/null +++ b/src/views/ngtools/FlowCal/index.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/src/views/ngtools/components/index.vue b/src/views/ngtools/components/index.vue new file mode 100644 index 0000000..05768ab --- /dev/null +++ b/src/views/ngtools/components/index.vue @@ -0,0 +1,444 @@ + + + diff --git a/src/views/ngtools/meterpar/index.vue b/src/views/ngtools/meterpar/index.vue new file mode 100644 index 0000000..f21d90f --- /dev/null +++ b/src/views/ngtools/meterpar/index.vue @@ -0,0 +1,815 @@ + + + diff --git a/src/views/ngtools/meterresult/index.vue b/src/views/ngtools/meterresult/index.vue new file mode 100644 index 0000000..a72f245 --- /dev/null +++ b/src/views/ngtools/meterresult/index.vue @@ -0,0 +1,399 @@ + + + diff --git a/src/views/ngtools/ngpar/index.vue b/src/views/ngtools/ngpar/index.vue new file mode 100644 index 0000000..0393727 --- /dev/null +++ b/src/views/ngtools/ngpar/index.vue @@ -0,0 +1,693 @@ + + + diff --git a/src/views/system/sysUnitConvert/index.vue b/src/views/system/sysUnitConvert/index.vue new file mode 100644 index 0000000..b08cb99 --- /dev/null +++ b/src/views/system/sysUnitConvert/index.vue @@ -0,0 +1,265 @@ + + + diff --git a/src/views/system/treeDict/index.vue b/src/views/system/treeDict/index.vue new file mode 100644 index 0000000..31b39cd --- /dev/null +++ b/src/views/system/treeDict/index.vue @@ -0,0 +1,286 @@ + + + diff --git a/vite.config.js b/vite.config.js index 0567692..fb0c068 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,58 +1,64 @@ -import { defineConfig, loadEnv } from 'vite' +import { + defineConfig, + loadEnv +} from 'vite' import path from 'path' import createVitePlugins from './vite/plugins' // https://vitejs.dev/config/ -export default defineConfig(({ mode, command }) => { - const env = loadEnv(mode, process.cwd()) - const { VITE_APP_ENV } = env - return { - // 部署生产环境和开发环境下的URL。 - // 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上 - // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。 - base: VITE_APP_ENV === 'production' ? '/' : '/', - plugins: createVitePlugins(env, command === 'build'), - resolve: { - // https://cn.vitejs.dev/config/#resolve-alias - alias: { - // 设置路径 - '~': path.resolve(__dirname, './'), - // 设置别名 - '@': path.resolve(__dirname, './src') - }, - // https://cn.vitejs.dev/config/#resolve-extensions - extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] - }, - // vite 相关配置 - server: { - port: 80, - host: true, - open: true, - proxy: { - // https://cn.vitejs.dev/config/#server-proxy - '/dev-api': { - target: 'http://localhost:8080', - changeOrigin: true, - rewrite: (p) => p.replace(/^\/dev-api/, '') - } - } - }, - //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file - css: { - postcss: { - plugins: [ - { - postcssPlugin: 'internal:charset-removal', - AtRule: { - charset: (atRule) => { - if (atRule.name === 'charset') { - atRule.remove(); - } - } - } - } - ] - } - } - } -}) +export default defineConfig(({ + mode, + command +}) => { + const env = loadEnv(mode, process.cwd()) + const { + VITE_APP_ENV + } = env + return { + // 部署生产环境和开发环境下的URL。 + // 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上 + // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。 + base: VITE_APP_ENV === 'production' ? '/' : '/', + plugins: createVitePlugins(env, command === 'build'), + resolve: { + // https://cn.vitejs.dev/config/#resolve-alias + alias: { + // 设置路径 + '~': path.resolve(__dirname, './'), + // 设置别名 + '@': path.resolve(__dirname, './src') + }, + // https://cn.vitejs.dev/config/#resolve-extensions + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] + }, + // vite 相关配置 + server: { + port: 80, + host: true, + open: true, + proxy: { + // https://cn.vitejs.dev/config/#server-proxy + '/dev-api': { + target: 'http://192.168.3.246:9090', + changeOrigin: true, + rewrite: (p) => p.replace(/^\/dev-api/, '') + } + } + }, + //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file + css: { + postcss: { + plugins: [{ + postcssPlugin: 'internal:charset-removal', + AtRule: { + charset: (atRule) => { + if (atRule.name === 'charset') { + atRule.remove(); + } + } + } + }] + } + } + } +}) \ No newline at end of file