Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
478c538d
提交
478c538d
authored
6月 08, 2023
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:eslint --fix
上级
cbe2f726
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
185 行增加
和
94 行删除
+185
-94
interface.ts
src/api/interface.ts
+2
-2
categoryManage.ts
src/api/interface/categoryManage.ts
+5
-5
categoryManage.ts
src/api/modules/categoryManage.ts
+10
-11
App.scss
src/assets/style/App.scss
+2
-2
index.scss
src/components/messageBox/index.scss
+2
-2
index.scss
src/components/uploader/index.scss
+2
-1
index.tsx
src/pages/categoryManage/category/index.tsx
+4
-4
index.tsx
src/pages/categoryManage/directoryManage/index.tsx
+1
-1
index.scss
src/pages/common/error/index.scss
+117
-20
index.scss
...ods/goodsAddOrEditOrDetail/components/baseInfo/index.scss
+4
-5
index.scss
...odsAddOrEditOrDetail/components/goodsIntroduce/index.scss
+3
-3
index.scss
...ds/goodsAddOrEditOrDetail/components/otherInfo/index.scss
+3
-5
index.scss
...ods/goodsAddOrEditOrDetail/components/stockSku/index.scss
+4
-4
index.scss
...es/mallManage/mallGoods/goodsAddOrEditOrDetail/index.scss
+4
-4
index.scss
...oods/rentAddOrEditOrDetail/components/baseInfo/index.scss
+4
-5
index.scss
...entAddOrEditOrDetail/components/goodsIntroduce/index.scss
+3
-3
index.scss
...ods/rentAddOrEditOrDetail/components/otherInfo/index.scss
+3
-5
index.scss
...oods/rentAddOrEditOrDetail/components/stockSku/index.scss
+4
-4
index.scss
...ges/mallManage/rentGoods/rentAddOrEditOrDetail/index.scss
+4
-4
index.tsx
src/pages/orderManage/equipmentOrder/detail/index.tsx
+1
-1
index.ts
src/store/index.ts
+3
-3
没有找到文件。
src/api/interface.ts
浏览文件 @
478c538d
// 分页通用接口
export
interface
PaginationProps
{
pageSize
:
number
;
pageNo
:
number
;
pageSize
?
:
number
;
pageNo
?
:
number
;
}
// 通用返回接口(分页)
...
...
src/api/interface/categoryManage.ts
浏览文件 @
478c538d
...
...
@@ -27,11 +27,11 @@ export interface categoryEntity {
// 分类目录
export
interface
categoryDec
{
"id"
:
number
,
"directoryName"
:
string
,
"pid"
:
null
,
"type"
:
number
,
directoryType
:
string
id
:
number
;
directoryName
:
string
;
pid
:
null
;
type
:
number
;
directoryType
:
string
;
}
//分类列表类型
...
...
src/api/modules/categoryManage.ts
浏览文件 @
478c538d
...
...
@@ -5,21 +5,22 @@ import { categoryListType, directoryListType } from '~/api/interface/categoryMan
export
class
CategoryManageAPI
{
// 分类目录
static
directoryList
=
(
params
)
=>
{
return
axios
.
get
(
"pms/classify/directoryList"
,
{
params
return
axios
.
get
(
'pms/classify/directoryList'
,
{
params
,
});
}
}
;
//目录列表不含分页
static
getDirectoryList
=
(
params
)
=>
{
return
axios
.
get
(
"pms/classify/getDirectoryList"
,
{
params
return
axios
.
get
(
'pms/classify/getDirectoryList'
,
{
params
,
});
};
// 新增或编辑目录
static
addOrEditDirectory
=
(
data
:
{
id
?:
number
;
directoryName
:
string
,
type
:
number
,
relevance
:
number
}[])
=>
{
static
addOrEditDirectory
=
(
data
:
{
id
?:
number
;
directoryName
:
string
;
type
:
number
;
relevance
:
number
}[],
)
=>
{
return
axios
.
post
(
'/pms/classify/addOrEditDirectory'
,
data
);
};
...
...
@@ -36,7 +37,7 @@ export class CategoryManageAPI {
// 分类列表
static
getClassificationList
=
(
data
:
object
):
any
=>
{
return
axios
.
post
(
`/pms/classify/getClassificationList`
,
data
);
}
}
;
static
getCategoryList
:
categoryListType
=
(
data
)
=>
{
return
axios
.
post
(
'/pms/classify/getClassificationList'
,
data
);
...
...
@@ -83,9 +84,7 @@ export class CategoryManageAPI {
};
// 分类详情
static
getGoodsTypeDetail
=
(
obj
:
{
id
:
number
},
)
=>
{
static
getGoodsTypeDetail
=
(
obj
:
{
id
:
number
})
=>
{
return
axios
.
get
(
'/pms/classify/getClassifyDetails'
,
{
params
:
obj
});
};
...
...
src/assets/style/App.scss
浏览文件 @
478c538d
...
...
@@ -30,8 +30,8 @@
.ant-table-row
:nth-child
(
odd
)
>
td
{
background
:
#fcfcfc
;
}
.ant-table-cell-fix-right
{
.ant-btn
{
.ant-table-cell-fix-right
{
.ant-btn
{
padding
:
0
8px
!
important
;
}
}
...
...
src/components/messageBox/index.scss
浏览文件 @
478c538d
...
...
@@ -5,7 +5,7 @@
padding
:
20px
10px
;
border-radius
:
5px
;
.message-action
{
.message-action
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
...
...
@@ -48,7 +48,7 @@
width
:
32px
;
height
:
32px
;
border-radius
:
50%
;
background-image
:
url(
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/mine_user.png"
)
;
background-image
:
url(
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/mine_user.png'
)
;
background-size
:
100%
100%
;
box-shadow
:
0
0
10px
rgba
(
0
,
0
,
0
,
0
.1
);
}
...
...
src/components/uploader/index.scss
浏览文件 @
478c538d
...
...
@@ -3,7 +3,8 @@
//width: 200px !important;
}
.ant-upload-list.ant-upload-list-picture-card
.ant-upload-list-item-container
,
.ant-upload-wrapper.ant-upload-picture-card-wrapper
.ant-upload.ant-upload-select
{
.ant-upload-list.ant-upload-list-picture-card
.ant-upload-list-item-container
,
.ant-upload-wrapper.ant-upload-picture-card-wrapper
.ant-upload.ant-upload-select
{
width
:
50px
!
important
;
height
:
50px
!
important
;
}
...
...
src/pages/categoryManage/category/index.tsx
浏览文件 @
478c538d
...
...
@@ -26,7 +26,7 @@ import './index.scss';
import
events
from
'~/events'
;
const
Category
:
FC
=
(
props
:
any
)
=>
{
le
t
location
=
useLocation
();
cons
t
location
=
useLocation
();
console
.
log
(
'location'
,
location
);
const
navigate
=
useNavigate
();
const
baseRef
:
any
=
useRef
();
...
...
@@ -48,8 +48,8 @@ const Category: FC = (props: any) => {
}
return
false
;
};
le
t
pathArr
=
window
.
location
.
pathname
.
split
(
'/'
);
le
t
type
=
pathArr
.
pop
();
//分类所属模块id(0:通用分类 1:作业服务分类 2:设备租赁分类 3:飞手培训分类 4:产品商城分类)
cons
t
pathArr
=
window
.
location
.
pathname
.
split
(
'/'
);
cons
t
type
=
pathArr
.
pop
();
//分类所属模块id(0:通用分类 1:作业服务分类 2:设备租赁分类 3:飞手培训分类 4:产品商城分类)
const
columns
=
[
{
title
:
'分类名称'
,
...
...
@@ -272,7 +272,7 @@ const Category: FC = (props: any) => {
//目录列表取到后设置第一个目录为激活状态
useEffect
(()
=>
{
if
(
activeTabKey
==
-
1
&&
tabList
.
length
>
0
)
{
le
t
key
=
Number
(
searchParams
.
get
(
'activeTabKey'
)
||
tabList
[
0
]?.
key
||
-
1
);
cons
t
key
=
Number
(
searchParams
.
get
(
'activeTabKey'
)
||
tabList
[
0
]?.
key
||
-
1
);
setActiveTabKey
(
key
);
handleTabChange
(
String
(
key
));
}
...
...
src/pages/categoryManage/directoryManage/index.tsx
浏览文件 @
478c538d
...
...
@@ -66,7 +66,7 @@ const DirectoryManage: FC = (props: any) => {
key
:
'type'
,
align
:
'center'
,
render
:
(
value
)
=>
{
le
t
find
=
typeOptions
.
find
((
item
)
=>
{
cons
t
find
=
typeOptions
.
find
((
item
)
=>
{
return
item
.
value
==
value
;
});
return
<
div
>
{
find
?.
label
}
</
div
>;
...
...
src/pages/common/error/index.scss
浏览文件 @
478c538d
.error-page
{
.error-page
{
//body,div,h3,h4,li,ol{margin:0;padding:0}
//body{font:14px/1.5 ‘Microsoft YaHei’,’微软雅黑’,Helvetica,Sans-serif;background:#f0f1f3;}
background
:
#f0f1f3
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
100%
;
:focus
{
outline
:
0
}
h3
,
h4
,
strong
{
font-weight
:
700
}
a
{
color
:
#428bca
;
text-decoration
:none
}
a
:hover
{
text-decoration
:underline
}
.error-page
{
background
:
#f0f1f3
;}
.error-page-container
{
position
:relative
;
z-index
:
1
}
.error-page-main
{
position
:relative
;
background
:
#f9f9f9
;
margin
:
0
auto
;
width
:
617px
;
-ms-box-sizing
:border-box
;
-webkit-box-sizing
:border-box
;
-moz-box-sizing
:border-box
;
box-sizing
:border-box
;
padding
:
50px
50px
70px
}
background
:
#f0f1f3
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
100%
;
:focus
{
outline
:
0
;
}
h3
,
h4
,
strong
{
font-weight
:
700
;
}
a
{
color
:
#428bca
;
text-decoration
:
none
;
}
a
:hover
{
text-decoration
:
underline
;
}
.error-page
{
background
:
#f0f1f3
;
}
.error-page-container
{
position
:
relative
;
z-index
:
1
;
}
.error-page-main
{
position
:
relative
;
background
:
#f9f9f9
;
margin
:
0
auto
;
width
:
617px
;
-ms-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
50px
50px
70px
;
}
//.error-page-main:before{content:”;display:block;background:url(img/errorPageBorder.png?1427783409637);height:7px;position:absolute;top:-7px;width:100%;left:0}
.error-page-main
h3
{
font-size
:
24px
;
font-weight
:
400
;
border-bottom
:
1px
solid
#d0d0d0
}
.error-page-main
h3
strong
{
font-size
:
54px
;
font-weight
:
400
;
margin-right
:
20px
}
.error-page-main
h4
{
font-size
:
20px
;
font-weight
:
400
;
color
:
#333
}
.error-page-actions
{
font-size
:
0
;
z-index
:
100
}
.error-page-actions
div
{
font-size
:
14px
;
display
:inline-block
;
padding
:
30px
0
0
10px
;
width
:
50%
;
-ms-box-sizing
:border-box
;
-webkit-box-sizing
:border-box
;
-moz-box-sizing
:border-box
;
box-sizing
:border-box
;
color
:
#838383
}
.error-page-actions
ol
{
list-style
:decimal
;
padding-left
:
20px
}
.error-page-actions
li
{
line-height
:
2
.5em
}
.error-page-actions
:before
{
content
:
""
;
display
:block
;
position
:absolute
;
z-index
:
-1
;
bottom
:
17px
;
left
:
50px
;
width
:
200px
;
height
:
10px
;
-moz-box-shadow
:
4px
5px
31px
11px
#999
;
-webkit-box-shadow
:
4px
5px
31px
11px
#999
;
box-shadow
:
4px
5px
31px
11px
#999
;
-moz-transform
:rotate
(
-4deg
)
;
-webkit-transform
:rotate
(
-4deg
)
;
-ms-transform
:rotate
(
-4deg
)
;
-o-transform
:rotate
(
-4deg
)
;
transform
:rotate
(
-4deg
)
}
.error-page-actions
:after
{
content
:
""
;
display
:block
;
position
:absolute
;
z-index
:
-1
;
bottom
:
17px
;
right
:
50px
;
width
:
200px
;
height
:
10px
;
-moz-box-shadow
:
4px
5px
31px
11px
#999
;
-webkit-box-shadow
:
4px
5px
31px
11px
#999
;
box-shadow
:
4px
5px
31px
11px
#999
;
-moz-transform
:rotate
(
4deg
)
;
-webkit-transform
:rotate
(
4deg
)
;
-ms-transform
:rotate
(
4deg
)
;
-o-transform
:rotate
(
4deg
)
;
transform
:rotate
(
4deg
)
}
.error-page-back
{
color
:
#0878DF
;
cursor
:
pointer
}
.error-page-main
h3
{
font-size
:
24px
;
font-weight
:
400
;
border-bottom
:
1px
solid
#d0d0d0
;
}
.error-page-main
h3
strong
{
font-size
:
54px
;
font-weight
:
400
;
margin-right
:
20px
;
}
.error-page-main
h4
{
font-size
:
20px
;
font-weight
:
400
;
color
:
#333
;
}
.error-page-actions
{
font-size
:
0
;
z-index
:
100
;
}
.error-page-actions
div
{
font-size
:
14px
;
display
:
inline-block
;
padding
:
30px
0
0
10px
;
width
:
50%
;
-ms-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#838383
;
}
.error-page-actions
ol
{
list-style
:
decimal
;
padding-left
:
20px
;
}
.error-page-actions
li
{
line-height
:
2
.5em
;
}
.error-page-actions
:before
{
content
:
''
;
display
:
block
;
position
:
absolute
;
z-index
:
-1
;
bottom
:
17px
;
left
:
50px
;
width
:
200px
;
height
:
10px
;
-moz-box-shadow
:
4px
5px
31px
11px
#999
;
-webkit-box-shadow
:
4px
5px
31px
11px
#999
;
box-shadow
:
4px
5px
31px
11px
#999
;
-moz-transform
:
rotate
(
-4deg
);
-webkit-transform
:
rotate
(
-4deg
);
-ms-transform
:
rotate
(
-4deg
);
-o-transform
:
rotate
(
-4deg
);
transform
:
rotate
(
-4deg
);
}
.error-page-actions
:after
{
content
:
''
;
display
:
block
;
position
:
absolute
;
z-index
:
-1
;
bottom
:
17px
;
right
:
50px
;
width
:
200px
;
height
:
10px
;
-moz-box-shadow
:
4px
5px
31px
11px
#999
;
-webkit-box-shadow
:
4px
5px
31px
11px
#999
;
box-shadow
:
4px
5px
31px
11px
#999
;
-moz-transform
:
rotate
(
4deg
);
-webkit-transform
:
rotate
(
4deg
);
-ms-transform
:
rotate
(
4deg
);
-o-transform
:
rotate
(
4deg
);
transform
:
rotate
(
4deg
);
}
.error-page-back
{
color
:
#0878df
;
cursor
:
pointer
;
}
}
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/components/baseInfo/index.scss
浏览文件 @
478c538d
.base-info
{
&
-title
{
.base-info
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin-bottom
:
20px
;
&
:
:
before
{
content
:
"*"
;
&
:
:
before
{
content
:
'*'
;
color
:
red
;
}
}
}
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/components/goodsIntroduce/index.scss
浏览文件 @
478c538d
.goods-introduce
{
&
-title
{
.goods-introduce
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin
:
20px
0
;
}
&
-content
{
&
-content
{
margin-left
:
50px
;
}
}
...
...
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/components/otherInfo/index.scss
浏览文件 @
478c538d
.other-info
{
&
-title
{
.other-info
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin
:
20px
0
;
}
&
-form
{
&
-form
{
margin-left
:
50px
;
}
}
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/components/stockSku/index.scss
浏览文件 @
478c538d
.stock-sku
{
&
-title
{
.stock-sku
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin
:
20px
0
;
}
&
-content
{
&
-content
{
margin-left
:
50px
;
}
&
-operate
{
&
-operate
{
margin-bottom
:
10px
;
}
}
src/pages/mallManage/mallGoods/goodsAddOrEditOrDetail/index.scss
浏览文件 @
478c538d
.goods-info
{
&
-operate
{
.goods-info
{
&
-operate
{
margin-top
:
50px
;
display
:
flex
;
justify-content
:
center
;
button
{
button
{
width
:
100px
;
height
:
40px
;
&
:first-child
{
&
:first-child
{
margin-right
:
50px
;
}
}
...
...
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/components/baseInfo/index.scss
浏览文件 @
478c538d
.base-info
{
&
-title
{
.base-info
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin-bottom
:
20px
;
&
:
:
before
{
content
:
"*"
;
&
:
:
before
{
content
:
'*'
;
color
:
red
;
}
}
}
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/components/goodsIntroduce/index.scss
浏览文件 @
478c538d
.goods-introduce
{
&
-title
{
.goods-introduce
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin
:
20px
0
;
}
&
-content
{
&
-content
{
margin-left
:
50px
;
}
}
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/components/otherInfo/index.scss
浏览文件 @
478c538d
.other-info
{
&
-title
{
.other-info
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin
:
20px
0
;
}
&
-form
{
&
-form
{
margin-left
:
50px
;
}
}
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/components/stockSku/index.scss
浏览文件 @
478c538d
.stock-sku
{
&
-title
{
.stock-sku
{
&
-title
{
font-size
:
15px
;
font-weight
:
bold
;
margin
:
20px
0
;
}
&
-content
{
&
-content
{
margin-left
:
50px
;
}
&
-operate
{
&
-operate
{
margin-bottom
:
10px
;
}
}
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/index.scss
浏览文件 @
478c538d
.rent-info
{
&
-operate
{
.rent-info
{
&
-operate
{
margin-top
:
50px
;
display
:
flex
;
justify-content
:
center
;
button
{
button
{
width
:
100px
;
height
:
40px
;
&
:first-child
{
&
:first-child
{
margin-right
:
50px
;
}
}
...
...
src/pages/orderManage/equipmentOrder/detail/index.tsx
浏览文件 @
478c538d
...
...
@@ -34,7 +34,7 @@ function EquipmentOrderDetail() {
});
if
(
res
&&
res
.
code
===
'200'
)
{
setOrderDetail
(
res
.
result
);
console
.
log
(
'获取订单详情 --->'
,
res
.
result
);
//
console.log('获取订单详情 --->', res.result);
}
};
// componentDidMount
...
...
src/store/index.ts
浏览文件 @
478c538d
import
{
configureStore
}
from
"@reduxjs/toolkit"
;
import
{
Menu
}
from
"./module/menu"
;
import
{
UserInfo
}
from
"./module/userInfo"
;
import
{
configureStore
}
from
'@reduxjs/toolkit'
;
import
{
Menu
}
from
'./module/menu'
;
import
{
UserInfo
}
from
'./module/userInfo'
;
export
const
store
=
configureStore
({
reducer
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论