|
|
@ -7,7 +7,12 @@ |
|
|
|
<div class="flex-1 flex-column"> |
|
|
|
<Location :title="defaultTitle" /> |
|
|
|
<div class="content-detail p-4" :style="{ 'min-height': list.children.length * 56 + 'px' }"> |
|
|
|
<template v-if="code.length === 6 && (code.split('')[5] === '4' || code.split('')[5] === '6' || code.split('')[5] === '7' || code.split('')[5] === '8')"> |
|
|
|
<template |
|
|
|
v-if=" |
|
|
|
code.length === 6 && |
|
|
|
(code.split('')[5] === '4' || code.split('')[5] === '6' || code.split('')[5] === '7' || code.split('')[5] === '8') |
|
|
|
" |
|
|
|
> |
|
|
|
<ListPage :code="code" @changeYear="changeYear" :content="content" @getData="getNumData" /> |
|
|
|
</template> |
|
|
|
<RichText v-else :rich-obj="content" /> |
|
|
@ -656,7 +661,13 @@ export default { |
|
|
|
if (this.$route.path === this.list.url) { |
|
|
|
this.code = val; |
|
|
|
this.getDetault(val); |
|
|
|
if (this.code.length === 6 && (this.code.split('')[5] === '4' || this.code.split('')[5] === '6' || this.code.split('')[5] === '7' || this.code.split('')[5] === '8')) { |
|
|
|
if ( |
|
|
|
this.code.length === 6 && |
|
|
|
(this.code.split('')[5] === '4' || |
|
|
|
this.code.split('')[5] === '6' || |
|
|
|
this.code.split('')[5] === '7' || |
|
|
|
this.code.split('')[5] === '8') |
|
|
|
) { |
|
|
|
this.getContentData(this.code); |
|
|
|
} else { |
|
|
|
this.getData(this.code); |
|
|
@ -667,7 +678,10 @@ export default { |
|
|
|
created() { |
|
|
|
this.code = this.$route.query.code; |
|
|
|
this.getDetault(this.code); |
|
|
|
if (this.code.length === 6 && (this.code.split('')[5] === '4' || this.code.split('')[5] === '6' || this.code.split('')[5] === '7' || this.code.split('')[5] === '8')) { |
|
|
|
if ( |
|
|
|
this.code.length === 6 && |
|
|
|
(this.code.split('')[5] === '4' || this.code.split('')[5] === '6' || this.code.split('')[5] === '7' || this.code.split('')[5] === '8') |
|
|
|
) { |
|
|
|
this.getContentData(this.code); |
|
|
|
} else { |
|
|
|
this.getData(this.code); |
|
|
@ -713,7 +727,7 @@ export default { |
|
|
|
pageSize: 10, |
|
|
|
}; |
|
|
|
const data = await this.getContent(params); |
|
|
|
console.log('data: ', data); |
|
|
|
this.content = data || {}; |
|
|
|
} catch (error) {} |
|
|
|
}, |
|
|
|
resetData() { |
|
|
|