Commit ac41cb1c authored by arvin's avatar arvin

组件调整

parent 0eb4097b
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
v-for="(item,i) in warehouseOptions" v-for="(item,i) in warehouseOptions"
:key="i" :key="i"
:label="item.extname" :label="item.extname"
:value="item.id" :value="item.id + ''"
/> />
</el-select> </el-select>
...@@ -108,11 +108,9 @@ export default { ...@@ -108,11 +108,9 @@ export default {
let item = null let item = null
if (this.dataType === 'string') { if (this.dataType === 'string') {
this.$emit('input', this.cloneValue) this.$emit('input', this.cloneValue)
this.$emit('change', this.cloneValue)
} else { } else {
item = this.warehouseOptions.find(r => r.id === this.cloneValue) item = this.warehouseOptions.find(r => r.id === this.cloneValue)
this.$emit('input', item) this.$emit('input', item)
this.$emit('change', item)
} }
this.syncOut(item) this.syncOut(item)
}, },
......
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