Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
421640a4
提交
421640a4
authored
6月 13, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:商品编辑主图编辑问题
上级
15561bc7
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
44 行增加
和
50 行删除
+44
-50
.env.development
env/.env.development
+1
-1
index.tsx
...nents/goods/commonAddOrEdit/configurePriceModal/index.tsx
+1
-1
index.tsx
src/components/layout/menu/index.tsx
+0
-6
index.tsx
...ages/mallManage/rentGoods/rentAddOrEditOrDetail/index.tsx
+6
-6
router.tsx
src/router/router.tsx
+36
-36
没有找到文件。
env/.env.development
浏览文件 @
421640a4
#请求接口地址
#请求接口地址
VITE_REQUEST_BASE_URL='https://
www.iuav.shop
'
VITE_REQUEST_BASE_URL='https://
iuav.mmcuav.cn
'
#VITE_REQUEST_BASE_URL='https://test.iuav.shop'
#VITE_REQUEST_BASE_URL='https://test.iuav.shop'
#VITE_REQUEST_BASE_URL='/api'
#VITE_REQUEST_BASE_URL='/api'
#旧版接口地址
#旧版接口地址
...
...
src/components/goods/commonAddOrEdit/configurePriceModal/index.tsx
浏览文件 @
421640a4
...
@@ -131,7 +131,7 @@ const ConfigurePriceModal: React.FC<ModalProps & selfProps> = ({
...
@@ -131,7 +131,7 @@ const ConfigurePriceModal: React.FC<ModalProps & selfProps> = ({
form=
{
cfgPriceForm
}
form=
{
cfgPriceForm
}
initialValues=
{
{
leaseTerm
:
0
}
}
initialValues=
{
{
leaseTerm
:
0
}
}
>
>
{
goodsType
&&
(
{
goodsType
===
1
&&
(
<
Form
.
Item
<
Form
.
Item
label=
'租期'
label=
'租期'
name=
'leaseTerm'
name=
'leaseTerm'
...
...
src/components/layout/menu/index.tsx
浏览文件 @
421640a4
...
@@ -65,12 +65,6 @@ export function MenuView() {
...
@@ -65,12 +65,6 @@ export function MenuView() {
// 设置当前选中的项目
// 设置当前选中的项目
setOpenKeys
([
getRoutePid
(
routerList
,
location
.
pathname
).
toString
()]);
setOpenKeys
([
getRoutePid
(
routerList
,
location
.
pathname
).
toString
()]);
// 设置当前选中的项目的subMenu
// 设置当前选中的项目的subMenu
console
.
log
(
'当前选中menu-->'
,
getRouteID
(
routerList
,
location
.
pathname
),
location
.
pathname
,
routerList
,
);
setSelectedKeys
([
getRouteID
(
routerList
,
location
.
pathname
).
toString
()]);
setSelectedKeys
([
getRouteID
(
routerList
,
location
.
pathname
).
toString
()]);
},
[]);
},
[]);
return
(
return
(
...
...
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/index.tsx
浏览文件 @
421640a4
...
@@ -173,7 +173,11 @@ const GoodsAddOrEditOrDetail = () => {
...
@@ -173,7 +173,11 @@ const GoodsAddOrEditOrDetail = () => {
{
{
imgType
:
0
,
imgType
:
0
,
imgUrl
:
values
.
mainImg
[
0
].
url
,
imgUrl
:
values
.
mainImg
[
0
].
url
,
id
:
goodsDetail
?
values
.
mainImg
[
0
].
id
:
undefined
,
id
:
goodsDetail
?
goodsDetail
.
images
.
some
((
i
)
=>
i
.
id
===
values
.
mainImg
[
0
].
id
)
?
values
.
mainImg
[
0
].
id
:
undefined
:
undefined
,
},
},
];
];
//副图
//副图
...
@@ -182,11 +186,7 @@ const GoodsAddOrEditOrDetail = () => {
...
@@ -182,11 +186,7 @@ const GoodsAddOrEditOrDetail = () => {
...
values
.
subImg
.
map
((
v
:
any
)
=>
({
...
values
.
subImg
.
map
((
v
:
any
)
=>
({
imgType
:
1
,
imgType
:
1
,
imgUrl
:
v
.
url
,
imgUrl
:
v
.
url
,
id
:
goodsDetail
id
:
goodsDetail
?
goodsDetail
.
images
.
some
((
i
)
=>
i
.
id
===
v
.
id
)
:
undefined
,
?
goodsDetail
.
images
.
some
((
i
)
=>
i
.
id
===
v
.
id
)
?
v
.
id
:
undefined
:
undefined
,
})),
})),
);
);
}
}
...
...
src/router/router.tsx
浏览文件 @
421640a4
...
@@ -50,13 +50,13 @@ import CourseManageView from '~/pages/mallManage/courseManage';
...
@@ -50,13 +50,13 @@ import CourseManageView from '~/pages/mallManage/courseManage';
// const ActivityList = React.lazy(() => import('src/pages/activityManage/activityList')); //活动管理
// const ActivityList = React.lazy(() => import('src/pages/activityManage/activityList')); //活动管理
//商品管理
//商品管理
//
const ServiceListView = React.lazy(() => import('~/pages/mallManage/serviceManage/serviceList')); //服务列表
const
ServiceListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/serviceManage/serviceList'
));
//服务列表
//
const ServiceDetailView = React.lazy(
const
ServiceDetailView
=
React
.
lazy
(
//
() => import('~/pages/mallManage/serviceManage/serviceDetail'),
()
=>
import
(
'~/pages/mallManage/serviceManage/serviceDetail'
),
//
); //服务详情
);
//服务详情
//
const ServiceIntroduceView = React.lazy(
const
ServiceIntroduceView
=
React
.
lazy
(
//
() => import('~/pages/mallManage/serviceManage/serviceIntroduce'),
()
=>
import
(
'~/pages/mallManage/serviceManage/serviceIntroduce'
),
//
); //服务介绍
);
//服务介绍
const
RentListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/rentGoods/rentList'
));
//租赁列表
const
RentListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/rentGoods/rentList'
));
//租赁列表
const
RentAddOrEditOrDetailView
=
React
.
lazy
(
const
RentAddOrEditOrDetailView
=
React
.
lazy
(
()
=>
import
(
'~/pages/mallManage/rentGoods/rentAddOrEditOrDetail'
),
()
=>
import
(
'~/pages/mallManage/rentGoods/rentAddOrEditOrDetail'
),
...
@@ -236,35 +236,35 @@ export const routerList: Array<RouteObjectType> = [
...
@@ -236,35 +236,35 @@ export const routerList: Array<RouteObjectType> = [
title
:
'课程管理'
,
title
:
'课程管理'
,
},
},
},
},
//
{
{
//
path: '/mallManage/serviceList',
path
:
'/mallManage/serviceList'
,
//
element: withLoadingComponent(<ServiceListView />),
element
:
withLoadingComponent
(<
ServiceListView
/>),
//
meta: {
meta
:
{
//
id: 10110,
id
:
10110
,
//
icon: <SmileOutlined />,
icon
:
<
SmileOutlined
/>,
//
title: '服务管理',
title
:
'服务管理'
,
//
},
},
//
},
},
//
{
{
//
path: '/mallManage/serviceDetail',
path
:
'/mallManage/serviceDetail'
,
//
element: withLoadingComponent(<ServiceDetailView />),
element
:
withLoadingComponent
(<
ServiceDetailView
/>),
//
meta: {
meta
:
{
//
id: 10120,
id
:
10120
,
//
icon: <SmileOutlined />,
icon
:
<
SmileOutlined
/>,
//
title: '服务详情',
title
:
'服务详情'
,
//
hidden: true,
hidden
:
true
,
//
},
},
//
},
},
//
{
{
//
path: '/mallManage/serviceIntroduce',
path
:
'/mallManage/serviceIntroduce'
,
//
element: withLoadingComponent(<ServiceIntroduceView />),
element
:
withLoadingComponent
(<
ServiceIntroduceView
/>),
//
meta: {
meta
:
{
//
id: 10120,
id
:
10120
,
//
icon: <SmileOutlined />,
icon
:
<
SmileOutlined
/>,
//
title: '服务介绍',
title
:
'服务介绍'
,
//
hidden: true,
hidden
:
true
,
//
},
},
//
},
},
{
{
path
:
'/mallManage/rentGoods'
,
path
:
'/mallManage/rentGoods'
,
element
:
withLoadingComponent
(<
RentListView
/>),
element
:
withLoadingComponent
(<
RentListView
/>),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论