OTA对接列表数据

This commit is contained in:
zyx.net
2023-08-19 14:01:49 +08:00
parent 4fa91f4dbb
commit 523f6bfcb7
3 changed files with 69 additions and 18 deletions
@@ -207,13 +207,14 @@
</template> </template>
<!-- Vdr详情--> <!-- Vdr详情-->
<template slot="vdr" slot-scope="text, record"> <template slot="vdr" slot-scope="text, record">
<span @click="getcdr(record)">{{text}}</span> <a @click="getcdr(record)">{{text}}</a>
</template> </template>
<!-- 项目版本编辑--> <!-- 项目版本编辑-->
<template slot="projectVersionName" slot-scope="text, record"> <template slot="projectVersionName" slot-scope="text, record">
<a-select :placeholder="$t('PleaseSelect')" <a-select :placeholder="$t('PleaseSelect')"
class="box-input" class="box-input"
style="width: 90%" style="width: 90%"
:disabled="record.disabled"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear allowClear
showSearch showSearch
@@ -221,11 +222,11 @@
:autoClearSearchValue="false" :autoClearSearchValue="false"
v-model="record.projectVersionName"> v-model="record.projectVersionName">
<a-select-option v-for="(item, key) in projectVersionList" <a-select-option v-for="(item, key) in projectVersionList"
:label='item' :label='item.versionName'
:key="key" :key="key"
:value="item"> :value="item.projectId">
<span style="display: inline-block;width: 100%" :title=" item"> <span style="display: inline-block;width: 100%" :title=" item.versionName">
{{ item }} {{ item.versionName }}
</span> </span>
</a-select-option> </a-select-option>
</a-select> </a-select>
@@ -233,6 +234,7 @@
<!-- 认证进度编辑--> <!-- 认证进度编辑-->
<template slot="attestationSchedule" slot-scope="text, record"> <template slot="attestationSchedule" slot-scope="text, record">
<j-dict-select-tag class="box-input" v-model="record.attestationSchedule" <j-dict-select-tag class="box-input" v-model="record.attestationSchedule"
:disabled="record.disabled"
:placeholder="$t('PleaseSelect')" :placeholder="$t('PleaseSelect')"
:type="'select'" :type="'select'"
style="width: 90%" style="width: 90%"
@@ -296,6 +298,31 @@
/> />
</div> </div>
</a-modal> </a-modal>
<!-- 错误数据提示-->
<a-modal
:title="$t('operationFailed')"
:width="860"
v-model="visibleoperationFailed"
:maskClosable="false"
:footer="null"
>
<a-row :gutter="24">
<a-col :span="24">
<!-- 状态不符合,导致不能操作按钮,没有权限-->
<div style='font-size: 18px;margin-bottom: 20px;display: flex;justify-content: center'
class="box-title-text-index" v-for='(item,key) in NotSelectedRowKeysValue'>
<div>
<span>{{ item.nioNumber }}</span>
</div>
</div>
</a-col>
</a-row>
<div class="imports-footer">
<div class="imports-footer-wrap">
<a-button class="imports-btn" type="primary" @click="cancleoperationFailed">{{$t('cancel')}}</a-button>
</div>
</div>
</a-modal>
</a-card> </a-card>
</template> </template>
@@ -342,6 +369,8 @@ export default {
confirmLoading: false, confirmLoading: false,
indeterminate: false, indeterminate: false,
checkAll: false, checkAll: false,
visibleoperationFailed: false, // 数据失败的弹框
NotSelectedRowKeysValue:[],
dataSource: [], dataSource: [],
selectedRowKeys: [], selectedRowKeys: [],
selectedRowKeysRecord: [], selectedRowKeysRecord: [],
@@ -706,7 +735,8 @@ export default {
align: 'left', align: 'left',
dataIndex: 'vdr', dataIndex: 'vdr',
ellipsis: true, ellipsis: true,
width: 170 width: 170,
scopedSlots: { customRender: 'vdr' }
}, },
{ {
title: this.$t('theme'), title: this.$t('theme'),
@@ -832,8 +862,6 @@ export default {
watch:{ watch:{
// 监听车型变化 // 监听车型变化
vehicleTypeCode(){ vehicleTypeCode(){
console.log(this.customizeSeList)
console.log(this.customizeList)
if(this.vehicleTypeCode !== '全部'){ if(this.vehicleTypeCode !== '全部'){
this.cuList = this.customizeSeList this.cuList = this.customizeSeList
this.$forceUpdate() this.$forceUpdate()
@@ -841,6 +869,7 @@ export default {
this.cuList = this.customizeList this.cuList = this.customizeList
this.$forceUpdate() this.$forceUpdate()
} }
this.getprojectList()
} }
}, },
mounted() { mounted() {
@@ -861,6 +890,16 @@ export default {
getAction('/ota/otaManageApplyEO/getPullDownList', {}).then((res) => { getAction('/ota/otaManageApplyEO/getPullDownList', {}).then((res) => {
if (res.success) { if (res.success) {
this.vehicleTypeList = res.result.carSet this.vehicleTypeList = res.result.carSet
this.getprojectList()
console.log(this.userInfo())
} else {
}
})
},
getprojectList(){
getAction('/ota/otaManageApplyEO/getProjectVersionList', {carMarket:this.vehicleTypeCode}).then((res) => {
if (res.success) {
this.projectVersionList = res.result
} else { } else {
} }
}) })
@@ -1190,6 +1229,13 @@ export default {
// this.queryParamOne[item + '_name'] = [] // this.queryParamOne[item + '_name'] = []
} }
}, },
// 错误数据的弹框
cancleoperationFailed() {
this.selectedRowKeysValue = []
this.visibleoperationFailed = false
this.getList()
// this.GetgetTableList()
},
} }
} }
</script> </script>
@@ -6,7 +6,6 @@
:pagination="false" :pagination="false"
:scroll="{x: '100%',y: 400}" :scroll="{x: '100%',y: 400}"
:data-source="dataSourcehistory" :data-source="dataSourcehistory"
:loading="loading"
> >
<span slot="content" slot-scope="text,record"> <span slot="content" slot-scope="text,record">
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
@@ -66,7 +66,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="24"> <a-col :span="24">
<div class='detail-box'> <div class='detail-box'>
<span class='detail-text'>{{item.title}}</span> <span class='detail-text'>{{item.versionName}}</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
@@ -74,15 +74,15 @@
<a-col :span="12"> <a-col :span="12">
<div class='detail-box'> <div class='detail-box'>
<span class='detail-text'>{{$t('certificationStartOne')}}</span> <span class='detail-text'>{{$t('certificationStartOne')}}</span>
<span class="title-text-text" :title="item.certificationStartOne"> <span class="title-text-text" :title="item.attestationStartTime">
{{item.certificationStartOne}}</span> {{item.attestationStartTime}}</span>
</div> </div>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<div class='detail-box'> <div class='detail-box'>
<span class='detail-text'>{{$t('certificationdeclaration')}}</span> <span class='detail-text'>{{$t('certificationdeclaration')}}</span>
<span class="title-text-text" :title="item.certificationdeclaration"> <span class="title-text-text" :title="item.certificationSubmission">
{{item.certificationdeclaration}}</span> {{item.certificationSubmission}}</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
@@ -90,15 +90,15 @@
<a-col :span="12"> <a-col :span="12">
<div class='detail-box'> <div class='detail-box'>
<span class='detail-text'>{{$t('certificationEnd')}}</span> <span class='detail-text'>{{$t('certificationEnd')}}</span>
<span class="title-text-text" :title="item.certificationEnd"> <span class="title-text-text" :title="item.attestationEndTime">
{{item.certificationEnd}}</span> {{item.attestationEndTime}}</span>
</div> </div>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<div class='detail-box'> <div class='detail-box'>
<span class='detail-text'>{{$t('CertificationProgress')}}</span> <span class='detail-text'>{{$t('CertificationProgress')}}</span>
<span class="title-text-text" :title="item.CertificationProgress"> <span class="title-text-text" :title="item.attestationSchedule">
{{item.CertificationProgress}}</span> {{item.attestationSchedule}}</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
@@ -170,6 +170,12 @@ export default {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
addModel(record) { addModel(record) {
this.form=record this.form=record
getAction('/ota/otaManageApplyEO/getVersionInfo', {vdr:this.form.vdr}).then((res) => {
if (res.success) {
this.vdrList = res.result
} else {
}
})
this.visible = true this.visible = true
this.confirmLoading = false this.confirmLoading = false
console.log('555',record); console.log('555',record);