|
|
|
@ -31,7 +31,7 @@ |
|
|
|
|
<el-cascader ref="column" v-model="form.columnId" :options="columns" :props="columnProps" |
|
|
|
|
@change="columnChange"></el-cascader> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="!isPeople" prop="releaseTime" label="发布日期"> |
|
|
|
|
<el-form-item v-if="!isPeople && !isRichText" prop="releaseTime" label="发布日期"> |
|
|
|
|
<el-date-picker v-model="form.releaseTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" |
|
|
|
|
:clearable="false" value-format="yyyy-MM-dd"> |
|
|
|
|
</el-date-picker> |
|
|
|
@ -121,7 +121,7 @@ |
|
|
|
|
<el-input style="width: 940px" type="textarea" v-model="form.author" :rows="3"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
<div v-if="!isPeople" class="item-line"> |
|
|
|
|
<div v-if="!isPeople && !isRichText" class="item-line"> |
|
|
|
|
<el-form-item prop="source" label="来源"> |
|
|
|
|
<el-input placeholder="请输入来源" v-model.trim="form.source" clearable maxlength="50" |
|
|
|
|
class="inline-input"></el-input> |
|
|
|
@ -193,7 +193,8 @@ |
|
|
|
|
<el-button class="set-btn" type="primary" @click="setLabel">设置</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<el-form-item v-if="form.articleTemplate === 22 || form.articleTemplate === 23 || isPeople || isOrg" |
|
|
|
|
<el-form-item |
|
|
|
|
v-if="form.articleTemplate === 22 || form.articleTemplate === 23 || isPeople || isRichText || isOrg" |
|
|
|
|
prop="summary" label="摘要"> |
|
|
|
|
<el-input style="width: 940px" type="textarea" v-model.trim="form.summary" :rows="3" clearable></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
@ -312,8 +313,8 @@ |
|
|
|
|
</el-switch> |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
<el-form-item v-if="form.articleTemplate !== 24 && form.articleTemplate !== 26 && !isPeople" prop="file" |
|
|
|
|
label="文件上传"> |
|
|
|
|
<el-form-item v-if="form.articleTemplate !== 24 && form.articleTemplate !== 26 && !isPeople && !isRichText" |
|
|
|
|
prop="file" label="文件上传"> |
|
|
|
|
<el-upload :before-upload="fileBeforeUpload" :on-remove="handleRemove" :on-success="uploadSuccessFile" |
|
|
|
|
:action="this.api.upload" :file-list="form.fileList" :headers="headers" :data="{ |
|
|
|
|
quote: form.title, |
|
|
|
@ -341,7 +342,7 @@ |
|
|
|
|
<div class="plus"> |
|
|
|
|
<i class="el-icon-circle-plus-outline" @click="addClass"></i> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="classifications" ref="table" header-align="center" row-key="id"> |
|
|
|
|
<el-table :data="classifications" ref="table" header-align="center" row-key="id" :max-height="400"> |
|
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="classificationName" label="分类名称" align="center" min-width="130"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -369,7 +370,7 @@ |
|
|
|
|
<div class="plus"> |
|
|
|
|
<i class="el-icon-circle-plus-outline" @click="addLabel"></i> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="labels" ref="table" header-align="center" row-key="id"> |
|
|
|
|
<el-table :data="labels" ref="table" header-align="center" row-key="id" :max-height="400"> |
|
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="labelName" label="主题名称" align="center" min-width="130"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -566,10 +567,14 @@ export default { |
|
|
|
|
isJournal () { |
|
|
|
|
return this.form.articleTemplate === 26 |
|
|
|
|
}, |
|
|
|
|
// 人物详情 |
|
|
|
|
// 人员信息+富文本内容详情 |
|
|
|
|
isPeople () { |
|
|
|
|
return this.form.articleTemplate === 72 |
|
|
|
|
}, |
|
|
|
|
// 人员信息+富文本内容详情 |
|
|
|
|
isRichText () { |
|
|
|
|
return this.form.articleTemplate === 80 |
|
|
|
|
}, |
|
|
|
|
// 组织架构 |
|
|
|
|
isOrg () { |
|
|
|
|
return this.form.articleTemplate === 69 |
|
|
|
@ -836,10 +841,10 @@ export default { |
|
|
|
|
getTemplate () { |
|
|
|
|
this.$post(this.api.individualTemplateDetailsStyle).then(({ data }) => { |
|
|
|
|
const result = [] |
|
|
|
|
// 不显示产品、课程详情(id为79),产品课程详情在/add/product里添加 |
|
|
|
|
data.map(e => { |
|
|
|
|
result.find(n => n.style === e.style) || result.push(e) |
|
|
|
|
e.id !== 79 && result.push(e) |
|
|
|
|
}) |
|
|
|
|
result.pop() // 不显示产品、课程详情,产品课程详情在/add/product里添加 |
|
|
|
|
this.detailStyle = result |
|
|
|
|
}).catch(err => { }) |
|
|
|
|
}, |
|
|
|
@ -1355,11 +1360,11 @@ $upload-lg-height: 102px; |
|
|
|
|
display: flex; |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
width: 955px; |
|
|
|
|
// height: 320px; |
|
|
|
|
margin-top: 20px; |
|
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
width: 170px; |
|
|
|
|
margin: 0 20px 10px 0; |
|
|
|
|
text-align: center; |
|
|
|
|
cursor: pointer; |
|
|
|
@ -1369,11 +1374,15 @@ $upload-lg-height: 102px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/.el-radio { |
|
|
|
|
white-space: normal; |
|
|
|
|
line-height: 1.6; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.review { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: center; |
|
|
|
|
align-items: center; |
|
|
|
|
width: 170px; |
|
|
|
|
height: 112px; |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
border: 1px solid #dcdee0; |
|
|
|
|