|
@@ -11,6 +11,7 @@ export default defineComponent({
|
|
|
name: 'orchestra-information',
|
|
|
setup() {
|
|
|
const tabName = sessionStorage.getItem('orchestra-information-tab')
|
|
|
+ const router = useRouter()
|
|
|
const state = reactive({
|
|
|
activeName: tabName || 'publish',
|
|
|
listState: {
|
|
@@ -41,35 +42,37 @@ export default defineComponent({
|
|
|
}}
|
|
|
>
|
|
|
<OHeader border={false} />
|
|
|
+
|
|
|
+ <Tabs
|
|
|
+ sticky
|
|
|
+ lineWidth={20}
|
|
|
+ lineHeight={4}
|
|
|
+ v-model:active={state.activeName}
|
|
|
+ onChange={(val: string) => {
|
|
|
+ sessionStorage.setItem('orchestra-information-tab', val)
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <Tab title={`已发布(${state.publishedCount})`} name="publish"></Tab>
|
|
|
+ <Tab title={`已下架(${state.offlineCount})`} name="offline"></Tab>
|
|
|
+ </Tabs>
|
|
|
</OSticky>
|
|
|
|
|
|
- <Tabs
|
|
|
- sticky
|
|
|
- lineWidth={20}
|
|
|
- lineHeight={4}
|
|
|
- animated
|
|
|
- v-model:active={state.activeName}
|
|
|
- offsetTop={state.listState.height}
|
|
|
- swipeable
|
|
|
- onChange={(val: string) => {
|
|
|
- sessionStorage.setItem('orchestra-information-tab', val)
|
|
|
- }}
|
|
|
- >
|
|
|
- <Tab title={`已发布(${state.publishedCount})`} name="publish">
|
|
|
- <OrchestraInformationList
|
|
|
- headHeight={state.listState.height}
|
|
|
- type="1"
|
|
|
- onChangeList={getStat}
|
|
|
- />
|
|
|
- </Tab>
|
|
|
- <Tab title={`已下架(${state.offlineCount})`} name="offline">
|
|
|
- <OrchestraInformationList
|
|
|
- headHeight={state.listState.height}
|
|
|
- type="0"
|
|
|
- onChangeList={getStat}
|
|
|
- />
|
|
|
- </Tab>
|
|
|
- </Tabs>
|
|
|
+ {state.activeName === 'publish' && (
|
|
|
+ <OrchestraInformationList
|
|
|
+ key="publish"
|
|
|
+ headHeight={state.listState.height}
|
|
|
+ type="1"
|
|
|
+ onChangeList={getStat}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ {state.activeName === 'offline' && (
|
|
|
+ <OrchestraInformationList
|
|
|
+ key="offline"
|
|
|
+ headHeight={state.listState.height}
|
|
|
+ type="0"
|
|
|
+ onChangeList={getStat}
|
|
|
+ />
|
|
|
+ )}
|
|
|
</div>
|
|
|
)
|
|
|
}
|