|
@@ -5,23 +5,15 @@
|
|
|
<div style="margin-top: 20px;">
|
|
|
<el-form label-position="left" label-width="80px">
|
|
|
<el-form-item label="通告内容">
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :rows="6"
|
|
|
- placeholder="请输入通告内容"
|
|
|
- v-model="mainData.noticeContent">
|
|
|
+ <el-input type="textarea" :rows="6" placeholder="请输入通告内容" v-model="mainData.noticeContent">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="通告状态">
|
|
|
- <el-switch
|
|
|
- v-model="mainData.status"
|
|
|
- active-text="启用"
|
|
|
- inactive-text="禁用">
|
|
|
+ <el-switch v-model="mainData.status" active-text="启用" inactive-text="禁用">
|
|
|
</el-switch>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="page-footer">
|
|
|
<div class="footer" :class="classObj">
|
|
|
<el-button type="primary" @click="submitMainForm">保存</el-button>
|
|
@@ -74,12 +66,12 @@ export default {
|
|
|
|
|
|
// 提交表单
|
|
|
submitMainForm() {
|
|
|
- if(this.mainData.status && !this.mainData.noticeContent) {
|
|
|
+ if (this.mainData.status && !this.mainData.noticeContent) {
|
|
|
return this.$errorMsg('启用状态时,内容不能为空');
|
|
|
}
|
|
|
|
|
|
// 编辑
|
|
|
- if(this.mainData.noticeId) {
|
|
|
+ if (this.mainData.noticeId) {
|
|
|
editNotice({
|
|
|
noticeId: this.mainData.noticeId,
|
|
|
noticeContent: this.mainData.noticeContent,
|
|
@@ -104,6 +96,4 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
-
|
|
|
-</style>
|
|
|
+<style scoped lang="scss"></style>
|