Commit ad1399f0 authored by Wallen姚文辉's avatar Wallen姚文辉

修复bug

parent bbd13a08
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>yinhe_test</title><script defer="defer" src="/js/chunk-vendors.233aa2e8.js"></script><script defer="defer" src="/js/app.acf2fc9e.js"></script><link href="/css/chunk-vendors.187ae3e6.css" rel="stylesheet"><link href="/css/app.1eedf6d0.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but yinhe_test doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>yinhe_test</title><script defer="defer" src="/js/chunk-vendors.233aa2e8.js"></script><script defer="defer" src="/js/app.a3e09a14.js"></script><link href="/css/chunk-vendors.187ae3e6.css" rel="stylesheet"><link href="/css/app.1eedf6d0.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but yinhe_test doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -526,7 +526,8 @@ export default { ...@@ -526,7 +526,8 @@ export default {
value.forEach(ele => { value.forEach(ele => {
ele.priorityId in pinfo ? pinfo[ele.priorityId]++ : pinfo[ele.priorityId] = 1 ele.priorityId in pinfo ? pinfo[ele.priorityId]++ : pinfo[ele.priorityId] = 1
// let date = ele.extraFields[1].html.split(' ')[0] || '' // let date = ele.extraFields[1].html.split(' ')[0] || ''
let date = ele.extraFields[1].html ? ele.extraFields[1].html.split(' ')[0] : 0 const index = ele.extraFields.findIndex(ele => { return ele.id == "created" })
let date = index != -1 ? ele.extraFields[index].html.split(' ')[0] : 0
date in dateinfo ? dateinfo[date]++ : dateinfo[date] = 1 date in dateinfo ? dateinfo[date]++ : dateinfo[date] = 1
ele.assigneeName in bugUser ? bugUser[ele.assigneeName]++ : bugUser[ele.assigneeName] = 1 ele.assigneeName in bugUser ? bugUser[ele.assigneeName]++ : bugUser[ele.assigneeName] = 1
}) })
...@@ -572,7 +573,8 @@ export default { ...@@ -572,7 +573,8 @@ export default {
a += 1 a += 1
}) })
value.forEach(ele => { value.forEach(ele => {
ele.start = ele.extraFields[1].html ? ele.extraFields[1].html.split(" ")[0] : '' const index = ele.extraFields.findIndex(item => { return item.id == "created" })
ele.start = index != -1 ? ele.extraFields[index].html.split(" ")[0] : ''
ele.end = new Date().toLocaleDateString() ele.end = new Date().toLocaleDateString()
this.case.forEach(each => { this.case.forEach(each => {
if (ele.case.indexOf(each.key) != -1) { if (ele.case.indexOf(each.key) != -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment