refactor(土地资源管理)-各表格字段跳调整

This commit is contained in:
沈鸿 2025-05-27 17:13:23 +08:00
parent 4a49e3fa2e
commit a1501c143b
8 changed files with 110 additions and 129 deletions

View File

@ -11,7 +11,7 @@ VITE_APP_SUB_GSS = '//localhost:9529/sub-government-screen-service/'
VITE_APP_SUB_GSR = '//localhost:9530/new-digital-agriculture-screen/' VITE_APP_SUB_GSR = '//localhost:9530/new-digital-agriculture-screen/'
# 接口 # 接口
VITE_APP_BASE_API = '/apis' VITE_APP_BASE_API = '/apis'
# VITE_APP_BASE_URL = 'http://192.168.18.99:8080' # VITE_APP_BASE_URL = 'http://47.109.205.2409:8080'
VITE_APP_BASE_URL = 'http://192.168.18.9:8080' VITE_APP_BASE_URL = 'http://47.109.205.240:8080'
VITE_APP_UPLOAD_API = '/uploadApis' VITE_APP_UPLOAD_API = '/uploadApis'
VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' VITE_APP_UPLOAD_URL = 'http://47.109.205.240:8080'

View File

@ -6,7 +6,7 @@ VITE_APP_MIAN_URL = 'http://localhost:9000'
VITE_APP_NAME = 'sub-government-affairs-service' VITE_APP_NAME = 'sub-government-affairs-service'
VITE_APP_BASE_API = '/apis' VITE_APP_BASE_API = '/apis'
# VITE_APP_BASE_URL = 'http://192.168.18.99:8080' # VITE_APP_BASE_URL = 'http://192.168.18.99:8080'
VITE_APP_BASE_URL = 'http://192.168.18.9:8080' VITE_APP_BASE_URL = 'http://47.109.205.240:8080'
VITE_APP_UPLOAD_API = '/uploadApis' VITE_APP_UPLOAD_API = '/uploadApis'
VITE_APP_UPLOAD_URL = 'http://192.168.18.99:9300' VITE_APP_UPLOAD_URL = 'http://192.168.18.99:9300'
# VITE_APP_UPLOAD_URL = 'http://192.168.18.14:8080' # VITE_APP_UPLOAD_URL = 'http://192.168.18.14:8080'

View File

@ -9,12 +9,12 @@ const dictRoutes = [
redirect: '/sub-government-affairs-service/region', redirect: '/sub-government-affairs-service/region',
meta: { title: '基础信息维护', icon: 'DocumentRemove' }, meta: { title: '基础信息维护', icon: 'DocumentRemove' },
children: [ children: [
// { {
// path: '/sub-government-affairs-service/region', path: '/sub-government-affairs-service/region',
// name: 'region', name: 'region',
// component: () => import('@/views/dict/component/region/index.vue'), component: () => import('@/views/dict/component/region/index.vue'),
// meta: { title: '行政信息', icon: '' }, meta: { title: '行政信息', icon: '' },
// }, },
{ {
path: '/sub-government-affairs-service/landCassification', path: '/sub-government-affairs-service/landCassification',
name: 'landCassification', name: 'landCassification',

View File

@ -9,24 +9,24 @@ const landsRoutes = [
redirect: '/sub-government-affairs-service/plantPlan', redirect: '/sub-government-affairs-service/plantPlan',
meta: { title: '土地管理', icon: 'Grape' }, meta: { title: '土地管理', icon: 'Grape' },
children: [ children: [
// { {
// path: '/sub-government-affairs-service/landsManage', path: '/sub-government-affairs-service/landsManage',
// name: 'landsManage', name: 'landsManage',
// component: () => import('@/views/landManage/component/landsManage/index.vue'), component: () => import('@/views/landManage/component/landsManage/index.vue'),
// meta: { title: '土地信息登记', icon: '' }, meta: { title: '土地信息登记', icon: '' },
// }, },
// { {
// path: '/sub-government-affairs-service/plantPlan', path: '/sub-government-affairs-service/plantPlan',
// name: 'plantPlan', name: 'plantPlan',
// component: () => import('@/views/landManage/component/plantPlan/index.vue'), component: () => import('@/views/landManage/component/plantPlan/index.vue'),
// meta: { title: '种植计划', icon: '' }, meta: { title: '种植计划', icon: '' },
// }, },
// { {
// path: '/sub-government-affairs-service/operationRecord', path: '/sub-government-affairs-service/operationRecord',
// name: 'operationRecord', name: 'operationRecord',
// component: () => import('@/views/landManage/component/operationRecord/index.vue'), component: () => import('@/views/landManage/component/operationRecord/index.vue'),
// meta: { title: '作业记录', icon: '' }, meta: { title: '作业记录', icon: '' },
// }, },
{ {
path: '/sub-government-affairs-service/landPartol', path: '/sub-government-affairs-service/landPartol',
name: 'landPartol', name: 'landPartol',

View File

@ -31,12 +31,12 @@ export default [
name: 'member', name: 'member',
meta: { title: '新增网格员', icon: '' }, meta: { title: '新增网格员', icon: '' },
}, },
// { {
// path: '/sub-government-affairs-service/grid--management', path: '/sub-government-affairs-service/grid--management',
// component: () => import('@/views/resource/grid/GridManagement.vue'), component: () => import('@/views/resource/grid/GridManagement.vue'),
// name: 'management', name: 'management',
// meta: { title: '网格化管理', icon: '' }, meta: { title: '网格化管理', icon: '' },
// }, },
], ],
}, },
...annualplanRouters, ...annualplanRouters,

View File

@ -116,7 +116,7 @@ const state = reactive({
addBtnText: '', addBtnText: '',
addBtn: false, addBtn: false,
column: [ column: [
{ label: '计划编号', prop: 'id', width: '200px', showOverflowTooltip: true, addDisplay: false, editDisplay: false }, { label: '计划编号', prop: 'id', width: '200px', search: true, showOverflowTooltip: true, addDisplay: false, editDisplay: false },
{ {
label: '计划名称', label: '计划名称',
prop: 'planName', prop: 'planName',
@ -129,8 +129,9 @@ const state = reactive({
trigger: 'blur', trigger: 'blur',
}, },
}, },
{ label: '种植作物', prop: 'cop', width: '120px', search: true, editDisplay: false },
{ {
label: '种植面积(亩)', label: '种植面积',
prop: 'plantingArea', prop: 'plantingArea',
rules: { rules: {
required: true, required: true,
@ -156,7 +157,7 @@ const state = reactive({
}, },
}, },
{ {
label: '生长周期(周)', label: '生长周期',
prop: 'growthCycle', prop: 'growthCycle',
width: '120px', width: '120px',
viewDisabled: true, viewDisabled: true,
@ -173,19 +174,22 @@ const state = reactive({
}, },
}, },
}, },
{ { label: '所属行政区域', prop: 'cop1', width: '120px', search: true, searchLabelWidth: 100, addDisplay: false, editDisplay: false },
label: '备注', { label: '所属网格', prop: 'cop2', width: '120px', search: true, addDisplay: false, editDisplay: false },
prop: 'note', { label: '当前进度', prop: 'cop3', width: '120px', addDisplay: false, editDisplay: false },
width: '180px', // {
showOverflowTooltip: true, // label: '',
rules: { // prop: 'note',
required: true, // width: '180px',
message: '请输入', // showOverflowTooltip: true,
trigger: 'blur', // rules: {
}, // required: true,
}, // message: '',
{ label: '计划进度', prop: 'planProgress', addDisplay: false, editDisplay: false }, // trigger: 'blur',
{ label: '状态', prop: 'planStatus', addDisplay: false, editDisplay: false }, // },
// },
// { label: '', prop: 'planProgress', addDisplay: false, editDisplay: false },
// { label: '', prop: 'planStatus', addDisplay: false, editDisplay: false },
], ],
actions: [ actions: [
{ {

View File

@ -51,26 +51,11 @@ const state = reactive({
selection: [], selection: [],
options: { options: {
...CRUD_OPTIONS, ...CRUD_OPTIONS,
// addBtnText: '', addBtnText: '添加网格',
column: [ column: [
// {
// label: '',
// prop: 'gridArea',
// search: true,
// width: 200,
// addDisplay: false,
// editDisplay: false,
// viewDisplay: true,
// rules: {
// required: true,
// message: '',
// trigger: 'blur',
// },
// },
{ {
label: '网格名称', label: '网格名称',
prop: 'gridName', prop: 'gridName',
search: true,
rules: { rules: {
required: true, required: true,
message: '请输入', message: '请输入',
@ -78,10 +63,12 @@ const state = reactive({
}, },
}, },
{ {
label: '网格区域', label: '所属行政区域',
prop: 'gridAreaName', prop: 'gridAreaName',
// width: 300, // width: 300,
display: false, display: false,
// search: true,
searchLabelWidth: 100,
rules: { rules: {
required: true, required: true,
message: '请输入', message: '请输入',
@ -89,18 +76,17 @@ const state = reactive({
}, },
}, },
{ {
label: '网格区域', label: '所属行政区域',
prop: 'cities', prop: 'cities',
type: 'cascader', type: 'cascader',
hide: true, hide: true,
search: true,
searchLabelWidth: 100,
span: 24,
width: 300,
addDisplay: true, addDisplay: true,
editDisplay: true, editDisplay: true,
viewDisplay: false, viewDisplay: false,
// multiple: true,
// checkStrictly: true,
// collapseTags: true,
// emitPath: false,
// checkDescendants: false,
props: { props: {
label: 'areaName', label: 'areaName',
value: 'areaCode', value: 'areaCode',
@ -117,54 +103,45 @@ const state = reactive({
trigger: 'blur', trigger: 'blur',
}, },
}, },
{
label: '网格名称',
prop: 'gridName',
type: 'select',
addDisplay: false,
hide: true,
search: true,
searchLabelWidth: 100,
},
// { // {
// label: '', // label: '',
// prop: 'gridManager', // prop: 'provinceCode',
// rules: { // hide: true,
// required: true, // display: false,
// message: '',
// trigger: 'blur',
// },
// }, // },
// { // {
// label: '', // label: '',
// prop: 'contactInfo', // prop: 'cityCode',
// rules: { // hide: true,
// required: true, // display: false,
// message: '', // },
// trigger: 'blur', // {
// }, // label: '/',
// prop: 'gridAreaCode',
// hide: true,
// display: false,
// },
// {
// label: '',
// prop: 'townCode',
// hide: true,
// display: false,
// },
// {
// label: '',
// prop: 'village',
// hide: true,
// display: false,
// }, // },
{
label: '省',
prop: 'provinceCode',
hide: true,
display: false,
},
{
label: '市',
prop: 'cityCode',
hide: true,
display: false,
},
{
label: '县/区',
prop: 'gridAreaCode',
hide: true,
display: false,
},
{
label: '乡镇',
prop: 'townCode',
hide: true,
display: false,
},
{
label: '乡镇',
prop: 'village',
hide: true,
display: false,
},
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',

View File

@ -82,7 +82,7 @@ const state = reactive({
type: 'select', type: 'select',
width: 200, width: 200,
search: true, search: true,
dicData: [], // mounted dicData: [], // loadGridOptions
props: { props: {
label: 'gridName', label: 'gridName',
value: 'id', value: 'id',
@ -93,17 +93,17 @@ const state = reactive({
trigger: 'change', trigger: 'change',
}, },
}, },
{ // {
label: '管理员标识', // label: '',
prop: 'adminFlag', // prop: 'adminFlag',
type: 'radio', // type: 'radio',
dicData: [ // dicData: [
{ label: '是', value: '1' }, // { label: '', value: '1' },
{ label: '否', value: '0' }, // { label: '', value: '0' },
], // ],
valueDefault: '0', // valueDefault: '0',
hide: true, // false // hide: true, // false
}, // },
{ {
label: '电话号码', label: '电话号码',
prop: 'phone', prop: 'phone',