wechatmp 加上模板tab
This commit is contained in:
parent
449789da55
commit
991de084b9
|
|
@ -1,4 +1,4 @@
|
|||
.tabLabel {
|
||||
writing-mode: vertical-rl;
|
||||
letter-spacing: .2rem;
|
||||
}
|
||||
// .tabLabel {
|
||||
// writing-mode: vertical-rl;
|
||||
// letter-spacing: .2rem;
|
||||
// }
|
||||
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default function Render(
|
|||
const { pageSize, total, currentPage } = oakPagination || {};
|
||||
return (
|
||||
<>
|
||||
<Space>
|
||||
<Space style={{ marginBottom: 16 }}>
|
||||
<Button
|
||||
type="default"
|
||||
disabled={
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default function Render(
|
|||
const { pageSize, total, currentPage } = oakPagination || {};
|
||||
return (
|
||||
<>
|
||||
<Space>
|
||||
<Space style={{ marginBottom: 16 }}>
|
||||
<Button
|
||||
type="default"
|
||||
disabled={
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
padding: 8px;
|
||||
height: 100%;
|
||||
|
||||
.tabLabel {
|
||||
writing-mode: vertical-rl;
|
||||
letter-spacing: .2rem;
|
||||
}
|
||||
// .tabLabel {
|
||||
// writing-mode: vertical-rl;
|
||||
// letter-spacing: .2rem;
|
||||
// }
|
||||
}
|
||||
Loading…
Reference in New Issue