This commit is contained in:
wangchengming 2024-12-02 15:04:28 +08:00
parent 61cb943234
commit a144ea0f54
2 changed files with 55 additions and 32 deletions

View File

@ -314,7 +314,10 @@
children: [
{
label: '投资者',
children: [{ label: 'banner' }]
children: [
{ label: 'banner' },
{ label: '详情banner' }
]
},
{
label: '合作邀约',

View File

@ -17,6 +17,9 @@
<el-option value="1" label="公司资讯"></el-option>
<el-option value="2" label="政策法规"></el-option>
<el-option value="3" label="行业动态"></el-option>
<el-option value="4" label="投资者新闻"></el-option>
<el-option value="5" label="公司治理"></el-option>
<el-option value="6" label="投资者关系"></el-option>
</el-select>
</el-form-item>
<el-form-item label="发布时间" prop="releaseTime">
@ -109,7 +112,7 @@
label="类型"
align="center"
prop="type"
:formatter="(row, column, cellValue, index) => ['公告通知', '公司资讯', '政策法规', '行业动态'][cellValue]"
:formatter="(row, column, cellValue, index) => ['公告通知', '公司资讯', '政策法规', '行业动态', '投资者新闻', '公司治理', '投资者关系'][cellValue]"
/>
<el-table-column label="发布时间" align="center" prop="releaseTime" width="180">
<template slot-scope="scope">
@ -158,13 +161,33 @@
/>
<!-- 添加或修改新闻信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="1520px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="标题名称" prop="captionName">
<el-input v-model="form.captionName" placeholder="请输入标题名称" />
</el-form-item>
<el-dialog :title="title" :visible.sync="open" class="showAll_dialog" width="1520px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="标题名称" prop="captionName">
<el-input v-model="form.captionName" placeholder="请输入标题名称" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="摘要" prop="abstracts">
<el-input v-model="form.abstracts" placeholder="请输入摘要" />
</el-form-item>
</el-col>
</el-row>
<el-form-item label="类型" prop="type">
<el-radio-group v-model="form.type">
<el-radio label="0">公告通知</el-radio>
<el-radio label="1">公司资讯</el-radio>
<el-radio label="2">政策法规</el-radio>
<el-radio label="3">行业动态</el-radio>
<el-radio label="4">投资者新闻</el-radio>
<el-radio label="5">公司治理</el-radio>
<el-radio label="6">投资者关系</el-radio>
</el-radio-group>
</el-form-item>
<el-row>
<el-col :span="6">
<el-form-item label="发布时间" prop="releaseTime">
<el-date-picker clearable
v-model="form.releaseTime"
@ -174,30 +197,12 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="类型" prop="type">
<el-radio-group v-model="form.type">
<el-radio label="0">公告通知</el-radio>
<el-radio label="1">公司资讯</el-radio>
<el-radio label="2">政策法规</el-radio>
<el-radio label="3">行业动态</el-radio>
</el-radio-group>
<el-col :span="6">
<el-form-item label="集团名称" prop="groupName">
<el-input v-model="form.groupName" placeholder="请输入集团名称" />
</el-form-item>
</el-col>
</el-row>
<el-form-item label="集团名称" prop="groupName">
<el-input v-model="form.groupName" placeholder="请输入集团名称" />
</el-form-item>
<el-form-item label="摘要" prop="abstracts">
<el-input v-model="form.abstracts" placeholder="请输入摘要" />
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="封面" prop="cover">
<ImageUploadLochost v-model="form.cover" :limit="1" :fileSize="10" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="6">
<el-form-item label="是否置顶" prop="isTop">
<el-radio-group v-model="form.isTop">
<el-radio label="0"></el-radio>
@ -205,12 +210,17 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="排序" prop="orderBy">
<el-input-number v-model="form.orderBy" placeholder="请输入排序"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="排序" prop="orderBy">
<el-input-number v-model="form.orderBy" placeholder="请输入排序"></el-input-number>
<el-form-item label="封面" prop="cover">
<ImageUploadLochost v-model="form.cover" :limit="1" :fileSize="10" />
</el-form-item>
<el-form-item label="新闻内容" prop="newsContent">
<editor v-model="form.newsContent" :min-height="192"/>
<editor v-model="form.newsContent" :min-height="388"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
@ -423,4 +433,14 @@ export default {
::v-deep .multiple-line-content-show p {
margin: 0;
}
//
::v-deep .el-dialog {
height: 92%;
overflow: hidden;
}
::v-deep .el-dialog__body {
padding: 30px 20px 0;
height: 89%;
overflow-y: auto;
}
</style>