pms-aomei/src/components/BaseAgreeOrNot.vue

31 lines
562 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<!-- 同意或不同意组件点击不同意的时候出现额外的输入框说明原因 -->
<el-row>
<el-button type="primary" @click="doAgree">同意</el-button>
<el-button @click="dontAgree">不同意</el-button>
</el-row>
</template>
<script>
export default {
name: '',
props: {},
emits: ['not-agree', 'agree'],
data() {
return {
reason: 'dont agree reason',
};
},
methods: {
doAgree() {
this.$emit('agree');
},
dontAgree() {
this.$emit('not-agree', this.reason);
},
},
};
</script>
<style scoped></style>