Merge branch 'dev' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-general-business into dev

This commit is contained in:
wenjiarui 2023-12-05 14:09:27 +08:00
commit 14874ec2cd
6 changed files with 30 additions and 18 deletions

View File

@ -1,4 +1,4 @@
.tabLabel {
writing-mode: vertical-rl;
letter-spacing: .2rem;
}
// .tabLabel {
// writing-mode: vertical-rl;
// letter-spacing: .2rem;
// }

View File

@ -72,7 +72,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
oakPath={`$application-panel-menu-${id}`}
tabKey={tabKey}
/>
)
),
},
{
label: <div className={Styles.tabLabel}>{t('autoReply')}</div>,
@ -83,7 +83,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
applicationId={id}
oakPath={`$application-panel-autoReply-${id}`}
/>
)
),
},
{
label: <div className={Styles.tabLabel}>{t('tag')}</div>,
@ -94,7 +94,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
applicationId={id}
oakPath={`$application-panel-tag-${id}`}
/>
)
),
},
{
label: <div className={Styles.tabLabel}>{t('user')}</div>,
@ -105,7 +105,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
applicationId={id}
oakPath={`$application-panel-user-${id}`}
/>
)
),
},
{
label: <div className={Styles.tabLabel}>{t('template')}</div>,
@ -113,12 +113,25 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
children: (
<TemplateList
oakAutoUnmount={true}
oakPath={`templateUpsert-ApplicationId:${id}`}
oakPath={`templateUpsert-wechatPublic-ApplicationId:${id}`}
applicationId={id}
/>
),
},
)
}
);
}
else if (type === 'wechatMp') {
items.push({
label: <div className={Styles.tabLabel}>{t('template')}</div>,
key: 'template',
children: (
<TemplateList
oakAutoUnmount={true}
oakPath={`templateUpsert-wechatMp-ApplicationId:${id}`}
applicationId={id}
/>
),
});
}
if (id && oakFullpath) {
return (

View File

@ -48,7 +48,7 @@ export default function Render(
const { pageSize, total, currentPage } = oakPagination || {};
return (
<>
<Space>
<Space style={{ marginBottom: 16 }}>
<Button
type="default"
disabled={

View File

@ -32,7 +32,6 @@ export default OakComponent({
)
.filter((ele) => !!ele)
: ([] as string[]);
console.log(MessageTypes);
const selectedTypes = data ? data.map((ele) => ele.type) : [];
const messageTypes = MessageTypes
.filter((ele: string) => !selectedTypes.includes(ele));

View File

@ -47,7 +47,7 @@ export default function Render(
const { pageSize, total, currentPage } = oakPagination || {};
return (
<>
<Space>
<Space style={{ marginBottom: 16 }}>
<Button
type="default"
disabled={

View File

@ -3,8 +3,8 @@
padding: 8px;
height: 100%;
.tabLabel {
writing-mode: vertical-rl;
letter-spacing: .2rem;
}
// .tabLabel {
// writing-mode: vertical-rl;
// letter-spacing: .2rem;
// }
}