diff --git a/main/.env.development b/main/.env.development index 422e1d4..4054b6b 100644 --- a/main/.env.development +++ b/main/.env.development @@ -11,7 +11,10 @@ VITE_APP_SUB_GSS = '//localhost:9529/sub-government-screen-service/' VITE_APP_SUB_GSR = '//localhost:9530/new-digital-agriculture-screen/' # 接口 VITE_APP_BASE_API = '/apis' -# VITE_APP_BASE_URL = 'http://192.168.18.99:8080' -VITE_APP_BASE_URL = 'http://192.168.18.9:8080' VITE_APP_UPLOAD_API = '/uploadApis' -VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' \ No newline at end of file +# 阿里云接口地址 +# VITE_APP_BASE_URL = 'http://47.109.205.240:8080' +# VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' +# 内网接口地址 +VITE_APP_BASE_URL = 'http://192.168.18.9:8080' +VITE_APP_UPLOAD_URL = 'http://192.168.18.9:9300' diff --git a/main/.gitignore b/main/.gitignore index dd873ba..3a68e4c 100644 --- a/main/.gitignore +++ b/main/.gitignore @@ -23,3 +23,5 @@ dist-ssr *.njsproj *.sln *.sw? +*.zip +*.rar \ No newline at end of file diff --git a/main/src/micro/app.js b/main/src/micro/app.js index 68027fc..ba575ae 100644 --- a/main/src/micro/app.js +++ b/main/src/micro/app.js @@ -13,7 +13,7 @@ export const leftApps = [ { name: 'sub-operation-admin', entry: VITE_APP_SUB_OA, - activeRule: '/sub-operation-admin', + activeRule: 'http://192.168.18.99:82/login?loginType=2', title: '管理后台', icon: 'images/platform/icon-admin.png', }, @@ -44,7 +44,7 @@ export const rightApps = [ { name: 'sub-government-admin', entry: VITE_APP_SUB_GAS, - activeRule: '/sub-government-affairs-service', + activeRule: 'http://192.168.18.99:81/login?loginType=1', title: '管理后台', icon: 'images/platform/icon-admin.png', }, diff --git a/sub-government-affairs-service/.env.development b/sub-government-affairs-service/.env.development index 34cace5..4d4265a 100644 --- a/sub-government-affairs-service/.env.development +++ b/sub-government-affairs-service/.env.development @@ -4,9 +4,14 @@ VITE_MODE = 'DEV' VITE_APP_MIAN = 'daimp-front-main' VITE_APP_MIAN_URL = 'http://localhost:9000' VITE_APP_NAME = 'sub-government-affairs-service' + VITE_APP_BASE_API = '/apis' -# VITE_APP_BASE_URL = 'http://192.168.18.99:8080' -VITE_APP_BASE_URL = 'http://192.168.18.9:8080' VITE_APP_UPLOAD_API = '/uploadApis' + +# 阿里云接口地址 +# VITE_APP_BASE_URL = 'http://47.109.205.240:8080' +# VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' + +# 内网接口地址 +VITE_APP_BASE_URL = 'http://192.168.18.99:8080' VITE_APP_UPLOAD_URL = 'http://192.168.18.99:9300' -# VITE_APP_UPLOAD_URL = 'http://192.168.18.14:8080' \ No newline at end of file diff --git a/sub-government-affairs-service/src/components/AreaCascader/index.vue b/sub-government-affairs-service/src/components/AreaCascader/index.vue new file mode 100644 index 0000000..fb63210 --- /dev/null +++ b/sub-government-affairs-service/src/components/AreaCascader/index.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/sub-government-affairs-service/src/router/modules/dict.js b/sub-government-affairs-service/src/router/modules/dict.js index ba5f8c3..c8eea4c 100644 --- a/sub-government-affairs-service/src/router/modules/dict.js +++ b/sub-government-affairs-service/src/router/modules/dict.js @@ -9,12 +9,12 @@ const dictRoutes = [ redirect: '/sub-government-affairs-service/region', meta: { title: '基础信息维护', icon: 'DocumentRemove' }, children: [ - // { - // path: '/sub-government-affairs-service/region', - // name: 'region', - // component: () => import('@/views/dict/component/region/index.vue'), - // meta: { title: '行政信息', icon: '' }, - // }, + { + path: '/sub-government-affairs-service/region', + name: 'region', + component: () => import('@/views/dict/component/region/index.vue'), + meta: { title: '行政信息', icon: '' }, + }, { path: '/sub-government-affairs-service/landCassification', name: 'landCassification', diff --git a/sub-government-affairs-service/src/router/modules/lands.js b/sub-government-affairs-service/src/router/modules/lands.js index 6a9057c..8cb3648 100644 --- a/sub-government-affairs-service/src/router/modules/lands.js +++ b/sub-government-affairs-service/src/router/modules/lands.js @@ -9,24 +9,24 @@ const landsRoutes = [ redirect: '/sub-government-affairs-service/plantPlan', meta: { title: '土地管理', icon: 'Grape' }, children: [ - // { - // path: '/sub-government-affairs-service/landsManage', - // name: 'landsManage', - // component: () => import('@/views/landManage/component/landsManage/index.vue'), - // meta: { title: '土地信息登记', icon: '' }, - // }, - // { - // path: '/sub-government-affairs-service/plantPlan', - // name: 'plantPlan', - // component: () => import('@/views/landManage/component/plantPlan/index.vue'), - // meta: { title: '种植计划', icon: '' }, - // }, - // { - // path: '/sub-government-affairs-service/operationRecord', - // name: 'operationRecord', - // component: () => import('@/views/landManage/component/operationRecord/index.vue'), - // meta: { title: '作业记录', icon: '' }, - // }, + { + path: '/sub-government-affairs-service/landsManage', + name: 'landsManage', + component: () => import('@/views/landManage/component/landsManage/index.vue'), + meta: { title: '土地信息登记', icon: '' }, + }, + { + path: '/sub-government-affairs-service/plantPlan', + name: 'plantPlan', + component: () => import('@/views/landManage/component/plantPlan/index.vue'), + meta: { title: '种植计划', icon: '' }, + }, + { + path: '/sub-government-affairs-service/operationRecord', + name: 'operationRecord', + component: () => import('@/views/landManage/component/operationRecord/index.vue'), + meta: { title: '作业记录', icon: '' }, + }, { path: '/sub-government-affairs-service/landPartol', name: 'landPartol', diff --git a/sub-government-affairs-service/src/router/modules/resource.js b/sub-government-affairs-service/src/router/modules/resource.js index 329abfb..3a5ff78 100644 --- a/sub-government-affairs-service/src/router/modules/resource.js +++ b/sub-government-affairs-service/src/router/modules/resource.js @@ -31,12 +31,12 @@ export default [ name: 'member', meta: { title: '新增网格员', icon: '' }, }, - // { - // path: '/sub-government-affairs-service/grid--management', - // component: () => import('@/views/resource/grid/GridManagement.vue'), - // name: 'management', - // meta: { title: '网格化管理', icon: '' }, - // }, + { + path: '/sub-government-affairs-service/grid--management', + component: () => import('@/views/resource/grid/GridManagement.vue'), + name: 'management', + meta: { title: '网格化管理', icon: '' }, + }, ], }, ...annualplanRouters, diff --git a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue index 7c9bc3f..90ddafb 100644 --- a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue +++ b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue @@ -116,7 +116,7 @@ const state = reactive({ addBtnText: '', addBtn: false, 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: '计划名称', prop: 'planName', @@ -129,14 +129,18 @@ const state = reactive({ trigger: 'blur', }, }, + { label: '种植作物', prop: 'cropsName', width: '120px', search: true, editDisplay: false }, { - label: '种植面积(亩)', + label: '种植面积', prop: 'plantingArea', + append: '亩', rules: { required: true, message: '请输入', trigger: 'blur', }, + // formatter: (value) => `${value} 亩`, + formatter: (row, column, cellValue) => `${cellValue} 亩`, }, { label: '种植月份', @@ -154,9 +158,10 @@ const state = reactive({ } }, }, + formatter: (row, column, cellValue) => `${cellValue} 月`, }, { - label: '生长周期(周)', + label: '生长周期', prop: 'growthCycle', width: '120px', viewDisabled: true, @@ -172,20 +177,33 @@ const state = reactive({ } }, }, - }, - { - label: '备注', - prop: 'note', - width: '180px', - showOverflowTooltip: true, - rules: { - required: true, - message: '请输入', - trigger: 'blur', + formatter: (row, column, cellValue) => { + const unitMap = { + 1: '天', + 2: '周', + 3: '月', + 4: '年', + }; + const unit = unitMap[row.growthCycleUnit] || ''; + return `${cellValue} ${unit}`; }, }, - { label: '计划进度', prop: 'planProgress', addDisplay: false, editDisplay: false }, - { label: '状态', prop: 'planStatus', addDisplay: false, editDisplay: false }, + { label: '所属行政区域', prop: 'regionName', width: '120px', search: true, searchLabelWidth: 100, addDisplay: false, editDisplay: false }, + { label: '所属网格', prop: 'gridName', width: '120px', search: true, addDisplay: false, editDisplay: false }, + { label: '当前进度', prop: 'currentProgress', width: '120px', addDisplay: false, editDisplay: false }, + // { + // label: '备注', + // prop: 'note', + // width: '180px', + // showOverflowTooltip: true, + // rules: { + // required: true, + // message: '请输入', + // trigger: 'blur', + // }, + // }, + // { label: '计划进度', prop: 'planProgress', addDisplay: false, editDisplay: false }, + // { label: '状态', prop: 'planStatus', addDisplay: false, editDisplay: false }, ], actions: [ { diff --git a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/records.vue b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/records.vue new file mode 100644 index 0000000..06bc45c --- /dev/null +++ b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/records.vue @@ -0,0 +1,37 @@ + + + + diff --git a/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue b/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue index 63b0cbc..417c158 100644 --- a/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue +++ b/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue @@ -120,44 +120,27 @@ const option = reactive({ menuWidth: 120, selection: false, column: [ + // { + // hide: true, + // label: '用地分类', + // prop: 'landType', + // search: true, + // type: 'cascader', + // dicData: landTreeDic, + // clearable: false, + // value: [], + // addDisplay: false, + // display: false, + // editDisplay: false, + // }, { - hide: true, - label: '用地分类', - prop: 'landType', - search: true, - type: 'cascader', - dicData: landTreeDic, - clearable: false, - value: [], - addDisplay: false, - display: false, - editDisplay: false, - }, - { - label: '地块名', + label: '地块名称', prop: 'landName', - search: true, addDisplay: false, display: false, editDisplay: false, width: 200, }, - { - label: '地址', - prop: 'address', - addDisplay: false, - display: false, - editDisplay: false, - width: 300, - }, - { - label: '产权人', - prop: 'owner', - search: true, - addDisplay: false, - display: false, - editDisplay: false, - }, { label: '所属网格', prop: 'gridName', @@ -167,16 +150,6 @@ const option = reactive({ display: false, editDisplay: false, }, - { - label: '农用地分类', - prop: 'landClassificationType', - select: 'select', - dicData: landTreeDic, - addDisplay: false, - display: false, - editDisplay: false, - width: 300, - }, { label: '面积', prop: 'area', @@ -192,20 +165,39 @@ const option = reactive({ }, }, { - label: '坐标', - prop: 'coordinate', + label: '土地类型', + prop: 'landTypeName', + search: true, + addDisplay: false, + }, + { + label: '所属行政区域', + prop: 'regionName', + search: true, + addDisplay: false, + }, + { + label: '具体位置', + prop: 'address', addDisplay: false, display: false, editDisplay: false, width: 300, }, { - label: '是否流转土地', - prop: 'landTransfer', + label: '产权人姓名', + prop: 'owner', addDisplay: false, display: false, editDisplay: false, - width: 140, + }, + { + label: '产权人联系方式', + prop: 'ownerPhone', + addDisplay: false, + display: false, + editDisplay: false, + width: 300, }, { label: '产权编号', @@ -215,18 +207,10 @@ const option = reactive({ editDisplay: false, }, { - label: '土壤类型', - prop: 'soilTypeName', - addDisplay: false, - editDisplay: false, - }, - { - label: '是否上传附件', - prop: 'isUpload', + label: '信息录入时间', + prop: 'createTime', addDisplay: false, display: false, - editDisplay: false, - width: 140, }, ], group: [ diff --git a/sub-government-affairs-service/src/views/resource/grid/ActualDetail.vue b/sub-government-affairs-service/src/views/resource/grid/ActualDetail.vue new file mode 100644 index 0000000..2f4998c --- /dev/null +++ b/sub-government-affairs-service/src/views/resource/grid/ActualDetail.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/sub-government-affairs-service/src/views/resource/grid/AddGrid.vue b/sub-government-affairs-service/src/views/resource/grid/AddGrid.vue index d5fdc7d..c1a8426 100644 --- a/sub-government-affairs-service/src/views/resource/grid/AddGrid.vue +++ b/sub-government-affairs-service/src/views/resource/grid/AddGrid.vue @@ -18,6 +18,10 @@ @row-update="rowUpdate" @row-del="rowDel" > + + @@ -25,6 +29,23 @@ + + @@ -46,31 +67,20 @@ const state = reactive({ query: { current: 1, size: 10, + gridName: '', + regionCode: '', }, form: {}, selection: [], options: { ...CRUD_OPTIONS, - // addBtnText: '添加网格', + addBtnText: '添加网格', + // detail: true, + // detailTitle: '详情', column: [ - // { - // label: '网格区', - // prop: 'gridArea', - // search: true, - // width: 200, - // addDisplay: false, - // editDisplay: false, - // viewDisplay: true, - // rules: { - // required: true, - // message: '请输入', - // trigger: 'blur', - // }, - // }, { label: '网格名称', prop: 'gridName', - search: true, rules: { required: true, message: '请输入', @@ -78,10 +88,10 @@ const state = reactive({ }, }, { - label: '网格区域', + label: '所属行政区域', prop: 'gridAreaName', - // width: 300, - display: false, + addDisplay: false, + viewDisplay: true, rules: { required: true, message: '请输入', @@ -89,18 +99,16 @@ const state = reactive({ }, }, { - label: '网格区域', + label: '所属行政区域', prop: 'cities', type: 'cascader', hide: true, + span: 24, + width: 300, addDisplay: true, editDisplay: true, viewDisplay: false, - // multiple: true, - // checkStrictly: true, - // collapseTags: true, - // emitPath: false, - // checkDescendants: false, + emitPath: false, props: { label: 'areaName', value: 'areaCode', @@ -117,54 +125,31 @@ const state = reactive({ trigger: 'blur', }, }, + { + label: '网格地图', + prop: 'mapUrl', + type: 'upload', + hide: true, + // action: `${VITE_APP_BASE_API}/system/file/upload`, + }, // { - // label: '网格管理员', - // prop: 'gridManager', - // rules: { - // required: true, - // message: '请输入', - // trigger: 'blur', + // label: '网格名称', + // prop: 'gridName', + // type: 'select', + // addDisplay: false, + // hide: true, + // // search: true, + // searchLabelWidth: 100, + // dicUrl: `${VITE_APP_BASE_API}/land-resource/gridManage/page?regionCode={{key}}`, + // props: { + // label: 'gridName', + // value: 'gridName', // }, - // }, - // { - // label: '联系方式', - // prop: 'contactInfo', - // rules: { - // required: true, - // message: '请输入', - // trigger: 'blur', + // dicHeaders: { + // authorization: UserStore.token, // }, + // dicFormatter: (res) => res.data?.records, // }, - { - 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: '备注', prop: 'note', @@ -209,6 +194,32 @@ const state = reactive({ data: [], currentRow: {}, }); +const baseDetailOption = { + column: [ + { + label: '网格名称', + prop: 'gridName', + }, + { + label: '所属行政区域', + prop: 'gridAreaName', + }, + { + label: '备注', + prop: 'note', + }, + ], +}; + +const otherDetailOption = { + column: [ + { + label: '创建时间', + prop: 'createTime', + }, + // 可以添加更多字段... + ], +}; // 加载 const loadData = () => { diff --git a/sub-government-affairs-service/src/views/resource/grid/GridMember.vue b/sub-government-affairs-service/src/views/resource/grid/GridMember.vue index 97488c6..642b086 100644 --- a/sub-government-affairs-service/src/views/resource/grid/GridMember.vue +++ b/sub-government-affairs-service/src/views/resource/grid/GridMember.vue @@ -82,7 +82,7 @@ const state = reactive({ type: 'select', width: 200, search: true, - dicData: [], // 初始为空,将在mounted中填充 + dicData: [], // loadGridOptions 方法加载网格数据 props: { label: 'gridName', value: 'id', @@ -93,17 +93,17 @@ const state = reactive({ trigger: 'change', }, }, - { - label: '管理员标识', - prop: 'adminFlag', - type: 'radio', - dicData: [ - { label: '是', value: '1' }, - { label: '否', value: '0' }, - ], - valueDefault: '0', - hide: true, // 隐藏字段,如需显示可设置为false - }, + // { + // label: '管理员标识', + // prop: 'adminFlag', + // type: 'radio', + // dicData: [ + // { label: '是', value: '1' }, + // { label: '否', value: '0' }, + // ], + // valueDefault: '0', + // hide: true, // 隐藏字段,如需显示可设置为false + // }, { label: '电话号码', prop: 'phone', diff --git a/sub-government-affairs-service/src/views/resource/grid/PlanDetail.vue b/sub-government-affairs-service/src/views/resource/grid/PlanDetail.vue new file mode 100644 index 0000000..289c554 --- /dev/null +++ b/sub-government-affairs-service/src/views/resource/grid/PlanDetail.vue @@ -0,0 +1,3 @@ + + + diff --git a/sub-operation-service/src/assets/images/carton.png b/sub-operation-service/src/assets/images/carton.png new file mode 100644 index 0000000..7c68fae Binary files /dev/null and b/sub-operation-service/src/assets/images/carton.png differ diff --git a/sub-operation-service/src/assets/images/film.png b/sub-operation-service/src/assets/images/film.png new file mode 100644 index 0000000..40004c3 Binary files /dev/null and b/sub-operation-service/src/assets/images/film.png differ diff --git a/sub-operation-service/src/assets/images/fruit.png b/sub-operation-service/src/assets/images/fruit.png new file mode 100644 index 0000000..856ccbb Binary files /dev/null and b/sub-operation-service/src/assets/images/fruit.png differ diff --git a/sub-operation-service/src/assets/images/logo.png b/sub-operation-service/src/assets/images/logo.png index 3d7da94..213630e 100644 Binary files a/sub-operation-service/src/assets/images/logo.png and b/sub-operation-service/src/assets/images/logo.png differ diff --git a/sub-operation-service/src/assets/images/metal.png b/sub-operation-service/src/assets/images/metal.png new file mode 100644 index 0000000..2ef6874 Binary files /dev/null and b/sub-operation-service/src/assets/images/metal.png differ diff --git a/sub-operation-service/src/assets/images/plastics.png b/sub-operation-service/src/assets/images/plastics.png new file mode 100644 index 0000000..ad37172 Binary files /dev/null and b/sub-operation-service/src/assets/images/plastics.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu1-1.png b/sub-operation-service/src/assets/images/userCenter/menu1-1.png index 7c0e779..0416f07 100644 Binary files a/sub-operation-service/src/assets/images/userCenter/menu1-1.png and b/sub-operation-service/src/assets/images/userCenter/menu1-1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu1.png b/sub-operation-service/src/assets/images/userCenter/menu1.png index ea12279..1e4dd15 100644 Binary files a/sub-operation-service/src/assets/images/userCenter/menu1.png and b/sub-operation-service/src/assets/images/userCenter/menu1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu2-1.png b/sub-operation-service/src/assets/images/userCenter/menu2-1.png index 03e88b5..f581cbc 100644 Binary files a/sub-operation-service/src/assets/images/userCenter/menu2-1.png and b/sub-operation-service/src/assets/images/userCenter/menu2-1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu2.png b/sub-operation-service/src/assets/images/userCenter/menu2.png index cf2e9a2..07767fa 100644 Binary files a/sub-operation-service/src/assets/images/userCenter/menu2.png and b/sub-operation-service/src/assets/images/userCenter/menu2.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu3-1.png b/sub-operation-service/src/assets/images/userCenter/menu3-1.png index b02c8ae..904cc55 100644 Binary files a/sub-operation-service/src/assets/images/userCenter/menu3-1.png and b/sub-operation-service/src/assets/images/userCenter/menu3-1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu3.png b/sub-operation-service/src/assets/images/userCenter/menu3.png index 45d173a..32b21ba 100644 Binary files a/sub-operation-service/src/assets/images/userCenter/menu3.png and b/sub-operation-service/src/assets/images/userCenter/menu3.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu4-1.png b/sub-operation-service/src/assets/images/userCenter/menu4-1.png new file mode 100644 index 0000000..e175387 Binary files /dev/null and b/sub-operation-service/src/assets/images/userCenter/menu4-1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu4.png b/sub-operation-service/src/assets/images/userCenter/menu4.png new file mode 100644 index 0000000..faceeb3 Binary files /dev/null and b/sub-operation-service/src/assets/images/userCenter/menu4.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu5-1.png b/sub-operation-service/src/assets/images/userCenter/menu5-1.png new file mode 100644 index 0000000..a8de146 Binary files /dev/null and b/sub-operation-service/src/assets/images/userCenter/menu5-1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu5.png b/sub-operation-service/src/assets/images/userCenter/menu5.png new file mode 100644 index 0000000..ecf49a7 Binary files /dev/null and b/sub-operation-service/src/assets/images/userCenter/menu5.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu6-1.png b/sub-operation-service/src/assets/images/userCenter/menu6-1.png new file mode 100644 index 0000000..70b8941 Binary files /dev/null and b/sub-operation-service/src/assets/images/userCenter/menu6-1.png differ diff --git a/sub-operation-service/src/assets/images/userCenter/menu6.png b/sub-operation-service/src/assets/images/userCenter/menu6.png new file mode 100644 index 0000000..e9f6788 Binary files /dev/null and b/sub-operation-service/src/assets/images/userCenter/menu6.png differ diff --git a/sub-operation-service/src/assets/images/vegetable.png b/sub-operation-service/src/assets/images/vegetable.png new file mode 100644 index 0000000..a6f453c Binary files /dev/null and b/sub-operation-service/src/assets/images/vegetable.png differ diff --git a/sub-operation-service/src/router/index.js b/sub-operation-service/src/router/index.js index 9e2d7c1..be10e20 100644 --- a/sub-operation-service/src/router/index.js +++ b/sub-operation-service/src/router/index.js @@ -85,6 +85,12 @@ export const constantRoutes = [ name: 'myFinance', meta: { title: '我的金融' }, }, + { + path: '/sub-operation-service/myBrand', + component: () => import('@/views/userCenter/myBrand.vue'), + name: 'myBrand', + meta: { title: '我的品牌' }, + }, ], }, diff --git a/sub-operation-service/src/views/packaging/components/leftMenu.vue b/sub-operation-service/src/views/packaging/components/leftMenu.vue index a644a56..434d587 100644 --- a/sub-operation-service/src/views/packaging/components/leftMenu.vue +++ b/sub-operation-service/src/views/packaging/components/leftMenu.vue @@ -66,7 +66,7 @@ const leftMenu = reactive([ name: 'control', title: '包装', icon: 'menu3.png', - path: '/sub-operation-service/packaging/sorting', + path: '/sub-operation-service/packaging/index', isOpen: false, children: [], }, diff --git a/sub-operation-service/src/views/packaging/index.vue b/sub-operation-service/src/views/packaging/index.vue index 8626435..edad294 100644 --- a/sub-operation-service/src/views/packaging/index.vue +++ b/sub-operation-service/src/views/packaging/index.vue @@ -1,19 +1,474 @@ + + +// 弹窗整体样式 +:deep(.custom-inquiry-dialog) { + border-radius: 8px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + + .el-dialog__header { + padding: 20px; + border-bottom: 1px solid #f2f6fc; + .el-dialog__title { + font-size: 18px; + color: $text-dark; + font-weight: 600; + } + } + + .el-dialog__body { + padding: 20px 28px; + } + + .el-form-item__label { + color: $text-regular; + font-size: 14px; + padding-bottom: 6px; + } +} + +.info-section { + padding: 0px 50px; + margin-bottom: 24px; + .info-item { + margin-bottom: 12px; + .label { + color: $text-regular; + margin-right: 8px; + font-size: 20px; + } + .value { + color: $text-dark; + font-weight: 500; + font-size: 20px; + } + } +} + +// 输入框样式覆盖 +:deep(.el-input) { + .el-input__inner { + height: 40px; + line-height: 40px; + border-radius: 4px; + &:focus { + border-color: $primary-color; + } + } + .el-input__suffix { + color: $text-regular; + right: 12px; + } +} + +// 下拉菜单样式 +:deep(.custom-select-dropdown) { + .el-select-dropdown__item { + color: $text-regular; + &.selected { + color: $primary-color; + } + } +} + +// 按钮组样式 +.dialog-footer { + text-align: right; + .el-button { + padding: 10px 24px; + border-radius: 4px; + font-size: 14px; + } + .cancel-btn { + color: $text-regular; + &:hover { + color: $primary-color; + border-color: $primary-color; + } + } + .submit-btn { + color: #fff; + background: $primary-color; + &:hover { + background: mix($primary-color, #fff, 85%); + } + } +} +.tabs { + height: 160px; + line-height: 50px; + display: flex; + flex-direction: column; + font-size: 18px; + align-items: flex-start; + justify-content: space-between; + padding: 0 20px; +} +.tab { + height: 100px; + width: 850px; + display: flex; + align-items: center; + justify-content: flex-start; + overflow-x: auto; + overflow: auto; /* 启用滚动 */ + white-space: nowrap; /* 强制单行显示 */ + -ms-overflow-style: none; /* IE/Edge 兼容 */ + scrollbar-width: none; /* 隐藏滚动条 */ + .tab_list { + color: #999999; + font-size: 20px; + font-weight: 400; + } + .tab_list_li { + margin-left: 40px; + color: #000000; + font-size: 20px; + font-weight: 400; + } + .tab_list_li.active { + color: rgba(37, 191, 130, 1); + } +} +.cursor { + cursor: pointer; +} +.active { + color: rgba(37, 191, 130, 1); +} +.storage-card { + position: relative; + overflow: hidden; + margin-bottom: 20px; + border: 0; + border-radius: 24px; +} +.storage-content { + @include flex-column; + + gap: 16px; + &-top { + @include flex-row; + + align-items: center; + } +} +.storage-image { + margin-right: 16px; + width: 120px; + height: 120px; + border-radius: 8px; + object-fit: cover; +} +.storage-info { + padding-right: 50px; + flex: 1; + cursor: pointer; +} +.storage-title, +.storage-desc, +.storage-tags, +.storage-location { + overflow: hidden; + margin: 10px 0; + width: 100%; + text-align: left; +} +.storage-title { + font-size: 20px; + font-weight: 700; + color: #000000; + @include ellipsis; +} +.storage-desc { + font-size: 16px; + color: #999999; + @include ellipsis; + i { + display: inline-block; + width: 20px; + height: 20px; + } +} +.storage-tags { + span { + margin-right: 10px; + } +} +.storage-location { + display: flex; + align-items: center; + font-size: 16px; + font-weight: 400; + color: #000000; +} +.storage-price { + display: flex; + justify-content: space-between; + align-items: center; + &-left { + color: #25bf82; + } +} +.price-label { + margin-right: 10px; + font-size: 16px; + color: #999999; +} +.price-amount { + font-size: 20px; + font-weight: 700; + color: #25bf82; +} +.contact-btn { + width: 152px; + height: 48px; + font-size: 20px; + border-radius: 8px; + background: #25bf82 !important; + :deep(.el-icon) { + margin-right: 10px; + } +} +.rank-badge { + position: absolute; + top: 0; + right: 20px; + width: 80px; + height: 80px; +} + diff --git a/sub-operation-service/src/views/packaging/sorting.vue b/sub-operation-service/src/views/packaging/sorting.vue index 1583740..320c0bc 100644 --- a/sub-operation-service/src/views/packaging/sorting.vue +++ b/sub-operation-service/src/views/packaging/sorting.vue @@ -1,16 +1,88 @@