|
|
@ -52,31 +52,30 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<!-- 栏目内添加新闻--> |
|
|
|
<!-- 栏目内添加新闻--> |
|
|
|
<el-form v-model="newsForm"> |
|
|
|
<el-form v-model="newsForm"> |
|
|
|
<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="120px"> |
|
|
|
<el-form-item label="所属栏目名称" label-width="120px"> |
|
|
|
<el-input v-model="newsForm.categoryName" autocomplete="off" readonly/> |
|
|
|
<el-input v-model="newsForm.categoryName" autocomplete="off" readonly/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="文章标题" label-width="120px"> |
|
|
|
|
|
|
|
<el-input v-model="newsForm.title" autocomplete="off" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="文章内容" label-width="120px"> |
|
|
|
<el-form-item label="文章内容" label-width="120px"> |
|
|
|
<textarea style="width: 100%; |
|
|
|
<textarea style="width: 100%; |
|
|
|
height:320px; |
|
|
|
height:320px; |
|
|
|
border: 2px solid #d3d3d3;" |
|
|
|
border: 2px solid #d3d3d3;" |
|
|
|
v-model="newsForm.content" |
|
|
|
v-model="newsForm.content" |
|
|
|
></textarea> |
|
|
|
></textarea> |
|
|
|
<!-- <el-input class="brief_text" type="textarea" /> --> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="文章id" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="newsForm.id" autocomplete="off" />--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<!-- <el-form-item label="标题图片" label-width="140px">--> |
|
|
|
<!-- <el-form-item label="标题图片" label-width="140px">--> |
|
|
|
<!-- <el-input v-model="newsForm.pic" autocomplete="off" />--> |
|
|
|
<!-- <el-input v-model="newsForm.pic" autocomplete="off" />--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="发布时间" label-width="140px">--> |
|
|
|
<!-- <el-form-item label="发布时间" label-width="140px">--> |
|
|
|
<!-- <el-input v-model="newsForm.publishTime" autocomplete="off" type="date"/>--> |
|
|
|
<!-- <el-input v-model="newsForm.publishTime" autocomplete="off" type="date"/>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item label="所属栏目id" label-width="120px"> |
|
|
|
|
|
|
|
<el-input v-model="newsForm.categoryId" autocomplete="off" style="width: 200px" readonly/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="浏览次数" label-width="120px"> |
|
|
|
<el-form-item label="浏览次数" label-width="120px"> |
|
|
|
<el-input v-model="newsForm.readingNumber" autocomplete="off" /> |
|
|
|
<el-input v-model="newsForm.readingNumber" autocomplete="off" style="width: 200px"/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="发布状态" label-width="120px"> |
|
|
|
<el-form-item label="发布状态" label-width="120px"> |
|
|
|
<el-select v-model="newsForm.status" placeholder="请选择发布状态" style="width: 200px"> |
|
|
|
<el-select v-model="newsForm.status" placeholder="请选择发布状态" style="width: 200px"> |
|
|
@ -84,15 +83,8 @@ |
|
|
|
<el-option label="未发布" value="2" /> |
|
|
|
<el-option label="未发布" value="2" /> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<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="120px"> |
|
|
|
<el-form-item label="当前用户id" label-width="120px"> |
|
|
|
<!-- <el-input v-model="newsForm.userId" autocomplete="off" readonly disabled/>--> |
|
|
|
<el-input v-model="newsForm.userId" autocomplete="off" style="width: 200px" readonly/> |
|
|
|
<el-input v-model="newsForm.userId" autocomplete="off" readonly/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
@ -135,24 +127,15 @@ |
|
|
|
<el-form-item label="栏目父id" label-width="140px"> |
|
|
|
<el-form-item label="栏目父id" label-width="140px"> |
|
|
|
<el-input v-model="form.categoryPid" autocomplete="off" readonly/> |
|
|
|
<el-input v-model="form.categoryPid" autocomplete="off" readonly/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="创建时间" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="form.createTime" autocomplete="off" type="date"/>--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item label="创建该栏目的用户id" label-width="140px"> |
|
|
|
<el-form-item label="创建该栏目的用户id" label-width="140px"> |
|
|
|
<el-input v-model="form.creatorId" autocomplete="off" readonly disabled/> |
|
|
|
<el-input v-model="form.creatorId" autocomplete="off" readonly disabled/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="栏目id" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="form.id" autocomplete="off" />--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item label="排序" label-width="140px"> |
|
|
|
<el-form-item label="排序" label-width="140px"> |
|
|
|
<el-input v-model="form.sort" autocomplete="off" /> |
|
|
|
<el-input v-model="form.sort" autocomplete="off" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否显示" label-width="140px"> |
|
|
|
<el-form-item label="是否显示" label-width="140px"> |
|
|
|
<el-input v-model="form.status" autocomplete="off" /> |
|
|
|
<el-input v-model="form.status" autocomplete="off" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="更新时间" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="form.updateTime" autocomplete="off" type="date"/>--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<div class="dialog-footer"> |
|
|
@ -166,43 +149,33 @@ |
|
|
|
<!-- 修改新闻--> |
|
|
|
<!-- 修改新闻--> |
|
|
|
<el-drawer v-model="editNewsDialogFormVisible" title="修改新闻" width="500px"> |
|
|
|
<el-drawer v-model="editNewsDialogFormVisible" title="修改新闻" width="500px"> |
|
|
|
<el-form v-model="nowTimeNewsData"> |
|
|
|
<el-form v-model="nowTimeNewsData"> |
|
|
|
<el-form-item label="所属栏目id" label-width="140px"> |
|
|
|
<el-form-item label="文章标题" label-width="140px"> |
|
|
|
<el-input v-model="nowTimeNewsData.categoryId" autocomplete="off" readonly disabled/> |
|
|
|
<el-input v-model="nowTimeNewsData.title" autocomplete="off" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="文章内容" label-width="140px"> |
|
|
|
<el-form-item label="文章内容" label-width="140px"> |
|
|
|
<textarea style="width: 100%;height: 450px;border: 1px solid #d3d3d3;" v-model="nowTimeNewsData.content"></textarea> |
|
|
|
<textarea style="width: 100%;height: 450px;border: 1px solid #d3d3d3;" v-model="nowTimeNewsData.content"></textarea> |
|
|
|
<!-- <el-input class="brief_text" type="textarea" /> --> |
|
|
|
<!-- <el-input class="brief_text" type="textarea" /> --> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="所属栏目id" label-width="140px"> |
|
|
|
|
|
|
|
<el-input v-model="nowTimeNewsData.categoryId" autocomplete="off" style="width: 200px" readonly disabled/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="文章文件" label-width="140px">--> |
|
|
|
<!-- <el-form-item label="文章文件" label-width="140px">--> |
|
|
|
<!-- <el-input v-model="nowTimeNewsData.file" autocomplete="off" />--> |
|
|
|
<!-- <el-input v-model="nowTimeNewsData.file" autocomplete="off" />--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="文章id" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="nowTimeNewsData.id" autocomplete="off" />--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<!-- <el-form-item label="标题图片" label-width="140px">--> |
|
|
|
<!-- <el-form-item label="标题图片" label-width="140px">--> |
|
|
|
<!-- <el-input v-model="nowTimeNewsData.pic" autocomplete="off" />--> |
|
|
|
<!-- <el-input v-model="nowTimeNewsData.pic" autocomplete="off" />--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="发布时间" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="nowTimeNewsData.publishTime" autocomplete="off" type="date"/>--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item label="浏览次数" label-width="140px"> |
|
|
|
<el-form-item label="浏览次数" label-width="140px"> |
|
|
|
<el-input v-model="nowTimeNewsData.readingNumber" autocomplete="off" /> |
|
|
|
<el-input v-model="nowTimeNewsData.readingNumber" autocomplete="off" style="width: 200px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="发布状态" label-width="140px"> |
|
|
|
<el-form-item label="发布状态" label-width="140px"> |
|
|
|
<!-- <el-input v-model="nowTimeNewsData.status" placeholder="1:已发布 2:未发布" autocomplete="off" />--> |
|
|
|
|
|
|
|
<el-select v-model="nowTimeNewsData.status" placeholder="请选择发布状态" style="width: 200px"> |
|
|
|
<el-select v-model="nowTimeNewsData.status" placeholder="请选择发布状态" style="width: 200px"> |
|
|
|
<el-option label="已发布" value="1" /> |
|
|
|
<el-option label="已发布" value="1" /> |
|
|
|
<el-option label="未发布" value="2" /> |
|
|
|
<el-option label="未发布" value="2" /> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="文章标题" label-width="140px"> |
|
|
|
|
|
|
|
<el-input v-model="nowTimeNewsData.title" autocomplete="off" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<!-- <el-form-item label="更新时间" label-width="140px">--> |
|
|
|
|
|
|
|
<!-- <el-input v-model="nowTimeNewsData.updateTime" autocomplete="off" type="date"/>--> |
|
|
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item label="发布文章的用户id" label-width="140px"> |
|
|
|
<el-form-item label="发布文章的用户id" label-width="140px"> |
|
|
|
<el-input v-model="nowTimeNewsData.userId" autocomplete="off" readonly disabled/> |
|
|
|
<el-input v-model="nowTimeNewsData.userId" autocomplete="off" style="width: 200px" readonly disabled/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|