From 814cad17d825834f24f94d7b8c32cd79900dd43a Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Tue, 9 Sep 2025 14:56:05 +0800 Subject: [PATCH 01/12] 2.2.0 --- env/.env.development | 3 +-- manifest.config.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/env/.env.development b/env/.env.development index f246eb6..a95d8f3 100644 --- a/env/.env.development +++ b/env/.env.development @@ -8,8 +8,7 @@ VITE_SHOW_SOURCEMAP = true #VITE_WEBAPP = 'D://opt//AppUpdateTest' VITE_WEBAPP = '' #VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot' -#VITE_SERVER_BASEURL = 'http://10.96.108.144:8080/jeecg-boot' -VITE_SERVER_BASEURL = 'http://10.75.173.194:8080/jeecg-boot' +VITE_SERVER_BASEURL = 'http://10.96.108.144:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' #VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot' diff --git a/manifest.config.ts b/manifest.config.ts index 4af61d1..c8adea4 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -18,7 +18,7 @@ export default defineManifestConfig({ appid: VITE_UNI_APPID, description: '', versionName: '2.2.0', - versionCode: '20250903', + versionCode: '20250909', transformPx: false, locale: VITE_FALLBACK_LOCALE, // 'zh-Hans' /* 5+App特有相关 */ From aa9da6a821ea86416aabd19a1e711c5eb6e1f085 Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Tue, 9 Sep 2025 14:56:40 +0800 Subject: [PATCH 02/12] 2.2.0 --- src/pages/login/login.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index 272449f..192171f 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -137,12 +137,12 @@ }) } else { /*开发环境 */ - params.captcha = 'app'; + // params.captcha = 'app'; /*生产环境 */ - // params = { - // username: Base64.encode(encodeURIComponent(userName.value)), - // password: Base64.encode(encodeURIComponent(password.value)), - // }; + params = { + username: Base64.encode(encodeURIComponent(userName.value)), + password: Base64.encode(encodeURIComponent(password.value)), + }; } login(params) } From ce9b55751103cd5fbc168137014ed81b30221993 Mon Sep 17 00:00:00 2001 From: liaodeyun Date: Tue, 16 Sep 2025 08:59:06 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=A4=9A=E6=9B=B2=E7=BA=BF=E7=BB=84=E4=BB=B6=20=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=AE=9E=E6=97=B6=E9=87=87=E9=9B=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9E=AC=E6=97=B6=E6=B5=81=E9=87=8F=E7=82=B9=E5=87=BB=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BA=94=E5=88=86=E9=92=9F=E5=AD=98=E7=9B=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E5=8E=86=E5=8F=B2=E8=B6=8B=E5=8A=BF=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/production/index.ts | 8 + .../shishishuju/chart/lssjChart.vue | 613 +++++------------- .../shishishuju/chart/sssjChart.vue | 4 +- src/pages-production/shishishuju/trqSssj.vue | 11 +- .../cxc-szcx-multiLineChart.vue | 36 +- 5 files changed, 187 insertions(+), 485 deletions(-) diff --git a/src/api/production/index.ts b/src/api/production/index.ts index 6eb4093..5159a3d 100644 --- a/src/api/production/index.ts +++ b/src/api/production/index.ts @@ -56,4 +56,12 @@ export function queryJldDataByJldID(params : object) { // 获取计量点五分 method: 'GET', data: params }) +} + +export function queryJldRbDataByJldID(params : object) { // 获取计量点日报数据 + return http({ + url: 'http://10.75.166.6:9999/Gyk/jldls/cxcSssjLssjJldls/getLssjByJldId', + method: 'GET', + data: params + }) } \ No newline at end of file diff --git a/src/pages-production/shishishuju/chart/lssjChart.vue b/src/pages-production/shishishuju/chart/lssjChart.vue index 3b58067..48a128f 100644 --- a/src/pages-production/shishishuju/chart/lssjChart.vue +++ b/src/pages-production/shishishuju/chart/lssjChart.vue @@ -9,499 +9,192 @@ \ No newline at end of file diff --git a/src/pages-production/shishishuju/chart/sssjChart.vue b/src/pages-production/shishishuju/chart/sssjChart.vue index 46e9fcd..f14d010 100644 --- a/src/pages-production/shishishuju/chart/sssjChart.vue +++ b/src/pages-production/shishishuju/chart/sssjChart.vue @@ -42,8 +42,8 @@ - + diff --git a/src/pages-production/shishishuju/trqSssj.vue b/src/pages-production/shishishuju/trqSssj.vue index 534f863..d9b3124 100644 --- a/src/pages-production/shishishuju/trqSssj.vue +++ b/src/pages-production/shishishuju/trqSssj.vue @@ -86,13 +86,13 @@ - - - + - + + + \ No newline at end of file From 312005b3dc3cd76d72abe8958963cff1d4e071ea Mon Sep 17 00:00:00 2001 From: deyun liao Date: Tue, 16 Sep 2025 02:46:39 +0000 Subject: [PATCH 04/12] Update trqSssj.vue --- src/pages-production/shishishuju/trqSssj.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages-production/shishishuju/trqSssj.vue b/src/pages-production/shishishuju/trqSssj.vue index d9b3124..bcc1c20 100644 --- a/src/pages-production/shishishuju/trqSssj.vue +++ b/src/pages-production/shishishuju/trqSssj.vue @@ -204,7 +204,6 @@ }; onMounted(() => { websocketheart() - stationID.value = "1267633458481725442" }) onUnmounted(() => { From f382f2434520f56245cd3600daf6ad45bea4e7f6 Mon Sep 17 00:00:00 2001 From: liaodeyun Date: Tue, 16 Sep 2025 22:39:12 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9pages-production?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=8F=8A=E8=B7=B3=E8=BD=AC=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=AE=9E=E6=97=B6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=80=BB=E6=8F=BD=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=80=BB=E8=A7=88=E5=8D=A1=E7=89=87=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=87=B3=E5=AE=9E=E6=97=B6=E6=95=B0=E6=8D=AE=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E3=80=82=20=E4=BF=AE=E6=94=B9=E4=BA=86tab=E7=BB=8F=E8=90=A5?= =?UTF-8?q?=E5=88=86=E5=8C=85=E5=8F=8A=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dataTimeShow.vue | 61 ++ src/pages-operate/caiwu/index.vue | 22 + src/pages-operate/jingying/index.vue | 22 + src/pages-production/shishishuju/index.vue | 49 +- src/pages-production/shishishuju/trqSssj.vue | 6 +- src/pages.json | 133 ++-- src/pages/operation/index.vue | 116 +++- src/pages/production/index.vue | 4 +- src/pages/production/ribaoshuju/rbsjLsxq.vue | 274 -------- src/pages/production/ribaoshuju/trqRbsj.vue | 633 ------------------ src/pages/production/ribaoshuju/yyRbsj.vue | 317 --------- src/pages/production/shishishuju/aqbjSssj.vue | 8 - src/pages/production/shishishuju/gycsSssj.vue | 8 - src/pages/production/shishishuju/index.vue | 7 - src/pages/production/shishishuju/nyxhSssj.vue | 8 - src/pages/production/shishishuju/trqSssj.vue | 293 -------- src/pages/production/shishishuju/ysjSssj.vue | 8 - src/types/uni-pages.d.ts | 24 +- vite.config.ts | 309 ++++----- 19 files changed, 530 insertions(+), 1772 deletions(-) create mode 100644 src/components/dataTimeShow.vue create mode 100644 src/pages-operate/caiwu/index.vue create mode 100644 src/pages-operate/jingying/index.vue delete mode 100644 src/pages/production/ribaoshuju/rbsjLsxq.vue delete mode 100644 src/pages/production/ribaoshuju/trqRbsj.vue delete mode 100644 src/pages/production/ribaoshuju/yyRbsj.vue delete mode 100644 src/pages/production/shishishuju/aqbjSssj.vue delete mode 100644 src/pages/production/shishishuju/gycsSssj.vue delete mode 100644 src/pages/production/shishishuju/index.vue delete mode 100644 src/pages/production/shishishuju/nyxhSssj.vue delete mode 100644 src/pages/production/shishishuju/trqSssj.vue delete mode 100644 src/pages/production/shishishuju/ysjSssj.vue diff --git a/src/components/dataTimeShow.vue b/src/components/dataTimeShow.vue new file mode 100644 index 0000000..dfb4fad --- /dev/null +++ b/src/components/dataTimeShow.vue @@ -0,0 +1,61 @@ + + + + + \ No newline at end of file diff --git a/src/pages-operate/caiwu/index.vue b/src/pages-operate/caiwu/index.vue new file mode 100644 index 0000000..f6cb4df --- /dev/null +++ b/src/pages-operate/caiwu/index.vue @@ -0,0 +1,22 @@ + + { + layout: 'default', + style: { + navigationStyle: 'custom', + navigationBarTitleText: '计划财务 ', + }, + } + + + + + + \ No newline at end of file diff --git a/src/pages-operate/jingying/index.vue b/src/pages-operate/jingying/index.vue new file mode 100644 index 0000000..4c886a1 --- /dev/null +++ b/src/pages-operate/jingying/index.vue @@ -0,0 +1,22 @@ + + { + layout: 'default', + style: { + navigationStyle: 'custom', + navigationBarTitleText: '经营考核 ', + }, + } + + + + + + \ No newline at end of file diff --git a/src/pages-production/shishishuju/index.vue b/src/pages-production/shishishuju/index.vue index 467da78..7e99fd4 100644 --- a/src/pages-production/shishishuju/index.vue +++ b/src/pages-production/shishishuju/index.vue @@ -1,7 +1,50 @@ + + { + layout: 'default', + style: { + navigationStyle: 'custom', + navigationBarTitleText: '实时数据 ', + }, + } + \ No newline at end of file + import dateTimeShow from '@/components/dataTimeShow.vue' + + function gotoTrqSssj() { + uni.navigateTo({ + url: '/pages-production/shishishuju/trqSssj' + }) + } + + function gotoGdSssj() { + uni.navigateTo({ + url: '/pages-production/shishishuju/trqSssj' + }) + } + + + \ No newline at end of file diff --git a/src/pages-production/shishishuju/trqSssj.vue b/src/pages-production/shishishuju/trqSssj.vue index 755cdbc..3b27660 100644 --- a/src/pages-production/shishishuju/trqSssj.vue +++ b/src/pages-production/shishishuju/trqSssj.vue @@ -3,14 +3,14 @@ layout: 'default', style: { navigationStyle: 'custom', - navigationBarTitleText: '生产数据', + navigationBarTitleText: '天然气实时数据', }, } + + + + \ No newline at end of file diff --git a/src/pages/production/index.vue b/src/pages/production/index.vue index 503b8f4..1019e73 100644 --- a/src/pages/production/index.vue +++ b/src/pages/production/index.vue @@ -49,8 +49,8 @@ //、、东风风光的 import trqData from '@/pages-production/ribaoshuju/trqRbsj'; import yyData from '@/pages-production/ribaoshuju/yyRbsj'; - import sssjData from '@/pages-production/shishishuju/trqSssj'; - const items = ref(['油气实时', '油气历史', '管线运行', '安防监控', '设备运行']) + import sssjData from '@/pages-production/shishishuju/index'; + const items = ref(['实时数据', '日报数据', '安全管理', '工程技术', '仪控设备']) const current = ref(0) const res = wx.getSystemInfoSync(); const statusHeight = res.statusBarHeight; //状态栏高度 diff --git a/src/pages/production/ribaoshuju/rbsjLsxq.vue b/src/pages/production/ribaoshuju/rbsjLsxq.vue deleted file mode 100644 index 8520956..0000000 --- a/src/pages/production/ribaoshuju/rbsjLsxq.vue +++ /dev/null @@ -1,274 +0,0 @@ - - { - layout: 'default', - style: { - navigationStyle: 'custom', - navigationBarTitleText: '历史数据', - }, - } - - - - - - \ No newline at end of file diff --git a/src/pages/production/ribaoshuju/trqRbsj.vue b/src/pages/production/ribaoshuju/trqRbsj.vue deleted file mode 100644 index 9861942..0000000 --- a/src/pages/production/ribaoshuju/trqRbsj.vue +++ /dev/null @@ -1,633 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/production/ribaoshuju/yyRbsj.vue b/src/pages/production/ribaoshuju/yyRbsj.vue deleted file mode 100644 index 94ed949..0000000 --- a/src/pages/production/ribaoshuju/yyRbsj.vue +++ /dev/null @@ -1,317 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/production/shishishuju/aqbjSssj.vue b/src/pages/production/shishishuju/aqbjSssj.vue deleted file mode 100644 index 02409e3..0000000 --- a/src/pages/production/shishishuju/aqbjSssj.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/production/shishishuju/gycsSssj.vue b/src/pages/production/shishishuju/gycsSssj.vue deleted file mode 100644 index 02409e3..0000000 --- a/src/pages/production/shishishuju/gycsSssj.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/production/shishishuju/index.vue b/src/pages/production/shishishuju/index.vue deleted file mode 100644 index 467da78..0000000 --- a/src/pages/production/shishishuju/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - \ No newline at end of file diff --git a/src/pages/production/shishishuju/nyxhSssj.vue b/src/pages/production/shishishuju/nyxhSssj.vue deleted file mode 100644 index 02409e3..0000000 --- a/src/pages/production/shishishuju/nyxhSssj.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/production/shishishuju/trqSssj.vue b/src/pages/production/shishishuju/trqSssj.vue deleted file mode 100644 index b97dc1f..0000000 --- a/src/pages/production/shishishuju/trqSssj.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/production/shishishuju/ysjSssj.vue b/src/pages/production/shishishuju/ysjSssj.vue deleted file mode 100644 index 02409e3..0000000 --- a/src/pages/production/shishishuju/ysjSssj.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts index 7cc9dd7..85d7163 100644 --- a/src/types/uni-pages.d.ts +++ b/src/types/uni-pages.d.ts @@ -19,15 +19,6 @@ interface NavigateToOptions { "/pages/sljd/index" | "/pages/user/people" | "/pages/workHome/index" | - "/pages/production/ribaoshuju/rbsjLsxq" | - "/pages/production/ribaoshuju/trqRbsj" | - "/pages/production/ribaoshuju/yyRbsj" | - "/pages/production/shishishuju/aqbjSssj" | - "/pages/production/shishishuju/gycsSssj" | - "/pages/production/shishishuju/index" | - "/pages/production/shishishuju/nyxhSssj" | - "/pages/production/shishishuju/trqSssj" | - "/pages/production/shishishuju/ysjSssj" | "/pages-home/device-control/office/ALLleader" | "/pages-home/device-control/office/index" | "/pages-home/device-control/office/officehomedevice" | @@ -44,8 +35,10 @@ interface NavigateToOptions { "/pages-sub/online/online" | "/pages-sub/online/onlineCard" | "/pages-sub/online/onlineTable" | + "/pages-operate/caiwu/index" | "/pages-operate/file/detail" | "/pages-operate/file/index" | + "/pages-operate/jingying/index" | "/pages-operate/sc/index" | "/pages-humanResource/absence/add" | "/pages-humanResource/absence/detail" | @@ -78,7 +71,18 @@ interface NavigateToOptions { "/pages-bpm/SuperiorSystem/index" | "/pages-bpm/unconventional/index" | "/pages-bpm/unconventional/stamp" | - "/pages-bpm/zbkh/index"; + "/pages-bpm/zbkh/index" | + "/pages-production/ribaoshuju/rbsjLsxq" | + "/pages-production/ribaoshuju/trqRbsj" | + "/pages-production/ribaoshuju/yyRbsj" | + "/pages-production/shishishuju/aqbjSssj" | + "/pages-production/shishishuju/gycsSssj" | + "/pages-production/shishishuju/index" | + "/pages-production/shishishuju/nyxhSssj" | + "/pages-production/shishishuju/trqSssj" | + "/pages-production/shishishuju/ysjSssj" | + "/pages-production/shishishuju/chart/lssjChart" | + "/pages-production/shishishuju/chart/sssjChart"; } interface RedirectToOptions extends NavigateToOptions {} diff --git a/vite.config.ts b/vite.config.ts index 117c126..bb350b3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -23,164 +23,165 @@ import { viteMockServe } from 'vite-plugin-mock' // https://vitejs.dev/config/ export default ({ command, mode }) => { - // console.log(mode === process.env.NODE_ENV) // true + // console.log(mode === process.env.NODE_ENV) // true - // mode: 区分生产环境还是开发环境 - console.log('command, mode -> ', command, mode) - // pnpm dev:h5 时得到 => serve development - // pnpm build:h5 时得到 => build production - // pnpm dev:mp-weixin 时得到 => build development (注意区别,command为build) - // pnpm build:mp-weixin 时得到 => build production - // pnpm dev:app 时得到 => build development (注意区别,command为build) - // pnpm build:app 时得到 => build production - // dev 和 build 命令可以分别使用 .env.development 和 .env.production 的环境变量 + // mode: 区分生产环境还是开发环境 + console.log('command, mode -> ', command, mode) + // pnpm dev:h5 时得到 => serve development + // pnpm build:h5 时得到 => build production + // pnpm dev:mp-weixin 时得到 => build development (注意区别,command为build) + // pnpm build:mp-weixin 时得到 => build production + // pnpm dev:app 时得到 => build development (注意区别,command为build) + // pnpm build:app 时得到 => build production + // dev 和 build 命令可以分别使用 .env.development 和 .env.production 的环境变量 - const { UNI_PLATFORM } = process.env - console.log('UNI_PLATFORM -> ', UNI_PLATFORM) // 得到 mp-weixin, h5, app 等 + const { UNI_PLATFORM } = process.env + console.log('UNI_PLATFORM -> ', UNI_PLATFORM) // 得到 mp-weixin, h5, app 等 - const env = loadEnv(mode, path.resolve(process.cwd(), 'env')) - const { - VITE_APP_PORT, - VITE_SERVER_BASEURL, - VITE_DELETE_CONSOLE, - VITE_SHOW_SOURCEMAP, - VITE_APP_PROXY, - VITE_APP_PROXY_PREFIX, - VITE_USE_MOCK, - WEBAPP - } = env - console.log('环境变量 env -> ', env) + const env = loadEnv(mode, path.resolve(process.cwd(), 'env')) + const { + VITE_APP_PORT, + VITE_SERVER_BASEURL, + VITE_DELETE_CONSOLE, + VITE_SHOW_SOURCEMAP, + VITE_APP_PROXY, + VITE_APP_PROXY_PREFIX, + VITE_USE_MOCK, + WEBAPP + } = env + console.log('环境变量 env -> ', env) - return defineConfig({ - envDir: './env', // 自定义env目录 + return defineConfig({ + envDir: './env', // 自定义env目录 - plugins: [ - UniPages({ - exclude: ['**/components/**/**.*'], - routeBlockLang: 'json5', // 虽然设了默认值,但是vue文件还是要加上 lang="json5", 这样才能很好地格式化 - // homePage 通过 vue 文件的 route-block 的type="home"来设定 - // pages 目录为 src/pages,分包目录不能配置在pages目录下 - subPackages: [ - 'src/pages-home', - 'src/pages-message', - 'src/pages-user', - 'src/pages-work', - 'src/pages-sub', - 'src/pages-operate', - 'src/pages-humanResource', - 'src/pages-integrated', - 'src/pages-politics', - 'src/pages-process', - 'src/pages-bpm' - ], // 是个数组,可以配置多个,但是不能为pages里面的目录 - dts: 'src/types/uni-pages.d.ts', - }), - UniLayouts(), - UniPlatform(), - UniManifest(), - // UniXXX 需要在 Uni 之前引入 - Uni(), - { - // 临时解决 dcloudio 官方的 @dcloudio/uni-mp-compiler 出现的编译 BUG - // 参考 github issue: https://github.com/dcloudio/uni-app/issues/4952 - // 自定义插件禁用 vite:vue 插件的 devToolsEnabled,强制编译 vue 模板时 inline 为 true - name: 'fix-vite-plugin-vue', - configResolved(config) { - const plugin = config.plugins.find((p) => p.name === 'vite:vue') - if (plugin && plugin.api && plugin.api.options) { - plugin.api.options.devToolsEnabled = false - } - }, - }, - UnoCSS(), - AutoImport({ - imports: ['vue', 'uni-app'], - dts: 'src/types/auto-import.d.ts', - dirs: ['src/hooks'], // 自动导入 hooks - eslintrc: { enabled: true }, - vueTemplate: true, // default false - }), + plugins: [ + UniPages({ + exclude: ['**/components/**/**.*'], + routeBlockLang: 'json5', // 虽然设了默认值,但是vue文件还是要加上 lang="json5", 这样才能很好地格式化 + // homePage 通过 vue 文件的 route-block 的type="home"来设定 + // pages 目录为 src/pages,分包目录不能配置在pages目录下 + subPackages: [ + 'src/pages-home', + 'src/pages-message', + 'src/pages-user', + 'src/pages-work', + 'src/pages-sub', + 'src/pages-operate', + 'src/pages-humanResource', + 'src/pages-integrated', + 'src/pages-politics', + 'src/pages-process', + 'src/pages-bpm', + 'src/pages-production' + ], // 是个数组,可以配置多个,但是不能为pages里面的目录 + dts: 'src/types/uni-pages.d.ts', + }), + UniLayouts(), + UniPlatform(), + UniManifest(), + // UniXXX 需要在 Uni 之前引入 + Uni(), + { + // 临时解决 dcloudio 官方的 @dcloudio/uni-mp-compiler 出现的编译 BUG + // 参考 github issue: https://github.com/dcloudio/uni-app/issues/4952 + // 自定义插件禁用 vite:vue 插件的 devToolsEnabled,强制编译 vue 模板时 inline 为 true + name: 'fix-vite-plugin-vue', + configResolved(config) { + const plugin = config.plugins.find((p) => p.name === 'vite:vue') + if (plugin && plugin.api && plugin.api.options) { + plugin.api.options.devToolsEnabled = false + } + }, + }, + UnoCSS(), + AutoImport({ + imports: ['vue', 'uni-app'], + dts: 'src/types/auto-import.d.ts', + dirs: ['src/hooks'], // 自动导入 hooks + eslintrc: { enabled: true }, + vueTemplate: true, // default false + }), - ViteRestart({ - // 通过这个插件,在修改vite.config.js文件则不需要重新运行也生效配置 - restart: ['vite.config.js'], - }), - // h5环境增加 BUILD_TIME 和 BUILD_BRANCH - UNI_PLATFORM === 'h5' && { - name: 'html-transform', - transformIndexHtml(html) { - return html.replace('%BUILD_TIME%', dayjs().format('YYYY-MM-DD HH:mm:ss')) - }, - }, - // 打包分析插件,h5 + 生产环境才弹出 - UNI_PLATFORM === 'h5' && - mode === 'production' && - visualizer({ - filename: './node_modules/.cache/visualizer/stats.html', - open: true, - gzipSize: true, - brotliSize: true, - }), - // 只有在 app 平台时才启用 copyNativeRes 插件 - UNI_PLATFORM === 'app' && copyNativeRes(), - viteMockServe({ - // 指定 mock 文件目录 - mockPath: './mock', - // 开发服务器才启用mock数据 - enable: mode === 'development' && JSON.parse(VITE_USE_MOCK), - }), - ], - define: { - __UNI_PLATFORM__: JSON.stringify(UNI_PLATFORM), - __VITE_APP_PROXY__: JSON.stringify(VITE_APP_PROXY), - }, - css: { - postcss: { - plugins: [ - // autoprefixer({ - // // 指定目标浏览器 - // overrideBrowserslist: ['> 1%', 'last 2 versions'], - // }), - ], - }, - }, + ViteRestart({ + // 通过这个插件,在修改vite.config.js文件则不需要重新运行也生效配置 + restart: ['vite.config.js'], + }), + // h5环境增加 BUILD_TIME 和 BUILD_BRANCH + UNI_PLATFORM === 'h5' && { + name: 'html-transform', + transformIndexHtml(html) { + return html.replace('%BUILD_TIME%', dayjs().format('YYYY-MM-DD HH:mm:ss')) + }, + }, + // 打包分析插件,h5 + 生产环境才弹出 + UNI_PLATFORM === 'h5' && + mode === 'production' && + visualizer({ + filename: './node_modules/.cache/visualizer/stats.html', + open: true, + gzipSize: true, + brotliSize: true, + }), + // 只有在 app 平台时才启用 copyNativeRes 插件 + UNI_PLATFORM === 'app' && copyNativeRes(), + viteMockServe({ + // 指定 mock 文件目录 + mockPath: './mock', + // 开发服务器才启用mock数据 + enable: mode === 'development' && JSON.parse(VITE_USE_MOCK), + }), + ], + define: { + __UNI_PLATFORM__: JSON.stringify(UNI_PLATFORM), + __VITE_APP_PROXY__: JSON.stringify(VITE_APP_PROXY), + }, + css: { + postcss: { + plugins: [ + // autoprefixer({ + // // 指定目标浏览器 + // overrideBrowserslist: ['> 1%', 'last 2 versions'], + // }), + ], + }, + }, - resolve: { - alias: { - '@': path.join(process.cwd(), './src'), - '@img': path.join(process.cwd(), './src/static/images'), - }, - }, - server: { - host: '0.0.0.0', - headers: { //允许跨域by 闵 - 'Access-Control-Allow-Origin': '*' - }, - hmr: true, - port: Number.parseInt(VITE_APP_PORT, 10), - // 仅 H5 端生效,其他端不生效(其他端走build,不走devServer) - proxy: JSON.parse(VITE_APP_PROXY) - ? { - [VITE_APP_PROXY_PREFIX]: { - target: VITE_SERVER_BASEURL, - changeOrigin: true, - rewrite: (path) => path.replace(new RegExp(`^${VITE_APP_PROXY_PREFIX}`), ''), - }, - } - : undefined, - }, - build: { - // 方便非h5端调试 - sourcemap: VITE_SHOW_SOURCEMAP === 'true', // 默认是false - target: 'es6', - // 开发环境不用压缩 - minify: mode === 'development' ? false : 'terser', - terserOptions: { - compress: { - drop_console: VITE_DELETE_CONSOLE === 'true', - drop_debugger: true, - }, - }, - }, - }) -} + resolve: { + alias: { + '@': path.join(process.cwd(), './src'), + '@img': path.join(process.cwd(), './src/static/images'), + }, + }, + server: { + host: '0.0.0.0', + headers: { //允许跨域by 闵 + 'Access-Control-Allow-Origin': '*' + }, + hmr: true, + port: Number.parseInt(VITE_APP_PORT, 10), + // 仅 H5 端生效,其他端不生效(其他端走build,不走devServer) + proxy: JSON.parse(VITE_APP_PROXY) + ? { + [VITE_APP_PROXY_PREFIX]: { + target: VITE_SERVER_BASEURL, + changeOrigin: true, + rewrite: (path) => path.replace(new RegExp(`^${VITE_APP_PROXY_PREFIX}`), ''), + }, + } + : undefined, + }, + build: { + // 方便非h5端调试 + sourcemap: VITE_SHOW_SOURCEMAP === 'true', // 默认是false + target: 'es6', + // 开发环境不用压缩 + minify: mode === 'development' ? false : 'terser', + terserOptions: { + compress: { + drop_console: VITE_DELETE_CONSOLE === 'true', + drop_debugger: true, + }, + }, + }, + }) +} \ No newline at end of file From bec69289ac7d2f141253842cb9d2350d04f66639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=A5=E7=91=9E?= <1131549607@qq.com> Date: Wed, 17 Sep 2025 10:39:59 +0800 Subject: [PATCH 06/12] =?UTF-8?q?9.17=E5=BC=A0=E7=A5=A5=E7=91=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/devicecontrol/officedevice.ts | 9 +++++++ .../device-control/office/Personaldevices.vue | 27 ++++--------------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/src/api/devicecontrol/officedevice.ts b/src/api/devicecontrol/officedevice.ts index a2ed01b..14d6c50 100644 --- a/src/api/devicecontrol/officedevice.ts +++ b/src/api/devicecontrol/officedevice.ts @@ -10,6 +10,15 @@ export function gethomelist(config : object) { // 获取房间信息 }) } + +export function gethomelistforApp(config : object) { // 获取房间信息 + return http({ + url: '/RoomOperation/RoomOperation/gethomelistforApp', + method: 'GET', + data: config + }) +} + export function testcontiont(config : object) { // 获取房间信息 return http({ url: mqtturl + '/mqttSubclient/mqttSubclient/testgetcontint', diff --git a/src/pages-home/device-control/office/Personaldevices.vue b/src/pages-home/device-control/office/Personaldevices.vue index 48b2747..520c629 100644 --- a/src/pages-home/device-control/office/Personaldevices.vue +++ b/src/pages-home/device-control/office/Personaldevices.vue @@ -13,30 +13,11 @@ {{ room.ssbmname }} + + - @@ -48,6 +29,7 @@ } from 'vue' import { gethomelist, + gethomelistforApp, getMqttPushClient, selectfjkzbmforfjid, createdSwitch, @@ -90,7 +72,8 @@ //获取房间信息 const getofficehomelist = async () => { - await gethomelist().then((res) => { + //20250811,张祥瑞,修改查询接口 + await gethomelistforApp().then((res) => { if (res.success) { homelist.value = res.result.map((item, index) => ({ ...item, From 74c0d48277525940da86d0b7385b52ef2736c64f Mon Sep 17 00:00:00 2001 From: lagos <627844378@qq.com> Date: Wed, 17 Sep 2025 14:55:44 +0800 Subject: [PATCH 07/12] 1.ofice --- src/api/devicecontrol/officedevice.ts | 9 +++++++ .../device-control/office/Personaldevices.vue | 27 ++++--------------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/src/api/devicecontrol/officedevice.ts b/src/api/devicecontrol/officedevice.ts index a2ed01b..14d6c50 100644 --- a/src/api/devicecontrol/officedevice.ts +++ b/src/api/devicecontrol/officedevice.ts @@ -10,6 +10,15 @@ export function gethomelist(config : object) { // 获取房间信息 }) } + +export function gethomelistforApp(config : object) { // 获取房间信息 + return http({ + url: '/RoomOperation/RoomOperation/gethomelistforApp', + method: 'GET', + data: config + }) +} + export function testcontiont(config : object) { // 获取房间信息 return http({ url: mqtturl + '/mqttSubclient/mqttSubclient/testgetcontint', diff --git a/src/pages-home/device-control/office/Personaldevices.vue b/src/pages-home/device-control/office/Personaldevices.vue index 48b2747..520c629 100644 --- a/src/pages-home/device-control/office/Personaldevices.vue +++ b/src/pages-home/device-control/office/Personaldevices.vue @@ -13,30 +13,11 @@ {{ room.ssbmname }} + + - @@ -48,6 +29,7 @@ } from 'vue' import { gethomelist, + gethomelistforApp, getMqttPushClient, selectfjkzbmforfjid, createdSwitch, @@ -90,7 +72,8 @@ //获取房间信息 const getofficehomelist = async () => { - await gethomelist().then((res) => { + //20250811,张祥瑞,修改查询接口 + await gethomelistforApp().then((res) => { if (res.success) { homelist.value = res.result.map((item, index) => ({ ...item, From f56b003766c304310ba39b52a46501b2f81b24bd Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Mon, 22 Sep 2025 09:43:26 +0800 Subject: [PATCH 08/12] 1 --- env/.env.development | 4 ++-- src/manifest.json | 2 +- src/pages/login/login.vue | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/env/.env.development b/env/.env.development index a95d8f3..fc1bdf6 100644 --- a/env/.env.development +++ b/env/.env.development @@ -8,9 +8,9 @@ VITE_SHOW_SOURCEMAP = true #VITE_WEBAPP = 'D://opt//AppUpdateTest' VITE_WEBAPP = '' #VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot' -VITE_SERVER_BASEURL = 'http://10.96.108.144:8080/jeecg-boot' +#VITE_SERVER_BASEURL = 'http://10.96.108.144:8080/jeecg-boot' -#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' +VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' #VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot' diff --git a/src/manifest.json b/src/manifest.json index c83b07e..962c0ae 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -3,7 +3,7 @@ "appid": "__UNI__9F097F0", "description": "", "versionName": "2.2.0", - "versionCode": "20250903", + "versionCode": "20250909", "transformPx": false, "app-plus": { "usingComponents": true, diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index 192171f..272449f 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -137,12 +137,12 @@ }) } else { /*开发环境 */ - // params.captcha = 'app'; + params.captcha = 'app'; /*生产环境 */ - params = { - username: Base64.encode(encodeURIComponent(userName.value)), - password: Base64.encode(encodeURIComponent(password.value)), - }; + // params = { + // username: Base64.encode(encodeURIComponent(userName.value)), + // password: Base64.encode(encodeURIComponent(password.value)), + // }; } login(params) } From ab9669637bdcd2141332160f96d7282f0d494d8d Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Mon, 22 Sep 2025 16:28:44 +0800 Subject: [PATCH 09/12] 1 --- env/.env.development | 1 - 1 file changed, 1 deletion(-) diff --git a/env/.env.development b/env/.env.development index 514145c..6474fde 100644 --- a/env/.env.development +++ b/env/.env.development @@ -9,7 +9,6 @@ VITE_SHOW_SOURCEMAP = true VITE_WEBAPP = '' #VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot' VITE_SERVER_BASEURL = 'http://10.75.166.6:8080/jeecg-boot' -#VITE_SERVER_BASEURL = 'http://10.75.173.194:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'https://10.75.166.6/test' #VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' From 4ba99e3990691cdbb423eac0e31f65b4fe98f55a Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Tue, 23 Sep 2025 16:47:27 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E8=AF=B7=E5=81=87=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=8A=B3=E8=B5=84=E5=91=98=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 3 +-- src/api/system/user.ts | 2 +- src/pages-humanResource/absence/add.vue | 20 +++++++------------- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/env/.env.development b/env/.env.development index 6474fde..7414cee 100644 --- a/env/.env.development +++ b/env/.env.development @@ -7,8 +7,7 @@ VITE_SHOW_SOURCEMAP = true # 是否启用读取配置文件 min #VITE_WEBAPP = 'D://opt//AppUpdateTest' VITE_WEBAPP = '' -#VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot' -VITE_SERVER_BASEURL = 'http://10.75.166.6:8080/jeecg-boot' +VITE_SERVER_BASEURL = 'http://10.75.166.174:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'https://10.75.166.6/test' #VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' diff --git a/src/api/system/user.ts b/src/api/system/user.ts index 7bbc605..71d830e 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -29,7 +29,7 @@ export function editUserApi(config : object) { /*根据部门Cod和角色Id查询用户信息*/ export function queryUserByOrgRoleApi(config : object) { return http({ - url: '/cxcChangesInPersonnel/cxcChangesInPersonnel/queryByDepCodRoleId', + url: '/sys/user/queryByDepCodRoleId', method: 'GET', data: config }) diff --git a/src/pages-humanResource/absence/add.vue b/src/pages-humanResource/absence/add.vue index 5753e67..0dcbbda 100644 --- a/src/pages-humanResource/absence/add.vue +++ b/src/pages-humanResource/absence/add.vue @@ -335,17 +335,13 @@ roleId: '1554379432313397250', orgCode: code }).then(res => { - if (res.result.length > 0) { - model.hr = res.result[0].username - } - if (!code) { - hrData.value = res.result.map(item => { - return { - label: item.realname, - value: item.username - } - }) - } + model.hr = res.result.user.username + hrData.value = res.result.list.map(item => { + return { + label: item.realname, + value: item.username + } + }) }) } @@ -364,8 +360,6 @@ getZwmcAndExa() /*获取工作单位*/ queryDepName() - /*获取劳资员*/ - getHrList() /*获取*/ queryHisDate() }); From 9dbae0a56e1f2a8088d6e3521db79e1383be06c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=A5=E7=91=9E?= <1131549607@qq.com> Date: Thu, 25 Sep 2025 10:19:03 +0800 Subject: [PATCH 11/12] =?UTF-8?q?9.25=E5=BC=A0=E7=A5=A5=E7=91=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 2 +- src/pages-home/device-control/office/ALLleader.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/env/.env.development b/env/.env.development index 514145c..f2e675f 100644 --- a/env/.env.development +++ b/env/.env.development @@ -8,7 +8,7 @@ VITE_SHOW_SOURCEMAP = true #VITE_WEBAPP = 'D://opt//AppUpdateTest' VITE_WEBAPP = '' #VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot' -VITE_SERVER_BASEURL = 'http://10.75.166.6:8080/jeecg-boot' +VITE_SERVER_BASEURL = 'http://10.75.166.170:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'http://10.75.173.194:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'https://10.75.166.6/test' diff --git a/src/pages-home/device-control/office/ALLleader.vue b/src/pages-home/device-control/office/ALLleader.vue index c7da6a2..587579b 100644 --- a/src/pages-home/device-control/office/ALLleader.vue +++ b/src/pages-home/device-control/office/ALLleader.vue @@ -127,7 +127,7 @@ if (res.success) { homelist.value = res.result.map((item, index) => ({ ...item, // 保留原有字段 - homezt: 0, // 添加homezt字段,默认为0 + // homezt: 0, // 添加homezt字段,默认为0 })); //添加楼层情况 } From 1add87973a102c19d072edc9cf1d53784a7456e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=A5=E7=91=9E?= <1131549607@qq.com> Date: Fri, 26 Sep 2025 09:46:31 +0800 Subject: [PATCH 12/12] =?UTF-8?q?9.26=E5=BC=A0=E7=A5=A5=E7=91=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 2 +- src/api/devicecontrol/officedevice.ts | 30 ++++++++++++++-- src/common/socket.ts | 10 +++--- .../device-control/office/ALLleader.vue | 36 ++++++++++++++----- .../device-control/office/Personaldevices.vue | 23 +++++++++--- .../office/officehomedevice.vue | 6 ++-- 6 files changed, 83 insertions(+), 24 deletions(-) diff --git a/env/.env.development b/env/.env.development index 7414cee..a8b1ffb 100644 --- a/env/.env.development +++ b/env/.env.development @@ -7,7 +7,7 @@ VITE_SHOW_SOURCEMAP = true # 是否启用读取配置文件 min #VITE_WEBAPP = 'D://opt//AppUpdateTest' VITE_WEBAPP = '' -VITE_SERVER_BASEURL = 'http://10.75.166.174:8080/jeecg-boot' +VITE_SERVER_BASEURL = 'http://10.75.166.170:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'https://10.75.166.6/test' #VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' diff --git a/src/api/devicecontrol/officedevice.ts b/src/api/devicecontrol/officedevice.ts index 14d6c50..720cadb 100644 --- a/src/api/devicecontrol/officedevice.ts +++ b/src/api/devicecontrol/officedevice.ts @@ -11,9 +11,27 @@ export function gethomelist(config : object) { // 获取房间信息 } +// export function gethomelistforApp(config : object) { // 获取房间信息 +// return http({ +// url: '/RoomOperation/RoomOperation/gethomelistforApp', +// method: 'GET', +// data: config +// }) +// } + +//张祥瑞20250925修改为该方法 export function gethomelistforApp(config : object) { // 获取房间信息 return http({ - url: '/RoomOperation/RoomOperation/gethomelistforApp', + url: '/RoomAPP/RoomAPP/gethomelistforApp', + method: 'GET', + data: config + }) +} +//张祥瑞20250925添加方法,传参为房间表id +export function getfjkzbmforfjidApp(config : object) { // 查询开关状态 + return http({ + url: mqtturl + + "/mqttcontroller/mqttcontroller/getfjkzbmforfjid", method: 'GET', data: config }) @@ -87,9 +105,17 @@ export function listAllRegions(config : object) { // 查询开关状态 }) } +// export function Selecthomelist(config : object) { // 查询开关状态 +// return http({ +// url: '/RoomOperation/RoomOperation/Selecthomelist', +// method: 'GET', +// data: config +// }) +// } +//张祥瑞,20250925修改为该方法 export function Selecthomelist(config : object) { // 查询开关状态 return http({ - url: '/RoomOperation/RoomOperation/Selecthomelist', + url: '/RoomAPP/RoomAPP/SelecthomelistForApp', method: 'GET', data: config }) diff --git a/src/common/socket.ts b/src/common/socket.ts index facb619..e1ed04a 100644 --- a/src/common/socket.ts +++ b/src/common/socket.ts @@ -7,7 +7,7 @@ const baseUrl = import.meta.env.VITE_SERVER_BASEURL class socket { constructor() { - console.log(77777777777777) + // console.log(77777777777777) this.socketUrl = baseUrl this.socketStart = false this.socketType = '' @@ -50,7 +50,7 @@ class socket { }) // update-end-author:taoyan date:20220422 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278 uni.onSocketOpen((res) => { - console.log("连接进来了--------53333333333323----") + // console.log("连接进来了--------53333333333323----") this.socketStart = true callback && callback() console.log('WebSocket连接已打开!') @@ -85,10 +85,10 @@ class socket { socketReceive() { const _this = this uni.onSocketMessage(function (res) { - console.log('APP:--》收到服务器内容:', res) - console.log('连接路径----:', baseUrl) + // console.log('APP:--》收到服务器内容:', res) + // console.log('连接路径----:', baseUrl) if (res.data.startsWith('CONNECTED') || res.data.startsWith('MESSAGE') || res.data.startsWith('RECEIPT')) { - console.log('放行----------:', res) + // console.log('放行----------:', res) // 放行 STOMP 协议消息,交给 socketTask.onMessage 处理 by 闵 return; } diff --git a/src/pages-home/device-control/office/ALLleader.vue b/src/pages-home/device-control/office/ALLleader.vue index 587579b..40d3af6 100644 --- a/src/pages-home/device-control/office/ALLleader.vue +++ b/src/pages-home/device-control/office/ALLleader.vue @@ -39,7 +39,7 @@ - 制冷 25°C