Commit e1f72a3b authored by 仇晓婷's avatar 仇晓婷

code编号

parent d0fdac72
...@@ -2,15 +2,21 @@ ...@@ -2,15 +2,21 @@
<template> <template>
<div class="input-code"> <div class="input-code">
<Input v-model="code" clearable> <Input v-model="code" clearable>
<Select <Button
v-model="select"
slot="append" slot="append"
style="width: 100px" style="width: 95px; text-align: left"
on-change="changeSelect" @click="codeClick"
>生成编号</Button
> >
<Option value="com">生成编号</Option>
</Select>
</Input> </Input>
<!-- <Dropdown placement="bottom-start">
<a href="javascript:void(0)">
<Icon type="ios-arrow-down">55</Icon>
</a>
<DropdownMenu slot="list" @on-click="changeSelect">
<DropdownItem>生成</DropdownItem>
</DropdownMenu>
</Dropdown> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -19,7 +25,7 @@ export default { ...@@ -19,7 +25,7 @@ export default {
data() { data() {
return { return {
code: "", code: "",
select: "com", select: "",
}; };
}, },
props: { props: {
...@@ -43,12 +49,22 @@ export default { ...@@ -43,12 +49,22 @@ export default {
} }
}); });
}, },
changeSelect(a) {}, codeClick() {
this.getSerialcode();
},
// changeSelect(a) {
// console.log(a);
// },
}, },
watch: { watch: {
value(v) { value(v) {
this.code = v; this.code = v;
}, },
code(v) {
if ((v = "")) {
this.select = "";
}
},
}, },
}; };
</script> </script>
......
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