|
|
|
@ -95,23 +95,28 @@ |
|
|
|
<el-table-column label="艺术家id" align="center" key="creatorId" prop="creatorId" v-if="columns[2].visible" :show-overflow-tooltip="true" width="150"/> |
|
|
|
<el-table-column label="分类id" align="center" key="typeId" prop="typeId" v-if="columns[3].visible" :show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{scope.row.typeId == '1' ? "头像" : scope.row.typeId == '2' ? "GIF动图": scope.row.typeId == '3' ? "手机壁纸": scope.row.typeId == '4' ? "微信朋友圈背景": ''}} |
|
|
|
{{scope.row.typeId == '1' ? "头像" : scope.row.typeId == '2' ? "GIF动图": scope.row.typeId == '3' ? "手机壁纸": scope.row.typeId == '4' ? "背景图" : scope.row.typeId == '5' ? "表情包": scope.row.typeId == '6' ? "iwatch": ''}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="下载量" align="center" key="downloadNum" prop="downloadNum" v-if="columns[4].visible"/> |
|
|
|
<el-table-column label="点赞量" align="center" key="greatNum" prop="greatNum" v-if="columns[5].visible"/> |
|
|
|
<el-table-column label="收藏量" align="center" key="collectionNum" prop="collectionNum" v-if="columns[6].visible"/> |
|
|
|
<el-table-column label="审核状态" align="center" key="status" prop="status" v-if="columns[7].visible"> |
|
|
|
<el-table-column label="是否审核" align="center" key="status" prop="status" v-if="columns[7].visible"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-switch |
|
|
|
v-model="scope.row.status" |
|
|
|
active-value="1" |
|
|
|
inactive-value="0" |
|
|
|
active-value="2" |
|
|
|
inactive-value="1" |
|
|
|
@change="handleJudgeChange(scope.row)" |
|
|
|
></el-switch> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="是否热门" align="center" key="isHot" prop="isHot" v-if="columns[8].visible"> |
|
|
|
<el-table-column label="图片状态" align="center" key="status" prop="status" v-if="columns[8].visible" :show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{scope.row.status == '0' ? "待审核" : scope.row.status == '1' ? "审核拒绝": scope.row.status == '2' ? "已上架": scope.row.status == '3' ? "已下架" : ''}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="是否热门" align="center" key="isHot" prop="isHot" v-if="columns[9].visible"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-switch |
|
|
|
v-model="scope.row.isHot" |
|
|
|
@ -121,8 +126,8 @@ |
|
|
|
></el-switch> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="序号" align="center" key="sort" prop="sort" v-if="columns[9].visible"/> |
|
|
|
<el-table-column label="是否显示" align="center" key="isShow" v-if="columns[10].visible"> |
|
|
|
<el-table-column label="序号" align="center" key="sort" prop="sort" v-if="columns[10].visible"/> |
|
|
|
<el-table-column label="是否显示" align="center" key="isShow" v-if="columns[11].visible"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-switch |
|
|
|
v-model="scope.row.isShow" |
|
|
|
@ -132,12 +137,12 @@ |
|
|
|
></el-switch> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[11].visible" width="160"> |
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[12].visible" width="160"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" v-if="columns[12].visible" width="160"> |
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" v-if="columns[13].visible" width="160"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ parseTime(scope.row.updateTime) }}</span> |
|
|
|
</template> |
|
|
|
@ -278,7 +283,9 @@ export default { |
|
|
|
{ value: '1', label: `头像`}, |
|
|
|
{ value: '2', label: `GIF动图`}, |
|
|
|
{ value: '3', label: `手机壁纸`}, |
|
|
|
{ value: '4', label: `微信朋友圈背景`} |
|
|
|
{ value: '4', label: `背景图`}, |
|
|
|
{ value: '5', label: `表情包`}, |
|
|
|
{ value: '6', label: `iwatch`}, |
|
|
|
], |
|
|
|
//是否热门 |
|
|
|
isHot:[ |
|
|
|
@ -288,7 +295,9 @@ export default { |
|
|
|
//状态 |
|
|
|
status:[ |
|
|
|
{ value: '0', label: `待审核`}, |
|
|
|
{ value: '1', label: `审核通过`} |
|
|
|
{ value: '1', label: `审核拒绝`}, |
|
|
|
{ value: '2', label: `已上架`}, |
|
|
|
{ value: '3', label: `已下架`} |
|
|
|
], |
|
|
|
//是否显示 |
|
|
|
isShow: [ |
|
|
|
@ -329,12 +338,13 @@ export default { |
|
|
|
{ key: 4, label: `下载量`, visible: true }, |
|
|
|
{ key: 5, label: `点赞量`, visible: true }, |
|
|
|
{ key: 6, label: `收藏量`, visible: true }, |
|
|
|
{ key: 7, label: `审核状态`, visible: true }, |
|
|
|
{ key: 8, label: `是否热门`, visible: true }, |
|
|
|
{ key: 9, label: `序号`, visible: true }, |
|
|
|
{ key: 10, label: `是否显示`, visible: true }, |
|
|
|
{ key: 11, label: `创建时间`, visible: true }, |
|
|
|
{ key: 12, label: `更新时间`, visible: true } |
|
|
|
{ key: 7, label: `是否审核`, visible: true }, |
|
|
|
{ key: 8, label: `图片状态`, visible: true }, |
|
|
|
{ key: 9, label: `是否热门`, visible: true }, |
|
|
|
{ key: 10, label: `序号`, visible: true }, |
|
|
|
{ key: 11, label: `是否显示`, visible: true }, |
|
|
|
{ key: 12, label: `创建时间`, visible: true }, |
|
|
|
{ key: 13, label: `更新时间`, visible: true } |
|
|
|
], |
|
|
|
// 表单校验 |
|
|
|
rules: { |
|
|
|
|