|
|
|
@ -52,14 +52,18 @@ |
|
|
|
|
</template> |
|
|
|
|
<!-- 栏目内添加新闻--> |
|
|
|
|
<el-form v-model="newsForm"> |
|
|
|
|
<el-form-item label="所属栏目id" label-width="140px"> |
|
|
|
|
<el-form-item label="所属栏目id" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.categoryId" autocomplete="off" readonly/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="所属栏目名称" label-width="140px"> |
|
|
|
|
<el-form-item label="所属栏目名称" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.categoryName" autocomplete="off" readonly/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文章内容" label-width="140px"> |
|
|
|
|
<textarea style="width: 100%;height:320px" v-model="newsForm.content"></textarea> |
|
|
|
|
<el-form-item label="文章内容" label-width="120px"> |
|
|
|
|
<textarea style="width: 100%; |
|
|
|
|
height:320px; |
|
|
|
|
border: 2px solid #d3d3d3;" |
|
|
|
|
v-model="newsForm.content" |
|
|
|
|
></textarea> |
|
|
|
|
<!-- <el-input class="brief_text" type="textarea" /> --> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="文章id" label-width="140px">--> |
|
|
|
@ -71,19 +75,19 @@ |
|
|
|
|
<!-- <el-form-item label="发布时间" label-width="140px">--> |
|
|
|
|
<!-- <el-input v-model="newsForm.publishTime" autocomplete="off" type="date"/>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="浏览次数" label-width="140px"> |
|
|
|
|
<el-form-item label="浏览次数" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.readingNumber" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="发布状态" label-width="140px"> |
|
|
|
|
<el-form-item label="发布状态" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.status" placeholder="1:已发布 2:未发布" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文章标题" label-width="140px"> |
|
|
|
|
<el-form-item label="文章标题" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.title" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="更新时间" label-width="140px">--> |
|
|
|
|
<!-- <el-input v-model="newsForm.updateTime" autocomplete="off" type="date"/>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="发布文章的用户id" label-width="140px"> |
|
|
|
|
<el-form-item label="当前用户id" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.userId" autocomplete="off" readonly disabled/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -207,10 +211,10 @@ |
|
|
|
|
<span>关于我们</span> |
|
|
|
|
<el-divider/> |
|
|
|
|
<el-form-item label="发布时间" label-width="100px"> |
|
|
|
|
<el-input v-model="aboutEssay.updateTime" autocomplete="off" readonly disabled/> |
|
|
|
|
<el-input v-model="aboutEssay.updateTime" autocomplete="off" readonly/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文章内容" label-width="100px"> |
|
|
|
|
<textarea v-model="aboutEssay.content" style="width: 100%;height: 75vh"></textarea> |
|
|
|
|
<textarea v-model="aboutEssay.content" style="width: 100%;height: 75vh;border: 2px solid #d3d3d3;"></textarea> |
|
|
|
|
<!-- <el-input class="brief_text" type="textarea" /> --> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-button @click="editConfirm" style="margin-left:45vh" type="primary" round>提交修改</el-button> |
|
|
|
@ -474,13 +478,6 @@ const editConfirm =async ()=>{ |
|
|
|
|
text-align: center; /* 居中按钮 */ |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
.contentTitle{ |
|
|
|
|
color: firebrick; |
|
|
|
|
font-size: 30px; |
|
|
|
|
text-align: center; |
|
|
|
|
display: block; |
|
|
|
|
width: 100%; /* 或者设置一个具体的宽度 */ |
|
|
|
|
} |
|
|
|
|
.flex-container { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; /* 将内容平均分布,按钮自动靠右 */ |
|
|
|
@ -497,15 +494,6 @@ const editConfirm =async ()=>{ |
|
|
|
|
position:absolute; |
|
|
|
|
margin-left: 180px; |
|
|
|
|
} |
|
|
|
|
.news-flex-container { |
|
|
|
|
display: flex; /* 使用 Flexbox 布局 */ |
|
|
|
|
justify-content: space-between; /* 平均分配空间 */ |
|
|
|
|
align-items: center; /* 垂直居中对齐 */ |
|
|
|
|
} |
|
|
|
|
.news-flex-container p { |
|
|
|
|
flex: 1; /* 平均分配剩余空间 */ |
|
|
|
|
text-align: center; /* 文本居中显示 */ |
|
|
|
|
} |
|
|
|
|
.flex-container p { |
|
|
|
|
flex-grow: 1; /* 扩展剩余空间 */ |
|
|
|
|
margin-right: 10px; /* 添加一些右侧间距以避免按钮与文本直接接触 */ |
|
|
|
@ -516,16 +504,6 @@ const editConfirm =async ()=>{ |
|
|
|
|
.flex-container p:last-child { |
|
|
|
|
margin-right: 0; |
|
|
|
|
} |
|
|
|
|
.scrollbarContent{ |
|
|
|
|
height:60vh; |
|
|
|
|
border: 1px; |
|
|
|
|
background: white; |
|
|
|
|
border-radius: 1%; |
|
|
|
|
font-size: 20px; |
|
|
|
|
padding: 10px; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
line-height: 2.0; |
|
|
|
|
} |
|
|
|
|
.card-header { |
|
|
|
|
display: flex; /* 使用 Flexbox */ |
|
|
|
|
justify-content: space-between; /* 主轴上平均分配剩余空间 */ |
|
|
|
|