|
@@ -234,6 +234,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getTopShowData()
|
|
|
+ this.Setstatus(1)
|
|
|
},
|
|
|
methods: {
|
|
|
// 待处理 list
|
|
@@ -296,6 +297,7 @@ export default {
|
|
|
|
|
|
// 待处理 查询
|
|
|
clickQuery(e) {
|
|
|
+ e.status === '' ? e.status = [] : ''
|
|
|
if (e.isBugOrTask === 0 || e.isBugOrTask === 1) {
|
|
|
this.isBugOrTask = e.isBugOrTask
|
|
|
this.userName = e
|
|
@@ -349,6 +351,7 @@ export default {
|
|
|
// 工作统计全局list
|
|
|
handleClick(tab) {
|
|
|
this.total = 0
|
|
|
+ this.$set(this.bugOrTask, 'isBugOrTask', '任务')
|
|
|
if (tab.label === '工作统计') {
|
|
|
this.userName = { bizId: this.bizJson, handlerPerson: this.userInformation, timeType: 0 }
|
|
|
personalworkstationQueryPeriodBugAndTask(this.userName).then(res => {
|
|
@@ -387,11 +390,11 @@ export default {
|
|
|
|
|
|
// 工作统计查询
|
|
|
clickQueryTaskAndBug(e) {
|
|
|
- console.log(e)
|
|
|
this.selectData = localStorage.getItem('selectData')
|
|
|
if (this.selectData === null) {
|
|
|
this.selectData = 2
|
|
|
}
|
|
|
+ e.status === '' ? e.status = [] : ''
|
|
|
this.isBugOrTask = e.isBugOrTask
|
|
|
if (e.value2) {
|
|
|
if (e.value2 !== '') {
|
|
@@ -435,13 +438,15 @@ export default {
|
|
|
this.Informationen.bizId = this.bizJson
|
|
|
this.Informationen.handlerPerson = this.userInformation
|
|
|
personalworkstationQueryStatusAndPriority(this.Informationen).then(res => {
|
|
|
- var periodStatusList = res.data.periodStatusList
|
|
|
- var arr = []
|
|
|
- for (var a in periodStatusList) {
|
|
|
- arr.push({ 'code': a, 'name': periodStatusList[a] })
|
|
|
- }
|
|
|
- this.bugStatusStr = arr
|
|
|
+ if (res.code === 200) {
|
|
|
+ var periodStatusList = res.data.periodStatusList
|
|
|
+ var arr = []
|
|
|
+ for (var a in periodStatusList) {
|
|
|
+ arr.push({ 'code': a, 'name': periodStatusList[a] })
|
|
|
+ }
|
|
|
+ this.bugStatusStr = arr
|
|
|
// e === 0 ? this.bugStatusStr = arr : this.bugStatusStr = brr
|
|
|
+ }
|
|
|
})
|
|
|
e === 1 ? this.tableData.isBugOrTask = '任务' : this.tableData.isBugOrTask = '缺陷'
|
|
|
},
|