2024-12-19 10:57:12 +00:00
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<span style="float: left;">预约须知:</span>
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="textarea"
|
|
|
|
|
style="width: 500px; float: left;"
|
|
|
|
|
:rows="2"
|
|
|
|
|
type="textarea"
|
|
|
|
|
autosize
|
|
|
|
|
placeholder="预约须知"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<button @click="dy" style="display: inline-block">打印</button>
|
|
|
|
|
<el-button type="primary" @click="onSubmit" style="margin-left: 10px">提交</el-button>
|
|
|
|
|
<el-button type="primary" @click="resetForm" style="margin-left: 10px">重置</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
const textarea = ref('')
|
|
|
|
|
const dy =()=>{
|
|
|
|
|
console.log(textarea.value)
|
|
|
|
|
}
|
|
|
|
|
//提交
|
|
|
|
|
const onSubmit=()=>{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//重置
|
|
|
|
|
const resetForm=()=>{
|
2025-02-05 11:31:00 +00:00
|
|
|
|
textarea.value = ''
|
2024-12-19 10:57:12 +00:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
|
|
</style>
|