OTA管理工具-注释

This commit is contained in:
刘彦泽
2023-03-27 14:22:38 +08:00
parent 1c084fffa1
commit 4a216291ba
2 changed files with 13 additions and 9 deletions
@@ -70,7 +70,7 @@
<span slot="hardwareversioninformation" slot-scope="text,record"> <span slot="hardwareversioninformation" slot-scope="text,record">
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input> <a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span> </span>
<span slot="softwaredevelopmententerprise" slot-scope="text,record"> <span slot="softwaredevelopmententerprise" slot-scope="text,record">
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input> <a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span> </span>
@@ -93,10 +93,10 @@
}}</a-button> }}</a-button>
<div style='margin-top: 20px'> <div style='margin-top: 20px'>
<p>注:附件包括测试项目清单、测试报告.测试标准或技术规范</p> <p>{{ $t('note') }}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;支持doc/docx/pdf格式,大小50M以内</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;{{ $t('format') }}</p>
</div> </div>
</div> </div>
<div class="bootom-button"> <div class="bootom-button">
<a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button> <a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button>
@@ -317,7 +317,7 @@ import ImportFile from '@/components/ImportFileData/index'
otaIdT='' otaIdT=''
} }
getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{ getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
if(res.code==200){ if(res.code==200){
if(res.result.list.length==0){ if(res.result.list.length==0){
this.dataSource=[ this.dataSource=[
{ {
@@ -38,6 +38,10 @@
</a-button> </a-button>
</span> </span>
</a-table> </a-table>
<div style='margin-top: 20px'>
<p>{{ $t('note') }}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;{{ $t('format') }}</p>
</div>
<div class="bootom-button"> <div class="bootom-button">
<a-button class='btn' @click="save">{{$t('preservation')}}</a-button> <a-button class='btn' @click="save">{{$t('preservation')}}</a-button>
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button> <a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button>
@@ -182,10 +186,10 @@ import ImportFile from '@/components/ImportFileData/index'
// this.getList() // this.getList()
this.getData() this.getData()
}, },
methods: { methods: {
// 模板下载 // 模板下载
handleModule() { handleModule() {
downloadFile('ota/otaBaCxAqcs/exportTemplate', '安全措施' + '.zip', {}) downloadFile('ota/otaBaCxAqcs/exportTemplate', '安全措施' + '.zip', {})
}, },
@@ -196,7 +200,7 @@ import ImportFile from '@/components/ImportFileData/index'
} }
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{ getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
if(res.code == 200){ if(res.code == 200){
this.dataSource[0].info = res.result.bhjz this.dataSource[0].info = res.result.bhjz
this.dataSource[1].info =res.result.fsxjz this.dataSource[1].info =res.result.fsxjz
// this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs) // this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs)
@@ -211,7 +215,7 @@ import ImportFile from '@/components/ImportFileData/index'
this.loading = false this.loading = false
} }
}) })
}, },
uploadSuccess(data) { uploadSuccess(data) {
let attIdList = [] let attIdList = []