部分页面调整

This commit is contained in:
郭永超 2025-07-11 11:24:48 +08:00
parent 7440077076
commit 3c57139c17
6 changed files with 29 additions and 43 deletions

View File

@ -29,13 +29,13 @@ export const constantRoutes = [
path: '/government-affairs-app',
component: () => import('@/views/appPage/government-affairs-app.vue'),
name: 'government-affairs-app',
meta: { title: '农业产业政务平台APP', icon: '' },
meta: { title: '现代农业产业政务平台APP', icon: '' },
},
{
path: '/operation-app',
component: () => import('@/views/appPage/operation-app.vue'),
name: 'operation-app',
meta: { title: '农业产业运营平台APP', icon: '' },
meta: { title: '现代农业产业运营平台APP', icon: '' },
},
],
},

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>农业产业政务平台</title>
<title>现代农业产业政务平台</title>
</head>
<body>

View File

@ -8,9 +8,9 @@
<template>
<el-breadcrumb class="layout-breadcrumb" separator="/">
<transition-group name="breadcrumb">
<el-breadcrumb-item v-if="matched[0].meta.title !== '农业产业政务平台'" key="home" :to="{ path: '/' }">
<el-breadcrumb-item v-if="matched[0].meta.title !== '现代农业产业政务平台'" key="home" :to="{ path: '/' }">
<div class="layout-breadcrumb-item">
<span class="layout-breadcrumb-title">农业产业政务平台</span>
<span class="layout-breadcrumb-title">现代农业产业政务平台</span>
</div>
</el-breadcrumb-item>
<el-breadcrumb-item v-for="(item, index) in matched" :key="item.name">

View File

@ -26,7 +26,7 @@ export const constantRoutes = [
name: 'layout',
component: Layout,
redirect: '/sub-government-affairs-service/home',
meta: { title: '农业产业政务平台', icon: 'House' },
meta: { title: '现代农业产业政务平台', icon: 'House' },
children: [
{
path: '/sub-government-affairs-service/home',

View File

@ -12,7 +12,7 @@ const whiteList = [];
router.beforeEach(async (to, from, next) => {
NProgress.start();
if (typeof to.meta.title === 'string') {
document.title = '农业产业政务平台 | ' + to.meta.title;
document.title = '现代农业产业政务平台 | ' + to.meta.title;
}
const userStore = useUserStore();

View File

@ -163,7 +163,7 @@ const resetForm = () => {
//
const tableData = ref([
{
batchCode: 'GM-SN-2025041201-001',
batchCode: '1888764495178956802',
productTypes: '黄皮甘蔗汁',
name: '500ml/瓶',
purchaseDate: '2025-04-12 00:00:00',
@ -179,14 +179,14 @@ const tableData = ref([
createDate: '2025-04-12 14:30:00',
},
{
batchCode: 'GM-SN-2025041802-002',
productTypes: '圆茄罐头',
name: '250g/罐',
batchCode: '1887327069017751553',
productTypes: '薯片',
name: '150g/袋',
purchaseDate: '2025-04-18 00:00:00',
number: '18个月',
Unit: '耿马绿丰食品加工厂',
baseCode: '耿马县孟定镇',
baseName: '圆茄',
baseName: '土豆',
原产地: '云南耿马',
plotCode: '孟定生态蔬菜基地',
plotName: '孟定镇罕宏村',
@ -195,30 +195,30 @@ const tableData = ref([
createDate: '2025-04-18 09:15:00',
},
{
batchCode: 'GM-SN-2025041503-003',
productTypes: '小米辣酱',
name: '200g/',
batchCode: '1888767890795200513',
productTypes: '葡萄干',
name: '200g/',
purchaseDate: '2025-04-15 00:00:00',
number: '24个月',
Unit: '耿马辣味坊食品厂',
baseCode: '耿马县四排山乡',
baseName: '小米辣',
baseName: '葡萄',
原产地: '云南耿马',
plotCode: '四排山辣椒种植园',
plotCode: '四排山葡萄种植园',
plotName: '四排山乡东坡村',
businessEntity: '个体户',
record: '四排山辣椒种植户联合体',
record: '四排山葡萄种植户联合体',
createDate: '2025-04-15 16:45:00',
},
{
batchCode: 'GM-SN-2025042004-004',
productTypes: '瓜干',
batchCode: '1894217008841654274',
productTypes: '瓜干',
name: '100g/袋',
purchaseDate: '2025-04-20 00:00:00',
number: '6个月',
Unit: '耿马山野农产加工厂',
baseCode: '耿马县贺派乡',
baseName: '瓜',
baseName: '瓜',
原产地: '云南耿马',
plotCode: '贺派有机蔬菜基地',
plotName: '贺派乡芒抗村',
@ -227,35 +227,19 @@ const tableData = ref([
createDate: '2025-04-20 11:20:00',
},
{
batchCode: 'GM-SN-2025041705-005',
productTypes: '苦瓜茶',
name: '50g/盒',
purchaseDate: '2025-04-17 00:00:00',
number: '12个月',
Unit: '耿马原生茶业',
baseCode: '耿马县大兴乡',
baseName: '苦瓜',
原产地: '云南耿马',
plotCode: '大兴乡高山农场',
plotName: '大兴乡大寨村',
businessEntity: '合作社',
record: '大兴乡生态农业合作社',
createDate: '2025-04-17 13:50:00',
},
{
batchCode: 'GM-SN-2025042206-006',
productTypes: '香蕉干',
batchCode: '1888771674892075010',
productTypes: '草莓干',
name: '150g/包',
purchaseDate: '2025-04-22 00:00:00',
number: '9个月',
Unit: '耿马果香食品有限公司',
baseCode: '耿马县勐撒镇',
baseName: '香蕉',
baseName: '草莓',
原产地: '云南耿马',
plotCode: '勐撒香蕉种植园',
plotCode: '勐撒草莓种植园',
plotName: '勐撒镇户肯村',
businessEntity: '企业',
record: '勐撒香蕉产业联盟',
record: '勐撒草莓产业联盟',
createDate: '2025-04-22 10:05:00',
},
]);
@ -263,7 +247,7 @@ const selectedIds = ref([]);
const tableLoading = ref(false);
const tableTotal = ref(0);
const columns = ref([
{ prop: 'batchCode', label: '产品溯源码', slotName: 'batchCode', width: 150 },
{ prop: 'batchCode', label: '产品溯源码', slotName: 'batchCode', width: 170 },
{ prop: 'productTypes', label: '产品名称' },
{ prop: 'name', label: '产品规格' },
{ prop: 'purchaseDate', label: '生产日期' },
@ -297,6 +281,8 @@ const loadData = async () => {
// tableLoading.value = false;
// console.error(error);
// }
tableTotal.value = tableData.value.length;
};
const extractThirdLevelChildren = (dataArray) => {