|
@@ -134,27 +134,28 @@ export default {
|
|
this.option.pn = parseInt(`-${getDecimalPlaces(value)}`)
|
|
this.option.pn = parseInt(`-${getDecimalPlaces(value)}`)
|
|
}
|
|
}
|
|
|
|
|
|
- let nval = transDecimalPlace(value,this.option.pn)
|
|
|
|
|
|
+ let nval = transValueFormat(value,this.option)
|
|
|
|
+ // let nval = transDecimalPlace(value,this.option.pn)
|
|
// console.log(nval)
|
|
// console.log(nval)
|
|
|
|
|
|
this.$emit('updateCell',{
|
|
this.$emit('updateCell',{
|
|
ShowStyle: JSON.stringify(this.option),
|
|
ShowStyle: JSON.stringify(this.option),
|
|
- ShowFormatValue: nval
|
|
|
|
|
|
+ RealValue: nval
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
/* 处理百分位或数字格式 */
|
|
/* 处理百分位或数字格式 */
|
|
changeCellType() {
|
|
changeCellType() {
|
|
if(!isNumberVal(this.cell.ShowValue)) return
|
|
if(!isNumberVal(this.cell.ShowValue)) return
|
|
|
|
+ this.option.pn = 0
|
|
|
|
|
|
let value = _.cloneDeep(this.cell.ShowValue)
|
|
let value = _.cloneDeep(this.cell.ShowValue)
|
|
|
|
|
|
let nval = transNumPercentType(value,this.option.nt)
|
|
let nval = transNumPercentType(value,this.option.nt)
|
|
- console.log(nval)
|
|
|
|
|
|
|
|
this.$emit('updateCell',{
|
|
this.$emit('updateCell',{
|
|
ShowStyle: JSON.stringify(this.option),
|
|
ShowStyle: JSON.stringify(this.option),
|
|
- ShowFormatValue: nval
|
|
|
|
|
|
+ RealValue: nval
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|