渠道更新

This commit is contained in:
墨大叔 2024-07-30 14:31:09 +08:00
parent 229ac41eb0
commit 2d75e5b614

View File

@ -64,6 +64,9 @@
<el-table v-loading="loading" :data="channelList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="channelList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="渠道名称" align="center" prop="name"/> <el-table-column label="渠道名称" align="center" prop="name"/>
<el-table-column label="图片" align="center" prop="picture" width="100">
<image-preview slot-scope="d" :src="d.row.picture" :width="32" :height="32"/>
</el-table-column>
<el-table-column label="启用充值" align="center" prop="enabled"> <el-table-column label="启用充值" align="center" prop="enabled">
<template slot-scope="d"> <template slot-scope="d">
<el-switch v-model="d.row.enabled" @change="(nv) => {onChangeEnabled(d.row, nv)}"/> <el-switch v-model="d.row.enabled" @change="(nv) => {onChangeEnabled(d.row, nv)}"/>
@ -126,6 +129,9 @@
<form-col :span="span" label="渠道名称" prop="name"> <form-col :span="span" label="渠道名称" prop="name">
<el-input v-model="form.name" placeholder="请输入渠道名称" disabled readonly/> <el-input v-model="form.name" placeholder="请输入渠道名称" disabled readonly/>
</form-col> </form-col>
<form-col :span="span" label="图片" prop="picture">
<image-upload v-model="form.picture" :limit="1"/>
</form-col>
<form-col :span="span" label="启用充值" prop="enabled"> <form-col :span="span" label="启用充值" prop="enabled">
<el-switch v-model="form.enabled" /> <el-switch v-model="form.enabled" />
</form-col> </form-col>