升级回显
This commit is contained in:
+7
@@ -170,6 +170,7 @@
|
|||||||
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||||
import ImportFile from '@/components/ImportFileData/index'
|
import ImportFile from '@/components/ImportFileData/index'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
import { result } from 'lodash'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'beupgradedonline',
|
name: 'beupgradedonline',
|
||||||
@@ -375,6 +376,9 @@ this.$forceUpdate()
|
|||||||
}
|
}
|
||||||
getAction('/ota/otaBaSjSjyxpg/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
getAction('/ota/otaBaSjSjyxpg/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
|
if(res.result.zxsj==0){
|
||||||
|
res.result.zxsj=null
|
||||||
|
}
|
||||||
this.form=res.result==null ? {
|
this.form=res.result==null ? {
|
||||||
sjmd:'',
|
sjmd:'',
|
||||||
// fhgd:1,
|
// fhgd:1,
|
||||||
@@ -395,6 +399,9 @@ this.$forceUpdate()
|
|||||||
otaId=''
|
otaId=''
|
||||||
}
|
}
|
||||||
this.form.otaId=otaId
|
this.form.otaId=otaId
|
||||||
|
if(this.form.zxsj==undefined){
|
||||||
|
this.form.zxsj=0
|
||||||
|
}
|
||||||
postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{
|
postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
this.$message.success(this.$t('SavedSuccessfully'))
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
|||||||
Reference in New Issue
Block a user