保存后存放id

This commit is contained in:
yuekuo
2023-03-28 09:45:01 +08:00
parent 4495ffbaa1
commit 88d73ae906
8 changed files with 30 additions and 10 deletions
@@ -450,6 +450,7 @@ export default {
// 维护
maintenanceClick(row){
this.$refs.maintenanceRef.edit(row)
console.log(row);
},
// 数据维护
maintenanceallClick(){
@@ -364,6 +364,7 @@ import { message } from 'ant-design-vue'
if(res.code == 200){
localStorage.setItem('otaId', res.result.otaId)
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
}
@@ -362,8 +362,11 @@ import ImportFile from '@/components/ImportFileData/index'
},
save(){
postAction('/ota/otaBaCxKsjjsmccs/add',{otaId:localStorage.getItem('otaId'),list:this.dataSource,fj:this.fileList}).then(res =>{
console.log(res);
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
},
last(){
@@ -70,8 +70,11 @@ export default {
if (valid) {
this.flag = 1
postAction('/ota/otaBaCxQt/add',{otaId:localStorage.getItem('otaId'),...this.queryParam}).then(res=>{
console.log(res);
this.$message.success(this.$t('SavedSuccessfully'))
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
} else {
return false;
@@ -944,8 +944,11 @@ export default {
cs:arr,
kzq:this.dataSourceList
}).then( res => {
console.log(res);
this.$message.success(this.$t('SavedSuccessfully'))
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
},
@@ -249,8 +249,11 @@ import ImportFile from '@/components/ImportFileData/index'
obj.xxaqjz = this.dataSource[3].info
obj.zmclList = this.fileList.uploadName
postAction('/ota/otaBaCxAqcs/add',obj).then(res =>{
console.log(res);
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
},
last(){
@@ -295,8 +295,11 @@ export default {
obj.sjzt = this.dataSource[9].relevantverification
obj.zmclList = this.fileList.uploadName
postAction('/ota/otaBaCxZxsjyq/add', obj).then(res => {
console.log(res);
this.$message.success(this.$t('SavedSuccessfully'))
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
},
last() {
@@ -457,8 +457,11 @@ import uploadFileOta from '@/components/uploadFileOta/file'
},
save(){
postAction('/ota/otaBaCxKsjxtmccs/add',{otaId:localStorage.getItem('otaId'),list:this.dataSource,fj:this.fileList}).then(res => {
console.log(res);
this.$message.success(this.$t('SavedSuccessfully'))
if(res.code==200){
this.$message.success(this.$t('SavedSuccessfully'))
this.getData()
}
})
}
}