部分页面调整
This commit is contained in:
		
							parent
							
								
									7440077076
								
							
						
					
					
						commit
						3c57139c17
					
				| @ -29,13 +29,13 @@ export const constantRoutes = [ | |||||||
|         path: '/government-affairs-app', |         path: '/government-affairs-app', | ||||||
|         component: () => import('@/views/appPage/government-affairs-app.vue'), |         component: () => import('@/views/appPage/government-affairs-app.vue'), | ||||||
|         name: 'government-affairs-app', |         name: 'government-affairs-app', | ||||||
|         meta: { title: '农业产业政务平台APP', icon: '' }, |         meta: { title: '现代农业产业政务平台APP', icon: '' }, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         path: '/operation-app', |         path: '/operation-app', | ||||||
|         component: () => import('@/views/appPage/operation-app.vue'), |         component: () => import('@/views/appPage/operation-app.vue'), | ||||||
|         name: 'operation-app', |         name: 'operation-app', | ||||||
|         meta: { title: '农业产业运营平台APP', icon: '' }, |         meta: { title: '现代农业产业运营平台APP', icon: '' }, | ||||||
|       }, |       }, | ||||||
|     ], |     ], | ||||||
|   }, |   }, | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ | |||||||
|   <meta charset="UTF-8" /> |   <meta charset="UTF-8" /> | ||||||
|   <link rel="icon" type="image/svg+xml" href="/logo.png" /> |   <link rel="icon" type="image/svg+xml" href="/logo.png" /> | ||||||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |   <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||||||
|   <title>农业产业政务平台</title> |   <title>现代农业产业政务平台</title> | ||||||
| </head> | </head> | ||||||
| 
 | 
 | ||||||
| <body> | <body> | ||||||
|  | |||||||
| @ -8,9 +8,9 @@ | |||||||
| <template> | <template> | ||||||
|   <el-breadcrumb class="layout-breadcrumb" separator="/"> |   <el-breadcrumb class="layout-breadcrumb" separator="/"> | ||||||
|     <transition-group name="breadcrumb"> |     <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"> |         <div class="layout-breadcrumb-item"> | ||||||
|           <span class="layout-breadcrumb-title">农业产业政务平台</span> |           <span class="layout-breadcrumb-title">现代农业产业政务平台</span> | ||||||
|         </div> |         </div> | ||||||
|       </el-breadcrumb-item> |       </el-breadcrumb-item> | ||||||
|       <el-breadcrumb-item v-for="(item, index) in matched" :key="item.name"> |       <el-breadcrumb-item v-for="(item, index) in matched" :key="item.name"> | ||||||
|  | |||||||
| @ -26,7 +26,7 @@ export const constantRoutes = [ | |||||||
|     name: 'layout', |     name: 'layout', | ||||||
|     component: Layout, |     component: Layout, | ||||||
|     redirect: '/sub-government-affairs-service/home', |     redirect: '/sub-government-affairs-service/home', | ||||||
|     meta: { title: '农业产业政务平台', icon: 'House' }, |     meta: { title: '现代农业产业政务平台', icon: 'House' }, | ||||||
|     children: [ |     children: [ | ||||||
|       { |       { | ||||||
|         path: '/sub-government-affairs-service/home', |         path: '/sub-government-affairs-service/home', | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ const whiteList = []; | |||||||
| router.beforeEach(async (to, from, next) => { | router.beforeEach(async (to, from, next) => { | ||||||
|   NProgress.start(); |   NProgress.start(); | ||||||
|   if (typeof to.meta.title === 'string') { |   if (typeof to.meta.title === 'string') { | ||||||
|     document.title = '农业产业政务平台 | ' + to.meta.title; |     document.title = '现代农业产业政务平台 | ' + to.meta.title; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   const userStore = useUserStore(); |   const userStore = useUserStore(); | ||||||
|  | |||||||
| @ -163,7 +163,7 @@ const resetForm = () => { | |||||||
| // 表格数据 | // 表格数据 | ||||||
| const tableData = ref([ | const tableData = ref([ | ||||||
|   { |   { | ||||||
|     batchCode: 'GM-SN-2025041201-001', |     batchCode: '1888764495178956802', | ||||||
|     productTypes: '黄皮甘蔗汁', |     productTypes: '黄皮甘蔗汁', | ||||||
|     name: '500ml/瓶', |     name: '500ml/瓶', | ||||||
|     purchaseDate: '2025-04-12 00:00:00', |     purchaseDate: '2025-04-12 00:00:00', | ||||||
| @ -179,14 +179,14 @@ const tableData = ref([ | |||||||
|     createDate: '2025-04-12 14:30:00', |     createDate: '2025-04-12 14:30:00', | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     batchCode: 'GM-SN-2025041802-002', |     batchCode: '1887327069017751553', | ||||||
|     productTypes: '圆茄罐头', |     productTypes: '薯片', | ||||||
|     name: '250g/罐', |     name: '150g/袋', | ||||||
|     purchaseDate: '2025-04-18 00:00:00', |     purchaseDate: '2025-04-18 00:00:00', | ||||||
|     number: '18个月', |     number: '18个月', | ||||||
|     Unit: '耿马绿丰食品加工厂', |     Unit: '耿马绿丰食品加工厂', | ||||||
|     baseCode: '耿马县孟定镇', |     baseCode: '耿马县孟定镇', | ||||||
|     baseName: '圆茄', |     baseName: '土豆', | ||||||
|     原产地: '云南耿马', |     原产地: '云南耿马', | ||||||
|     plotCode: '孟定生态蔬菜基地', |     plotCode: '孟定生态蔬菜基地', | ||||||
|     plotName: '孟定镇罕宏村', |     plotName: '孟定镇罕宏村', | ||||||
| @ -195,30 +195,30 @@ const tableData = ref([ | |||||||
|     createDate: '2025-04-18 09:15:00', |     createDate: '2025-04-18 09:15:00', | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     batchCode: 'GM-SN-2025041503-003', |     batchCode: '1888767890795200513', | ||||||
|     productTypes: '小米辣酱', |     productTypes: '葡萄干', | ||||||
|     name: '200g/瓶', |     name: '200g/袋', | ||||||
|     purchaseDate: '2025-04-15 00:00:00', |     purchaseDate: '2025-04-15 00:00:00', | ||||||
|     number: '24个月', |     number: '24个月', | ||||||
|     Unit: '耿马辣味坊食品厂', |     Unit: '耿马辣味坊食品厂', | ||||||
|     baseCode: '耿马县四排山乡', |     baseCode: '耿马县四排山乡', | ||||||
|     baseName: '小米辣', |     baseName: '葡萄', | ||||||
|     原产地: '云南耿马', |     原产地: '云南耿马', | ||||||
|     plotCode: '四排山辣椒种植园', |     plotCode: '四排山葡萄种植园', | ||||||
|     plotName: '四排山乡东坡村', |     plotName: '四排山乡东坡村', | ||||||
|     businessEntity: '个体户', |     businessEntity: '个体户', | ||||||
|     record: '四排山辣椒种植户联合体', |     record: '四排山葡萄种植户联合体', | ||||||
|     createDate: '2025-04-15 16:45:00', |     createDate: '2025-04-15 16:45:00', | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     batchCode: 'GM-SN-2025042004-004', |     batchCode: '1894217008841654274', | ||||||
|     productTypes: '丝瓜干', |     productTypes: '黄瓜干', | ||||||
|     name: '100g/袋', |     name: '100g/袋', | ||||||
|     purchaseDate: '2025-04-20 00:00:00', |     purchaseDate: '2025-04-20 00:00:00', | ||||||
|     number: '6个月', |     number: '6个月', | ||||||
|     Unit: '耿马山野农产加工厂', |     Unit: '耿马山野农产加工厂', | ||||||
|     baseCode: '耿马县贺派乡', |     baseCode: '耿马县贺派乡', | ||||||
|     baseName: '丝瓜', |     baseName: '黄瓜', | ||||||
|     原产地: '云南耿马', |     原产地: '云南耿马', | ||||||
|     plotCode: '贺派有机蔬菜基地', |     plotCode: '贺派有机蔬菜基地', | ||||||
|     plotName: '贺派乡芒抗村', |     plotName: '贺派乡芒抗村', | ||||||
| @ -227,35 +227,19 @@ const tableData = ref([ | |||||||
|     createDate: '2025-04-20 11:20:00', |     createDate: '2025-04-20 11:20:00', | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     batchCode: 'GM-SN-2025041705-005', |     batchCode: '1888771674892075010', | ||||||
|     productTypes: '苦瓜茶', |     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: '香蕉干', |  | ||||||
|     name: '150g/包', |     name: '150g/包', | ||||||
|     purchaseDate: '2025-04-22 00:00:00', |     purchaseDate: '2025-04-22 00:00:00', | ||||||
|     number: '9个月', |     number: '9个月', | ||||||
|     Unit: '耿马果香食品有限公司', |     Unit: '耿马果香食品有限公司', | ||||||
|     baseCode: '耿马县勐撒镇', |     baseCode: '耿马县勐撒镇', | ||||||
|     baseName: '香蕉', |     baseName: '草莓', | ||||||
|     原产地: '云南耿马', |     原产地: '云南耿马', | ||||||
|     plotCode: '勐撒香蕉种植园', |     plotCode: '勐撒草莓种植园', | ||||||
|     plotName: '勐撒镇户肯村', |     plotName: '勐撒镇户肯村', | ||||||
|     businessEntity: '企业', |     businessEntity: '企业', | ||||||
|     record: '勐撒香蕉产业联盟', |     record: '勐撒草莓产业联盟', | ||||||
|     createDate: '2025-04-22 10:05:00', |     createDate: '2025-04-22 10:05:00', | ||||||
|   }, |   }, | ||||||
| ]); | ]); | ||||||
| @ -263,7 +247,7 @@ const selectedIds = ref([]); | |||||||
| const tableLoading = ref(false); | const tableLoading = ref(false); | ||||||
| const tableTotal = ref(0); | const tableTotal = ref(0); | ||||||
| const columns = ref([ | const columns = ref([ | ||||||
|   { prop: 'batchCode', label: '产品溯源码', slotName: 'batchCode', width: 150 }, |   { prop: 'batchCode', label: '产品溯源码', slotName: 'batchCode', width: 170 }, | ||||||
|   { prop: 'productTypes', label: '产品名称' }, |   { prop: 'productTypes', label: '产品名称' }, | ||||||
|   { prop: 'name', label: '产品规格' }, |   { prop: 'name', label: '产品规格' }, | ||||||
|   { prop: 'purchaseDate', label: '生产日期' }, |   { prop: 'purchaseDate', label: '生产日期' }, | ||||||
| @ -297,6 +281,8 @@ const loadData = async () => { | |||||||
|   //   tableLoading.value = false; |   //   tableLoading.value = false; | ||||||
|   //   console.error(error); |   //   console.error(error); | ||||||
|   // } |   // } | ||||||
|  | 
 | ||||||
|  |   tableTotal.value = tableData.value.length; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| const extractThirdLevelChildren = (dataArray) => { | const extractThirdLevelChildren = (dataArray) => { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user