From e1dbf60b536abc743a946d0194e55d413535e7ad Mon Sep 17 00:00:00 2001 From: wangzenghua <1048523306@qq.com> Date: Tue, 11 Mar 2025 09:39:25 +0100 Subject: [PATCH 1/3] =?UTF-8?q?feat:action/tree=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/custom-table-operate/index.vue | 8 ++- .../components/custom-table-tree/index.vue | 67 +++++++++++++++++++ main/src/components/index.js | 13 +++- 3 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 main/src/components/custom-table-tree/index.vue diff --git a/main/src/components/custom-table-operate/index.vue b/main/src/components/custom-table-operate/index.vue index 9e86264..3504e34 100644 --- a/main/src/components/custom-table-operate/index.vue +++ b/main/src/components/custom-table-operate/index.vue @@ -5,8 +5,8 @@ @@ -26,6 +26,10 @@ const onPermission = (row) => { if (row.auth === undefined) return true; return typeof row.auth === 'function' ? row.auth(props.data) : row.auth; }; + +const formatterIcon = (row) => { + return typeof row.icon === 'function' ? row.icon(props.data) : row.icon; +}; diff --git a/main/src/components/index.js b/main/src/components/index.js index b95d513..9e092b9 100644 --- a/main/src/components/index.js +++ b/main/src/components/index.js @@ -1,5 +1,6 @@ import SvgIcon from './svg-icon'; import CustomTableOperate from './custom-table-operate'; +import CustomTableTree from './custom-table-tree'; import CustomImportExcel from './custom-import-excel'; import CustomRichEditor from './custom-rich-editor'; import CustomEchartBar from './custom-echart-bar'; @@ -7,4 +8,14 @@ import CustomEchartPie from './custom-echart-pie'; import CustomEchartLine from './custom-echart-line'; import CustomEchartMixin from './custom-echart-mixin'; -export { SvgIcon, CustomTableOperate, CustomImportExcel, CustomRichEditor, CustomEchartBar, CustomEchartPie, CustomEchartLine, CustomEchartMixin }; +export { + SvgIcon, + CustomTableOperate, + CustomTableTree, + CustomImportExcel, + CustomRichEditor, + CustomEchartBar, + CustomEchartPie, + CustomEchartLine, + CustomEchartMixin, +}; From d708f0454ddb629a69eff5d30a9d6f51ea0a1901 Mon Sep 17 00:00:00 2001 From: lzc Date: Tue, 11 Mar 2025 16:56:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=95=A3=E7=82=B9=E5=9B=BE=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/components/mapSplashed.vue | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sub-government-affairs-service/src/views/productOperateMain/home/components/mapSplashed.vue b/sub-government-affairs-service/src/views/productOperateMain/home/components/mapSplashed.vue index 318c8dd..85a1337 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/home/components/mapSplashed.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/home/components/mapSplashed.vue @@ -20,7 +20,7 @@ const initChart = () => { // 配置项 const option = { title: { - text: '耿马县地图散点图', + text: '', left: 'center', }, tooltip: { @@ -33,14 +33,14 @@ const initChart = () => { }, }, toolbox: { - show: true, + show: false, orient: 'vertical', left: 'right', top: 'center', feature: { - dataView: { readOnly: false }, - restore: {}, - saveAsImage: {}, + // dataView: { readOnly: false }, + // restore: {}, + // saveAsImage: {}, }, }, geo: { @@ -72,10 +72,10 @@ const initChart = () => { borderWidth: 1, // 设置镇边界的宽度 areaColor: 'transparent', // 设置背景透明,只显示边界 }, - emphasis: { - borderColor: '#fff', - borderWidth: 2, - }, + // emphasis: { + // borderColor: '#fff', + // borderWidth: 2, + // }, }, }, // 闪烁散点图系列 @@ -113,7 +113,7 @@ const initChart = () => { scale: 3, // 波纹缩放比例 brushType: 'stroke', // 波纹绘制方式:'stroke' 或 'fill' }, - hoverAnimation: true, + hoverAnimation: false, }, ], }; From 48bd558bfad9472e662a3121d4088b7eed252be1 Mon Sep 17 00:00:00 2001 From: wangzenghua <1048523306@qq.com> Date: Tue, 11 Mar 2025 09:59:39 +0100 Subject: [PATCH 3/3] =?UTF-8?q?feat:=E7=8E=AF=E5=A2=83=E7=9B=91=E6=B5=8B?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/router/index.js | 8 +- .../src/router/modules/plantingAndBreeding.js | 25 ++ .../plantingAndBreeding/environment/index.vue | 406 ++++++++++++++++++ 3 files changed, 434 insertions(+), 5 deletions(-) create mode 100644 sub-government-affairs-service/src/router/modules/plantingAndBreeding.js create mode 100644 sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue diff --git a/sub-government-affairs-service/src/router/index.js b/sub-government-affairs-service/src/router/index.js index 7448b8e..bccde08 100644 --- a/sub-government-affairs-service/src/router/index.js +++ b/sub-government-affairs-service/src/router/index.js @@ -3,17 +3,16 @@ * @Author: zenghua.wang * @Date: 2023-06-20 11:48:41 * @LastEditors: zenghua.wang - * @LastEditTime: 2025-03-06 16:11:29 + * @LastEditTime: 2025-03-11 16:51:49 */ import { createRouter, createWebHistory } from 'vue-router'; import Layout from '@/layouts/index.vue'; import resourceRouter from './modules/resource'; import traceRouter from './modules/trace'; -import landsRoutes from './modules/lands'; -import dictRoutes from './modules/dict'; import productOperateMainRoutes from './modules/productOperateMain'; import inputSuppliesRoutes from './modules/inputSupplies'; +import plantingAndBreedingRouter from './modules/plantingAndBreeding'; export const constantRoutes = [ { @@ -45,10 +44,9 @@ export const constantRoutes = [ }, ...resourceRouter, ...traceRouter, - // ...landsRoutes, - // ...dictRoutes, ...productOperateMainRoutes, ...inputSuppliesRoutes, + ...plantingAndBreedingRouter, ]; /** diff --git a/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js b/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js new file mode 100644 index 0000000..0d951d1 --- /dev/null +++ b/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js @@ -0,0 +1,25 @@ +import Layout from '@/layouts/index.vue'; + +export default [ + { + path: '/sub-government-affairs-service/plantingAndBreeding', + name: 'plantingAndBreeding', + component: Layout, + redirect: '/sub-government-affairs-service/breeding-base-information', + meta: { title: '种养植综合管理', icon: 'Document' }, + children: [ + { + path: '/sub-government-affairs-service/environment-monitor', + name: 'environment-monitor', + component: () => import('@/views/plantingAndBreeding/environment/index.vue'), + meta: { title: '环境监测信息', icon: 'Document' }, + }, + // { + // path: '/sub-government-affairs-service/breeding-base-information', + // name: 'breeding-base-information', + // component: () => import('@/views/plantingAndBreeding/base/index.vue'), + // meta: { title: '种养殖基地信息', icon: 'Document' }, + // }, + ], + }, +]; diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue new file mode 100644 index 0000000..9969db6 --- /dev/null +++ b/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue @@ -0,0 +1,406 @@ + +