|
@@ -306,6 +306,7 @@
|
|
|
<script>
|
|
|
import moment from 'moment'
|
|
|
moment.locale('zh-cn')
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
import { settingQueryBizModuleList } from '@/api/defectManage'
|
|
|
import { teamQueryTeamInfoList } from '@/api/configure'
|
|
|
import {
|
|
@@ -371,14 +372,23 @@ export default {
|
|
|
childParams: null // 二级子图表的筛选项
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['bizId'])
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ bizId: {
|
|
|
+ handler(newV) {
|
|
|
+ if (newV === -1) return
|
|
|
+ this.$nextTick(() => { this.onSubmit() })
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.$store.state.data.status = true
|
|
|
this.setDate(this.dateType)
|
|
|
this.getTeamList()
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.onSubmit()
|
|
|
- },
|
|
|
methods: {
|
|
|
onSubmit() {
|
|
|
this.getSummary()
|
|
@@ -403,7 +413,7 @@ export default {
|
|
|
}]
|
|
|
},
|
|
|
async bugDataGet() { // 所属模块
|
|
|
- const res = await settingQueryBizModuleList(Number(localStorage.getItem('bizId')))
|
|
|
+ const res = await settingQueryBizModuleList(this.bizId)
|
|
|
this.moduleList = this.handlerModules(res.data)
|
|
|
},
|
|
|
handlerModules(arr) {
|
|
@@ -454,7 +464,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null
|
|
|
}
|
|
@@ -466,7 +476,7 @@ export default {
|
|
|
const params = {
|
|
|
beginTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null,
|
|
|
timeType: this.bugCountTimeType
|
|
@@ -492,7 +502,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
type: this.activeTab,
|
|
|
distributeType: this.defectStatus,
|
|
@@ -563,7 +573,7 @@ export default {
|
|
|
this.childParams = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
type: this.activeTab,
|
|
|
distributeType: 8,
|
|
@@ -576,7 +586,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
type: this.activeTab,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null
|
|
@@ -597,7 +607,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
type: this.activeTab,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null
|
|
@@ -611,7 +621,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
type: this.activeTab,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null
|
|
@@ -681,7 +691,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null,
|
|
|
type: this.activeTab,
|
|
@@ -707,7 +717,7 @@ export default {
|
|
|
const params = {
|
|
|
startTime: this.stratAndEnd[0] || null,
|
|
|
endTime: this.stratAndEnd[1] || null,
|
|
|
- bizId: Number(localStorage.getItem('bizId')),
|
|
|
+ bizId: this.bizId,
|
|
|
teamIds: this.defectForm.team || null,
|
|
|
moduleIds: moduleIds && moduleIds.length > 0 ? moduleIds : null,
|
|
|
type: this.activeTab,
|