fix(noticePopup): 公告弹窗不展示问题修复 bug-81
This commit is contained in:
parent
9b9345bbff
commit
4b606dbb43
|
@ -5,16 +5,17 @@
|
||||||
* @Date: 2022-08-08 10:42:29
|
* @Date: 2022-08-08 10:42:29
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-dialog class="notice"
|
<el-dialog
|
||||||
width="45%"
|
class="notice"
|
||||||
:title="'公告'"
|
width="45%"
|
||||||
:visible.sync="noticeFlag"
|
:title="'公告'"
|
||||||
@close="closeTap">
|
:visible.sync="noticeFlag"
|
||||||
|
@close="closeTap"
|
||||||
|
>
|
||||||
<!-- <div class="title">-->
|
<!-- <div class="title">-->
|
||||||
<!-- {{ content.title }}-->
|
<!-- {{ content.title }}-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<div class="img-auto"
|
<div class="img-auto" v-html="content.content"></div>
|
||||||
v-html="content.content"></div>
|
|
||||||
<!-- <div class="surebtn1">-->
|
<!-- <div class="surebtn1">-->
|
||||||
<!-- <div class="btn hh" @click="closeTap">取消</div>-->
|
<!-- <div class="btn hh" @click="closeTap">取消</div>-->
|
||||||
<!-- <div class="btn " @click="closeTap">确认</div>-->
|
<!-- <div class="btn " @click="closeTap">确认</div>-->
|
||||||
|
@ -23,9 +24,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { indexPopScreen } from '@/api/index.js'
|
import { indexPopScreen } from "@/api/index.js";
|
||||||
export default {
|
export default {
|
||||||
name: 'Title',
|
name: "Title",
|
||||||
props: {
|
props: {
|
||||||
userInfo: {
|
userInfo: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
@ -37,18 +38,18 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
noticeFlag: false,
|
noticeFlag: false,
|
||||||
content: '',
|
content: "",
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
created(){
|
created() {
|
||||||
// EventBus.$on('callMethod', this.getUserTc);
|
// EventBus.$on('callMethod', this.getUserTc);
|
||||||
},
|
},
|
||||||
// mounted() {
|
mounted() {
|
||||||
// this.getUserTc()
|
this.getUserTc();
|
||||||
// },
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeTap() {
|
closeTap() {
|
||||||
this.noticeFlag = false
|
this.noticeFlag = false;
|
||||||
// this.$parent.getTree()
|
// this.$parent.getTree()
|
||||||
},
|
},
|
||||||
getUserTc() {
|
getUserTc() {
|
||||||
|
@ -56,23 +57,23 @@ export default {
|
||||||
grade: this.userInfo.pkGradeId,
|
grade: this.userInfo.pkGradeId,
|
||||||
awards: this.userInfo.pkAwardsId,
|
awards: this.userInfo.pkAwardsId,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == '200') {
|
if (res.code == "200") {
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
let arr = res.data[0].publishLocation.split(',')
|
let arr = res.data[0].publishLocation.split(",");
|
||||||
arr.forEach((items) => {
|
arr.forEach((items) => {
|
||||||
if (items == this.publishLocationIndex) {
|
if (items == this.publishLocationIndex) {
|
||||||
this.noticeFlag = true
|
this.noticeFlag = true;
|
||||||
this.content = res.data[0]
|
this.content = res.data[0];
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
} else {
|
} else {
|
||||||
// this.$parent.getTree()
|
// this.$parent.getTree()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in New Issue