Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
cc496fda
提交
cc496fda
authored
6月 10, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:产品目录更改
上级
a45a3c3a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
categoryManage.ts
src/api/interface/categoryManage.ts
+9
-0
produceManageAPI.ts
src/api/modules/produceManageAPI.ts
+5
-0
index.tsx
src/pages/mallManage/produceManage/produceList/index.tsx
+1
-1
没有找到文件。
src/api/interface/categoryManage.ts
浏览文件 @
cc496fda
...
@@ -66,3 +66,12 @@ export type directoryListType = InterFunction<
...
@@ -66,3 +66,12 @@ export type directoryListType = InterFunction<
type
:
number
;
type
:
number
;
}[]
}[]
>
;
>
;
//目录列表-产品指定
export
type
directoryProductType
=
InterFunction
<
any
,
{
id
:
number
;
directoryName
:
string
;
type
:
number
;
}[]
>
;
src/api/modules/produceManageAPI.ts
浏览文件 @
cc496fda
...
@@ -14,6 +14,7 @@ import {
...
@@ -14,6 +14,7 @@ import {
ProductSpecListType
,
ProductSpecListType
,
productSpecPriceType
,
productSpecPriceType
,
}
from
'~/api/interface/produceManageType'
;
}
from
'~/api/interface/produceManageType'
;
import
{
directoryProductType
}
from
'~/api/interface/categoryManage'
;
export
class
ProduceManageAPI
{
export
class
ProduceManageAPI
{
// 产品管理-分页列表
// 产品管理-分页列表
...
@@ -70,4 +71,8 @@ export class ProduceManageAPI {
...
@@ -70,4 +71,8 @@ export class ProduceManageAPI {
static
getCooperationListTag
:
cooperationTagType
=
()
=>
{
static
getCooperationListTag
:
cooperationTagType
=
()
=>
{
return
axios
.
get
(
'/userapp/cooperation/listTag'
);
return
axios
.
get
(
'/userapp/cooperation/listTag'
);
};
};
// 产品-目录
static
getProductDirectoryList
:
directoryProductType
=
()
=>
{
return
axios
.
get
(
'/pms/product/spec/productDirectoryList'
);
};
}
}
src/pages/mallManage/produceManage/produceList/index.tsx
浏览文件 @
cc496fda
...
@@ -189,7 +189,7 @@ function ProduceManage() {
...
@@ -189,7 +189,7 @@ function ProduceManage() {
};
};
// 目录列表
// 目录列表
const
getDirectoryList
=
()
=>
{
const
getDirectoryList
=
()
=>
{
CategoryManageAPI
.
getDirectoryListClone
({
type
:
4
}
).
then
(({
result
})
=>
{
ProduceManageAPI
.
getProductDirectoryList
(
).
then
(({
result
})
=>
{
setDecList
(
result
||
[]);
setDecList
(
result
||
[]);
});
});
};
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论