|
@@ -1,42 +1,31 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <el-dialog title="信息发布"
|
|
|
|
|
|
|
+ <el-dialog :title="information.title"
|
|
|
:visible.sync="dialogvisible"
|
|
:visible.sync="dialogvisible"
|
|
|
@opened="dialogOpen"
|
|
@opened="dialogOpen"
|
|
|
@closed="dialogClose"
|
|
@closed="dialogClose"
|
|
|
width="75%">
|
|
width="75%">
|
|
|
- <el-form size="mini"
|
|
|
|
|
- :model="information"
|
|
|
|
|
- :rules="rulesinformationForm"
|
|
|
|
|
- label-width="100px"
|
|
|
|
|
- ref="informationForm">
|
|
|
|
|
- <el-row :gutter="24">
|
|
|
|
|
- <el-col :span="24">
|
|
|
|
|
- <el-form-item label="信息标题"
|
|
|
|
|
- label-width="120px">
|
|
|
|
|
- <el-input v-model="information.title"
|
|
|
|
|
- :disabled="true"
|
|
|
|
|
- style="width:100%;font-size:20px"></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- <el-col :span="24">
|
|
|
|
|
- <el-form-item label="信息内容"
|
|
|
|
|
- label-width="120px">
|
|
|
|
|
- <el-input v-model="information.content"
|
|
|
|
|
- type="textarea"
|
|
|
|
|
- :rows=5
|
|
|
|
|
- :disabled="true"
|
|
|
|
|
- style="width:100%;font-size:20px"></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
-
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </el-form>
|
|
|
|
|
|
|
+ <div class="content">
|
|
|
|
|
+ {{information.content}}
|
|
|
|
|
+ </div>
|
|
|
<span slot="footer">
|
|
<span slot="footer">
|
|
|
|
|
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+<style>
|
|
|
|
|
+.content {
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ width: 95%;
|
|
|
|
|
+ color: #808080;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ padding: 15px 50px;
|
|
|
|
|
+ border: 1px solid #e9e9e9;
|
|
|
|
|
+ -webkit-box-shadow: 0 1px 50px rgba(0, 0, 0, 0.1);
|
|
|
|
|
+ box-shadow: 0 1px 50px rgba(0, 0, 0, 0.1);
|
|
|
|
|
+ text-align: left;
|
|
|
|
|
+ line-height: 30px;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
|
|
import InformationApi from '@/api/information'
|
|
import InformationApi from '@/api/information'
|
|
@@ -69,12 +58,10 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
dialogOpen () {
|
|
dialogOpen () {
|
|
|
this.information = {}
|
|
this.information = {}
|
|
|
- this.$refs.informationForm.resetFields()
|
|
|
|
|
this.getData()
|
|
this.getData()
|
|
|
},
|
|
},
|
|
|
dialogClose () {
|
|
dialogClose () {
|
|
|
this.information = {}
|
|
this.information = {}
|
|
|
- this.$refs.informationForm.resetFields()
|
|
|
|
|
// this.$emit('handleClose')
|
|
// this.$emit('handleClose')
|
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
|
},
|
|
},
|