Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
d1f90f95
提交
d1f90f95
authored
6月 11, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into develop
上级
f8ca2ddd
1d36f004
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
43 行增加
和
10 行删除
+43
-10
categoryManage.ts
src/api/interface/categoryManage.ts
+9
-0
produceManageAPI.ts
src/api/modules/produceManageAPI.ts
+5
-0
index.tsx
src/components/uploader/index.tsx
+1
-1
index.tsx
src/pages/categoryManage/category/index.tsx
+2
-2
index.tsx
src/pages/customManage/customList/index.tsx
+21
-3
index.tsx
...pages/mallManage/courseManage/comp/addEditModal/index.tsx
+3
-2
index.tsx
src/pages/mallManage/produceManage/produceList/index.tsx
+1
-1
index.tsx
...ages/mallManage/rentGoods/rentAddOrEditOrDetail/index.tsx
+1
-1
没有找到文件。
src/api/interface/categoryManage.ts
浏览文件 @
d1f90f95
...
...
@@ -66,3 +66,12 @@ export type directoryListType = InterFunction<
type
:
number
;
}[]
>
;
//目录列表-产品指定
export
type
directoryProductType
=
InterFunction
<
any
,
{
id
:
number
;
directoryName
:
string
;
type
:
number
;
}[]
>
;
src/api/modules/produceManageAPI.ts
浏览文件 @
d1f90f95
...
...
@@ -14,6 +14,7 @@ import {
ProductSpecListType
,
productSpecPriceType
,
}
from
'~/api/interface/produceManageType'
;
import
{
directoryProductType
}
from
'~/api/interface/categoryManage'
;
export
class
ProduceManageAPI
{
// 产品管理-分页列表
...
...
@@ -70,4 +71,8 @@ export class ProduceManageAPI {
static
getCooperationListTag
:
cooperationTagType
=
()
=>
{
return
axios
.
get
(
'/userapp/cooperation/listTag'
);
};
// 产品-目录
static
getProductDirectoryList
:
directoryProductType
=
()
=>
{
return
axios
.
get
(
'/pms/product/spec/productDirectoryList'
);
};
}
src/components/uploader/index.tsx
浏览文件 @
d1f90f95
...
...
@@ -64,7 +64,7 @@ export const Uploader: React.FC<PropsType> = (props) => {
return
isType
;
}
if
(
!
isSize
)
{
message
.
error
(
'文件最大2M,请压缩后上传!'
).
then
();
message
.
error
(
`文件最大
${
props
.
fileSize
}
M,请压缩后上传!`
).
then
();
return
isSize
;
}
},
...
...
src/pages/categoryManage/category/index.tsx
浏览文件 @
d1f90f95
...
...
@@ -129,7 +129,7 @@ const Category: FC = (props: any) => {
render
:
(
text
:
string
,
record
:
categoryEntity
,
index
:
number
)
=>
{
return
(
<
div
className=
'table-option-wrap'
>
{
record
.
children
?.
length
>
0
?
(
{
record
.
level
==
1
?
(
<>
{
btnAddChildCgy
?
(
<
Button
...
...
@@ -418,7 +418,7 @@ const Category: FC = (props: any) => {
};
// 新增子分类
const
sureAddChildrenCgy
=
(
record
:
categoryEntity
)
=>
{
let
pid
:
string
|
number
=
-
1
;
let
pid
:
string
|
number
;
categoryList
.
map
((
item
:
categoryEntity
)
=>
{
if
(
item
.
children
&&
item
.
children
.
length
!=
0
)
{
const
bol
:
boolean
=
item
.
children
.
some
(
...
...
src/pages/customManage/customList/index.tsx
浏览文件 @
d1f90f95
import
{
useEffect
,
useState
}
from
'react'
;
import
SearchBox
from
'~/components/search-box'
;
import
{
Button
,
Table
}
from
'antd'
;
import
{
Button
,
message
,
Modal
,
Table
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
ChangeModal
}
from
'~/pages/customManage/customList/comp/changeModal'
;
import
{
InterListType
,
InterReqType
}
from
'~/api/interface'
;
import
{
listAppUserType
}
from
'~/api/interface/customManageType'
;
import
{
CustomManageAPI
}
from
'~/api'
;
import
{
CustomManageAPI
,
SystemManageAPI
}
from
'~/api'
;
// 表格数据类型
type
TableType
=
InterListType
<
listAppUserType
>
;
...
...
@@ -24,6 +24,7 @@ const portTypeList = [
];
function
CustomListView
()
{
const
{
confirm
}
=
Modal
;
// 等级标签列表
const
[
cooperationTagIdList
,
setCooperationTagIdList
]
=
useState
<
{
value
:
number
;
label
:
string
}[]
...
...
@@ -80,6 +81,23 @@ function CustomListView() {
// console.log(res.result);
}
};
// 删除用户
const
handleDelete
=
(
value
:
TableType
[
0
])
=>
{
confirm
({
title
:
'提示'
,
content
:
'是否删除该账号?'
,
onOk
:
async
()
=>
{
const
res
=
await
SystemManageAPI
.
removeBAccount
({
userAccountId
:
value
.
id
});
if
(
res
&&
res
.
code
===
'200'
)
{
message
.
success
(
'删除成功'
);
paginationChange
(
tableData
.
length
===
1
?
pagination
.
current
-
1
:
pagination
.
current
,
pagination
.
pageSize
,
);
}
},
});
};
// componentDidMount
useEffect
(()
=>
{
query
=
{};
...
...
@@ -188,7 +206,7 @@ function CustomListView() {
>
变更
</
Button
>
<
Button
type=
{
'link'
}
danger
>
<
Button
type=
{
'link'
}
danger
onClick=
{
()
=>
handleDelete
(
record
)
}
>
删除
</
Button
>
</>
...
...
src/pages/mallManage/courseManage/comp/addEditModal/index.tsx
浏览文件 @
d1f90f95
...
...
@@ -155,6 +155,7 @@ const AddEditModal: React.FC<propType> = (props) => {
listType=
{
'picture-card'
}
fileUpload
fileLength=
{
1
}
fileSize=
{
10
}
onChange=
{
(
e
)
=>
form
.
setFieldValue
(
'surfaceUrl'
,
e
[
0
].
url
)
}
defaultFileList=
{
data
?.
surfaceUrl
?
[{
url
:
data
?.
surfaceUrl
}]
:
[]
}
>
...
...
@@ -169,7 +170,7 @@ const AddEditModal: React.FC<propType> = (props) => {
<
Form
.
Item
label=
'课程上传'
name=
'videoUrl'
rules=
{
[{
required
:
tru
e
,
message
:
'请上传质检视频'
}]
}
rules=
{
[{
required
:
fals
e
,
message
:
'请上传质检视频'
}]
}
style=
{
{
marginBottom
:
'-40px'
}
}
>
<
Uploader
...
...
@@ -177,7 +178,7 @@ const AddEditModal: React.FC<propType> = (props) => {
fileUpload
fileLength=
{
1
}
fileType=
{
[
'video/mp4'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
]
}
fileSize=
{
10
}
fileSize=
{
10
24
}
onChange=
{
(
e
)
=>
form
.
setFieldValue
(
'videoUrl'
,
e
[
0
].
url
)
}
defaultFileList=
{
data
?.
videoUrl
?
[{
url
:
data
?.
videoUrl
}]
:
[]
}
>
...
...
src/pages/mallManage/produceManage/produceList/index.tsx
浏览文件 @
d1f90f95
...
...
@@ -189,7 +189,7 @@ function ProduceManage() {
};
// 目录列表
const
getDirectoryList
=
()
=>
{
CategoryManageAPI
.
getDirectoryListClone
({
type
:
4
}
).
then
(({
result
})
=>
{
ProduceManageAPI
.
getProductDirectoryList
(
).
then
(({
result
})
=>
{
setDecList
(
result
||
[]);
});
};
...
...
src/pages/mallManage/rentGoods/rentAddOrEditOrDetail/index.tsx
浏览文件 @
d1f90f95
...
...
@@ -89,7 +89,7 @@ const GoodsAddOrEditOrDetail = () => {
};
//根据目录获取分类列表
const
getCategoryList
=
(
directoryId
:
number
)
=>
{
CategoryManageAPI
.
getCategoryList
({
directoryId
,
type
:
4
,
pageSize
:
9999
,
pageNo
:
1
}).
then
(
CategoryManageAPI
.
getCategoryList
({
directoryId
,
type
:
2
,
pageSize
:
9999
,
pageNo
:
1
}).
then
(
({
result
})
=>
{
setCategoryList
(
result
.
list
||
[]);
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论