|
@@ -33,13 +33,13 @@
|
|
<el-tab-pane label="团队日程" name="1" />
|
|
<el-tab-pane label="团队日程" name="1" />
|
|
<el-tab-pane label="项目" name="2" />
|
|
<el-tab-pane label="项目" name="2" />
|
|
<el-tab-pane name="3">
|
|
<el-tab-pane name="3">
|
|
- <span slot="label">需求<div class="tips" /> </span>
|
|
|
|
|
|
+ <span slot="label">需求<div v-show="tabTips.require" class="tips" /> </span>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane name="4">
|
|
<el-tab-pane name="4">
|
|
- <span slot="label">任务<div class="tips" /> </span>
|
|
|
|
|
|
+ <span slot="label">任务<div v-show="tabTips.task" class="tips" /> </span>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane name="5">
|
|
<el-tab-pane name="5">
|
|
- <span slot="label"><span style="margin-right: 5px">缺陷</span> <div class="tips-last" /> </span>
|
|
|
|
|
|
+ <span slot="label"><span style="margin-right: 5px">缺陷</span> <div v-show="tabTips.bug" class="tips-last" /> </span>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
@@ -93,17 +93,46 @@
|
|
</el-container>
|
|
</el-container>
|
|
<el-container v-if="activeName === '3'">
|
|
<el-container v-if="activeName === '3'">
|
|
<section class="main-section">
|
|
<section class="main-section">
|
|
- <statistics-section :search-form="searchForm" @change="changeData" />
|
|
|
|
- <needs-list ref="needs-list" :search-form="searchForm" type="team" />
|
|
|
|
|
|
+ <statistics-section
|
|
|
|
+ :search-form="searchForm"
|
|
|
|
+ type="team"
|
|
|
|
+ title="需求"
|
|
|
|
+ :request-obj="{
|
|
|
|
+ requestData:getTeamRequireSummary,
|
|
|
|
+ requestChart:getTeamRequireDisData
|
|
|
|
+ }"
|
|
|
|
+ @change="changeData"
|
|
|
|
+ />
|
|
|
|
+ <needs-list :name="listName.requireList" :id-list="idList.requireList" />
|
|
</section>
|
|
</section>
|
|
</el-container>
|
|
</el-container>
|
|
<el-container v-if="activeName === '4'">
|
|
<el-container v-if="activeName === '4'">
|
|
<section class="main-section">
|
|
<section class="main-section">
|
|
- <task-list :search-form="searchForm" type="team" />
|
|
|
|
|
|
+ <statistics-section
|
|
|
|
+ :search-form="searchForm"
|
|
|
|
+ type="team"
|
|
|
|
+ title="任务"
|
|
|
|
+ :request-obj="{
|
|
|
|
+ requestData:getTeamTaskSummary,
|
|
|
|
+ requestChart:getTeamTaskDisData
|
|
|
|
+ }"
|
|
|
|
+ @change="changeData"
|
|
|
|
+ />
|
|
|
|
+ <task-list :name="listName.taskList" :id-list="idList.taskList" />
|
|
</section>
|
|
</section>
|
|
</el-container>
|
|
</el-container>
|
|
- <el-container v-show="activeName === '5'">
|
|
|
|
|
|
+ <el-container v-if="activeName === '5'">
|
|
<section class="main-section">
|
|
<section class="main-section">
|
|
|
|
+ <statistics-section
|
|
|
|
+ :search-form="searchForm"
|
|
|
|
+ type="team"
|
|
|
|
+ title="缺陷"
|
|
|
|
+ :request-obj="{
|
|
|
|
+ requestData:getTeamBugSummary,
|
|
|
|
+ requestChart:getTeamBugDisDataBy
|
|
|
|
+ }"
|
|
|
|
+ @change="changeData"
|
|
|
|
+ />
|
|
<bugTableList ref="bugTableDialog" :name="'团队'" :team-id="searchForm.teamId" :biz-id="searchForm.bizId" />
|
|
<bugTableList ref="bugTableDialog" :name="'团队'" :team-id="searchForm.teamId" :biz-id="searchForm.bizId" />
|
|
</section>
|
|
</section>
|
|
</el-container>
|
|
</el-container>
|
|
@@ -138,7 +167,18 @@
|
|
<script>
|
|
<script>
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
import { settingGetBizList } from '@/api/defectManage'
|
|
import { settingGetBizList } from '@/api/defectManage'
|
|
-import { queryTeamInfoList, queryTeamWorkListByTime, deleteSelfSchedule, queryTeamMember } from '@/api/workSchedule'
|
|
|
|
|
|
+import {
|
|
|
|
+ queryTeamInfoList,
|
|
|
|
+ queryTeamWorkListByTime,
|
|
|
|
+ deleteSelfSchedule,
|
|
|
|
+ queryTeamMember,
|
|
|
|
+ getTeamRequireSummary,
|
|
|
|
+ getTeamRequireDisData,
|
|
|
|
+ getTeamTaskSummary,
|
|
|
|
+ getTeamTaskDisData,
|
|
|
|
+ getTeamBugSummary,
|
|
|
|
+ getTeamBugDisDataBy
|
|
|
|
+} from '@/api/workSchedule'
|
|
import { scheduleDelete } from '@/api/projectViewDetails'
|
|
import { scheduleDelete } from '@/api/projectViewDetails'
|
|
import modifySchedule from '@/views/projectManage/projectList/components/modifySchedule'
|
|
import modifySchedule from '@/views/projectManage/projectList/components/modifySchedule'
|
|
import ganntViews from '@/views/workbench/team/components/ganntViews'
|
|
import ganntViews from '@/views/workbench/team/components/ganntViews'
|
|
@@ -150,7 +190,6 @@ import needsList from '@/views/workbench/team/components/needsList'
|
|
import taskList from '@/views/workbench/team/components/taskList'
|
|
import taskList from '@/views/workbench/team/components/taskList'
|
|
import bugTableList from '@/views/workbench/bugTableList.vue'
|
|
import bugTableList from '@/views/workbench/bugTableList.vue'
|
|
import statisticsSection from '@/views/workbench/components/statisticsSection'
|
|
import statisticsSection from '@/views/workbench/components/statisticsSection'
|
|
-import websocket from '@/views/workbench/mixins/websocket'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -165,7 +204,6 @@ export default {
|
|
taskList,
|
|
taskList,
|
|
statisticsSection
|
|
statisticsSection
|
|
},
|
|
},
|
|
- mixins: [websocket],
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
activeName: '1', // 顶部导航栏
|
|
activeName: '1', // 顶部导航栏
|
|
@@ -219,7 +257,28 @@ export default {
|
|
'rgba(86,68,93,0.2)', 'rgba(111,33,8,0.2)', 'rgba(192,53,70,0.2)', 'rgba(92,25,107,0.2)', 'rgba(73,10,61,0.2)',
|
|
'rgba(86,68,93,0.2)', 'rgba(111,33,8,0.2)', 'rgba(192,53,70,0.2)', 'rgba(92,25,107,0.2)', 'rgba(73,10,61,0.2)',
|
|
'rgba(189,21,80,0.2)', 'rgba( 31,78,95,0.2)', 'rgba(241,0,229,0.2)', 'rgba(114,0,218,0.2)', 'rgba(70,14,68,0.2)'
|
|
'rgba(189,21,80,0.2)', 'rgba( 31,78,95,0.2)', 'rgba(241,0,229,0.2)', 'rgba(114,0,218,0.2)', 'rgba(70,14,68,0.2)'
|
|
],
|
|
],
|
|
- mapMemberColor: new Map()// 人员对应颜色表
|
|
|
|
|
|
+ mapMemberColor: new Map(), // 人员对应颜色表
|
|
|
|
+ tabTips: { // 顶部tab红点提示
|
|
|
|
+ require: true,
|
|
|
|
+ task: true,
|
|
|
|
+ bug: true
|
|
|
|
+ },
|
|
|
|
+ idList: {// 所选项的idList
|
|
|
|
+ requireList: [],
|
|
|
|
+ taskList: [],
|
|
|
|
+ bugList: []
|
|
|
|
+ },
|
|
|
|
+ listName: {
|
|
|
|
+ requireList: '',
|
|
|
|
+ taskList: '',
|
|
|
|
+ bugList: ''
|
|
|
|
+ },
|
|
|
|
+ getTeamRequireSummary: getTeamRequireSummary, // 需求头部统计数据接口
|
|
|
|
+ getTeamRequireDisData: getTeamRequireDisData, // 需求按状态统计数据接口
|
|
|
|
+ getTeamTaskSummary: getTeamTaskSummary, // 任务头部统计数据接口
|
|
|
|
+ getTeamTaskDisData: getTeamTaskDisData, // 任务按状态统计数据接口
|
|
|
|
+ getTeamBugSummary: getTeamBugSummary, // 缺陷头部统计数据接口
|
|
|
|
+ getTeamBugDisDataBy: getTeamBugDisDataBy// 缺陷按状态统计数据接口
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -243,7 +302,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
handleClick() {
|
|
handleClick() {
|
|
- if (this.activeName === '5') {
|
|
|
|
|
|
+ if (this.activeName === '5' && this.$refs.bugTableDialog) {
|
|
this.$refs.bugTableDialog.bugGetTableList('团队', { teamId: this.searchForm.teamId, bizId: this.searchForm.bizId })
|
|
this.$refs.bugTableDialog.bugGetTableList('团队', { teamId: this.searchForm.teamId, bizId: this.searchForm.bizId })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -427,9 +486,15 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- changeData(e) { // 数据变更
|
|
|
|
|
|
+ changeData(e, idList, name) { // 数据变更
|
|
if (e === '需求') {
|
|
if (e === '需求') {
|
|
- this.$refs['needs-list'].getNeedsList()
|
|
|
|
|
|
+ this.idList.requireList = idList
|
|
|
|
+ this.listName.requireList = name
|
|
|
|
+ } else if (e === '任务') {
|
|
|
|
+ this.idList.taskList = idList
|
|
|
|
+ this.listName.taskList = name
|
|
|
|
+ } else if (e === '缺陷') {
|
|
|
|
+ this.handleClick()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|