diff --git a/src/apis/modules/companies.js b/src/apis/modules/companies.js new file mode 100644 index 0000000..642d1aa --- /dev/null +++ b/src/apis/modules/companies.js @@ -0,0 +1,14 @@ +/** + * 海邻大事记动态接口 + */ +import request from '@/utils/request' +// 获取菜单列表 +export const getCompanies = (params) => request.basic.get('/api/v1/companies ', params) +// 获取菜单条数据 +export const getMenuCompanies = (id) => request.basic.get(`/api/v1/companies/${id}`) +// 添加菜单 +export const createCompaniesMenu = (params) => request.basic.post('/api/v1/companies', params) +// 更新菜单 +export const updateCompanies = (id, params) => request.basic.put(`/api/v1/companies/${id}`, params) +// 删除菜单 +export const delCompanies = (id) => request.basic.delete(`/api/v1/companies/${id}`) diff --git a/src/locales/lang/zh-CN/menu.js b/src/locales/lang/zh-CN/menu.js index d5de9ac..0475801 100644 --- a/src/locales/lang/zh-CN/menu.js +++ b/src/locales/lang/zh-CN/menu.js @@ -48,7 +48,7 @@ export default { product:'产品中心', team:'技术团队', importantEvents:'发展历程', - websiteRelated:'网站相关', + websiteRelated:'联系我们', friendlyLinks:'友情链接', websiteStatement:'网站声明', contactUs:'联系我们', @@ -58,5 +58,10 @@ export default { productClassify:'产品分类', technologyCenter:'技术中心', environment:'办公环境', + other:'其他', + logo: '海邻logo', + officialWeChat:'官方微信', + Profile:'企业简介', + } diff --git a/src/locales/lang/zh-CN/pages.js b/src/locales/lang/zh-CN/pages.js index 6fc9ff3..c61a544 100644 --- a/src/locales/lang/zh-CN/pages.js +++ b/src/locales/lang/zh-CN/pages.js @@ -1,6 +1,5 @@ export default { - 'pages.layouts.userLayout.title': - '成为中国领先的新型饲用蛋白供应商', + 'pages.layouts.userLayout.title': '成为中国领先的新型饲用蛋白供应商', 'pages.login.accountLogin.tab': '账户密码登录', 'pages.login.failure': '登录失败,请重试!', 'pages.login.success': '登录成功!', diff --git a/src/router/routes/AboutY.js b/src/router/routes/AboutY.js index 060676e..57a2a67 100644 --- a/src/router/routes/AboutY.js +++ b/src/router/routes/AboutY.js @@ -1,4 +1,4 @@ -import { PictureOutlined } from '@ant-design/icons-vue' +import { DeploymentUnitOutlined } from '@ant-design/icons-vue' export default [ { @@ -6,24 +6,24 @@ export default [ name: 'AboutY', component: 'RouteViewLayout', meta: { - icon: PictureOutlined, + icon: DeploymentUnitOutlined, title: '关于海邻', isMenu: true, keepAlive: true, permission: '*', }, children: [ - // { - // path: 'Profile', - // name: 'Profile', - // component: 'AboutY/Profile/index.vue', - // meta: { - // title: '企业简介', - // isMenu: true, - // keepAlive: true, - // permission: '*', - // }, - // }, + { + path: 'Profile', + name: 'Profile', + component: 'AboutY/Profile/index.vue', + meta: { + title: '企业简介', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, { path: 'importantEvents', name: 'importantEvents', @@ -36,9 +36,9 @@ export default [ }, }, { - path: 'researchHonor', - name: 'researchHonor', - component: 'AboutY/researchHonor/index.vue', + path: 'corporateHonor', + name: 'corporateHonor', + component: 'AboutY/corporateHonor/index.vue', meta: { title: '企业荣誉', isMenu: true, diff --git a/src/router/routes/other.js b/src/router/routes/other.js index 6a6da6d..b66bb4f 100644 --- a/src/router/routes/other.js +++ b/src/router/routes/other.js @@ -1,3 +1,69 @@ +// import { EllipsisOutlined } from '@ant-design/icons-vue' +// +// export default [ +// { +// path: 'other', +// name: 'other', +// component: 'RouteViewLayout', +// meta: { +// icon: EllipsisOutlined, +// title: '其他', +// isMenu: true, +// keepAlive: true, +// permission: '*', +// }, +// children: [ +// { +// path: 'logo', +// name: 'logo', +// component: 'other/logo/index.vue', +// meta: { +// layout: 'CustomLayout', +// title: '海邻logo', +// isMenu: true, +// target: '_blank', +// keepAlive: true, +// permission: '*', +// }, +// }, +// { +// path: 'officialWeChat', +// name: 'officialWeChat', +// component: 'other/officialWeChat/index.vue', +// meta: { +// layout: 'CustomLayout', +// title: '官方微信', +// isMenu: true, +// target: '_blank', +// keepAlive: true, +// permission: '*', +// }, +// }, +// // { +// // path: 'multi-tab', +// // name: 'otherMultiTab', +// // component: 'other/multi-tab/index.vue', +// // meta: { +// // title: '多标签操作', +// // isMenu: true, +// // keepAlive: true, +// // permission: '*', +// // }, +// // }, +// // { +// // path: 'badge', +// // name: 'otherBadge', +// // component: 'other/badge/index.vue', +// // meta: { +// // title: '菜单徽标', +// // isMenu: true, +// // keepAlive: true, +// // permission: '*', +// // }, +// // }, +// ], +// }, +// ] import { EllipsisOutlined } from '@ant-design/icons-vue' export default [ @@ -14,35 +80,22 @@ export default [ }, children: [ { - path: 'custom-layout', - name: 'otherCustomLayout', - component: '/list/basic/index.vue', + path: 'logo', + name: 'logo', + component: 'other/logo/index.vue', meta: { - layout: 'CustomLayout', - title: '自定义框架', - isMenu: true, - target: '_blank', - keepAlive: true, - permission: '*', - }, - }, - { - path: 'multi-tab', - name: 'otherMultiTab', - component: '/other/multi-tab/index.vue', - meta: { - title: '多标签操作', + title: 'logo', isMenu: true, keepAlive: true, permission: '*', }, }, { - path: 'badge', - name: 'otherBadge', - component: 'other/badge/index.vue', + path: 'officialWeChat', + name: 'officialWeChat', + component: 'other/officialWeChat/index.vue', meta: { - title: '菜单徽标', + title: '官方微信', isMenu: true, keepAlive: true, permission: '*', diff --git a/src/router/routes/product.js b/src/router/routes/product.js index c7642ad..04f6a15 100644 --- a/src/router/routes/product.js +++ b/src/router/routes/product.js @@ -26,7 +26,7 @@ // }, // }, // ] -import { PictureOutlined } from '@ant-design/icons-vue' +import { ShoppingOutlined } from '@ant-design/icons-vue' export default [ { @@ -34,7 +34,7 @@ export default [ name: 'productY', component: 'RouteViewLayout', meta: { - icon: PictureOutlined, + icon: ShoppingOutlined, title: '产品中心', isMenu: true, keepAlive: true, diff --git a/src/views/AboutY/Profile/index.vue b/src/views/AboutY/Profile/index.vue new file mode 100644 index 0000000..cab1273 --- /dev/null +++ b/src/views/AboutY/Profile/index.vue @@ -0,0 +1,213 @@ + + + + diff --git a/src/views/AboutY/corporateHonor/components/EditDialog.vue b/src/views/AboutY/corporateHonor/components/EditDialog.vue index 9737fb4..ed60266 100644 --- a/src/views/AboutY/corporateHonor/components/EditDialog.vue +++ b/src/views/AboutY/corporateHonor/components/EditDialog.vue @@ -25,6 +25,7 @@ +

406*270px,图片大小不要超过200kb

@@ -194,4 +195,9 @@ defineExpose({ }) - + diff --git a/src/views/dynamic/companyNews/components/EditDialog.vue b/src/views/dynamic/companyNews/components/EditDialog.vue index 8423659..7510dc4 100644 --- a/src/views/dynamic/companyNews/components/EditDialog.vue +++ b/src/views/dynamic/companyNews/components/EditDialog.vue @@ -50,6 +50,7 @@ +

683*339px,图片大小不超过900kb

@@ -222,4 +223,9 @@ defineExpose({ }) - + diff --git a/src/views/dynamic/mediaReports/components/EditDialog.vue b/src/views/dynamic/mediaReports/components/EditDialog.vue index 3b275de..95dae12 100644 --- a/src/views/dynamic/mediaReports/components/EditDialog.vue +++ b/src/views/dynamic/mediaReports/components/EditDialog.vue @@ -36,6 +36,7 @@ +

240*155px,图片大小不超过100kb

@@ -208,4 +209,9 @@ defineExpose({ }) - + diff --git a/src/views/dynamic/videoCenter/components/EditDialog.vue b/src/views/dynamic/videoCenter/components/EditDialog.vue index 3e6c328..db45d7f 100644 --- a/src/views/dynamic/videoCenter/components/EditDialog.vue +++ b/src/views/dynamic/videoCenter/components/EditDialog.vue @@ -15,11 +15,11 @@ - - - - - + + + + + @@ -37,11 +37,13 @@ +

大图片尺寸:1400*350px,图片大小不超过900kb

+

小图片尺寸:256*146px,图片大小不超过900kb

@@ -103,7 +105,7 @@ const videoUrl = ref(['']) formRules.value = { title: { required: true, message: '请输入标题' }, subheading: { required: false, message: '请输入内容' }, - link: { required: false, message: '请输入链接' }, + // link: { required: false, message: '请输入链接' }, status: [{ required: true, message: '请选择状态', trigger: 'change' }], pushAt: [{ required: true, message: '请选择发布日期', trigger: 'change' }], fullImg: [{ required: false, message: '请上传大图片', trigger: 'change' }], @@ -249,4 +251,9 @@ defineExpose({ }) - + diff --git a/src/views/dynamic/videoCenter/index.vue b/src/views/dynamic/videoCenter/index.vue index 561dae4..0b4be61 100644 --- a/src/views/dynamic/videoCenter/index.vue +++ b/src/views/dynamic/videoCenter/index.vue @@ -67,12 +67,12 @@ - + + + + + + - - - - - - - - - -