|
@@ -1365,7 +1365,7 @@ export default {
|
|
|
this.table.temp.source = row.source
|
|
|
this.table.temp.remark = row.remark
|
|
|
this.table.temp.enable = row.enable
|
|
|
- if(this.table.temp.volume == ''){
|
|
|
+ if(this.table.temp.volume == '' || this.table.temp.volume == null){
|
|
|
this.table.temp.volume = 0
|
|
|
}
|
|
|
this.table.temp.volume = parseFloat(row.volume)
|
|
@@ -1491,7 +1491,7 @@ export default {
|
|
|
this.table.temp.pastureid = row.pastureid
|
|
|
this.table.temp.id = row.id
|
|
|
this.table.temp.cattle = row.cattle
|
|
|
- if(this.table.temp.volume == ''){
|
|
|
+ if(this.table.temp.volume == '' || this.table.temp.volume == null || this.table.temp.volume == undefined){
|
|
|
this.table.temp.volume = 0
|
|
|
}
|
|
|
this.table.temp.volume = parseFloat(row.volume)
|
|
@@ -1541,6 +1541,10 @@ export default {
|
|
|
saveUpdateData() {
|
|
|
this.requestParam = {}
|
|
|
this.requestParam.name = 'updateFT'
|
|
|
+ if(this.table.temp.volume == '' || this.table.temp.volume == null || this.table.temp.volume == undefined || isNaN(this.table.temp.volume)){
|
|
|
+ this.table.temp.volume = 0
|
|
|
+ }
|
|
|
+ console.log( this.table.temp.volume,'----')
|
|
|
this.requestParam.parammaps = this.table.temp
|
|
|
PostDataByName(this.requestParam).then(response => {
|
|
|
console.log('新增保存发送参数', this.requestParam)
|