From 62e7a425ccb14a95b2e3f5b5a4dbb6bcaff3170a Mon Sep 17 00:00:00 2001 From: tangw Date: Tue, 10 Feb 2026 15:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/liswork/xtwh/StatsparameterApi.ts | 46 ++ src/api/liswork/xtwh/StatstemplateApi.ts | 46 ++ src/router/index.js | 35 ++ src/views/liswork/xtwh/statstemplate/data.vue | 568 ++++++++++++++++++ .../liswork/xtwh/statstemplate/index.vue | 537 +++++++++++++++++ 5 files changed, 1232 insertions(+) create mode 100644 src/api/liswork/xtwh/StatsparameterApi.ts create mode 100644 src/api/liswork/xtwh/StatstemplateApi.ts create mode 100644 src/views/liswork/xtwh/statstemplate/data.vue create mode 100644 src/views/liswork/xtwh/statstemplate/index.vue diff --git a/src/api/liswork/xtwh/StatsparameterApi.ts b/src/api/liswork/xtwh/StatsparameterApi.ts new file mode 100644 index 0000000..4770f25 --- /dev/null +++ b/src/api/liswork/xtwh/StatsparameterApi.ts @@ -0,0 +1,46 @@ +//参数设置字典 +// @ts-ignore +import request from '@/utils/request' + +// 查询字典列表 +export function liststatsparam(params:any) { + return request({ + url: '/statstemp/param/list', + method: 'get', + params + }) +} + +// 查询字典详细 +export function getstatsparam(id:number) { + return request({ + url: `/statstemp/param/${id}`, + method: 'get' + }) +} + +// 新增字典 +export function addstatsparam(params:any) { + return request({ + url: '/statstemp/param', + method: 'post', + data:params + }) +} + +// 修改字典 +export function updatestatsparam(params:any) { + return request({ + url: '/statstemp/param', + method: 'put', + data:params + }) +} + +// 删除字典 +export function delstatsparam(id:any) { + return request({ + url: `/statstemp/param/${id}`, + method: 'delete' + }) +} diff --git a/src/api/liswork/xtwh/StatstemplateApi.ts b/src/api/liswork/xtwh/StatstemplateApi.ts new file mode 100644 index 0000000..3a8a370 --- /dev/null +++ b/src/api/liswork/xtwh/StatstemplateApi.ts @@ -0,0 +1,46 @@ +//参数设置字典 +// @ts-ignore +import request from '@/utils/request' + +// 查询字典列表 +export function liststatstemp(params:any) { + return request({ + url: '/statstemp/list', + method: 'get', + params + }) +} + +// 查询字典详细 +export function getstatstemp(id:number) { + return request({ + url: `/statstemp/${id}`, + method: 'get' + }) +} + +// 新增字典 +export function addstatstemp(params:any) { + return request({ + url: '/statstemp', + method: 'post', + data:params + }) +} + +// 修改字典 +export function updatestatstemp(params:any) { + return request({ + url: '/statstemp', + method: 'put', + data:params + }) +} + +// 删除字典 +export function delstatstemp(id:any) { + return request({ + url: `/statstemp/${id}`, + method: 'delete' + }) +} diff --git a/src/router/index.js b/src/router/index.js index b937fe1..1b0ba63 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -181,6 +181,41 @@ export const dynamicRoutes = [{ activeMenu: '/tool/gen' } }] + }, + // ========== 新增:统计模板主路由(若需要侧边栏显示则hidden: false) ========== + { + path: '/liswork/xtwh/statstemplate', + component: Layout, + hidden: false, // 若不需要侧边栏显示则设为true + permissions: ['liswork:xtwh:statstemplate:list'], // 替换为你的实际权限码 + meta: { + title: '统计模板', + icon: 'el-icon-menu' // 可选:侧边栏图标 + }, + children: [ + // 统计模板列表页(原页面) + { + path: '', // 空路径表示默认子路由 + name: 'Statstemplate', + component: () => import('@/views/liswork/xtwh/statstemplate/index'), + meta: { + title: '模板列表', + noCache: true + } + }, + // 要跳转的data页面(核心新增) + { + path: 'data', + name: 'StatstemplateData', + hidden: true, // 作为子页面,不在侧边栏单独显示 + component: () => import('@/views/liswork/xtwh/statstemplate/data'), + meta: { + title: '统计模板数据', + noCache: true, + activeMenu: '/liswork/xtwh/statstemplate' // 保持侧边栏高亮父菜单 + } + } + ] } ] diff --git a/src/views/liswork/xtwh/statstemplate/data.vue b/src/views/liswork/xtwh/statstemplate/data.vue new file mode 100644 index 0000000..4b07170 --- /dev/null +++ b/src/views/liswork/xtwh/statstemplate/data.vue @@ -0,0 +1,568 @@ + + + + + \ No newline at end of file diff --git a/src/views/liswork/xtwh/statstemplate/index.vue b/src/views/liswork/xtwh/statstemplate/index.vue new file mode 100644 index 0000000..5c7314b --- /dev/null +++ b/src/views/liswork/xtwh/statstemplate/index.vue @@ -0,0 +1,537 @@ + + + + + \ No newline at end of file