Browse Source

feature-img-1.0:优化代码

master
chengkun 4 years ago
parent
commit
f39b2e5f06
  1. 38
      src/views/img/creator/index.vue
  2. 2
      src/views/img/creatorProfit/index.vue
  3. 9
      src/views/img/withdraw/index.vue

38
src/views/img/creator/index.vue

@ -112,21 +112,22 @@
</el-table-column>
<el-table-column label="搜索码" align="center" key="scanCode" prop="scanCode" v-if="columns[3].visible"/>
<el-table-column label="手机号" align="center" key="phone" prop="phone" v-if="columns[4].visible" width="120" />
<el-table-column label="简介" align="center" key="intro" prop="intro" v-if="columns[5].visible" :show-overflow-tooltip="true" />
<el-table-column label="邀请码" align="center" key="inviteCode" prop="inviteCode" v-if="columns[6].visible" />
<el-table-column label="三方平台账号地址" align="center" key="url" prop="url" v-if="columns[7].visible" :show-overflow-tooltip="true" width="160" />
<el-table-column label="状态" align="center" key="status" prop="status" v-if="columns[8].visible" width="120">
<el-table-column label="余额" align="center" key="amt" prop="amt" v-if="columns[5].visible" width="120" />
<el-table-column label="简介" align="center" key="intro" prop="intro" v-if="columns[6].visible" :show-overflow-tooltip="true" />
<el-table-column label="邀请码" align="center" key="inviteCode" prop="inviteCode" v-if="columns[7].visible" />
<el-table-column label="三方平台账号地址" align="center" key="url" prop="url" v-if="columns[8].visible" :show-overflow-tooltip="true" width="160" />
<el-table-column label="状态" align="center" key="status" prop="status" v-if="columns[9].visible" width="120">
<template slot-scope="scope">
{{scope.row.status == '0' ? '待审核' : scope.row.status == '1' ? "审核通过": scope.row.status == '2' ? "审核拒绝":''}}
</template>
</el-table-column>
<el-table-column label="是否活跃" align="center" key="isHot" prop="isHot" v-if="columns[9].visible">
<el-table-column label="是否活跃" align="center" key="isHot" prop="isHot" v-if="columns[10].visible">
<template slot-scope="scope">
{{scope.row.isHot == '0' ? "否" : scope.row.isHot == '1' ? "是":''}}
</template>
</el-table-column>
<el-table-column label="序号" align="center" key="sort" prop="sort" v-if="columns[10].visible" :show-overflow-tooltip="true" />
<el-table-column label="是否显示" align="center" key="isShow" v-if="columns[11].visible">
<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="isShow" v-if="columns[12].visible">
<template slot-scope="scope">
<el-switch
v-model="scope.row.isShow"
@ -136,12 +137,12 @@
></el-switch>
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[12].visible" width="160">
<el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[13].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[13].visible" width="160">
<el-table-column label="更新时间" align="center" prop="updateTime" v-if="columns[14].visible" width="160">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.updateTime) }}</span>
</template>
@ -361,15 +362,16 @@ export default {
{ key: 2, label: `头像地址`, visible: true },
{ key: 3, label: `搜索码`, visible: true },
{ 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: 13, 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: 13, label: `创建时间`, visible: true },
{ key: 14, label: `更新时间`, visible: true }
],
//
rules: {

2
src/views/img/creatorProfit/index.vue

@ -115,7 +115,7 @@
<el-table v-loading="loading" :data="creatorProfitList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center" />
<el-table-column label="编号" align="center" key="id" prop="id" v-if="columns[0].visible" />
<el-table-column label="结算流水号" align="center" key="orderNo" prop="orderNo" v-if="columns[1].visible" :show-overflow-tooltip="true" width="150"/>
<el-table-column label="结算流水号" align="center" key="orderNo" prop="orderNo" v-if="columns[1].visible" width="190"/>
<el-table-column label="艺术家id" align="center" key="creatorId" prop="creatorId" v-if="columns[2].visible" :show-overflow-tooltip="true" />
<el-table-column label="搜索码" align="center" key="scanCode" prop="scanCode" v-if="columns[3].visible" :show-overflow-tooltip="true" />
<el-table-column label="图片" align="center" key="img" prop="img" v-if="columns[4].visible" width="120">

9
src/views/img/withdraw/index.vue

@ -62,7 +62,7 @@
<el-table-column label="提现金额" align="center" key="amt" prop="amt" v-if="columns[3].visible" />
<el-table-column label="银行卡" align="center" key="bankNo" prop="bankNo" v-if="columns[4].visible" width="170"/>
<el-table-column label="支付宝手机号" align="center" key="phone" prop="phone" v-if="columns[5].visible" width="140"/>
<el-table-column label="审核理由" align="center" key="reason" prop="reason" v-if="columns[6].visible" width="120"/>
<el-table-column label="审核理由" align="center" key="reason" prop="reason" v-if="columns[6].visible" :show-overflow-tooltip="true" width="120"/>
<el-table-column label="渠道" align="center" key="channel" prop="channel" v-if="columns[7].visible">
<template slot-scope="scope">
{{scope.row.channel == '0' ? "微信" : scope.row.channel == '1' ? "银行卡": scope.row.channel == '2' ? "支付宝" : ''}}
@ -70,7 +70,7 @@
</el-table-column>
<el-table-column label="状态" align="center" key="status" prop="status" v-if="columns[8].visible">
<template slot-scope="scope">
{{scope.row.status == '0' ? "待审核" : scope.row.status == '1' ? "提现": scope.row.status == '2' ? "提现成功": scope.row.status == '3' ? "提现失败": scope.row.status == '4' ? "审核拒绝": ''}}
{{scope.row.status == '0' ? "待审核" : scope.row.status == '1' ? "提现异常": scope.row.status == '2' ? "提现成功": scope.row.status == '3' ? "提现失败": scope.row.status == '4' ? "审核拒绝": ''}}
</template>
</el-table-column>
<el-table-column label="排序" align="center" key="sort" prop="sort" v-if="columns[9].visible"/>
@ -229,9 +229,10 @@ export default {
//
status: [
{ value: '0', label: '待审核'},
{ value: '1', label: '提现'},
{ value: '1', label: '提现异常'},
{ value: '2', label: '提现成功'},
{ value: '3', label: '提现失败'}
{ value: '3', label: '提现失败'},
{ value: '4', label: '审核拒绝'}
],
//
queryParams: {

Loading…
Cancel
Save