Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
063cc352
提交
063cc352
authored
8月 01, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:超级管理员商品上下移禁用,单位删除警示语
上级
fb8eed2c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
5 行删除
+8
-5
index.tsx
src/pages/mallManage/mallGoods/goodsList/index.tsx
+7
-4
index.tsx
src/pages/systemManage/companyManage/companyList/index.tsx
+1
-1
没有找到文件。
src/pages/mallManage/mallGoods/goodsList/index.tsx
浏览文件 @
063cc352
...
@@ -12,6 +12,7 @@ import qs from 'query-string';
...
@@ -12,6 +12,7 @@ import qs from 'query-string';
import
{
CategoryManageAPI
}
from
'~/api'
;
import
{
CategoryManageAPI
}
from
'~/api'
;
import
{
categoryListRespType
}
from
'~/api/interface/categoryManage'
;
import
{
categoryListRespType
}
from
'~/api/interface/categoryManage'
;
import
{
useSelector
}
from
'react-redux'
;
import
{
useSelector
}
from
'react-redux'
;
import
_
from
'lodash'
;
//商品返回类型
//商品返回类型
type
goodsType
=
InterDataType
<
listPageGoodsInfoType
>
[
'list'
];
type
goodsType
=
InterDataType
<
listPageGoodsInfoType
>
[
'list'
];
...
@@ -255,7 +256,7 @@ const GoodsList = () => {
...
@@ -255,7 +256,7 @@ const GoodsList = () => {
});
});
};
};
//上移
//上移
const
upGoodsClick
=
()
=>
{
const
upGoodsClick
=
_
.
debounce
(
()
=>
{
if
(
selectedRowKeys
.
length
===
0
)
{
if
(
selectedRowKeys
.
length
===
0
)
{
message
.
warning
(
'请选择商品'
);
message
.
warning
(
'请选择商品'
);
}
else
{
}
else
{
...
@@ -294,9 +295,9 @@ const GoodsList = () => {
...
@@ -294,9 +295,9 @@ const GoodsList = () => {
);
);
}
}
}
}
};
}
,
500
)
;
//下移
//下移
const
downGoodsClick
=
()
=>
{
const
downGoodsClick
=
_
.
debounce
(
()
=>
{
if
(
selectedRowKeys
.
length
===
0
)
{
if
(
selectedRowKeys
.
length
===
0
)
{
message
.
warning
(
'请选择商品'
);
message
.
warning
(
'请选择商品'
);
}
else
{
}
else
{
...
@@ -335,7 +336,7 @@ const GoodsList = () => {
...
@@ -335,7 +336,7 @@ const GoodsList = () => {
);
);
}
}
}
}
};
}
,
500
)
;
//分类列表
//分类列表
const
getCategoryList
=
()
=>
{
const
getCategoryList
=
()
=>
{
CategoryManageAPI
.
getCategoryRespList
({
pageNo
:
1
,
pageSize
:
99999
}).
then
(({
result
})
=>
{
CategoryManageAPI
.
getCategoryRespList
({
pageNo
:
1
,
pageSize
:
99999
}).
then
(({
result
})
=>
{
...
@@ -408,6 +409,7 @@ const GoodsList = () => {
...
@@ -408,6 +409,7 @@ const GoodsList = () => {
style=
{
{
marginRight
:
'10px'
}
}
style=
{
{
marginRight
:
'10px'
}
}
icon=
{
<
ArrowUpOutlined
/>
}
icon=
{
<
ArrowUpOutlined
/>
}
onClick=
{
upGoodsClick
}
onClick=
{
upGoodsClick
}
disabled=
{
!!
userInfo
.
roleInfo
.
superAdmin
}
>
>
上移
上移
</
Button
>
</
Button
>
...
@@ -416,6 +418,7 @@ const GoodsList = () => {
...
@@ -416,6 +418,7 @@ const GoodsList = () => {
style=
{
{
marginRight
:
'10px'
}
}
style=
{
{
marginRight
:
'10px'
}
}
icon=
{
<
ArrowDownOutlined
/>
}
icon=
{
<
ArrowDownOutlined
/>
}
onClick=
{
downGoodsClick
}
onClick=
{
downGoodsClick
}
disabled=
{
!!
userInfo
.
roleInfo
.
superAdmin
}
>
>
下移
下移
</
Button
>
</
Button
>
...
...
src/pages/systemManage/companyManage/companyList/index.tsx
浏览文件 @
063cc352
...
@@ -65,7 +65,7 @@ const CompanyManageView = () => {
...
@@ -65,7 +65,7 @@ const CompanyManageView = () => {
// 删除单位
// 删除单位
const
handleDelete
=
(
value
:
TableType
[
0
])
=>
{
const
handleDelete
=
(
value
:
TableType
[
0
])
=>
{
confirm
({
confirm
({
title
:
'提示'
,
title
:
'提示
(删除会造成该单位下的商品全部删除)
'
,
content
:
'是否删除该单位?'
,
content
:
'是否删除该单位?'
,
onOk
:
async
()
=>
{
onOk
:
async
()
=>
{
const
res
=
await
SystemManageAPI
.
listCompanyRemove
({
id
:
value
.
id
});
const
res
=
await
SystemManageAPI
.
listCompanyRemove
({
id
:
value
.
id
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论