From 014a617eff981b431746a41a44bc086367021c6c Mon Sep 17 00:00:00 2001 From: Xulinchuan <2026734208@qq.com> Date: Tue, 1 Jul 2025 14:18:38 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=80=80=E5=87=BA=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sub-operation-service/src/assets/images/quit.png | Bin 0 -> 580 bytes sub-operation-service/src/assets/images/quit.svg | 1 + .../src/layouts/component/Header/index.vue | 14 +++++++------- 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 sub-operation-service/src/assets/images/quit.png create mode 100644 sub-operation-service/src/assets/images/quit.svg diff --git a/sub-operation-service/src/assets/images/quit.png b/sub-operation-service/src/assets/images/quit.png new file mode 100644 index 0000000000000000000000000000000000000000..2c714588c7ba3ef61603cce927596bf6c4f16e31 GIT binary patch literal 580 zcmV-K0=xZ*P)`~ zf>0E_AV!CF1+^=vOVAaxT|rA?qK>3Ha0lwZ7@dGSs4I{i*zN#VP>25MxeA65s04Vg zlb+<}J)Y=2-p{!}^v6)54#(qhm2yJ4Twd$CzNRDuCX-1IOBYt5eBr=)tyXJBaRjE* z>A-c}E(yfxbZT@u9XoiY`I~_AUZGI1C?{;U+q+`1*vIeJ6-8kmb|e8Ghr?lxP^~CG ztdLq8Yn>uetA-CsrP4P^gh~>C@W*z6MiPLi&X8IM_C>M?j7FoHrfHAddY%rf4j4qzhd+}-0M75dt=wUh1i>2M zDy^V+47AXY@aZ>%xAjHp+$fBXPG3C6&Z SvZtj00000 \ No newline at end of file diff --git a/sub-operation-service/src/layouts/component/Header/index.vue b/sub-operation-service/src/layouts/component/Header/index.vue index 93b4033..189fede 100644 --- a/sub-operation-service/src/layouts/component/Header/index.vue +++ b/sub-operation-service/src/layouts/component/Header/index.vue @@ -24,9 +24,12 @@ 商家中心 个人中心 - -
- 返回首页 + + + + + @@ -75,8 +78,6 @@ import { getAssetsFile } from '@/utils'; import { getGoodNum } from '@/apis/agricultural.js'; import { useMethodsStore } from '@/store/modules/methods'; -const { VITE_APP_PLATFORM } = import.meta.env; - const router = useRouter(); const keyword = ref(''); @@ -142,8 +143,7 @@ function Search() { const toHome = () => { console.info('toHome', router); - // router.push('/sub-operation-service'); - window.location.href = VITE_APP_PLATFORM; + router.push('/'); }; const toUserCenter = () => { From 91f372d7cd3b477332ad7d9800a7945aa56a3ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com> Date: Tue, 1 Jul 2025 14:19:13 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=8A=95=E5=85=A5=E5=93=81=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E6=A8=A1=E5=9D=97=E5=88=97=E8=A1=A8=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/apis/inputSuppliesApi/demandManage.js | 4 ++-- .../demandManage/fertilizerDemand.vue | 18 +++++++------- .../demandManage/pesticideDemand.vue | 18 +++++++------- .../trace/planting/seedling/basic/index.vue | 24 +++++++++++++++++-- 4 files changed, 42 insertions(+), 22 deletions(-) diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/demandManage.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/demandManage.js index 6099fc1..b92c1cf 100644 --- a/sub-government-affairs-service/src/apis/inputSuppliesApi/demandManage.js +++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/demandManage.js @@ -32,7 +32,7 @@ export function getRowDetails({ url, id }) { /* 肥料需求-列表 */ export function getFertilizeDemandRecords(params) { - return request('/inputGoods/supervise/fertilize/page', { + return request('/inputGoods/demand/fertilize/page', { params, }); } @@ -57,7 +57,7 @@ export function delFertilizeDemand(ids) { /* 农药需求-列表 */ export function getPesticideDemandRecords(params) { - return request('/inputGoods/supervise/pesticide/page', { + return request('/inputGoods/demand/pesticide/page', { params, }); } diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/fertilizerDemand.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/fertilizerDemand.vue index 0b942bd..7f4b25f 100644 --- a/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/fertilizerDemand.vue +++ b/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/fertilizerDemand.vue @@ -165,12 +165,12 @@ const columns = ref([ { prop: 'regionName', label: '行政区域名称' }, { prop: 'gridId', label: '网格编码' }, { prop: 'gridName', label: '网格名称' }, - { prop: 'landId', label: '地块编码' }, + { prop: 'landNumber', label: '地块编码' }, { prop: 'landName', label: '地块名称' }, - { prop: 'extent', label: '面积(亩)' }, + { prop: 'area', label: '面积(亩)' }, { prop: 'useNumber', label: '肥料需求', slotName: 'useNumber' }, - { prop: 'businessEntityCode', label: '生产经营主体编码' }, - { prop: 'businessEntityName', label: '生产经营主体名称' }, + { prop: 'subjectName', label: '生产经营主体编码' }, + { prop: 'subjectNumber', label: '生产经营主体名称' }, // { prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' }, ]); const handlePaginationChange = ({ page, pageSize }) => { @@ -181,14 +181,14 @@ const handlePaginationChange = ({ page, pageSize }) => { let landNums = ref(0); let totalArea = computed(() => { const sum = selectedRows.value.reduce((sum, item) => { - return sum + Math.round(item.extent * 100); + return sum + Math.round(item.area * 100); }, 0); const result = sum / 100; return parseFloat(result.toFixed(2)); }); let totalSeed = computed(() => { const sum = selectedRows.value.reduce((sum, item) => { - return sum + Math.round(item.useNumber * 100); + return sum + Math.round(item.demandCount * 100); }, 0); const result = sum / 100; return parseFloat(result.toFixed(2)); @@ -211,9 +211,9 @@ const loadData = async () => { tableTotal.value = response.data.total; // 没有接口,添加模拟数据 - tableData.value.forEach((el, index) => { - el.extent = extentArr[index].extent; - }); + // tableData.value.forEach((el, index) => { + // el.extent = extentArr[index].extent; + // }); } } catch (error) { tableLoading.value = false; diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/pesticideDemand.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/pesticideDemand.vue index e371582..a0be289 100644 --- a/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/pesticideDemand.vue +++ b/sub-government-affairs-service/src/views/inputSuppliesManage/demandManage/pesticideDemand.vue @@ -165,12 +165,12 @@ const columns = ref([ { prop: 'regionName', label: '行政区域名称' }, { prop: 'gridId', label: '网格编码' }, { prop: 'gridName', label: '网格名称' }, - { prop: 'landId', label: '地块编码' }, + { prop: 'landNumber', label: '地块编码' }, { prop: 'landName', label: '地块名称' }, - { prop: 'extent', label: '面积(亩)' }, + { prop: 'area', label: '面积(亩)' }, { prop: 'useNumber', label: '农药需求', slotName: 'useNumber' }, - { prop: 'businessEntityCode', label: '生产经营主体编码' }, - { prop: 'businessEntityName', label: '生产经营主体名称' }, + { prop: 'subjectName', label: '生产经营主体编码' }, + { prop: 'subjectNumber', label: '生产经营主体名称' }, // { prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' }, ]); const handlePaginationChange = ({ page, pageSize }) => { @@ -181,14 +181,14 @@ const handlePaginationChange = ({ page, pageSize }) => { let landNums = ref(0); let totalArea = computed(() => { const sum = selectedRows.value.reduce((sum, item) => { - return sum + Math.round(item.extent * 100); + return sum + Math.round(item.area * 100); }, 0); const result = sum / 100; return parseFloat(result.toFixed(2)); }); let totalSeed = computed(() => { const sum = selectedRows.value.reduce((sum, item) => { - return sum + Math.round(item.useNumber * 100); + return sum + Math.round(item.demandCount * 100); }, 0); const result = sum / 100; return parseFloat(result.toFixed(2)); @@ -211,9 +211,9 @@ const loadData = async () => { tableTotal.value = response.data.total; // 没有接口,添加模拟数据 - tableData.value.forEach((el, index) => { - el.extent = extentArr[index].extent; - }); + // tableData.value.forEach((el, index) => { + // el.extent = extentArr[index].extent; + // }); } } catch (error) { tableLoading.value = false; diff --git a/sub-government-affairs-service/src/views/trace/planting/seedling/basic/index.vue b/sub-government-affairs-service/src/views/trace/planting/seedling/basic/index.vue index 76c6419..d84d1b9 100644 --- a/sub-government-affairs-service/src/views/trace/planting/seedling/basic/index.vue +++ b/sub-government-affairs-service/src/views/trace/planting/seedling/basic/index.vue @@ -166,8 +166,28 @@ const loadData = async () => { // tableData.value = response.data.records; // tableTotal.value = response.data.total; - tableData.value = createMockData; - tableTotal.value = createMockData.length; + let analogData = [ + { + provenanceId: 'GMZZ001', + provenanceName: '黄皮甘蔗', + varietyName: '黄蔗', + brand: '云蔗牌', + manufacturer: '耿马县农业发展公司', + seedTypeName: '水果种子', + productUnit: '500克/袋', + }, + { + provenanceId: 'GMZZ002', + provenanceName: '圆茄', + varietyName: '绿圆', + brand: '绿圆牌', + manufacturer: '云南绿色蔬菜有限公司', + seedTypeName: '蔬菜种子', + productUnit: '200粒/包', + }, + ]; + tableData.value = analogData; + tableTotal.value = analogData.length; } } catch (error) { tableLoading.value = false; From 72b4e02d51de7cb2df294e78bd84eeb173111672 Mon Sep 17 00:00:00 2001 From: 13713575202 <1345916905@qq.com> Date: Tue, 1 Jul 2025 15:40:53 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=A4=8F=E6=BB=A8=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/home/index.vue | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/sub-government-affairs-service/src/views/home/index.vue b/sub-government-affairs-service/src/views/home/index.vue index 730c89a..226e1bd 100644 --- a/sub-government-affairs-service/src/views/home/index.vue +++ b/sub-government-affairs-service/src/views/home/index.vue @@ -103,11 +103,11 @@ const state = reactive({ }, }, areaData: [ - { value: 2, name: '耿马镇' }, - { value: 6, name: '勐永镇' }, - { value: 4, name: '勐撒镇' }, - { value: 2, name: '孟定镇' }, - { value: 3, name: '大兴乡' }, + { value: '2.00', name: '耿马镇' }, + { value: '6.00', name: '勐永镇' }, + { value: '4.00', name: '勐撒镇' }, + { value: '2.00', name: '孟定镇' }, + { value: '3.00', name: '大兴乡' }, ], breedingOption: { color: ['#41b879', '#fed500'], @@ -193,11 +193,11 @@ const state = reactive({ }, }, inputsData: [ - { value: 75, name: '农药使用', type: '投入品', max: 100, unit: '吨' }, + { value: '75.00', name: '农药使用', type: '投入品', max: 100, unit: '吨' }, // { value: 38, name: '农机使用', type: '投入品', max: 100, unit: '台' }, - { value: 18, name: '种子使用', type: '投入品', max: 100, unit: '吨' }, + { value: '18.00', name: '种子使用', type: '投入品', max: 100, unit: '吨' }, // { value: 55, name: '兽药使用', type: '投入品', max: 100, unit: '千克' }, - { value: 65, name: '肥料使用', type: '投入品', max: 100, unit: '吨' }, + { value: '65.00', name: '肥料使用', type: '投入品', max: 100, unit: '吨' }, ], businessOption: { title: { @@ -237,7 +237,7 @@ const state = reactive({ businessData: [ { value: 217, name: '农户' }, // { value: 358, name: '村集体' }, - { value: 28, name: '农企/合作社' }, + { value: 28, name: '企业' }, // { value: 128, name: '农资企业' }, // { value: 22, name: '种源企业' }, // { value: 41, name: '生产加工企业' }, @@ -270,49 +270,49 @@ const state = reactive({ codingData: [ { name: '一月', - value: 40, + value: 40000, type: '赋码', seriesType: 'bar', }, { name: '一月', - value: 60, + value: 60000, type: '扫码', seriesType: 'line', }, { name: '二月', - value: 100, + value: 100000, type: '赋码', seriesType: 'bar', }, { name: '二月', - value: 120, + value: 120000, type: '扫码', seriesType: 'line', }, { name: '三月', - value: 80, + value: 80000, type: '赋码', seriesType: 'bar', }, { name: '三月', - value: 124, + value: 124000, type: '扫码', seriesType: 'line', }, { name: '四月', - value: 200, + value: 200000, type: '赋码', seriesType: 'bar', }, { name: '四月', - value: 220, + value: 220000, type: '扫码', seriesType: 'line', }, From 522dfdb6cb4569a659592dedfe1315d6637d8ce8 Mon Sep 17 00:00:00 2001 From: 13713575202 <1345916905@qq.com> Date: Tue, 1 Jul 2025 15:42:25 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=A4=8F=E6=BB=A8=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BC=81=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/trace/statistic/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub-government-affairs-service/src/views/trace/statistic/index.vue b/sub-government-affairs-service/src/views/trace/statistic/index.vue index 5ee9208..13688ec 100644 --- a/sub-government-affairs-service/src/views/trace/statistic/index.vue +++ b/sub-government-affairs-service/src/views/trace/statistic/index.vue @@ -240,7 +240,7 @@ const loadData = async () => { icon: '1', }, { - name: '农企/合作社', + name: '企业', num: 54, icon: '2', }, From 940953cd84b4cef034564f26993179a8a88d4f2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com> Date: Tue, 1 Jul 2025 16:01:49 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E6=B7=BB=E5=8A=A0app=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/src/assets/images/quit.svg | 1 + main/src/micro/app.js | 4 +-- main/src/router/index.js | 12 +++++++ .../views/appPage/government-affairs-app.vue | 32 +++++++++++++++++++ main/src/views/appPage/operation-app.vue | 32 +++++++++++++++++++ main/src/views/index.vue | 8 +++-- .../src/layouts/component/Header/index.vue | 3 +- .../trace/planting/seedling/use/index.vue | 4 +-- sub-operation-service/.env.test | 2 +- sub-operation-service/components.d.ts | 1 - .../src/layouts/component/Header/index.vue | 5 ++- 11 files changed, 94 insertions(+), 10 deletions(-) create mode 100644 main/src/assets/images/quit.svg create mode 100644 main/src/views/appPage/government-affairs-app.vue create mode 100644 main/src/views/appPage/operation-app.vue diff --git a/main/src/assets/images/quit.svg b/main/src/assets/images/quit.svg new file mode 100644 index 0000000..29ae4a3 --- /dev/null +++ b/main/src/assets/images/quit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/main/src/micro/app.js b/main/src/micro/app.js index 2ad4af2..60c9d7d 100644 --- a/main/src/micro/app.js +++ b/main/src/micro/app.js @@ -20,7 +20,7 @@ export const leftApps = [ { name: 'sub-app2', entry: VITE_APP_SUB_GAS, - activeRule: '/sub-app', + activeRule: '/operation-app', title: 'APP', icon: 'images/platform/icon-app.png', }, @@ -51,7 +51,7 @@ export const rightApps = [ { name: 'sub-app1', entry: VITE_APP_SUB_GAS, - activeRule: '/sub-app', + activeRule: '/government-affairs-app', title: 'APP', icon: 'images/platform/icon-app.png', }, diff --git a/main/src/router/index.js b/main/src/router/index.js index 0ec93ba..b58a0ea 100644 --- a/main/src/router/index.js +++ b/main/src/router/index.js @@ -25,6 +25,18 @@ export const constantRoutes = [ name: 'platform', meta: { title: '平台入口', icon: 'House' }, }, + { + path: '/government-affairs-app', + component: () => import('@/views/appPage/government-affairs-app.vue'), + name: 'government-affairs-app', + meta: { title: '农业产业政务平台APP', icon: '' }, + }, + { + path: '/operation-app', + component: () => import('@/views/appPage/operation-app.vue'), + name: 'operation-app', + meta: { title: '农业产业运营平台APP', icon: '' }, + }, ], }, ]; diff --git a/main/src/views/appPage/government-affairs-app.vue b/main/src/views/appPage/government-affairs-app.vue new file mode 100644 index 0000000..d163c76 --- /dev/null +++ b/main/src/views/appPage/government-affairs-app.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/main/src/views/appPage/operation-app.vue b/main/src/views/appPage/operation-app.vue new file mode 100644 index 0000000..4ee4970 --- /dev/null +++ b/main/src/views/appPage/operation-app.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/main/src/views/index.vue b/main/src/views/index.vue index 12db49c..ca82398 100644 --- a/main/src/views/index.vue +++ b/main/src/views/index.vue @@ -37,9 +37,13 @@ import { getAssetsFile } from '@/utils'; const gotoPage = (row) => { // window.history.pushState({}, row.name, row.activeRule); if (row.name == 'sub-app1') { - window.location.href = 'https://www.pgyer.com/MXd3uUrO'; + // 政务app + // window.location.href = 'https://www.pgyer.com/MXd3uUrO'; + window.location.href = row.activeRule; } else if (row.name == 'sub-app2') { - window.location.href = 'https://www.pgyer.com/4SVVtpob'; + // 运营app + // window.location.href = 'https://www.pgyer.com/4SVVtpob'; + window.location.href = row.activeRule; } else { window.location.href = row.activeRule; } diff --git a/sub-government-affairs-service/src/layouts/component/Header/index.vue b/sub-government-affairs-service/src/layouts/component/Header/index.vue index 726c9ff..9ada9d3 100644 --- a/sub-government-affairs-service/src/layouts/component/Header/index.vue +++ b/sub-government-affairs-service/src/layouts/component/Header/index.vue @@ -37,7 +37,8 @@ import TagsView from '../TagsView'; const { VITE_APP_PLATFORM } = import.meta.env; const goHome = () => { - window.location.href = VITE_APP_PLATFORM; + // window.location.href = VITE_APP_PLATFORM; + window.location.href = '/'; }; const SettingStore = useSettingStore(); diff --git a/sub-government-affairs-service/src/views/trace/planting/seedling/use/index.vue b/sub-government-affairs-service/src/views/trace/planting/seedling/use/index.vue index b3d0c42..80b1096 100644 --- a/sub-government-affairs-service/src/views/trace/planting/seedling/use/index.vue +++ b/sub-government-affairs-service/src/views/trace/planting/seedling/use/index.vue @@ -145,9 +145,9 @@ const columns = ref([ { prop: 'gridName', label: '所属网格' }, { prop: 'name', label: '姓名' }, { prop: 'phone', label: '联系方式' }, - { prop: 'provenanceId', label: '种子编号' }, + { prop: 'provenanceId', label: '种子种苗编号' }, { prop: 'provenanceName', label: '种子种苗名称' }, - { prop: 'useNumber', label: '使用量' }, + { prop: 'useNumber', label: '使用量', formatter: (row) => `${row.useNumber} ${row.useUnit}` }, { prop: 'useTime', label: '使用时间' }, { prop: 'action', label: '操作', slotName: 'action', width: 100, fixed: 'right' }, ]); diff --git a/sub-operation-service/.env.test b/sub-operation-service/.env.test index c18f6bd..3e9ef77 100644 --- a/sub-operation-service/.env.test +++ b/sub-operation-service/.env.test @@ -1,6 +1,6 @@ # 测试环境 VITE_APP_MIAN = 'daimp-front-main' -VITE_APP_MIAN_URL = 'http://192.168.18.99:88' +VITE_APP_MIAN_URL = 'http://192.168.18.99' VITE_APP_NAME = 'sub-operation-service' # 接口 VITE_APP_BASE_API = '/apis' diff --git a/sub-operation-service/components.d.ts b/sub-operation-service/components.d.ts index 32f9580..850fee4 100644 --- a/sub-operation-service/components.d.ts +++ b/sub-operation-service/components.d.ts @@ -10,7 +10,6 @@ declare module 'vue' { BreadComp: typeof import('./src/components/breadComp.vue')['default'] CenterMap: typeof import('./src/components/centerMap.vue')['default'] CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default'] - copy: typeof import('./src/components/custom-scroll-title copy/index.vue')['default'] CostomImg: typeof import('./src/components/costomImg.vue')['default'] CustomBack: typeof import('./src/components/customBack.vue')['default'] CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default'] diff --git a/sub-operation-service/src/layouts/component/Header/index.vue b/sub-operation-service/src/layouts/component/Header/index.vue index 189fede..26d5661 100644 --- a/sub-operation-service/src/layouts/component/Header/index.vue +++ b/sub-operation-service/src/layouts/component/Header/index.vue @@ -78,6 +78,8 @@ import { getAssetsFile } from '@/utils'; import { getGoodNum } from '@/apis/agricultural.js'; import { useMethodsStore } from '@/store/modules/methods'; +const { VITE_APP_PLATFORM } = import.meta.env; + const router = useRouter(); const keyword = ref(''); @@ -143,7 +145,8 @@ function Search() { const toHome = () => { console.info('toHome', router); - router.push('/'); + // window.location.href = VITE_APP_PLATFORM; + window.location.href = '/'; }; const toUserCenter = () => {