Browse Source

Merge branch 'master' of ssh://101.201.226.163:50022/binbin0314/datang-ui

master
song 3 years ago
parent
commit
9e9c3d0d6d
  1. 12
      src/components/Footer/Footer.vue
  2. 8
      src/components/RichText/RichText.vue
  3. 2
      src/views/OtherPages/NoticeNotice.vue
  4. 2
      src/views/OtherPages/PartyBuilding.vue
  5. 2
      src/views/OtherPages/SafeProduction.vue

12
src/components/Footer/Footer.vue

@ -60,18 +60,18 @@ import { getLink } from 'config/api';
export default { export default {
data() { data() {
return { return {
isTrue: true, isTrue: false,
str: '', str: '',
otherLink: {}, otherLink: {},
}; };
}, },
watch: { watch: {
'$route.path'(value) { '$route.path'(value) {
if (value === '/') { // if (value === '/') {
this.isTrue = true; // this.isTrue = true;
} else { // } else {
this.isTrue = false; // this.isTrue = false;
} // }
}, },
}, },
created() { created() {

8
src/components/RichText/RichText.vue

@ -8,6 +8,9 @@
<div v-if="richObj.publishTime">发表日期: {{ $moment(richObj.publishTime).format('YYYY-MM-DD') }}</div> <div v-if="richObj.publishTime">发表日期: {{ $moment(richObj.publishTime).format('YYYY-MM-DD') }}</div>
</div> </div>
</template> </template>
<div style="text-align:center;" class="mt-4" v-if="richObj && richObj.titleUrl && code === '0207'">
<video style="width: 100%;height: 400px" controls :src="richObj.titleUrl" />
</div>
<div class="mt-4 content-size" v-if="richObj.content" v-dompurify-html="richObj.content"></div> <div class="mt-4 content-size" v-if="richObj.content" v-dompurify-html="richObj.content"></div>
<a-empty v-else /> <a-empty v-else />
<template v-if="richObj && richObj.title"> <template v-if="richObj && richObj.title">
@ -24,7 +27,7 @@ export default {
}, },
}, },
data() { data() {
return {}; return { code: '' };
}, },
watch: { watch: {
richObj(val) { richObj(val) {
@ -34,6 +37,9 @@ export default {
} }
}, },
}, },
mounted() {
this.code = this.$route.query.code;
},
created() { created() {
if (this.richObj.jumpUrl) { if (this.richObj.jumpUrl) {
window.open(this.richObj.jumpUrl); window.open(this.richObj.jumpUrl);

2
src/views/OtherPages/NoticeNotice.vue

@ -100,7 +100,7 @@ export default {
const param = { const param = {
showPage: this.code, showPage: this.code,
year: this.year, year: this.year,
showType: '1', showType: '0',
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: 10, pageSize: 10,
}; };

2
src/views/OtherPages/PartyBuilding.vue

@ -104,7 +104,7 @@ export default {
const param = { const param = {
showPage: this.code, showPage: this.code,
year: this.year, year: this.year,
showType: '1', showType: '0',
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: 10, pageSize: 10,
}; };

2
src/views/OtherPages/SafeProduction.vue

@ -103,7 +103,7 @@ export default {
const param = { const param = {
showPage: this.code, showPage: this.code,
year: this.year, year: this.year,
showType: '1', showType: '0',
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: 10, pageSize: 10,
}; };

Loading…
Cancel
Save