解决了新增公告的一点小问题

main
A 2022-07-14 09:05:23 +08:00
parent 0028ac53a9
commit ce78768aaf
1 changed files with 18 additions and 3 deletions

View File

@ -238,15 +238,15 @@
@edited="onEdited"/>
<!-- 新增公告框开始 -->
<el-dialog title="添加项目公告" :model-value="centerDialogVisible" @close="centerDialogVisible = false" width="40%" center>
<el-form ref="form" :model="messageForm" :rules="rules" label-width="100px">
<el-dialog title="添加项目公告" :model-value="centerDialogVisible" @close="closeadddialog()" width="40%" center>
<el-form ref="form" :model="messageForm" :rules="rules" label-width="60px">
<el-form-item label="标题" prop="addggbttxt">
<el-input type="text" placeholder="请输入项目公告标题" v-model="messageForm.addggbttxt" maxlength="45" show-word-limit>
</el-input>
</el-form-item>
<el-form-item label="内容" prop="addggtextarea">
<el-input type="textarea" placeholder="请输入项目公告内容" v-model="messageForm.addggtextarea" maxlength="1000" show-word-limit
:rows="10">
:rows="12">
</el-input>
</el-form-item>
</el-form>
@ -564,6 +564,21 @@ export default {
console.log(this.centerDialogVisible)
},
//dialog
resetForm() {
this.messageForm = {
addggbttxt:"",
addggtextarea:'',
}
//
this.$refs.form.resetFields()
},
//dialog
closeadddialog() {
this.centerDialogVisible = false;
this.resetForm();
},
//
getannouncementList() {
const that = this;