xiabin
This commit is contained in:
		
							parent
							
								
									185a09f152
								
							
						
					
					
						commit
						761ae3eb6f
					
				| @ -60,36 +60,36 @@ const inputSuppliesRoutes = [ | |||||||
|           // },
 |           // },
 | ||||||
|         ], |         ], | ||||||
|       }, |       }, | ||||||
|       { |       // {
 | ||||||
|         path: '/sub-government-affairs-service/productionDealer', |       //   path: '/sub-government-affairs-service/productionDealer',
 | ||||||
|         name: 'productionDealer', |       //   name: 'productionDealer',
 | ||||||
|         component: () => import('@/views/inputSuppliesManage/productionDealer/index.vue'), |       //   component: () => import('@/views/inputSuppliesManage/productionDealer/index.vue'),
 | ||||||
|         meta: { title: '企业经销商管理', icon: '' }, |       //   meta: { title: '企业经销商管理', icon: '' },
 | ||||||
|       }, |       // },
 | ||||||
|       { |       // {
 | ||||||
|         path: '/sub-government-affairs-service/enterpriseDealerCheck', |       //   path: '/sub-government-affairs-service/enterpriseDealerCheck',
 | ||||||
|         name: 'enterpriseDealerCheck', |       //   name: 'enterpriseDealerCheck',
 | ||||||
|         component: () => import('@/views/inputSuppliesManage/enterpriseDealerCheck/index.vue'), |       //   component: () => import('@/views/inputSuppliesManage/enterpriseDealerCheck/index.vue'),
 | ||||||
|         meta: { title: '企业经销商抽检', icon: '' }, |       //   meta: { title: '企业经销商抽检', icon: '' },
 | ||||||
|       }, |       // },
 | ||||||
|       // {
 |       // {
 | ||||||
|       //   path: '/sub-government-affairs-service/useSupervise',
 |       //   path: '/sub-government-affairs-service/useSupervise',
 | ||||||
|       //   name: 'useSupervise',
 |       //   name: 'useSupervise',
 | ||||||
|       //   component: () => import('@/views/inputSuppliesManage/useSupervise/index.vue'),
 |       //   component: () => import('@/views/inputSuppliesManage/useSupervise/index.vue'),
 | ||||||
|       //   meta: { title: '使用监管', icon: '' },
 |       //   meta: { title: '使用监管', icon: '' },
 | ||||||
|       // },
 |       // },
 | ||||||
|       { |       // {
 | ||||||
|         path: '/sub-government-affairs-service/leaseSupervise', |       //   path: '/sub-government-affairs-service/leaseSupervise',
 | ||||||
|         name: 'leaseSupervise', |       //   name: 'leaseSupervise',
 | ||||||
|         component: () => import('@/views/inputSuppliesManage/leaseSupervise/index.vue'), |       //   component: () => import('@/views/inputSuppliesManage/leaseSupervise/index.vue'),
 | ||||||
|         meta: { title: '农机租赁监管', icon: '' }, |       //   meta: { title: '农机租赁监管', icon: '' },
 | ||||||
|       }, |       // },
 | ||||||
|       { |       // {
 | ||||||
|         path: '/sub-government-affairs-service/redBlackRank', |       //   path: '/sub-government-affairs-service/redBlackRank',
 | ||||||
|         name: 'redBlackRank', |       //   name: 'redBlackRank',
 | ||||||
|         component: () => import('@/views/inputSuppliesManage/redBlackRank/index.vue'), |       //   component: () => import('@/views/inputSuppliesManage/redBlackRank/index.vue'),
 | ||||||
|         meta: { title: '企业红黑榜', icon: '' }, |       //   meta: { title: '企业红黑榜', icon: '' },
 | ||||||
|       }, |       // },
 | ||||||
|       { |       { | ||||||
|         path: '/sub-government-affairs-service/knowledgeManage', |         path: '/sub-government-affairs-service/knowledgeManage', | ||||||
|         name: 'knowledgeManage', |         name: 'knowledgeManage', | ||||||
|  | |||||||
| @ -68,12 +68,12 @@ export default [ | |||||||
|         name: 'examineList', |         name: 'examineList', | ||||||
|         meta: { title: '主体审核管理', icon: '' }, |         meta: { title: '主体审核管理', icon: '' }, | ||||||
|       }, |       }, | ||||||
|       { |       // {
 | ||||||
|         path: '/sub-government-affairs-service/examineRecord', |       //   path: '/sub-government-affairs-service/examineRecord',
 | ||||||
|         component: () => import('@/views/productOperateMain/examine/record.vue'), |       //   component: () => import('@/views/productOperateMain/examine/record.vue'),
 | ||||||
|         name: 'examineRecord', |       //   name: 'examineRecord',
 | ||||||
|         meta: { title: '主体审核历史', icon: '' }, |       //   meta: { title: '主体审核历史', icon: '' },
 | ||||||
|       }, |       // },
 | ||||||
|     ], |     ], | ||||||
|   }, |   }, | ||||||
| ]; | ]; | ||||||
|  | |||||||
| @ -195,7 +195,7 @@ const state = reactive({ | |||||||
|   inputsData: [ |   inputsData: [ | ||||||
|     { value: 75, name: '农药使用', type: '投入品', max: 100, unit: '吨' }, |     { value: 75, name: '农药使用', type: '投入品', max: 100, unit: '吨' }, | ||||||
|     // { value: 38, name: '农机使用', type: '投入品', max: 100, unit: '台' }, |     // { value: 38, name: '农机使用', type: '投入品', max: 100, unit: '台' }, | ||||||
|     { value: 74, name: '种子使用', type: '投入品', max: 100, unit: '吨' }, |     { value: 18, name: '种子使用', type: '投入品', max: 100, unit: '吨' }, | ||||||
|     // { value: 55, name: '兽药使用', type: '投入品', max: 100, unit: '千克' }, |     // { value: 55, name: '兽药使用', type: '投入品', max: 100, unit: '千克' }, | ||||||
|     { value: 65, name: '肥料使用', type: '投入品', max: 100, unit: '吨' }, |     { value: 65, name: '肥料使用', type: '投入品', max: 100, unit: '吨' }, | ||||||
|   ], |   ], | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ | |||||||
|       v-model:search="state.query" |       v-model:search="state.query" | ||||||
|       v-model:page="state.page" |       v-model:page="state.page" | ||||||
|       :table-loading="state.loading" |       :table-loading="state.loading" | ||||||
|       :data="state.data" |       :data="res" | ||||||
|       :option="state.options" |       :option="state.options" | ||||||
|       @refresh-change="refreshChange" |       @refresh-change="refreshChange" | ||||||
|       @search-reset="searchChange" |       @search-reset="searchChange" | ||||||
| @ -32,25 +32,78 @@ import { sleep } from '@/utils'; | |||||||
| import { CRUD_OPTIONS } from '@/config'; | import { CRUD_OPTIONS } from '@/config'; | ||||||
| 
 | 
 | ||||||
| import Mock from 'mockjs'; | import Mock from 'mockjs'; | ||||||
| const res = Mock.mock({ | const res = [ | ||||||
|   'data|20': [ |   { | ||||||
|     { |     id: '1000012', | ||||||
|       id: '@increment(100000)', |     name: `1号基地`, | ||||||
|       // name: '@ctitle(5,10)', |     area: 100, | ||||||
|       name: '一号基地', |     status: 1, | ||||||
|       'area|100-1000': 100, |     location: '东经 92°54′至 99°23′,北纬 20°27′至 18°41′F', | ||||||
|       'status|1-2': 1, |     type: 1, | ||||||
|       location: '东经 98°53′至 99°15′,北纬 23°27′至 23°40′F', |     p1: 1, | ||||||
|       'type|1-2': 1, |     p2: 100, | ||||||
|       'p1|1-2': 1, |     p3: '农户', | ||||||
|       'p2|100-1000': 100, |     tag: '龙津河周边', | ||||||
|       p3: '@cname(2,3)', |     address: '耿马镇白塔社区', | ||||||
|       tag: '龙津河周边', |     createTime: '2024-10-12 22:30', | ||||||
|       address: '耿马镇白塔社区', |   }, | ||||||
|       createTime: '@datetime("yyyy-MM-dd HH:mm:ss")', |   { | ||||||
|     }, |     id: '1000013', | ||||||
|   ], |     name: `2号基地`, | ||||||
| }); |     area: 211, | ||||||
|  |     status: 1, | ||||||
|  |     location: '东经 92°54′至 99°21′,北纬 20°25′至 18°31′F', | ||||||
|  |     type: 1, | ||||||
|  |     p1: 1, | ||||||
|  |     p2: 120, | ||||||
|  |     p3: '农户', | ||||||
|  |     tag: '龙津河周边', | ||||||
|  |     address: '耿马镇白马社区', | ||||||
|  |     createTime: '2024-02-26 20:30', | ||||||
|  |   }, | ||||||
|  |   { | ||||||
|  |     id: '1000014', | ||||||
|  |     name: `3号基地`, | ||||||
|  |     area: 121, | ||||||
|  |     status: 1, | ||||||
|  |     location: '东经 92°53′至 99°22′,北纬 20°21′至 18°32′F', | ||||||
|  |     type: 1, | ||||||
|  |     p1: 1, | ||||||
|  |     p2: 56, | ||||||
|  |     p3: '合作社', | ||||||
|  |     tag: '龙津河周边', | ||||||
|  |     address: '耿马镇石灰窑村', | ||||||
|  |     createTime: '2024-11-02 23:30', | ||||||
|  |   }, | ||||||
|  |   { | ||||||
|  |     id: '1000015', | ||||||
|  |     name: `4号基地`, | ||||||
|  |     area: 231, | ||||||
|  |     status: 2, | ||||||
|  |     location: '东经 92°53′至 99°22′,北纬 20°21′至 18°32′F', | ||||||
|  |     type: 2, | ||||||
|  |     p1: 2, | ||||||
|  |     p2: 145, | ||||||
|  |     p3: '农户', | ||||||
|  |     tag: '龙津河周边', | ||||||
|  |     address: '耿马镇芒蚌村', | ||||||
|  |     createTime: '2024-02-02 12:30', | ||||||
|  |   }, | ||||||
|  |   { | ||||||
|  |     id: '1000016', | ||||||
|  |     name: `5号基地`, | ||||||
|  |     area: 231, | ||||||
|  |     status: 2, | ||||||
|  |     location: '东经 92°43′至 99°26′,北纬 21°21′至 18°22′F', | ||||||
|  |     type: 2, | ||||||
|  |     p1: 2, | ||||||
|  |     p2: 145, | ||||||
|  |     p3: '农户', | ||||||
|  |     tag: '龙津河周边', | ||||||
|  |     address: '耿马镇菜籽地村', | ||||||
|  |     createTime: '2024-04-12 16:21', | ||||||
|  |   }, | ||||||
|  | ]; | ||||||
| 
 | 
 | ||||||
| const app = useApp(); | const app = useApp(); | ||||||
| const crudRef = ref(null); | const crudRef = ref(null); | ||||||
| @ -190,7 +243,7 @@ const state = reactive({ | |||||||
|           trigger: 'blur', |           trigger: 'blur', | ||||||
|         }, |         }, | ||||||
|         formatter: (row) => { |         formatter: (row) => { | ||||||
|           return row.area + 'm'; |           return row.p2 + 'm'; | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
| @ -251,7 +304,7 @@ const loadData = async () => { | |||||||
|   await sleep(500); |   await sleep(500); | ||||||
|   state.data = res.data; |   state.data = res.data; | ||||||
|   state.page = { |   state.page = { | ||||||
|     total: 20, |     total: 5, | ||||||
|     currentPage: 1, |     currentPage: 1, | ||||||
|     pageSize: 10, |     pageSize: 10, | ||||||
|   }; |   }; | ||||||
|  | |||||||
| @ -90,7 +90,7 @@ const state = reactive({ | |||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         label: '供应商', |         label: '生产厂家', | ||||||
|         prop: 'shop', |         prop: 'shop', | ||||||
|         search: true, |         search: true, | ||||||
|         with: 300, |         with: 300, | ||||||
|  | |||||||
| @ -236,12 +236,12 @@ const loadData = async () => { | |||||||
|   state.rankList = [ |   state.rankList = [ | ||||||
|     { |     { | ||||||
|       name: '农户', |       name: '农户', | ||||||
|       num: 1000, |       num: 1389, | ||||||
|       icon: '1', |       icon: '1', | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       name: '合作社', |       name: '农企/合作社', | ||||||
|       num: 1000, |       num: 54, | ||||||
|       icon: '2', |       icon: '2', | ||||||
|     }, |     }, | ||||||
|     // { |     // { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user