master
Joe 2 years ago
parent 573a0944f0
commit 23e7a39aed

@ -1,7 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# Export Git hook params
export GIT_PARAMS=$*
npx --no-install fabric verify-commit

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install lint-staged

@ -129,6 +129,7 @@ const Detail: React.FC<any> = () => {
destroyOnClose: true, destroyOnClose: true,
onCancel: () => setIsModalOpen(false), onCancel: () => setIsModalOpen(false),
}} }}
width={500}
onFinish={async (value: any) => { onFinish={async (value: any) => {
console.log(value); console.log(value);
if (params.id) { if (params.id) {
@ -156,7 +157,7 @@ const Detail: React.FC<any> = () => {
message: '驳回理由为必填项', message: '驳回理由为必填项',
}, },
]} ]}
width="md" width="lg"
name="pbcBusinessApprovalRefusedReason" name="pbcBusinessApprovalRefusedReason"
/> />
</ModalForm> </ModalForm>

@ -68,6 +68,10 @@ const TableList: React.FC<{}> = () => {
search: false, search: false,
valueEnum: Constants.pbcUserSourceType valueEnum: Constants.pbcUserSourceType
}, },
{
title: '分享人昵称',
dataIndex: 'pbcUserSourceUserNickName',
},
{ {
title: '会员等级', title: '会员等级',
dataIndex: 'pbcVipGradeName', dataIndex: 'pbcVipGradeName',

@ -18,6 +18,7 @@ const fetchData = async (params: any) => {
if (params.pbcProductCategoryId && params.pbcProductCategoryId.length === 3) { if (params.pbcProductCategoryId && params.pbcProductCategoryId.length === 3) {
params.pbcProductCategoryId = params.pbcProductCategoryId[2]; params.pbcProductCategoryId = params.pbcProductCategoryId[2];
} }
params.pbcUserType = 2
const msg = await getProductPageForAdminUsingPost(params); const msg = await getProductPageForAdminUsingPost(params);
return { return {
data: msg.data?.records, data: msg.data?.records,

@ -49,6 +49,10 @@ export const handlePageQuery = (
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
const element = arr[i]; const element = arr[i];
console.log(typeof(param[element])) console.log(typeof(param[element]))
if (typeof(param[element]) === 'string' && !param[element]) {
delete param[element];
continue;
}
if (typeof(param[element]) === 'string') { if (typeof(param[element]) === 'string') {
filters.push({ filters.push({
key: element.replace(/([A-Z])/g, '_$1').toLowerCase(), key: element.replace(/([A-Z])/g, '_$1').toLowerCase(),

Loading…
Cancel
Save