diff --git a/package-lock.json b/package-lock.json index 7cf7c25..128bf88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,6 @@ "version": "1.0.0", "hasInstallScript": true, "license": "MIT", - "dependencies": { - "vue-demi": "^0.14.10", - "vue-tianditu": "^2.7.6" - }, "devDependencies": { "npm-run-all": "^4.1.5" } @@ -1165,12 +1161,6 @@ "node": "*" } }, - "node_modules/mitt": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/mitt/-/mitt-3.0.1.tgz", - "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", - "license": "MIT" - }, "node_modules/nice-try": { "version": "1.0.5", "resolved": "https://registry.npmmirror.com/nice-try/-/nice-try-1.0.5.tgz", @@ -1920,85 +1910,6 @@ "spdx-expression-parse": "^3.0.0" } }, - "node_modules/vue": { - "version": "2.6.14", - "resolved": "https://registry.npmmirror.com/vue/-/vue-2.6.14.tgz", - "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==", - "deprecated": "Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.", - "license": "MIT", - "peer": true - }, - "node_modules/vue-demi": { - "version": "0.14.10", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", - "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", - "hasInstallScript": true, - "license": "MIT", - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, - "node_modules/vue-tianditu": { - "version": "2.7.6", - "resolved": "https://registry.npmmirror.com/vue-tianditu/-/vue-tianditu-2.7.6.tgz", - "integrity": "sha512-Yvcxg0IAgGB3ZY8zlC5ayjo9f85fa8PFTaifguTNpri76g67GO9toaRWMjBKi39yYHMBADaT3P6bEkJx87X8MQ==", - "license": "MIT", - "dependencies": { - "mitt": "^3.0.0", - "vue-demi": "^0.12.1" - }, - "peerDependencies": { - "@vue/composition-api": "^1.4.2", - "vue": "^2.0.0 || >=3.0.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, - "node_modules/vue-tianditu/node_modules/vue-demi": { - "version": "0.12.5", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.12.5.tgz", - "integrity": "sha512-BREuTgTYlUr0zw0EZn3hnhC3I6gPWv+Kwh4MCih6QcAeaTlaIX0DwOVN0wHej7hSvDPecz4jygy/idsgKfW58Q==", - "hasInstallScript": true, - "license": "MIT", - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/which": { "version": "1.3.1", "resolved": "https://registry.npmmirror.com/which/-/which-1.3.1.tgz", diff --git a/package.json b/package.json index 38738ac..155c067 100644 --- a/package.json +++ b/package.json @@ -34,10 +34,7 @@ ], "author": "", "license": "MIT", - "dependencies": { - "vue-demi": "^0.14.10", - "vue-tianditu": "^2.7.6" - }, + "dependencies": {}, "devDependencies": { "npm-run-all": "^4.1.5" } diff --git a/sub-government-affairs-service/auto-imports.d.ts b/sub-government-affairs-service/auto-imports.d.ts deleted file mode 100644 index 369aad4..0000000 --- a/sub-government-affairs-service/auto-imports.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// noinspection JSUnusedGlobalSymbols -// Generated by unplugin-auto-import -export {} -declare global { - const EffectScope: typeof import('vue')['EffectScope'] - const computed: typeof import('vue')['computed'] - const createApp: typeof import('vue')['createApp'] - const customRef: typeof import('vue')['customRef'] - const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] - const defineComponent: typeof import('vue')['defineComponent'] - const effectScope: typeof import('vue')['effectScope'] - const getCurrentInstance: typeof import('vue')['getCurrentInstance'] - const getCurrentScope: typeof import('vue')['getCurrentScope'] - const h: typeof import('vue')['h'] - const inject: typeof import('vue')['inject'] - const isProxy: typeof import('vue')['isProxy'] - const isReactive: typeof import('vue')['isReactive'] - const isReadonly: typeof import('vue')['isReadonly'] - const isRef: typeof import('vue')['isRef'] - const markRaw: typeof import('vue')['markRaw'] - const nextTick: typeof import('vue')['nextTick'] - const onActivated: typeof import('vue')['onActivated'] - const onBeforeMount: typeof import('vue')['onBeforeMount'] - const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave'] - const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] - const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] - const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] - const onDeactivated: typeof import('vue')['onDeactivated'] - const onErrorCaptured: typeof import('vue')['onErrorCaptured'] - const onMounted: typeof import('vue')['onMounted'] - const onRenderTracked: typeof import('vue')['onRenderTracked'] - const onRenderTriggered: typeof import('vue')['onRenderTriggered'] - const onScopeDispose: typeof import('vue')['onScopeDispose'] - const onServerPrefetch: typeof import('vue')['onServerPrefetch'] - const onUnmounted: typeof import('vue')['onUnmounted'] - const onUpdated: typeof import('vue')['onUpdated'] - const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] - const provide: typeof import('vue')['provide'] - const reactive: typeof import('vue')['reactive'] - const readonly: typeof import('vue')['readonly'] - const ref: typeof import('vue')['ref'] - const resolveComponent: typeof import('vue')['resolveComponent'] - const shallowReactive: typeof import('vue')['shallowReactive'] - const shallowReadonly: typeof import('vue')['shallowReadonly'] - const shallowRef: typeof import('vue')['shallowRef'] - const toRaw: typeof import('vue')['toRaw'] - const toRef: typeof import('vue')['toRef'] - const toRefs: typeof import('vue')['toRefs'] - const toValue: typeof import('vue')['toValue'] - const triggerRef: typeof import('vue')['triggerRef'] - const unref: typeof import('vue')['unref'] - const useAttrs: typeof import('vue')['useAttrs'] - const useCssModule: typeof import('vue')['useCssModule'] - const useCssVars: typeof import('vue')['useCssVars'] - const useId: typeof import('vue')['useId'] - const useLink: typeof import('vue-router')['useLink'] - const useModel: typeof import('vue')['useModel'] - const useRoute: typeof import('vue-router')['useRoute'] - const useRouter: typeof import('vue-router')['useRouter'] - const useSlots: typeof import('vue')['useSlots'] - const useTemplateRef: typeof import('vue')['useTemplateRef'] - const watch: typeof import('vue')['watch'] - const watchEffect: typeof import('vue')['watchEffect'] - const watchPostEffect: typeof import('vue')['watchPostEffect'] - const watchSyncEffect: typeof import('vue')['watchSyncEffect'] -} -// for type re-export -declare global { - // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' - import('vue') -} diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js index 73eea46..632304d 100644 --- a/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js +++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js @@ -84,7 +84,7 @@ export function delAnimalMedicine(ids) { // #region /* 查询种源 */ export function getSeedList(params) { - return request('/inputGoods/provenance/page', { + return request('/inputGoods/supervise/provenance/page', { params, }); } diff --git a/sub-government-affairs-service/src/assets/images/input/inputman.png b/sub-government-affairs-service/src/assets/images/input/inputman.png new file mode 100644 index 0000000..63c9e95 Binary files /dev/null and b/sub-government-affairs-service/src/assets/images/input/inputman.png differ diff --git a/sub-government-affairs-service/src/router/modules/inputSupplies/index.js b/sub-government-affairs-service/src/router/modules/inputSupplies/index.js index 9b9f75b..f84ffff 100644 --- a/sub-government-affairs-service/src/router/modules/inputSupplies/index.js +++ b/sub-government-affairs-service/src/router/modules/inputSupplies/index.js @@ -9,12 +9,6 @@ const inputSuppliesRoutes = [ redirect: '/sub-government-affairs-service/material/pesticide', meta: { title: '农产品种植管理', icon: 'FullScreen' }, children: [ - // { - // path: '/sub-government-affairs-service/statistics', - // name: 'Statistics', - // component: () => import('@/views/planting-management/statistics/index.vue'), - // meta: { title: '使用监管概况统计', icon: 'PieChart' }, - // }, { path: '/sub-government-affairs-service/variety-record', name: 'PlantVarietyRecord', @@ -28,41 +22,59 @@ const inputSuppliesRoutes = [ meta: { title: '农产品种植计划管理', icon: 'Timer' }, }, { - path: '/sub-government-affairs-service/material/seed', - name: 'input-supplies-seed', - component: () => import('@/views/inputSuppliesManage/material/seed/index.vue'), - meta: { title: '种子种苗管理', icon: 'Watermelon' }, + path: '/sub-government-affairs-service/planting-base', + name: 'PlantingBase', + component: () => import('@/views/planting-management/planting-base/index.vue'), + meta: { title: '种植基地管理', icon: 'Crop' }, }, { - path: '/sub-government-affairs-service/material/fertilizer', - name: 'input-supplies-fertilizer', - component: () => import('@/views/inputSuppliesManage/material/fertilizer/index.vue'), - meta: { title: '肥料管理', icon: 'Grid' }, + path: '/sub-government-affairs-service/planting-batch', + name: 'PlantingBatch', + component: () => import('@/views/planting-management/planting-batch/index.vue'), + meta: { title: '种植批次管理', icon: 'Connection' }, }, { - path: '/sub-government-affairs-service/material/pesticide', - name: 'input-supplies-pesticide', - component: () => import('@/views/inputSuppliesManage/material/pesticide/index.vue'), - meta: { title: '农药管理', icon: 'Orange' }, - }, - { - path: '/sub-government-affairs-service/material/others', - name: 'input-supplies-others', - component: () => import('@/views/inputSuppliesManage/material/others/index.vue'), - meta: { title: '其他投入品管理', icon: 'TakeawayBox' }, + path: '/sub-government-affairs-service/agricultural-work', + name: 'AgriculturalWork', + component: () => import('@/views/planting-management/agricultural-work/index.vue'), + meta: { title: '农事作业管理', icon: 'Notification' }, }, + // { + // path: '/sub-government-affairs-service/material/seed', + // name: 'input-supplies-seed', + // component: () => import('@/views/inputSuppliesManage/material/seed/index.vue'), + // meta: { title: '种子种苗管理', icon: 'Watermelon' }, + // }, + // { + // path: '/sub-government-affairs-service/material/fertilizer', + // name: 'input-supplies-fertilizer', + // component: () => import('@/views/inputSuppliesManage/material/fertilizer/index.vue'), + // meta: { title: '肥料管理', icon: 'Grid' }, + // }, + // { + // path: '/sub-government-affairs-service/material/pesticide', + // name: 'input-supplies-pesticide', + // component: () => import('@/views/inputSuppliesManage/material/pesticide/index.vue'), + // meta: { title: '农药管理', icon: 'Orange' }, + // }, + // { + // path: '/sub-government-affairs-service/material/others', + // name: 'input-supplies-others', + // component: () => import('@/views/inputSuppliesManage/material/others/index.vue'), + // meta: { title: '其他投入品管理', icon: 'TakeawayBox' }, + // }, { path: '/sub-government-affairs-service/supervisionOfInputs ', name: 'supervisionOfInputs', redirect: '/sub-government-affairs-service/supervisionOfInputs/seedRegulation', meta: { title: '投入品使用监管', icon: 'Connection' }, children: [ - // { - // path: '/sub-government-affairs-service/supervisionOfInputs/regulatoryOverview', - // name: 'regulatoryOverview', - // component: () => import('@/views/inputSuppliesManage/supervisionOfInputs/regulatoryOverview.vue'), - // meta: { title: '使用监管概览', icon: '' }, - // }, + { + path: '/sub-government-affairs-service/statistics', + name: 'Statistics', + component: () => import('@/views/planting-management/statistics/index.vue'), + meta: { title: '使用监管概况统计', icon: '' }, + }, { path: '/sub-government-affairs-service/supervisionOfInputs/seedRegulation', name: 'seedRegulation', diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/material/pesticide/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/material/pesticide/index.vue index 05bd337..a2e4692 100644 --- a/sub-government-affairs-service/src/views/inputSuppliesManage/material/pesticide/index.vue +++ b/sub-government-affairs-service/src/views/inputSuppliesManage/material/pesticide/index.vue @@ -199,14 +199,14 @@ const tableLoading = ref(false); const tableTotal = ref(0); const columns = ref([ // { prop: "id", label: "ID" }, - { prop: 'name', label: '类别名称' }, + { prop: 'name', label: '姓名' }, { prop: 'phone', label: '联系方式' }, { prop: 'landName', label: '用药地块' }, { prop: 'detectionTime', label: '检测时间' }, { prop: 'detectionResult', label: '检测结果' }, { prop: 'detectionUnit', label: '检测单位' }, - // { prop: 'status', label: '检测报告(是否上传)' }, - { prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' }, + { prop: 'isUpload', label: '检测报告(是否上传)' }, + // { prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' }, ]); const handlePaginationChange = ({ page, pageSize }) => { formInline.current = page; diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/material/seed/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/material/seed/index.vue index 8f68af2..5b3e3f2 100644 --- a/sub-government-affairs-service/src/views/inputSuppliesManage/material/seed/index.vue +++ b/sub-government-affairs-service/src/views/inputSuppliesManage/material/seed/index.vue @@ -38,11 +38,11 @@ @page-change="handlePaginationChange" > -