develoop
fwb 2 months ago
parent f5727c361c
commit 31eae82ea5
  1. 25
      src/views/news/components/newsContentManage.vue
  2. 12
      src/views/news/index.vue

@ -60,7 +60,7 @@
</el-form-item>
<el-form-item label="文章内容" label-width="120px">
<textarea style="width: 100%;
height:375px;
height:320px;
border: 2px solid #d3d3d3;"
v-model="newsForm.content"
></textarea>
@ -75,11 +75,14 @@
<!-- <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-select v-model="newsForm.status" placeholder="请选择发布状态" style="width: 200px">
<el-option label="已发布" value="1" />
<el-option label="未发布" value="2" />
</el-select>
</el-form-item>
<el-form-item label="文章标题" label-width="120px">
<el-input v-model="newsForm.title" autocomplete="off" />
@ -182,11 +185,15 @@
<!-- <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-input v-model="nowTimeNewsData.status" placeholder="1:已发布 2:未发布" autocomplete="off" />-->
<el-select v-model="nowTimeNewsData.status" placeholder="请选择发布状态" style="width: 200px">
<el-option label="已发布" value="1" />
<el-option label="未发布" value="2" />
</el-select>
</el-form-item>
<el-form-item label="文章标题" label-width="140px">
<el-input v-model="nowTimeNewsData.title" autocomplete="off" />

@ -41,7 +41,7 @@
<el-card shadow="hover">
<div class="news-flex-container">
<p>发布人{{ nowTimeNewsData.userId }}</p>
<!-- <p>阅读数量{{ nowTimeNewsData.readingNumber }}</p>-->
<p>阅读数量{{ nowTimeNewsData.readingNumber }}</p>
<p>发布日期{{ nowTimeNewsData.publishTime }}</p>
<p>更新时间{{nowTimeNewsData.updateTime}}</p>
</div>
@ -87,7 +87,11 @@ onMounted(() => {
})
const essay = ref([])
const nowTimeNewsData = ref({})
console.log(nowTimeNewsData,'dsdsd')
// console.log(nowTimeNewsData,'dsdsd')
//
const newViews = (listObject)=> {
nowTimeNewsData.value = { ...listObject }
}
//
const EssayList = async (id)=>{
const response = await queryEssay(id)
@ -96,10 +100,6 @@ const EssayList = async (id)=>{
newViews(essay.value[0]); //
}
}
//
const newViews = (listObject)=> {
nowTimeNewsData.value = { ...listObject }
}
</script>
<style scoped>
.header_title{

Loading…
Cancel
Save