Commit 0f2a06fa authored by dragondean@qq.com's avatar dragondean@qq.com

修复新建价格默认空运千克,海运立方米

parent 1e2f3497
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
export default { export default {
data(){ data(){
return { return {
valueSync: null valueSync: undefined
} }
}, },
props:{ props:{
...@@ -47,10 +47,12 @@ export default { ...@@ -47,10 +47,12 @@ export default {
}, },
watch:{ watch:{
valueSync(val){ valueSync(val){
this.$emit('input', val) console.log('valueSync变化', val, this.value)
this.$emit('input', val)
}, },
value(value){ value(value){
this.valueSync = value console.log('value传值变化', value, this.valueSync)
if(value !== undefined)this.valueSync = value
}, },
optionsFormated(){ optionsFormated(){
this.setDefault() this.setDefault()
...@@ -77,4 +79,4 @@ export default { ...@@ -77,4 +79,4 @@ export default {
} }
} }
} }
</script> </script>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment