产品课程相关

master
yujialong 5 months ago
parent 26b4ae8a1a
commit ccc30e06ad
  1. BIN
      src/assets/images/style/79.png
  2. BIN
      src/assets/images/style/80.png
  3. 33
      src/pages/article/add/index.vue
  4. 8
      src/pages/article/add/product.vue
  5. 2
      src/setting.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 KiB

After

Width:  |  Height:  |  Size: 28 KiB

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

@ -190,7 +190,7 @@
<div class="plus"> <div class="plus">
<i class="el-icon-circle-plus-outline" @click="addClass"></i> <i class="el-icon-circle-plus-outline" @click="addClass"></i>
</div> </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 type="index" width="60" label="序号" align="center"></el-table-column>
<el-table-column prop="name" label="分类名称" align="center" min-width="130"> <el-table-column prop="name" label="分类名称" align="center" min-width="130">
<template slot-scope="scope"> <template slot-scope="scope">
@ -199,7 +199,6 @@
<span v-else>{{ scope.row.name }}</span> <span v-else>{{ scope.row.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="updateTime1" label="是否引用" align="center" min-width="60"></el-table-column>
<el-table-column label="操作" align="center" min-width="60"> <el-table-column label="操作" align="center" min-width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<i v-if="scope.row.edit" class="el-icon-check edit" @click="submitClass(scope.row)"></i> <i v-if="scope.row.edit" class="el-icon-check edit" @click="submitClass(scope.row)"></i>
@ -218,7 +217,7 @@
<div class="plus"> <div class="plus">
<i class="el-icon-circle-plus-outline" @click="addLabel"></i> <i class="el-icon-circle-plus-outline" @click="addLabel"></i>
</div> </div>
<el-table :data="categories" ref="table" header-align="center" row-key="id"> <el-table :data="categories" 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 type="index" width="60" label="序号" align="center"></el-table-column>
<el-table-column prop="name" label="类型" align="center" min-width="130"> <el-table-column prop="name" label="类型" align="center" min-width="130">
<template slot-scope="scope"> <template slot-scope="scope">
@ -227,7 +226,6 @@
<span v-else>{{ scope.row.name }}</span> <span v-else>{{ scope.row.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="updateTime1" label="是否引用" align="center" min-width="60"></el-table-column>
<el-table-column label="操作" align="center" min-width="60"> <el-table-column label="操作" align="center" min-width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<i v-if="scope.row.edit" class="el-icon-check edit" @click="submitLabel(scope.row)"></i> <i v-if="scope.row.edit" class="el-icon-check edit" @click="submitLabel(scope.row)"></i>
@ -266,7 +264,7 @@ export default {
style: '产品、课程详情' style: '产品、课程详情'
}, },
{ {
id: 72, id: 80,
style: '富文本' style: '富文本'
}, },
{ {

@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = location.origin let host = location.origin
if (isDev) { if (isDev) {
host = 'https://huorantech.com' host = 'https://huorantech.com'
host = 'http://192.168.31.217:10000' // host = 'http://192.168.31.217:10000'
} }
const Setting = { const Setting = {

Loading…
Cancel
Save