项目库跳转vdr

This commit is contained in:
zyx.net
2023-08-20 11:36:55 +08:00
parent a27fab7557
commit c0a34e1647
5 changed files with 42 additions and 31 deletions
+1
View File
@@ -1949,4 +1949,5 @@ module.exports = {
Pendingapproval:'To be approved', Pendingapproval:'To be approved',
lock:'lock', lock:'lock',
datacannotbeedited:'This data cannot be edited', datacannotbeedited:'This data cannot be edited',
Rematchornot:'Rematch or not',
} }
+1
View File
@@ -3905,4 +3905,5 @@ module.exports = {
Pendingapproval:'待审批', Pendingapproval:'待审批',
lock:'锁定', lock:'锁定',
datacannotbeedited:'该数据不能进行编辑', datacannotbeedited:'该数据不能进行编辑',
Rematchornot:'是否重新匹配',
} }
@@ -899,6 +899,9 @@ export default {
} }
}, },
mounted() { mounted() {
if(this.$route.query.vehicleTypeCode){
this.vehicleTypeCode = this.$route.query.vehicleTypeCode
}
getAction('/ota/otaManageApplyEO/getCarList', {}).then((res) => { getAction('/ota/otaManageApplyEO/getCarList', {}).then((res) => {
if (res.success) { if (res.success) {
this.typeList = res.result this.typeList = res.result
@@ -939,8 +942,6 @@ export default {
}, },
searchReset() { searchReset() {
this.queryParam = {} this.queryParam = {}
this.$route.query.serialNumber = ''
this.$route.query.flowStatus = ''
this.pageNo = 1 this.pageNo = 1
this.getList() this.getList()
}, },
@@ -1011,7 +1012,7 @@ export default {
} }
let exportName = name + ' ' + dateName + '.xlsx' let exportName = name + ' ' + dateName + '.xlsx'
let query = { let query = {
exportName: this.$route.query.infoNumber + ' ' + dateName, exportName: exportName,
idList: this.selectedRowKeys.join(','), idList: this.selectedRowKeys.join(','),
} }
@@ -474,6 +474,7 @@
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visible = false this.visible = false
this.$emit('addModelList') this.$emit('addModelList')
this.vdrClick()
} else { } else {
this.$message.warning(res.message) this.$message.warning(res.message)
this.confirmLoading = false this.confirmLoading = false
@@ -482,6 +483,19 @@
} }
}) })
}, },
// 跳转vdr
vdrClick(){
let _this = this
this.$confirm({
content: _this.$t('Rematchornot') + 'VDR',
onOk() {
let newUrl = _this.$router.resolve({
path:'otaAuthentication',
})
window.open(newUrl.href, '_blank')
}
})
},
handleInput(value) { handleInput(value) {
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
@@ -36,7 +36,7 @@
</div> </div>
<div class="box-content"> <div class="box-content">
<div class="box-content-left"> <div class="box-content-left">
<div id="main-left-Collect"></div> <div id="main-top-Collect"></div>
<div class='main-table'> <div class='main-table'>
<table border="1" cellspacing="0" class="table"> <table border="1" cellspacing="0" class="table">
<tr> <tr>
@@ -59,7 +59,7 @@
</div> </div>
<div class="box-content"> <div class="box-content">
<div class="box-content-left"> <div class="box-content-left">
<div id="main-top-Collect"></div> <div id="main-end-Collect"></div>
<div class='main-table' style='padding:10% 0;margin-left: -61px;'> <div class='main-table' style='padding:10% 0;margin-left: -61px;'>
<table border="1" cellspacing="0" class="table"> <table border="1" cellspacing="0" class="table">
<tr> <tr>
@@ -130,6 +130,9 @@
submitquantity: [], submitquantity: [],
syncReportpercentage: [], syncReportpercentage: [],
syncReportquantity: [], syncReportquantity: [],
vehicleTypeCode:'',
softwareversion:'',
releaseName:'',
url: { url: {
getProjectDetailsStatistics: '/project/projectLibraryBase/getProjectDetailsStatistics' getProjectDetailsStatistics: '/project/projectLibraryBase/getProjectDetailsStatistics'
}, },
@@ -158,7 +161,7 @@
let mainLeftDataSource = res.result.designComplianceMap ? res.result.designComplianceMap.designComplianceMapList : [] let mainLeftDataSource = res.result.designComplianceMap ? res.result.designComplianceMap.designComplianceMapList : []
// let mainRightDataSource = res.result.verifyComplianceMap ? res.result.verifyComplianceMap.verifyComplianceMapList : [] // let mainRightDataSource = res.result.verifyComplianceMap ? res.result.verifyComplianceMap.verifyComplianceMapList : []
this.mainTopEcharts(mainTopDataSource) this.mainTopEcharts(mainTopDataSource)
this.mainLeftEcharts(mainLeftDataSource) this.mainEndEcharts(mainLeftDataSource)
// this.mainRightEcharts(mainRightDataSource) // this.mainRightEcharts(mainRightDataSource)
} }
} }
@@ -184,30 +187,10 @@
}, },
getonChange(value) { getonChange(value) {
this.collectingpercentage = []
this.collectingquantity = []
this.notStartpercentage = []
this.notStartquantity = []
this.submitpercentage = []
this.submitquantity = []
this.syncReportpercentage = []
this.syncReportquantity = []
this.getData(value) this.getData(value)
}, },
onChange(value) {
this.collectingpercentage = []
this.collectingquantity = []
this.notStartpercentage = []
this.notStartquantity = []
this.submitpercentage = []
this.submitquantity = []
this.syncReportpercentage = []
this.syncReportquantity = []
this.getEcharts()
},
getEcharts(chart, title, color, data) { getEcharts(chart, title, color, data) {
console.log(data)
var myChart = echarts.init(document.getElementById(chart)) var myChart = echarts.init(document.getElementById(chart))
myChart.setOption({ myChart.setOption({
title: { title: {
@@ -323,10 +306,10 @@
this.mainTopNum += res.taskAffirmStatusCount this.mainTopNum += res.taskAffirmStatusCount
}) })
} }
this.getEcharts('main-left-Collect', this.$t('Matchingstatestatistics'), color, data) this.getEcharts('main-top-Collect', this.$t('Matchingstatestatistics'), color, data)
}, },
mainLeftEcharts(dataSource) { mainEndEcharts(dataSource) {
let data = [] let data = []
let color = [] let color = []
this.mainTopNum = 0 this.mainTopNum = 0
@@ -369,10 +352,21 @@
this.mainTopNum += res.designFlowTaskStatusCount this.mainTopNum += res.designFlowTaskStatusCount
}) })
} }
this.getEcharts('main-top-Collect', this.$t('OTaauthenticationprogressstatistics'), color, data) this.getEcharts('main-end-Collect', this.$t('OTaauthenticationprogressstatistics'), color, data)
}, },
responsibility(item) { responsibility(item) {
this.$emit('currentStatus', item) this.$emit('currentStatus', item)
},
jump(){
let newUrl = this.$router.resolve({
path:'/components/detil',
query:{
vehicleTypeCode:this.vehicleTypeCode,
plannedBpLaunchBatch:this.softwareversion,
releaseName:this.releaseName
},
})
window.open(newUrl.href, '_blank')
} }
} }
} }
@@ -393,7 +387,7 @@
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
#main-left-Collect { #main-top-Collect {
width: 60%; width: 60%;
height: 100%; height: 100%;
padding: 24px 20px; padding: 24px 20px;
@@ -406,7 +400,7 @@
padding: 24px; padding: 24px;
box-sizing: border-box; box-sizing: border-box;
} }
#main-top-Collect { #main-end-Collect {
width: 60%; width: 60%;
height: 100%; height: 100%;
padding: 24px 20px; padding: 24px 20px;