优化用户状态编辑
This commit is contained in:
@@ -1,39 +1,42 @@
|
||||
'use strict'
|
||||
"use strict";
|
||||
// Template version: 1.2.5
|
||||
// see http://vuejs-templates.github.io/webpack for documentation.
|
||||
|
||||
const path = require('path')
|
||||
const devEnv = require('./dev.env')
|
||||
const path = require("path");
|
||||
const devEnv = require("./dev.env");
|
||||
|
||||
module.exports = {
|
||||
dev: {
|
||||
// Paths
|
||||
assetsSubDirectory: 'static',
|
||||
assetsPublicPath: '/',
|
||||
assetsSubDirectory: "static",
|
||||
assetsPublicPath: "/",
|
||||
// 代理列表, 是否开启代理通过[./dev.env.js]配置
|
||||
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
|
||||
'/czg': {
|
||||
proxyTable:
|
||||
devEnv.OPEN_PROXY === false
|
||||
? {}
|
||||
: {
|
||||
"/czg": {
|
||||
// target: 'http://192.168.0.132:8100/czg/',
|
||||
// target: 'https://duanjuadmin.xianmxkj.com/czg/',
|
||||
target: 'http://127.0.0.1/czg/',
|
||||
target: "http://127.0.0.1/czg/",
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/czg': ''
|
||||
"^/czg": ""
|
||||
}
|
||||
},
|
||||
'/weixin': {
|
||||
target: 'https://api.weixin.qq.com/',
|
||||
"/weixin": {
|
||||
target: "https://api.weixin.qq.com/",
|
||||
// target: 'https://duanjuadmin.xianmxkj.com/czg/',
|
||||
// target: 'http://127.0.0.1/czg/',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/weixin': ''
|
||||
"^/weixin": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// Various Dev Server settings
|
||||
host: 'localhost', // can be overwritten by process.env.HOST
|
||||
host: "localhost", // can be overwritten by process.env.HOST
|
||||
port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
||||
autoOpenBrowser: true,
|
||||
errorOverlay: true,
|
||||
@@ -53,7 +56,7 @@ module.exports = {
|
||||
*/
|
||||
|
||||
// https://webpack.js.org/configuration/devtool/#development
|
||||
devtool: 'eval-source-map',
|
||||
devtool: "eval-source-map",
|
||||
|
||||
// If you have problems debugging vue-files in devtools,
|
||||
// set this to false - it *may* help
|
||||
@@ -65,18 +68,18 @@ module.exports = {
|
||||
// (https://github.com/webpack/css-loader#sourcemaps)
|
||||
// In our experience, they generally work as expected,
|
||||
// just be aware of this issue when enabling this option.
|
||||
cssSourceMap: false,
|
||||
cssSourceMap: false
|
||||
},
|
||||
|
||||
build: {
|
||||
// publicPath: '/admin/',
|
||||
// Template for index.html
|
||||
index: path.resolve(__dirname, '../dist/index.html'),
|
||||
index: path.resolve(__dirname, "../dist/index.html"),
|
||||
|
||||
// Paths
|
||||
assetsRoot: path.resolve(__dirname, '../dist'),
|
||||
assetsSubDirectory: 'static',
|
||||
assetsPublicPath: './',
|
||||
assetsRoot: path.resolve(__dirname, "../dist"),
|
||||
assetsSubDirectory: "static",
|
||||
assetsPublicPath: "./",
|
||||
|
||||
/**
|
||||
* Source Maps
|
||||
@@ -84,14 +87,14 @@ module.exports = {
|
||||
|
||||
productionSourceMap: false,
|
||||
// https://webpack.js.org/configuration/devtool/#production
|
||||
devtool: '#source-map',
|
||||
devtool: "#source-map",
|
||||
|
||||
// Gzip off by default as many popular static hosts such as
|
||||
// Surge or Netlify already gzip all static assets for you.
|
||||
// Before setting to `true`, make sure to:
|
||||
// npm install --save-dev compression-webpack-plugin
|
||||
productionGzip: false,
|
||||
productionGzipExtensions: ['js', 'css'],
|
||||
productionGzipExtensions: ["js", "css"],
|
||||
|
||||
// Run the build command with an extra argument to
|
||||
// View the bundle analyzer report after build finishes:
|
||||
@@ -99,4 +102,4 @@ module.exports = {
|
||||
// Set to `true` or `false` to always turn it on or off
|
||||
bundleAnalyzerReport: process.env.npm_config_report
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -4,8 +4,8 @@ export const productUrl='dj-admin';
|
||||
// const baseUrl = "http://192.168.1.7:8100/czg/"
|
||||
// const baseUrl = "https://api.tianjinzhitongdaohe.com/czg/"
|
||||
|
||||
const baseUrl = "https://web-api.hnsiyao.cn/czg/" //测试
|
||||
// const baseUrl = "https://web.hnsiyao.cn/czg/" // 线上
|
||||
// const baseUrl = "https://web-api.hnsiyao.cn/czg/" //测试
|
||||
const baseUrl = "https://web.hnsiyao.cn/czg/" // 线上
|
||||
|
||||
export default{
|
||||
baseUrl
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</td>
|
||||
<th>钱包</th>
|
||||
<td class="border-rt">
|
||||
{{qianbao.money}}金币
|
||||
{{ qianbao.money }}金币
|
||||
<el-button size="mini" :disabled="!isAuth('userList:updateQb')"
|
||||
style="color: #4f9dec;background: #fff;border: none;" @click="rechargenone(1)">
|
||||
修改</el-button>
|
||||
@@ -69,9 +69,8 @@
|
||||
</td>
|
||||
<th>图像</th>
|
||||
<td class="border-rt">
|
||||
<img
|
||||
:src="tableData.avatar ? tableData.avatar : $http.adornUrlUp('logo.png')"
|
||||
width="80" height="80" />
|
||||
<img :src="tableData.avatar ? tableData.avatar : $http.adornUrlUp('logo.png')" width="80"
|
||||
height="80" />
|
||||
<el-button size="mini" :disabled="!isAuth('userList:update')"
|
||||
style="color: #4f9dec;background: #fff;border: none;" @click="ageChangeU(tableData)">
|
||||
修改</el-button>
|
||||
@@ -93,9 +92,9 @@
|
||||
<tr>
|
||||
<th>是否是会员</th>
|
||||
<td>
|
||||
{{ tableData.member==2?'是':'否' }}
|
||||
{{ tableData.member == 2 ? '是' : '否' }}
|
||||
<el-button size="mini" type="warning" @click="updateVip(tableData)"
|
||||
:disabled="!isAuth('userList:updateVip')" v-if="tableData.member!=2">设置会员</el-button>
|
||||
:disabled="!isAuth('userList:updateVip')" v-if="tableData.member != 2">设置会员</el-button>
|
||||
<el-button size="mini" type="warning" @click="quxiaoVip(tableData)"
|
||||
:disabled="!isAuth('userList:updateVip')" v-else plain>取消会员
|
||||
</el-button>
|
||||
@@ -104,17 +103,15 @@
|
||||
<td>
|
||||
{{ tableData.rate }}
|
||||
<el-button size="mini" :disabled="!isAuth('userList:updatebl')"
|
||||
style="color: #4f9dec;background: #fff;border: none;" @click="xiugai(tableData,'rate')">
|
||||
style="color: #4f9dec;background: #fff;border: none;" @click="xiugai(tableData, 'rate')">
|
||||
修改</el-button>
|
||||
</span>
|
||||
</td>
|
||||
<th>二级推广收益比例</th>
|
||||
<td class="border-rt">
|
||||
{{ tableData.twoRate }}
|
||||
<el-button size="mini" :disabled="!isAuth('userList:updatebl')"
|
||||
style="color: #4f9dec;background: #fff;border: none;" @click="xiugai(tableData,'twoRate')">
|
||||
style="color: #4f9dec;background: #fff;border: none;" @click="xiugai(tableData, 'twoRate')">
|
||||
修改</el-button>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -124,10 +121,10 @@
|
||||
<td>{{ tableData.zhifubao ? tableData.zhifubao : '未绑定' }}</td>
|
||||
<th>用户状态</th>
|
||||
<td class="border-rt">
|
||||
<span v-if="tableData.status == 1 ">正常</span>
|
||||
<span v-if="tableData.status == 2 " style="color: #f56c6c;">禁用</span>
|
||||
<span style="color: #4f9dec;cursor:pointer;"
|
||||
@click="stateChange(tableData)">更改状态</span>
|
||||
<span v-if="tableData.status == 0" style="color: #f56c6c;">拉黑</span>
|
||||
<span v-if="tableData.status == 1">正常</span>
|
||||
<span v-if="tableData.status == 2" style="color: #f56c6c;">禁用</span>
|
||||
<span style="color: #4f9dec;cursor:pointer;" @click="stateChange(tableData)">更改状态</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -137,24 +134,23 @@
|
||||
<td>{{ tableData.dyOpenId }}</td>
|
||||
<th>渠道码</th>
|
||||
<td class="border-rt">
|
||||
{{tableData.qdCode}}
|
||||
<el-button size="mini" type="warning" plain
|
||||
@click="ageChangeMm(tableData)">修改
|
||||
{{ tableData.qdCode }}
|
||||
<el-button size="mini" type="warning" plain @click="ageChangeMm(tableData)">修改
|
||||
</el-button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="border-bt">会员类型</th>
|
||||
<td class="border-bt">
|
||||
<span v-if="tableData.vipType==2">充值会员</span>
|
||||
<span v-else-if="tableData.vipType==1">赠送会员</span>
|
||||
<span v-if="tableData.vipType == 2">充值会员</span>
|
||||
<span v-else-if="tableData.vipType == 1">赠送会员</span>
|
||||
<!-- <span v-else-if="tableData.vipType==3">卡密</span>
|
||||
<span v-else-if="tableData.vipType==4">系统赠送</span> -->
|
||||
<span v-else>-</span>
|
||||
</td>
|
||||
<th class="border-bt">是否是新用户</th>
|
||||
<td class="border-bt">
|
||||
<span v-if="tableData.isNewUser==1">是</span>
|
||||
<span v-if="tableData.isNewUser == 1">是</span>
|
||||
<span v-else>否</span>
|
||||
</td>
|
||||
<th class="border-bt"></th>
|
||||
@@ -186,49 +182,48 @@
|
||||
<template slot-scope="scope">
|
||||
<img :src="scope.row.titleImg" width="40" height="40" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" label="名称" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="house" label="户型" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="area" label="大小" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="price" label="价格" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="address" label="地址" width="200">
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="详情" width="200">
|
||||
</el-table-column>
|
||||
<el-table-column prop="titleImg" label="详情图" width="180">
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" label="名称" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="house" label="户型" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="area" label="大小" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="price" label="价格" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="address" label="地址" width="200">
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="详情" width="200">
|
||||
</el-table-column>
|
||||
<el-table-column prop="titleImg" label="详情图" width="180">
|
||||
<template slot-scope="scope">
|
||||
<img v-for="(item,index) in scope.row.imgs" :key="index" :src="item" width="40"
|
||||
height="40" @click="refund(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="phone" label="联系电话" width="140">
|
||||
</el-table-column>
|
||||
<el-table-column prop="contactNum" label="联系次数" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="classifyId" label="分类">
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="phone" label="联系电话" width="140">
|
||||
</el-table-column>
|
||||
<el-table-column prop="contactNum" label="联系次数" width="100">
|
||||
</el-table-column>
|
||||
<el-table-column prop="classifyId" label="分类">
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #4f9dec;" v-if="scope.row.status === 0 ">待审核</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.status === 1 ">上架</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.status === 2 ">下架</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.status === 3 ">驳回</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" width="180">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center;margin-top: 10px;">
|
||||
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
|
||||
:page-sizes="[5, 10, 15, 20]" :page-size="limit" :current-page="page"
|
||||
layout="total,sizes, prev, pager, next,jumper" :total="userData.total">
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" width="180">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center;margin-top: 10px;">
|
||||
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1" :page-sizes="[5, 10, 15, 20]"
|
||||
:page-size="limit" :current-page="page" layout="total,sizes, prev, pager, next,jumper" :total="userData.total">
|
||||
</el-pagination>
|
||||
</div>
|
||||
</el-tab-pane> -->
|
||||
</div>
|
||||
</el-tab-pane> -->
|
||||
<el-tab-pane label="提现记录" name="sixth">
|
||||
<el-table v-loading="tableDataLoading" :data="withdrawData.list">
|
||||
<el-table-column prop="id" label="编号" width="80"></el-table-column>
|
||||
@@ -244,9 +239,9 @@
|
||||
<el-table-column prop="createAt" label="创建时间"></el-table-column>
|
||||
<el-table-column fixed="right" prop="state" label="状态" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #4f9dec;" v-if="scope.row.state === -1 ">已退款</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.state === 0 ">待转账</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.state === 1 ">已到账</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.state === -1">已退款</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.state === 0">待转账</span>
|
||||
<span style="color: #4f9dec;" v-if="scope.row.state === 1">已到账</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -264,7 +259,7 @@
|
||||
<el-table-column prop="content" label="内容"></el-table-column>
|
||||
<el-table-column prop="money" label="金币" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #009900;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
|
||||
<span style="color: #009900;" v-if="scope.row.type == 1">+ {{ scope.row.money }}</span>
|
||||
<span style="color: #f56c6c;" v-else>- {{ scope.row.money }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -284,7 +279,7 @@
|
||||
<el-table-column prop="content" label="内容"></el-table-column>
|
||||
<el-table-column prop="money" label="金币" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #009900;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
|
||||
<span style="color: #009900;" v-if="scope.row.type == 1">+ {{ scope.row.money }}</span>
|
||||
<span style="color: #f56c6c;" v-else>- {{ scope.row.money }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -300,12 +295,12 @@
|
||||
<el-tab-pane label="充值明细" name="seventh">
|
||||
<div style="display: inline-block;">
|
||||
<span>开始时间:</span>
|
||||
<el-date-picker style="width: 160px;margin-left: 10px;" v-model="startTime" align="right"
|
||||
type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
|
||||
<el-date-picker style="width: 160px;margin-left: 10px;" v-model="startTime" align="right" type="datetime"
|
||||
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
|
||||
</el-date-picker>
|
||||
<span>截止时间:</span>
|
||||
<el-date-picker style="width: 160px;margin-left: 10px;" v-model="endTime" align="right"
|
||||
type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
|
||||
<el-date-picker style="width: 160px;margin-left: 10px;" v-model="endTime" align="right" type="datetime"
|
||||
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
|
||||
</el-date-picker>
|
||||
<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="timeDate2">
|
||||
查询</el-button>
|
||||
@@ -354,7 +349,7 @@
|
||||
<el-table-column prop="content" label="内容"></el-table-column>
|
||||
<el-table-column prop="money" label="积分" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #009900;" v-if="scope.row.type==1">+ {{ scope.row.num }}</span>
|
||||
<span style="color: #009900;" v-if="scope.row.type == 1">+ {{ scope.row.num }}</span>
|
||||
<span style="color: #f56c6c;" v-else>- {{ scope.row.num }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -369,46 +364,46 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="我的订单" name="ninth">
|
||||
<el-table v-loading="tableDataLoading" :data="sendData.list">
|
||||
<el-table-column fixed prop = "ordersId" label = "编号" width = "80"></el-table-column>
|
||||
<el-table-column prop = "ordersNo" label = "订单编号" width = "180"></el-table-column>
|
||||
<el-table-column prop = "title" label = "购买短剧/会员等级" width = "180" align="center">
|
||||
<template slot-scope = "scope">
|
||||
<span v-if = "scope.row.ordersType == 1">{{scope.row.title}}</span>
|
||||
<span v-if = "scope.row.ordersType == 2 && scope.row.vipNameType==0">月卡</span>
|
||||
<span v-if = "scope.row.ordersType == 2 && scope.row.vipNameType==1">季卡</span>
|
||||
<span v-if = "scope.row.ordersType == 2 && scope.row.vipNameType==2">年卡</span>
|
||||
<el-table-column fixed prop="ordersId" label="编号" width="80"></el-table-column>
|
||||
<el-table-column prop="ordersNo" label="订单编号" width="180"></el-table-column>
|
||||
<el-table-column prop="title" label="购买短剧/会员等级" width="180" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.ordersType == 1">{{ scope.row.title }}</span>
|
||||
<span v-if="scope.row.ordersType == 2 && scope.row.vipNameType == 0">月卡</span>
|
||||
<span v-if="scope.row.ordersType == 2 && scope.row.vipNameType == 1">季卡</span>
|
||||
<span v-if="scope.row.ordersType == 2 && scope.row.vipNameType == 2">年卡</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop = "ordersType" label = "订单类型" width = "120">
|
||||
<template slot-scope = "scope">
|
||||
<span v-if = "scope.row.ordersType == 1">短剧</span>
|
||||
<span v-if = "scope.row.ordersType == 2">会员</span>
|
||||
<el-table-column prop="ordersType" label="订单类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.ordersType == 1">短剧</span>
|
||||
<span v-if="scope.row.ordersType == 2">会员</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop = "payWay" label = "支付方式" width = "120">
|
||||
<template slot-scope = "scope">
|
||||
<span v-if = "scope.row.payWay == null">暂无</span>
|
||||
<span v-if = "scope.row.payWay == 1">微信小程序</span>
|
||||
<span v-if = "scope.row.payWay == 2">微信公众号</span>
|
||||
<span v-if = "scope.row.payWay == 3">微信APP</span>
|
||||
<span v-if = "scope.row.payWay == 4">支付宝</span>
|
||||
<span v-if = "scope.row.payWay == 5">会员免费</span>
|
||||
<span v-if = "scope.row.payWay == 6">零钱</span>
|
||||
<span v-if = "scope.row.payWay == 7">苹果</span>
|
||||
<el-table-column prop="payWay" label="支付方式" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.payWay == null">暂无</span>
|
||||
<span v-if="scope.row.payWay == 1">微信小程序</span>
|
||||
<span v-if="scope.row.payWay == 2">微信公众号</span>
|
||||
<span v-if="scope.row.payWay == 3">微信APP</span>
|
||||
<span v-if="scope.row.payWay == 4">支付宝</span>
|
||||
<span v-if="scope.row.payWay == 5">会员免费</span>
|
||||
<span v-if="scope.row.payWay == 6">零钱</span>
|
||||
<span v-if="scope.row.payWay == 7">苹果</span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop = "payMoney" label = "金额" width = "120"></el-table-column>
|
||||
<el-table-column prop = "status" label = "状态" width="80">
|
||||
<template slot-scope = "scope">
|
||||
<span v-if = "scope.row.status == null">待支付</span>
|
||||
<span v-if = "scope.row.status == 0">待支付</span>
|
||||
<span v-if = "scope.row.status == 1">已支付</span>
|
||||
<span v-if = "scope.row.status == 2">已退款</span>
|
||||
<el-table-column prop="payMoney" label="金额" width="120"></el-table-column>
|
||||
<el-table-column prop="status" label="状态" width="80">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.status == null">待支付</span>
|
||||
<span v-if="scope.row.status == 0">待支付</span>
|
||||
<span v-if="scope.row.status == 1">已支付</span>
|
||||
<span v-if="scope.row.status == 2">已退款</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop = "refundContent" label = "退款原因" ></el-table-column>
|
||||
<el-table-column prop = "createTime" label = "创建时间" width = "200" ></el-table-column>
|
||||
<el-table-column prop="refundContent" label="退款原因"></el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" width="200"></el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center;margin-top: 10px;">
|
||||
<el-pagination @size-change="handleSizeChange5" @current-change="handleCurrentChange5"
|
||||
@@ -481,7 +476,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="courseClassification" label="短剧分类" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.courseClassification">{{scope.row.courseClassification.classificationName}}</span>
|
||||
<span v-if="scope.row.courseClassification">{{ scope.row.courseClassification.classificationName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="图片" width="120">
|
||||
@@ -514,7 +509,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="courseClassification" label="短剧分类" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.courseClassification">{{scope.row.courseClassification.classificationName}}</span>
|
||||
<span v-if="scope.row.courseClassification">{{ scope.row.courseClassification.classificationName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="图片" width="120">
|
||||
@@ -548,7 +543,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="courseClassification" label="短剧分类" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.courseClassification">{{scope.row.courseClassification.classificationName}}</span>
|
||||
<span v-if="scope.row.courseClassification">{{ scope.row.courseClassification.classificationName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="图片" width="120">
|
||||
@@ -566,8 +561,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="over" label="状态" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.over==1">已完结</span>
|
||||
<span v-else>更新{{scope.row.courseDetailsCount}}集</span>
|
||||
<span v-if="scope.row.over == 1">已完结</span>
|
||||
<span v-else>更新{{ scope.row.courseDetailsCount }}集</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="updateTime" label="更新时间">
|
||||
@@ -601,14 +596,14 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="我的团队" name="yaoqing">
|
||||
<el-table v-loading="tableDataLoading" :data="yaoqingData.list">
|
||||
<el-table-column prop="courseId" label="编号"width="120">
|
||||
<el-table-column prop="courseId" label="编号" width="120">
|
||||
<template slot-scope="scope">
|
||||
<div>{{scope.$index+1}}</div>
|
||||
<div>{{ scope.$index + 1 }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="userName" label="用户昵称" width="250">
|
||||
<template slot-scope="scope">
|
||||
<span style="color: #4f9dec;" @click="updates(scope.row)">{{scope.row.userName}}</span>
|
||||
<span style="color: #4f9dec;" @click="updates(scope.row)">{{ scope.row.userName }}</span>
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
@@ -667,12 +662,12 @@
|
||||
<el-radio :label="2">减少</el-radio>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;" v-if="typeIndex==1">
|
||||
<div style="margin-bottom: 10px;" v-if="typeIndex == 1">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">金币:</span>
|
||||
<el-input style="width:50%;" v-model="money" type="number" :min="0" :max="100" :controls="false"
|
||||
placeholder="请输入金币"></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;" v-if="typeIndex==2">
|
||||
<div style="margin-bottom: 10px;" v-if="typeIndex == 2">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">金额:</span>
|
||||
<el-input style="width:50%;" v-model="money" type="number" :min="0" :max="100" :controls="false"
|
||||
placeholder="请输入金额"></el-input>
|
||||
@@ -737,12 +732,11 @@
|
||||
</div> -->
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">图像:</span>
|
||||
<div style="display: inline-block;width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
|
||||
<el-upload class="avatar-uploader" v-model="avatarU"
|
||||
:action="$http.adornUrl('alioss/upload')" :show-file-list="false"
|
||||
:on-success="handleAvatarSuccess1">
|
||||
<img v-if="avatarU" :src="avatarU" class="avatar"
|
||||
style="width: 148px;height: 148px;" />
|
||||
<div
|
||||
style="display: inline-block;width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
|
||||
<el-upload class="avatar-uploader" v-model="avatarU" :action="$http.adornUrl('alioss/upload')"
|
||||
:show-file-list="false" :on-success="handleAvatarSuccess1">
|
||||
<img v-if="avatarU" :src="avatarU" class="avatar" style="width: 148px;height: 148px;" />
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i>
|
||||
</el-upload>
|
||||
</div>
|
||||
@@ -760,8 +754,7 @@
|
||||
</div> -->
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">渠道码:</span>
|
||||
<el-input style="width:50%;" v-model="age" type="text" :controls="false"
|
||||
placeholder="请输入渠道码"></el-input>
|
||||
<el-input style="width:50%;" v-model="age" type="text" :controls="false" placeholder="请输入渠道码"></el-input>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisibleMm = false">取 消</el-button>
|
||||
@@ -776,8 +769,7 @@
|
||||
</div> -->
|
||||
<div style="margin-bottom: 10px;">
|
||||
<span style="width: 200px;display: inline-block;text-align: right;">新密码:</span>
|
||||
<el-input style="width:50%;" v-model="age" type="text" :controls="false"
|
||||
placeholder="请输入新密码"></el-input>
|
||||
<el-input style="width:50%;" v-model="age" type="text" :controls="false" placeholder="请输入新密码"></el-input>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisibleMima = false">取 消</el-button>
|
||||
@@ -785,6 +777,35 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-tabs>
|
||||
<el-dialog title="账号状态" :visible.sync="userStatusDialog">
|
||||
<el-form :model="userStatusForm" :rules="userStatusFormFules" label-width="80px">
|
||||
<el-form-item label="用户编号">
|
||||
<span>{{ userStatusRow.userId }}</span>
|
||||
<!-- <el-input v-model="userStatusRow.userId" disabled></el-input> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="用户昵称">
|
||||
<span>{{ userStatusRow.userName }}</span>
|
||||
<!-- <el-input v-model="userStatusRow.userName" disabled></el-input> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="手机号">
|
||||
<span>{{ userStatusRow.phone }}</span>
|
||||
<!-- <el-input v-model="userStatusRow.phone" disabled></el-input> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="账号状态" prop="status">
|
||||
<el-radio-group v-model="userStatusForm.status" horizontal>
|
||||
<el-radio :label="0">拉黑</el-radio>
|
||||
<el-radio :label="1">正常</el-radio>
|
||||
<el-radio :label="2">禁用</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="userStatusDialog = false">取消</el-button>
|
||||
<el-button type="primary" :loading="userStatusFormLoading" @click="userStatusHandle">
|
||||
确定
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -792,6 +813,19 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
userStatusDialog: false,
|
||||
userStatusRow: '',
|
||||
userStatusForm: {
|
||||
status: 1
|
||||
},
|
||||
userStatusFormFules: {
|
||||
status: [{
|
||||
required: true,
|
||||
message: '请选择账号状态',
|
||||
trigger: 'change'
|
||||
}]
|
||||
},
|
||||
userStatusFormLoading: false,
|
||||
openValue: 1,
|
||||
closeValue: 0,
|
||||
state: 0,
|
||||
@@ -1125,7 +1159,7 @@ export default {
|
||||
});
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
}
|
||||
},
|
||||
// 不可提现金额充值
|
||||
@@ -1265,8 +1299,49 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 改变用户状态
|
||||
userStatusHandle() {
|
||||
this.userStatusFormLoading = true
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`user/updateUserStatusByUserId?userId=${this.userStatusRow.userId}&status=${this.userStatusForm.status}`),
|
||||
method: 'get'
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
this.userStatusFormLoading = false
|
||||
if (data.code == 0) {
|
||||
this.userStatusDialog = false
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
})
|
||||
this.dataSelect()
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'error',
|
||||
duration: 1500,
|
||||
})
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.userStatusFormLoading = false
|
||||
this.$message({
|
||||
message: err.mes,
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
})
|
||||
})
|
||||
},
|
||||
// 更改状态
|
||||
stateChange(row) {
|
||||
console.log("row", row);
|
||||
this.userStatusRow = { ...row };
|
||||
this.userStatusDialog = true;
|
||||
this.userStatusForm.status = row.status;
|
||||
return
|
||||
|
||||
|
||||
let userId = this.$route.query.userId;
|
||||
if (row.status == 1) {
|
||||
var status = 2;
|
||||
@@ -1297,7 +1372,7 @@ export default {
|
||||
});
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
},
|
||||
// 获取数据列表
|
||||
dataSelect() {
|
||||
@@ -1638,7 +1713,7 @@ export default {
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {},
|
||||
onClose: () => { },
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1703,7 +1778,7 @@ export default {
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {},
|
||||
onClose: () => { },
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1783,7 +1858,7 @@ export default {
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {},
|
||||
onClose: () => { },
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1858,7 +1933,7 @@ export default {
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {},
|
||||
onClose: () => { },
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1918,7 +1993,7 @@ export default {
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {},
|
||||
onClose: () => { },
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1926,12 +2001,12 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.activeName = this.$route.query.active;
|
||||
if(this.activeName == "yaoqing") {
|
||||
if (this.activeName == "yaoqing") {
|
||||
this.limit = 10;
|
||||
this.page = 1;
|
||||
this.state = 0;
|
||||
this.yaoqingSelect();
|
||||
} else if(this.activeName == "sixth") {
|
||||
} else if (this.activeName == "sixth") {
|
||||
this.limit = 10;
|
||||
this.page = 1;
|
||||
this.withdrawSelect();
|
||||
@@ -1939,7 +2014,7 @@ export default {
|
||||
}
|
||||
this.dataSelect();
|
||||
},
|
||||
// watch:{
|
||||
// watch:{
|
||||
// '$route.query'(val, oldVal){
|
||||
// console.log(val,'debug')
|
||||
// if (val == "first") {
|
||||
@@ -1953,7 +2028,7 @@ export default {
|
||||
// this.yaoqingSelect();
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user