|
|
|
@ -47,7 +47,7 @@ |
|
|
|
|
<el-card class="container"> |
|
|
|
|
<template #header> |
|
|
|
|
<div class="card-header"> |
|
|
|
|
<span>栏目添加新闻信息</span> |
|
|
|
|
<span>添加当前栏目新闻信息</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<!-- 栏目内添加新闻--> |
|
|
|
@ -60,7 +60,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文章内容" label-width="120px"> |
|
|
|
|
<textarea style="width: 100%; |
|
|
|
|
height:320px; |
|
|
|
|
height:375px; |
|
|
|
|
border: 2px solid #d3d3d3;" |
|
|
|
|
v-model="newsForm.content" |
|
|
|
|
></textarea> |
|
|
|
@ -75,9 +75,9 @@ |
|
|
|
|
<!-- <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="120px"> |
|
|
|
|
<el-input v-model="newsForm.readingNumber" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="浏览次数" label-width="120px">--> |
|
|
|
|
<!-- <el-input v-model="newsForm.readingNumber" autocomplete="off" />--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="发布状态" label-width="120px"> |
|
|
|
|
<el-input v-model="newsForm.status" placeholder="1:已发布 2:未发布" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -88,7 +88,8 @@ |
|
|
|
|
<!-- <el-input v-model="newsForm.updateTime" autocomplete="off" type="date"/>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<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" readonly disabled/>--> |
|
|
|
|
<el-input v-model="newsForm.userId" autocomplete="off" readonly/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<template #footer> |
|
|
|
@ -166,7 +167,7 @@ |
|
|
|
|
<el-input v-model="nowTimeNewsData.categoryId" autocomplete="off" readonly disabled/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文章内容" label-width="140px"> |
|
|
|
|
<textarea style="width: 100%;height: 300px" 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-form-item> |
|
|
|
|
<!-- <el-form-item label="文章文件" label-width="140px">--> |
|
|
|
@ -181,9 +182,9 @@ |
|
|
|
|
<!-- <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-input v-model="nowTimeNewsData.readingNumber" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="浏览次数" label-width="140px">--> |
|
|
|
|
<!-- <el-input v-model="nowTimeNewsData.readingNumber" autocomplete="off" />--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="发布状态" label-width="140px"> |
|
|
|
|
<el-input v-model="nowTimeNewsData.status" placeholder="1:已发布 2:未发布" autocomplete="off" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -256,7 +257,7 @@ const addNewsButton = (item)=>{ |
|
|
|
|
nowCategoryName.value = item.categoryName |
|
|
|
|
} |
|
|
|
|
const nowTimeNewsData = ref({}) |
|
|
|
|
|
|
|
|
|
console.log(userStore.data,'当前用户数据') |
|
|
|
|
//新闻详细信息获取 |
|
|
|
|
const newViews = (listObject)=> { |
|
|
|
|
nowTimeNewsData.value = { ...listObject } |
|
|
|
@ -380,6 +381,7 @@ const newsForm = ref({ |
|
|
|
|
title:'', |
|
|
|
|
updateTime:'', |
|
|
|
|
userId:userStore.data.id, |
|
|
|
|
nickName:userStore.data.nickName |
|
|
|
|
}) |
|
|
|
|
//新闻文章添加 |
|
|
|
|
const addNewsContentConfirm = async (id)=>{ |
|
|
|
@ -408,7 +410,7 @@ const aboutContent = async (essay_id)=>{ |
|
|
|
|
aboutContentDrawer.value = true |
|
|
|
|
const responseEssay = await queryEssayById('1') |
|
|
|
|
aboutEssay.value = responseEssay.data |
|
|
|
|
console.log(aboutEssay.value,'关于我们文章') |
|
|
|
|
// console.log(aboutEssay.value,'关于我们文章') |
|
|
|
|
} |
|
|
|
|
//关于我们修改提交 |
|
|
|
|
const editConfirm =async ()=>{ |
|
|
|
|