修改文章编辑的template

This commit is contained in:
zhongxy 2021-05-27 11:24:27 +08:00
parent d851be0119
commit 8cba515a3c
1 changed files with 2 additions and 13 deletions

View File

@ -23,7 +23,6 @@
<el-row gutter="0" justify="start" align="top"> <el-row gutter="0" justify="start" align="top">
<el-col :span="returnIsShow?'12':'24'"> <el-col :span="returnIsShow?'12':'24'">
<el-form-item label="文章标题" prop="contentTitle"> <el-form-item label="文章标题" prop="contentTitle">
<template slot='label'>文章标题</template>
<el-input v-model="form.contentTitle" <el-input v-model="form.contentTitle"
:disabled="false" :disabled="false"
:style="{width: '100%'}" :style="{width: '100%'}"
@ -37,7 +36,6 @@
</el-col> </el-col>
<el-col span="12" v-if="returnIsShow"> <el-col span="12" v-if="returnIsShow">
<el-form-item label="所属栏目" prop="categoryId"> <el-form-item label="所属栏目" prop="categoryId">
<template slot='label'>所属栏目</template>
<tree-select :props="{value: 'id',label: 'categoryTitle',children: 'children'}" <tree-select :props="{value: 'id',label: 'categoryTitle',children: 'children'}"
:options="contentCategoryIdOptions" :style="{width:'100%'}" :options="contentCategoryIdOptions" :style="{width:'100%'}"
@change="categoryChange" @change="categoryChange"
@ -54,7 +52,6 @@
justify="start" align="top"> justify="start" align="top">
<el-col span="12"> <el-col span="12">
<el-form-item label="文章类型" prop="contentType"> <el-form-item label="文章类型" prop="contentType">
<template slot='label'>文章类型</template>
<el-select v-model="form.contentType" <el-select v-model="form.contentType"
:style="{width: '100%'}" :style="{width: '100%'}"
:filterable="false" :filterable="false"
@ -72,7 +69,6 @@
</el-col> </el-col>
<el-col span="12"> <el-col span="12">
<el-form-item label="发布时间" prop="contentDatetime"> <el-form-item label="发布时间" prop="contentDatetime">
<template slot='label'>发布时间</template>
<el-date-picker <el-date-picker
v-model="form.contentDatetime" v-model="form.contentDatetime"
placeholder="请选择发布时间" placeholder="请选择发布时间"
@ -98,7 +94,6 @@
justify="start" align="top"> justify="start" align="top">
<el-col span="12"> <el-col span="12">
<el-form-item label="文章作者" prop="contentAuthor"> <el-form-item label="文章作者" prop="contentAuthor">
<template slot='label'>文章作者</template>
<el-input v-model="form.contentAuthor" <el-input v-model="form.contentAuthor"
:disabled="false" :disabled="false"
:style="{width: '100%'}" :style="{width: '100%'}"
@ -112,7 +107,6 @@
</el-col> </el-col>
<el-col span="12"> <el-col span="12">
<el-form-item label="文章来源" prop="contentSource"> <el-form-item label="文章来源" prop="contentSource">
<template slot='label'>文章来源</template>
<el-input v-model="form.contentSource" <el-input v-model="form.contentSource"
:disabled="false" :disabled="false"
:style="{width: '100%'}" :style="{width: '100%'}"
@ -129,8 +123,7 @@
gutter="0" gutter="0"
justify="start" align="top"> justify="start" align="top">
<el-col span="12"> <el-col span="12">
<el-form-item label="" prop="contentDisplay"> <el-form-item label="是否显示" prop="contentDisplay">
<template slot='label'>是否显示</template>
<el-radio-group v-model="form.contentDisplay" <el-radio-group v-model="form.contentDisplay"
:style="{width: ''}" :style="{width: ''}"
:disabled="false"> :disabled="false">
@ -156,8 +149,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-form-item label="" prop="contentImg"> <el-form-item label="文章缩略图" prop="contentImg">
<template slot='label'>文章缩略图</template>
<el-upload <el-upload
:file-list="form.contentImg" :file-list="form.contentImg"
:action="ms.base+'/file/upload.do'" :action="ms.base+'/file/upload.do'"
@ -178,7 +170,6 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="关键字" prop="contentKeyword"> <el-form-item label="关键字" prop="contentKeyword">
<template slot='label'>关键字</template>
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
@ -191,7 +182,6 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="描述" prop="contentDescription"> <el-form-item label="描述" prop="contentDescription">
<template slot='label'>描述</template>
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
@ -204,7 +194,6 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="contentDetails"> <el-form-item label="文章内容" prop="contentDetails">
<template slot='label'>文章内容</template>
<vue-ueditor-wrap style="line-height: 0px" v-model="form.contentDetails" <vue-ueditor-wrap style="line-height: 0px" v-model="form.contentDetails"
:config="editorConfig"></vue-ueditor-wrap> :config="editorConfig"></vue-ueditor-wrap>
<div class="ms-form-tip"> <div class="ms-form-tip">