From 0009a71602e7fc4e36db3f845bf495be562789d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=83=B3?= <826276471@qq.com> Date: Wed, 19 Mar 2025 15:11:24 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=E7=9F=A5=E8=AF=86=E5=BA=93=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/apis/inputSuppliesApi/index.js | 2 ++ .../src/apis/inputSuppliesApi/knowledge.js | 7 +++++++ .../views/inputSuppliesManage/knowledgeManage/index.vue | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js index b9ec383..aee9440 100644 --- a/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js +++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/index.js @@ -1,7 +1,9 @@ import * as redBlackApi from './redAndBlank'; import * as materialApi from './material'; +import * as knowledgeApi from './common'; export default { ...materialApi, ...redBlackApi, + ...knowledgeApi, }; diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js new file mode 100644 index 0000000..af46488 --- /dev/null +++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/knowledge.js @@ -0,0 +1,7 @@ +import request from '@/utils/axios'; + +function getQuestionList(params) { + return request('/knowledge/page', { + params, + }); +} diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue index 976db00..f798ae9 100644 --- a/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue +++ b/sub-government-affairs-service/src/views/inputSuppliesManage/knowledgeManage/index.vue @@ -71,6 +71,7 @@ const option = reactive({ label: '名称', prop: 'question', renderForm: ({ row }) => { + console.log('row ---', row); return h('span', {}, row.question); }, span: 24, @@ -186,7 +187,7 @@ function handleReply({ row }) { console.log('reply', row); curdRef.value.rowEdit(row); } -function handleInfo(row) { +function handleInfo({ row }) { console.log('info', row); curdRef.value.rowView(row); } From 334e41efca6e41441e904ca76c8a5598db9d844f Mon Sep 17 00:00:00 2001 From: wangzenghua <1048523306@qq.com> Date: Wed, 19 Mar 2025 09:09:38 +0100 Subject: [PATCH 2/5] fix --- main/.env.production | 1 + main/.env.test | 3 +- main/src/utils/permission.js | 2 +- .../src/router/modules/plantingAndBreeding.js | 12 +- .../views/plantingAndBreeding/base/index.vue | 409 +++++++++++++++++- .../plantingAndBreeding/environment/index.vue | 16 +- .../epidemicDisease/index.vue | 20 +- .../views/plantingAndBreeding/pest/index.vue | 16 +- 8 files changed, 453 insertions(+), 26 deletions(-) diff --git a/main/.env.production b/main/.env.production index 5aa3ea1..8bc7168 100644 --- a/main/.env.production +++ b/main/.env.production @@ -4,6 +4,7 @@ VITE_APP_TITLE = '数字农业产业管理平台' VITE_APP_SUB_OS = '//192.168.18.99:88/sub-operation-service/' VITE_APP_SUB_ADMIN = '//192.168.18.99:88/sub-admin/' VITE_APP_SUB_GAS = '//192.168.18.99:88/sub-government-affairs-service/' +VITE_APP_SUB_GSS = '//192.168.18.99:88/sub-government-screen-service/' # 接口 VITE_APP_BASE_API = '/apis' VITE_APP_BASE_URL = '' diff --git a/main/.env.test b/main/.env.test index be802d2..5b7db1a 100644 --- a/main/.env.test +++ b/main/.env.test @@ -4,8 +4,9 @@ VITE_APP_TITLE = '数字农业产业管理平台' VITE_APP_SUB_OS = '//localhost:8090/sub-operation-service/' VITE_APP_SUB_ADMIN = '//localhost:8090/sub-admin/' VITE_APP_SUB_GAS = '//localhost:8090/sub-government-affairs-service/' +VITE_APP_SUB_GSS = '//localhost:8090/sub-government-screen-service/' # 接口 VITE_APP_BASE_API = '/apis' VITE_APP_BASE_URL = '' VITE_APP_UPLOAD_API = '/uploadApis' -VITE_APP_UPLOAD_URL = '' \ No newline at end of file +VITE_APP_UPLOAD_URL = '' diff --git a/main/src/utils/permission.js b/main/src/utils/permission.js index 2d203b0..8880f74 100644 --- a/main/src/utils/permission.js +++ b/main/src/utils/permission.js @@ -14,7 +14,7 @@ import { usePermissionStore } from '@/store/modules/permission'; NProgress.configure({ showSpinner: false }); const { VITE_APP_TITLE } = import.meta.env; -const whiteList = ['/login']; +const whiteList = ['/login', '/sub-government-affairs-service/trace-info']; router.beforeEach(async (to, from, next) => { NProgress.start(); diff --git a/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js b/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js index 4007b1b..5d82986 100644 --- a/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js +++ b/sub-government-affairs-service/src/router/modules/plantingAndBreeding.js @@ -33,12 +33,12 @@ export default [ component: () => import('@/views/plantingAndBreeding/epidemicDisease/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' }, - // }, + { + 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/base/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue index a182cd9..c1e7d06 100644 --- a/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue +++ b/sub-government-affairs-service/src/views/plantingAndBreeding/base/index.vue @@ -1,6 +1,411 @@ diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue index de353aa..5c6ed52 100644 --- a/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue +++ b/sub-government-affairs-service/src/views/plantingAndBreeding/environment/index.vue @@ -56,16 +56,26 @@ const landTypeData = ref([ id: '0', children: [ { label: '耕地', id: '01', children: [], pId: '0' }, - { label: '园地', children: [], id: '02', pId: '0' }, + { label: '林地', children: [], id: '02', pId: '0' }, + { label: '草地', children: [], id: '03', pId: '0' }, + { label: '农田水利用地', children: [], id: '04', pId: '0' }, + { label: '养殖水面', children: [], id: '05', pId: '0' }, ], }, { label: '建设用地', id: '1', - children: [{ label: '城乡建设用地', children: [], id: '11', pId: '10' }], + children: [ + { label: '城乡住宅用地', children: [], id: '11', pId: '10' }, + { label: '公共设施用地', children: [], id: '11', pId: '10' }, + { label: '工矿仓储用地', children: [], id: '11', pId: '10' }, + { label: '交通水利设施用地', children: [], id: '11', pId: '10' }, + { label: '旅游用地', children: [], id: '11', pId: '10' }, + { label: '军事设施用地', children: [], id: '11', pId: '10' }, + ], }, { - label: '住宅用地', + label: '未利用地', id: '2', children: [], }, diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue index 0680446..16a8d4e 100644 --- a/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue +++ b/sub-government-affairs-service/src/views/plantingAndBreeding/epidemicDisease/index.vue @@ -109,16 +109,16 @@ const UserStore = useUserStore(); const router = useRouter(); const crudRef = ref(null); const landTypeData = ref([ - { - label: '疫病分类', - id: '0', - children: [ - { label: '家禽类', id: '01', children: [], pId: '0' }, - { label: '家畜类', id: '02', children: [], pId: '0' }, - { label: '水产类', id: '03', children: [], pId: '0' }, - { label: '特种养殖类', id: '04', children: [], pId: '0' }, - ], - }, + // { + // label: '疫病分类', + // id: '0', + // children: [ + { label: '家禽类', id: '01', children: [], pId: '0' }, + { label: '家畜类', id: '02', children: [], pId: '0' }, + { label: '水产类', id: '03', children: [], pId: '0' }, + { label: '特种养殖类', id: '04', children: [], pId: '0' }, + // ], + // }, ]); const state = reactive({ loading: false, diff --git a/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue b/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue index c3c1c02..61f0829 100644 --- a/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue +++ b/sub-government-affairs-service/src/views/plantingAndBreeding/pest/index.vue @@ -53,16 +53,26 @@ const landTypeData = ref([ id: '0', children: [ { label: '耕地', id: '01', children: [], pId: '0' }, - { label: '园地', children: [], id: '02', pId: '0' }, + { label: '林地', children: [], id: '02', pId: '0' }, + { label: '草地', children: [], id: '03', pId: '0' }, + { label: '农田水利用地', children: [], id: '04', pId: '0' }, + { label: '养殖水面', children: [], id: '05', pId: '0' }, ], }, { label: '建设用地', id: '1', - children: [{ label: '城乡建设用地', children: [], id: '11', pId: '10' }], + children: [ + { label: '城乡住宅用地', children: [], id: '11', pId: '10' }, + { label: '公共设施用地', children: [], id: '11', pId: '10' }, + { label: '工矿仓储用地', children: [], id: '11', pId: '10' }, + { label: '交通水利设施用地', children: [], id: '11', pId: '10' }, + { label: '旅游用地', children: [], id: '11', pId: '10' }, + { label: '军事设施用地', children: [], id: '11', pId: '10' }, + ], }, { - label: '住宅用地', + label: '未利用地', id: '2', children: [], }, From 2fb5713f6542664374e8a5c0305952aa478b82b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=83=B3?= <826276471@qq.com> Date: Wed, 19 Mar 2025 17:21:23 +0800 Subject: [PATCH 3/5] =?UTF-8?q?feat:=E7=9F=A5=E8=AF=86=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/src/apis/common/index.js | 15 +++ .../components/custom-rich-editor/index.vue | 25 ++-- .../components/custom-rich-editor/upFile.js | 10 ++ .../src/apis/inputSuppliesApi/index.js | 2 +- .../src/apis/inputSuppliesApi/knowledge.js | 11 +- .../src/apis/inputSuppliesApi/material.js | 3 +- .../knowledgeManage/index.vue | 119 +++++++++++------- 7 files changed, 116 insertions(+), 69 deletions(-) create mode 100644 main/src/apis/common/index.js create mode 100644 main/src/components/custom-rich-editor/upFile.js diff --git a/main/src/apis/common/index.js b/main/src/apis/common/index.js new file mode 100644 index 0000000..1890406 --- /dev/null +++ b/main/src/apis/common/index.js @@ -0,0 +1,15 @@ +import request from '@/utils/axios'; + +/** + * @Title: 上传图片 + */ +export function CommonUpload(data, params) { + return request({ + url: `/upload`, + method: 'POST', + apisType: 'upload', + uploadType: 'multipart/form-data', + data, + params, + }); +} diff --git a/main/src/components/custom-rich-editor/index.vue b/main/src/components/custom-rich-editor/index.vue index 1e4bad9..6cca864 100644 --- a/main/src/components/custom-rich-editor/index.vue +++ b/main/src/components/custom-rich-editor/index.vue @@ -7,7 +7,7 @@ --> -