保存后存放id
This commit is contained in:
@@ -450,6 +450,7 @@ export default {
|
|||||||
// 维护
|
// 维护
|
||||||
maintenanceClick(row){
|
maintenanceClick(row){
|
||||||
this.$refs.maintenanceRef.edit(row)
|
this.$refs.maintenanceRef.edit(row)
|
||||||
|
console.log(row);
|
||||||
},
|
},
|
||||||
// 数据维护
|
// 数据维护
|
||||||
maintenanceallClick(){
|
maintenanceallClick(){
|
||||||
|
|||||||
@@ -364,6 +364,7 @@ import { message } from 'ant-design-vue'
|
|||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
localStorage.setItem('otaId', res.result.otaId)
|
localStorage.setItem('otaId', res.result.otaId)
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -362,8 +362,11 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
},
|
},
|
||||||
save(){
|
save(){
|
||||||
postAction('/ota/otaBaCxKsjjsmccs/add',{otaId:localStorage.getItem('otaId'),list:this.dataSource,fj:this.fileList}).then(res =>{
|
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.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
last(){
|
last(){
|
||||||
|
|||||||
@@ -70,8 +70,11 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.flag = 1
|
this.flag = 1
|
||||||
postAction('/ota/otaBaCxQt/add',{otaId:localStorage.getItem('otaId'),...this.queryParam}).then(res=>{
|
postAction('/ota/otaBaCxQt/add',{otaId:localStorage.getItem('otaId'),...this.queryParam}).then(res=>{
|
||||||
console.log(res);
|
if(res.code==200){
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -944,8 +944,11 @@ export default {
|
|||||||
cs:arr,
|
cs:arr,
|
||||||
kzq:this.dataSourceList
|
kzq:this.dataSourceList
|
||||||
}).then( res => {
|
}).then( res => {
|
||||||
console.log(res);
|
if(res.code==200){
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
+4
-1
@@ -249,8 +249,11 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
obj.xxaqjz = this.dataSource[3].info
|
obj.xxaqjz = this.dataSource[3].info
|
||||||
obj.zmclList = this.fileList.uploadName
|
obj.zmclList = this.fileList.uploadName
|
||||||
postAction('/ota/otaBaCxAqcs/add',obj).then(res =>{
|
postAction('/ota/otaBaCxAqcs/add',obj).then(res =>{
|
||||||
console.log(res);
|
if(res.code==200){
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
last(){
|
last(){
|
||||||
|
|||||||
+5
-2
@@ -295,8 +295,11 @@ export default {
|
|||||||
obj.sjzt = this.dataSource[9].relevantverification
|
obj.sjzt = this.dataSource[9].relevantverification
|
||||||
obj.zmclList = this.fileList.uploadName
|
obj.zmclList = this.fileList.uploadName
|
||||||
postAction('/ota/otaBaCxZxsjyq/add', obj).then(res => {
|
postAction('/ota/otaBaCxZxsjyq/add', obj).then(res => {
|
||||||
console.log(res);
|
if(res.code==200){
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
last() {
|
last() {
|
||||||
|
|||||||
@@ -457,8 +457,11 @@ import uploadFileOta from '@/components/uploadFileOta/file'
|
|||||||
},
|
},
|
||||||
save(){
|
save(){
|
||||||
postAction('/ota/otaBaCxKsjxtmccs/add',{otaId:localStorage.getItem('otaId'),list:this.dataSource,fj:this.fileList}).then(res => {
|
postAction('/ota/otaBaCxKsjxtmccs/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.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user