|
@@ -187,6 +187,7 @@
|
|
|
|
|
|
<script>
|
|
|
// const _ = require('lodash')
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
import moment from 'moment'
|
|
|
import {
|
|
|
queryTeamInfoList,
|
|
@@ -233,6 +234,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mixins: [websocket],
|
|
|
+ computed: {
|
|
|
+ ...mapGetters([
|
|
|
+ 'notice'
|
|
|
+ ])
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
activeName: '1', // 顶部导航栏
|
|
@@ -420,6 +426,7 @@ export default {
|
|
|
}
|
|
|
const res = await queryWorkListByTime(params)
|
|
|
if (res.code === 200) {
|
|
|
+ res.data = res.data.sort((a, b) => a.id - b.id)
|
|
|
let num = 0
|
|
|
this.calendarEvents = res.data.map((item, index) => {
|
|
|
const title = item.origin ? '日程' : '排期'
|
|
@@ -504,6 +511,11 @@ export default {
|
|
|
} else if (e === '缺陷') {
|
|
|
this.tabTips.bug = show
|
|
|
}
|
|
|
+ if (!this.tabTips.require && !this.tabTips.task && !this.tabTips.bug) {
|
|
|
+ this.$store.dispatch('data/setNotice', false)
|
|
|
+ } else {
|
|
|
+ this.$store.dispatch('data/setNotice', true)
|
|
|
+ }
|
|
|
},
|
|
|
changeData(e, idList, name) { // 数据变更
|
|
|
if (e === '需求') {
|