|
|
@ -2,7 +2,7 @@ |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<!--用户数据--> |
|
|
<!--用户数据--> |
|
|
<el-col :span="20" :xs="24"> |
|
|
<el-col :span="20" :xs="26"> |
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="70px"> |
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="70px"> |
|
|
<el-form-item label="姓名" prop="name"> |
|
|
<el-form-item label="姓名" prop="name"> |
|
|
<el-input |
|
|
<el-input |
|
|
@ -69,6 +69,16 @@ |
|
|
:value="item.value" |
|
|
:value="item.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="是否为机器人" prop="isRobot"> |
|
|
|
|
|
<el-select v-model="queryParams.isRobot" placeholder="是否为机器人" clearable> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in isRobot" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|
|
@ -87,6 +97,16 @@ |
|
|
v-hasPermi="['img:creator:add']" |
|
|
v-hasPermi="['img:creator:add']" |
|
|
>新增</el-button> |
|
|
>新增</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
plain |
|
|
|
|
|
icon="el-icon-plus" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleAddRobot" |
|
|
|
|
|
v-hasPermi="['img:creator:add']" |
|
|
|
|
|
>新增机器人</el-button> |
|
|
|
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button |
|
|
<el-button |
|
|
type="danger" |
|
|
type="danger" |
|
|
@ -126,8 +146,13 @@ |
|
|
{{scope.row.isHot == '0' ? "否" : scope.row.isHot == '1' ? "是":''}} |
|
|
{{scope.row.isHot == '0' ? "否" : scope.row.isHot == '1' ? "是":''}} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="序号" align="center" key="sort" prop="sort" v-if="columns[11].visible" :show-overflow-tooltip="true" /> |
|
|
<el-table-column label="是否为机器人" align="center" key="isRobot" prop="isRobot" v-if="columns[11].visible" width="100"> |
|
|
<el-table-column label="是否显示" align="center" key="isShow" v-if="columns[12].visible"> |
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{scope.row.isRobot == '0' ? "否" : scope.row.isRobot == '1' ? "是":''}} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="序号" align="center" key="sort" prop="sort" v-if="columns[12].visible" :show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column label="是否显示" align="center" key="isShow" v-if="columns[13].visible"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-switch |
|
|
<el-switch |
|
|
v-model="scope.row.isShow" |
|
|
v-model="scope.row.isShow" |
|
|
@ -137,12 +162,12 @@ |
|
|
></el-switch> |
|
|
></el-switch> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[13].visible" width="160"> |
|
|
<el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[14].visible" width="160"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
|
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" v-if="columns[14].visible" width="160"> |
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" v-if="columns[15].visible" width="160"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ parseTime(scope.row.updateTime) }}</span> |
|
|
<span>{{ parseTime(scope.row.updateTime) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
@ -280,7 +305,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { listCreator, addCreator, editCreator, delCreator, getCreatorDetails, changeStatus, verifyPass, verifyUnPass } from "@/api/img/creator"; |
|
|
import { listCreator, addCreator, editCreator, delCreator, getCreatorDetails, changeStatus, verifyPass, verifyUnPass, insertRobot } from "@/api/img/creator"; |
|
|
import { getUserProfile } from "@/api/system/user"; |
|
|
import { getUserProfile } from "@/api/system/user"; |
|
|
import { getToken } from "@/utils/auth"; |
|
|
import { getToken } from "@/utils/auth"; |
|
|
|
|
|
|
|
|
@ -326,6 +351,11 @@ export default { |
|
|
{ value: '0', label: '否'}, |
|
|
{ value: '0', label: '否'}, |
|
|
{ value: '1', label: '是'} |
|
|
{ value: '1', label: '是'} |
|
|
], |
|
|
], |
|
|
|
|
|
//是否为机器人 |
|
|
|
|
|
isRobot: [ |
|
|
|
|
|
{ value: '0', label: '否'}, |
|
|
|
|
|
{ value: '1', label: '是'} |
|
|
|
|
|
], |
|
|
//头像大图: |
|
|
//头像大图: |
|
|
bigImgList:[], |
|
|
bigImgList:[], |
|
|
// 升级艺术家表单参数 |
|
|
// 升级艺术家表单参数 |
|
|
@ -368,10 +398,11 @@ export default { |
|
|
{ key: 8, label: `第三方平台账号详情地址`, visible: true }, |
|
|
{ key: 8, label: `第三方平台账号详情地址`, visible: true }, |
|
|
{ key: 9, label: `状态`, visible: true }, |
|
|
{ key: 9, label: `状态`, visible: true }, |
|
|
{ key: 10, label: `是否活跃`, visible: true }, |
|
|
{ key: 10, label: `是否活跃`, visible: true }, |
|
|
{ key: 11, label: `序号`, visible: true }, |
|
|
{ key: 11, label: `是否为机器人`, visible: true }, |
|
|
{ key: 12, label: `是否显示`, visible: true }, |
|
|
{ key: 12, label: `序号`, visible: true }, |
|
|
{ key: 13, label: `创建时间`, visible: true }, |
|
|
{ key: 13, label: `是否显示`, visible: true }, |
|
|
{ key: 14, label: `更新时间`, visible: true } |
|
|
{ key: 14, label: `创建时间`, visible: true }, |
|
|
|
|
|
{ key: 15, label: `更新时间`, visible: true } |
|
|
], |
|
|
], |
|
|
// 表单校验 |
|
|
// 表单校验 |
|
|
rules: { |
|
|
rules: { |
|
|
@ -464,6 +495,16 @@ export default { |
|
|
this.reset(); |
|
|
this.reset(); |
|
|
this.editOpen = true; |
|
|
this.editOpen = true; |
|
|
this.title = "新增艺术家"; |
|
|
this.title = "新增艺术家"; |
|
|
|
|
|
}, |
|
|
|
|
|
/** 新增机器人按钮操作 */ |
|
|
|
|
|
handleAddRobot() { |
|
|
|
|
|
this.$modal.confirm('确定新增机器人艺术家吗?').then(function() { |
|
|
|
|
|
return insertRobot(); |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
this.$modal.msgSuccess("新增成功"); |
|
|
|
|
|
}).catch(() => {}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
/** 审核按钮操作 */ |
|
|
/** 审核按钮操作 */ |
|
|
handleVerify(row){ |
|
|
handleVerify(row){ |
|
|
|