|
@@ -71,6 +71,7 @@ export default {
|
|
|
get('http://81.68.234.235:8032/pdf-tech/vppDashboard/getOverviewProduct', {
|
|
|
codeList: this.dataFilterProductSelect
|
|
|
}).then((res) => {
|
|
|
+ Object.keys(this.overviewProduct).forEach(key => (this.overviewProduct[key] = ''))
|
|
|
if (res.data.code === 200) {
|
|
|
this.overviewProduct.totalLicenses = res.data.result.totalLicenses
|
|
|
this.overviewProduct.availableLicenses = res.data.result.availableLicenses
|
|
@@ -94,7 +95,7 @@ export default {
|
|
|
this.chartData.assignedLicensesYData = []
|
|
|
this.chartData.activatedLicenseYData = []
|
|
|
res.data.result.forEach((item) => {
|
|
|
- this.chartData.date.push(item.date)
|
|
|
+ this.chartData.date.push(this.formatterDate(item.date))
|
|
|
this.chartData.assignedLicensesYData.push(item.licences.assignedLicenses)
|
|
|
this.chartData.activatedLicenseYData.push(item.licences.activatedLicense)
|
|
|
})
|
|
@@ -120,6 +121,7 @@ export default {
|
|
|
teamId: this.teamSelect,
|
|
|
codeList: this.teamFilterProductSelect
|
|
|
}).then((res) => {
|
|
|
+ Object.keys(this.teamMemberData).forEach(key => (this.teamMemberData[key] = ''))
|
|
|
if (res.data.code === 200) {
|
|
|
this.teamMemberData.teamMember = res.data.result.teamMember
|
|
|
this.teamMemberData.assignedMember = res.data.result.assignedMember
|
|
@@ -238,7 +240,6 @@ export default {
|
|
|
get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.productList = res.data.result
|
|
|
- console.log(this.productList)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -257,6 +258,12 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ // 日期自定格式
|
|
|
+ formatterDate (data) {
|
|
|
+ if (!data) return ''
|
|
|
+ const dateArr = data.split('-')
|
|
|
+ return dateArr[1] + '/' + dateArr[2]
|
|
|
}
|
|
|
}
|
|
|
}
|