feat(member): 移除无用字段
This commit is contained in:
parent
e9f3959f80
commit
2f946f34f4
|
@ -7,14 +7,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="topbox">
|
<div class="topbox">
|
||||||
<div
|
<div
|
||||||
class="levelList_i"
|
|
||||||
:class="tabActive == item.path ? 'act' : ''"
|
|
||||||
v-for="(item, index) in topList"
|
v-for="(item, index) in topList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click.prevent="handleLink(item)"
|
class="levelList_i"
|
||||||
|
:class="tabActive == item.path ? 'act' : ''"
|
||||||
:style="
|
:style="
|
||||||
waitApprovalNum || receiveApprovalNum ? { marginTop: '12px' } : {}
|
waitApprovalNum || receiveApprovalNum ? { marginTop: '12px' } : {}
|
||||||
"
|
"
|
||||||
|
@click.prevent="handleLink(item)"
|
||||||
>
|
>
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
<span v-if="waitApprovalNum && item.name == '代办'" class="badge">{{
|
<span v-if="waitApprovalNum && item.name == '代办'" class="badge">{{
|
||||||
|
@ -23,8 +23,7 @@
|
||||||
<span
|
<span
|
||||||
v-if="receiveApprovalNum && item.name == '抄送查阅/操作'"
|
v-if="receiveApprovalNum && item.name == '抄送查阅/操作'"
|
||||||
class="badge"
|
class="badge"
|
||||||
>{{ receiveApprovalNum }}</span
|
>{{ receiveApprovalNum }}</span>
|
||||||
>
|
|
||||||
<!-- <i
|
<!-- <i
|
||||||
v-show="isMouse == item.path && isMouse != tabActive"
|
v-show="isMouse == item.path && isMouse != tabActive"
|
||||||
@click.prevent="delItem(item.path)"
|
@click.prevent="delItem(item.path)"
|
||||||
|
@ -37,35 +36,35 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "topBar",
|
name: 'TopBar',
|
||||||
props: {
|
props: {
|
||||||
topList: {
|
topList: {
|
||||||
type: Array,
|
type: Array
|
||||||
},
|
},
|
||||||
moren: {
|
moren: {
|
||||||
type: String,
|
type: String
|
||||||
},
|
},
|
||||||
waitApprovalNum: {
|
waitApprovalNum: {
|
||||||
type: Number,
|
type: Number
|
||||||
},
|
},
|
||||||
receiveApprovalNum: {
|
receiveApprovalNum: {
|
||||||
type: Number,
|
type: Number
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tabActive: this.moren,
|
tabActive: this.moren
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleLink(item) {
|
handleLink(item) {
|
||||||
this.tabActive = item.path;
|
this.tabActive = item.path
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: item.path,
|
path: item.path
|
||||||
});
|
})
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
@ -8,52 +8,49 @@
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<topBar
|
<topBar
|
||||||
v-if="topList.length > 0"
|
v-if="topList.length > 0"
|
||||||
:topList="topList"
|
:top-list="topList"
|
||||||
:moren="moren"
|
:moren="moren"
|
||||||
></topBar>
|
/>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="maintop">
|
<div class="maintop">
|
||||||
<div class="mainbtn">
|
<div class="mainbtn">
|
||||||
<el-button size="mini" @click="openDig" class="thebtn1"
|
<el-button
|
||||||
>{{'添加'}}</el-button
|
size="mini"
|
||||||
>
|
class="thebtn1"
|
||||||
|
@click="openDig"
|
||||||
|
>{{ '添加' }}</el-button>
|
||||||
<el-button size="mini" class="thebtn2" @click="handleExport"> {{ '导出' }}</el-button>
|
<el-button size="mini" class="thebtn2" @click="handleExport"> {{ '导出' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
height="760px"
|
height="760px"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column align="center" prop="sort" label="显示顺序">
|
<el-table-column align="center" prop="sort" label="显示顺序" />
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="backgroundImg" :label="'背景图'">
|
<el-table-column align="center" prop="backgroundImg" :label="'背景图'">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img class="bgImg" :src="scope.row.backgroundImg" alt="" />
|
<img class="bgImg" :src="scope.row.backgroundImg" alt="">
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="pkCountry" :label="'国家'">
|
<el-table-column align="center" prop="pkCountry" :label="'国家'">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="tem">
|
<div class="tem">
|
||||||
<img :src="scope.row.nationalFlag2" alt="" />
|
<img :src="scope.row.nationalFlag2" alt="">
|
||||||
<!-- <div>{{ scope.row.pkCountryName }}</div> -->
|
<!-- <div>{{ scope.row.pkCountryName }}</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="accountName" label="账户名称">
|
<el-table-column align="center" prop="accountName" label="账户名称" />
|
||||||
</el-table-column>
|
<el-table-column align="center" prop="fieldValueVal" label="账户属性" />
|
||||||
<el-table-column align="center" prop="fieldValueVal" label="账户属性">
|
<el-table-column align="center" prop="accountFame" label="转化币种" />
|
||||||
</el-table-column>
|
<el-table-column align="center" prop="showStatusVal" label="显示隐藏" />
|
||||||
<el-table-column align="center" prop="accountFame" label="转化币种">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="showStatusVal" label="显示隐藏">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="isRegular" label="固定">
|
<el-table-column align="center" prop="isRegular" label="固定">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div :class="scope.row.isRegular ? 'isRed' : 'isGreen'">
|
<div :class="scope.row.isRegular ? 'isRed' : 'isGreen'">
|
||||||
|
@ -94,22 +91,19 @@
|
||||||
prop="onLineRechargeVal"
|
prop="onLineRechargeVal"
|
||||||
label="是否在线充值"
|
label="是否在线充值"
|
||||||
width="150"
|
width="150"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="effectiveDate"
|
prop="effectiveDate"
|
||||||
:label="'生效日期'"
|
:label="'生效日期'"
|
||||||
width="150"
|
width="150"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="creationTime"
|
prop="creationTime"
|
||||||
:label="'创建日期'"
|
:label="'创建日期'"
|
||||||
width="150"
|
width="150"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="time"
|
prop="time"
|
||||||
|
@ -118,10 +112,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@click="toFixed(scope.row.pkId)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #6962f6"
|
style="color: #6962f6"
|
||||||
|
@click="toFixed(scope.row.pkId)"
|
||||||
>
|
>
|
||||||
{{ '修改' }}
|
{{ '修改' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -157,116 +151,116 @@
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="账户名称" prop="accountName">
|
<el-form-item label="账户名称" prop="accountName">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.accountName"
|
v-model="form.accountName"
|
||||||
|
clearable
|
||||||
placeholder="请输入账户名称"
|
placeholder="请输入账户名称"
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" style="margin-left: 70px">
|
<el-col :span="10" style="margin-left: 70px">
|
||||||
<el-form-item label="账户属性" prop="fieldValue">
|
<el-form-item label="账户属性" prop="fieldValue">
|
||||||
<el-select clearable v-model="form.fieldValue">
|
<el-select v-model="form.fieldValue" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in pubEnumsAccountList"
|
v-for="item in pubEnumsAccountList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="显示顺序" prop="sort">
|
<el-form-item label="显示顺序" prop="sort">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.sort"
|
v-model="form.sort"
|
||||||
|
clearable
|
||||||
placeholder="请输入显示顺序"
|
placeholder="请输入显示顺序"
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" style="margin-left: 70px">
|
<el-col :span="10" style="margin-left: 70px">
|
||||||
<el-form-item label="币种转化" prop="pkBdAccount">
|
<el-form-item label="币种转化" prop="pkBdAccount">
|
||||||
<el-select clearable v-model="form.pkBdAccount">
|
<el-select v-model="form.pkBdAccount" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in pkBdAccountList"
|
v-for="item in pkBdAccountList"
|
||||||
:key="item.pkId"
|
:key="item.pkId"
|
||||||
:label="item.accountName"
|
:label="item.accountName"
|
||||||
:value="item.pkId"
|
:value="item.pkId"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="固定" prop="isRegular">
|
<el-form-item label="固定" prop="isRegular">
|
||||||
<el-select clearable v-model="form.isRegular">
|
<el-select v-model="form.isRegular" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in agreeList"
|
v-for="item in agreeList"
|
||||||
:key="item.val"
|
:key="item.val"
|
||||||
:label="item.text"
|
:label="item.text"
|
||||||
:value="item.val"
|
:value="item.val"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" style="margin-left: 70px">
|
<el-col :span="10" style="margin-left: 70px">
|
||||||
<el-form-item :label="'邮费'" prop="isPostage">
|
<el-form-item :label="'邮费'" prop="isPostage">
|
||||||
<el-select clearable v-model="form.isPostage">
|
<el-select v-model="form.isPostage" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in agreeList"
|
v-for="item in agreeList"
|
||||||
:key="item.val"
|
:key="item.val"
|
||||||
:label="item.text"
|
:label="item.text"
|
||||||
:value="item.val"
|
:value="item.val"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="转账" prop="isTransfer">
|
<el-form-item label="转账" prop="isTransfer">
|
||||||
<el-select clearable v-model="form.isTransfer">
|
<el-select v-model="form.isTransfer" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in agreeList"
|
v-for="item in agreeList"
|
||||||
:key="item.val"
|
:key="item.val"
|
||||||
:label="item.text"
|
:label="item.text"
|
||||||
:value="item.val"
|
:value="item.val"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" style="margin-left: 70px">
|
<el-col :span="10" style="margin-left: 70px">
|
||||||
<el-form-item label="提现" prop="isWithdrawal">
|
<el-form-item label="提现" prop="isWithdrawal">
|
||||||
<el-select clearable v-model="form.isWithdrawal">
|
<el-select v-model="form.isWithdrawal" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in agreeList"
|
v-for="item in agreeList"
|
||||||
:key="item.val"
|
:key="item.val"
|
||||||
:label="item.text"
|
:label="item.text"
|
||||||
:value="item.val"
|
:value="item.val"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item :label="'充值'" prop="isRecharge">
|
<el-form-item :label="'充值'" prop="isRecharge">
|
||||||
<el-select clearable v-model="form.isRecharge">
|
<el-select v-model="form.isRecharge" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in agreeList"
|
v-for="item in agreeList"
|
||||||
:key="item.val"
|
:key="item.val"
|
||||||
:label="item.text"
|
:label="item.text"
|
||||||
:value="item.val"
|
:value="item.val"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" style="margin-left: 70px">
|
<el-col :span="10" style="margin-left: 70px">
|
||||||
<el-form-item label="是否在线充值" prop="onLineRecharge">
|
<el-form-item label="是否在线充值" prop="onLineRecharge">
|
||||||
<el-select clearable v-model="form.onLineRecharge">
|
<el-select v-model="form.onLineRecharge" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in yesornoList"
|
v-for="item in yesornoList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -282,19 +276,18 @@
|
||||||
type="datetime"
|
type="datetime"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
:placeholder="'请选择'"
|
:placeholder="'请选择'"
|
||||||
>
|
/>
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" style="margin-left: 70px">
|
<el-col :span="10" style="margin-left: 70px">
|
||||||
<el-form-item label="是否显示" prop="showStatus">
|
<el-form-item label="是否显示" prop="showStatus">
|
||||||
<el-select clearable v-model="form.showStatus">
|
<el-select v-model="form.showStatus" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in yesornoList"
|
v-for="item in yesornoList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -306,41 +299,40 @@
|
||||||
style="margin-left: 40px"
|
style="margin-left: 40px"
|
||||||
class="submit"
|
class="submit"
|
||||||
@click="onSubmit('form')"
|
@click="onSubmit('form')"
|
||||||
>{{'确认'}}</el-button
|
>{{ '确认' }}</el-button>
|
||||||
>
|
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import * as api from "@/api/configManage.js";
|
import * as api from '@/api/configManage.js'
|
||||||
import {
|
import {
|
||||||
accountSave,
|
accountSave,
|
||||||
accountUpdate,
|
accountUpdate,
|
||||||
getpkBdAccountList,
|
getpkBdAccountList,
|
||||||
getPubEnumsAccount,
|
getPubEnumsAccount
|
||||||
} from "@/api/configManage";
|
} from '@/api/configManage'
|
||||||
import { userCountryList } from "@/api/user";
|
import { userCountryList } from '@/api/user'
|
||||||
import * as del from "@/api/delivery.js";
|
import * as del from '@/api/delivery.js'
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from '@/utils/auth'
|
||||||
import ImageUpload from "@/components/ImageUpload";
|
import ImageUpload from '@/components/ImageUpload'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Bzpz",
|
name: 'Bzpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar,
|
||||||
ImageUpload,
|
ImageUpload
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
isAgree(val, that) {
|
isAgree(val, that) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
return that.$t('ENU_POPUP_TYPE_1');
|
return that.$t('ENU_POPUP_TYPE_1')
|
||||||
} else {
|
} else {
|
||||||
return that.$t('ENU_POPUP_TYPE_2');
|
return that.$t('ENU_POPUP_TYPE_2')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -350,17 +342,17 @@ export default {
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50
|
||||||
},
|
},
|
||||||
addOrEdit: "",
|
addOrEdit: '',
|
||||||
total: 0,
|
total: 0,
|
||||||
showImg: true, // 默认展示
|
showImg: true, // 默认展示
|
||||||
noneUploadImg: false, //
|
noneUploadImg: false, //
|
||||||
openImg: false,
|
openImg: false,
|
||||||
openImgUrl: "",
|
openImgUrl: '',
|
||||||
uploadImgUrl: process.env.VUE_APP_BASE_API + "/system/upload",
|
uploadImgUrl: process.env.VUE_APP_BASE_API + '/system/upload',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: getToken(),
|
Authorization: getToken()
|
||||||
},
|
},
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
@ -369,117 +361,117 @@ export default {
|
||||||
agreeList: [
|
agreeList: [
|
||||||
{
|
{
|
||||||
text: '允许',
|
text: '允许',
|
||||||
val: 0,
|
val: 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '禁止',
|
text: '禁止',
|
||||||
val: 1,
|
val: 1
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
moren: "bzpz",
|
moren: 'bzpz',
|
||||||
topList: [
|
topList: [
|
||||||
{
|
{
|
||||||
name: '币种配置',
|
name: '币种配置',
|
||||||
path: "bzpz",
|
path: 'bzpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '消费配置',
|
name: '消费配置',
|
||||||
path: "xfpz",
|
path: 'xfpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '转账配置',
|
name: '转账配置',
|
||||||
path: "zzpz",
|
path: 'zzpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '提现配置',
|
name: '提现配置',
|
||||||
path: "txpz",
|
path: 'txpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '提现个税',
|
name: '提现个税',
|
||||||
path: "txgs",
|
path: 'txgs'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '提现手续费',
|
name: '提现手续费',
|
||||||
path: "txsxf",
|
path: 'txsxf'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '特殊消费',
|
name: '特殊消费',
|
||||||
path: "specialMoney",
|
path: 'specialMoney'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
pkBdAccountList: [],
|
pkBdAccountList: [],
|
||||||
form: {
|
form: {
|
||||||
pkCountry: "",
|
pkCountry: '',
|
||||||
accountName: "",
|
accountName: '',
|
||||||
sort: "",
|
sort: '',
|
||||||
pkBdAccount: 0,
|
pkBdAccount: 0,
|
||||||
isRegular: 0,
|
isRegular: 0,
|
||||||
isPostage: 0,
|
isPostage: 0,
|
||||||
isTransfer: 0,
|
isTransfer: 0,
|
||||||
isWithdrawal: 0,
|
isWithdrawal: 0,
|
||||||
isRecharge: 0,
|
isRecharge: 0,
|
||||||
backgroundImg: "",
|
backgroundImg: '',
|
||||||
effectiveDate: "",
|
effectiveDate: '',
|
||||||
fieldValue: "",
|
fieldValue: '',
|
||||||
onLineRecharge: 1,
|
onLineRecharge: 1,
|
||||||
showStatus: 0
|
showStatus: 0
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
pkCountry: [
|
pkCountry: [
|
||||||
{ required: true, message: "请选择国家名称", trigger: "change" },
|
{ required: true, message: '请选择国家名称', trigger: 'change' }
|
||||||
],
|
],
|
||||||
accountName: [
|
accountName: [
|
||||||
{ required: true, message: "请输入账户名称", trigger: "blur" },
|
{ required: true, message: '请输入账户名称', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
sort: [{ required: true, message: "请输入显示顺序", trigger: "blur" }],
|
sort: [{ required: true, message: '请输入显示顺序', trigger: 'blur' }],
|
||||||
// pkBdAccount: [
|
// pkBdAccount: [
|
||||||
// { required: true, message: "请选择转换币种", trigger: "change" },
|
// { required: true, message: "请选择转换币种", trigger: "change" },
|
||||||
// ],
|
// ],
|
||||||
fieldValue: [
|
fieldValue: [
|
||||||
{ required: true, message: "请选择账户属性", trigger: "change" },
|
{ required: true, message: '请选择账户属性', trigger: 'change' }
|
||||||
],
|
],
|
||||||
isRegular: [
|
isRegular: [
|
||||||
{ required: true, message: "请选择固定", trigger: "change" },
|
{ required: true, message: '请选择固定', trigger: 'change' }
|
||||||
],
|
],
|
||||||
isPostage: [
|
isPostage: [
|
||||||
{ required: true, message: "请选择邮费", trigger: "change" },
|
{ required: true, message: '请选择邮费', trigger: 'change' }
|
||||||
],
|
],
|
||||||
isTransfer: [
|
isTransfer: [
|
||||||
{ required: true, message: "请选择转账", trigger: "change" },
|
{ required: true, message: '请选择转账', trigger: 'change' }
|
||||||
],
|
],
|
||||||
isWithdrawal: [
|
isWithdrawal: [
|
||||||
{ required: true, message: "请选择提现", trigger: "change" },
|
{ required: true, message: '请选择提现', trigger: 'change' }
|
||||||
],
|
],
|
||||||
isRecharge: [
|
isRecharge: [
|
||||||
{ required: true, message: "请选择充值", trigger: "change" },
|
{ required: true, message: '请选择充值', trigger: 'change' }
|
||||||
],
|
],
|
||||||
onLineRecharge: [
|
onLineRecharge: [
|
||||||
{ required: true, message: "请选择是否在线充值", trigger: "change" },
|
{ required: true, message: '请选择是否在线充值', trigger: 'change' }
|
||||||
],
|
],
|
||||||
backgroundImg: [
|
backgroundImg: [
|
||||||
{ required: true, message: "请上传封面", trigger: "change" },
|
{ required: true, message: '请上传封面', trigger: 'change' }
|
||||||
],
|
],
|
||||||
effectiveDate: [
|
effectiveDate: [
|
||||||
{ required: true, message: '请选择生效时间', trigger: "change" },
|
{ required: true, message: '请选择生效时间', trigger: 'change' }
|
||||||
],
|
],
|
||||||
showStatus: [
|
showStatus: [
|
||||||
{ required: true, message: '请选择', trigger: "change" },
|
{ required: true, message: '请选择', trigger: 'change' }
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
pubEnumsAccountList: [],
|
pubEnumsAccountList: [],
|
||||||
dialogTitle: "",
|
dialogTitle: '',
|
||||||
yesornoList: [], //是否
|
yesornoList: [] // 是否
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// 获取国家userCountryList
|
// 获取国家userCountryList
|
||||||
this.getCountry();
|
this.getCountry()
|
||||||
// 获取列表
|
// 获取列表
|
||||||
this.getDataList();
|
this.getDataList()
|
||||||
// 币种下拉选
|
// 币种下拉选
|
||||||
this.getpkBdAccountList();
|
this.getpkBdAccountList()
|
||||||
// 账户属性下拉选-币种值
|
// 账户属性下拉选-币种值
|
||||||
this.getPubEnumsAccount();
|
this.getPubEnumsAccount()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
|
@ -487,7 +479,7 @@ export default {
|
||||||
this.$confirm('是否确认导出所有数据项?', '警告', {
|
this.$confirm('是否确认导出所有数据项?', '警告', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning'
|
||||||
}).then((_) => {
|
}).then((_) => {
|
||||||
this.download(
|
this.download(
|
||||||
'/system/manage/account/export',
|
'/system/manage/account/export',
|
||||||
|
@ -498,86 +490,86 @@ export default {
|
||||||
},
|
},
|
||||||
getPubEnumsAccount() {
|
getPubEnumsAccount() {
|
||||||
getPubEnumsAccount().then((res) => {
|
getPubEnumsAccount().then((res) => {
|
||||||
this.pubEnumsAccountList = res.data;
|
this.pubEnumsAccountList = res.data
|
||||||
});
|
})
|
||||||
// 是否
|
// 是否
|
||||||
del.getDealerYesNo().then((res) => {
|
del.getDealerYesNo().then((res) => {
|
||||||
this.yesornoList = res.data;
|
this.yesornoList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getpkBdAccountList() {
|
getpkBdAccountList() {
|
||||||
getpkBdAccountList().then((res) => {
|
getpkBdAccountList().then((res) => {
|
||||||
this.pkBdAccountList = res.rows;
|
this.pkBdAccountList = res.rows
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 展开折叠
|
// 展开折叠
|
||||||
changeActive() {
|
changeActive() {
|
||||||
this.isActive = !this.isActive;
|
this.isActive = !this.isActive
|
||||||
},
|
},
|
||||||
// 点击修改
|
// 点击修改
|
||||||
toFixed(id) {
|
toFixed(id) {
|
||||||
this.dialogTitle = '修改';
|
this.dialogTitle = '修改'
|
||||||
this.addOrEdit = false;
|
this.addOrEdit = false
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true
|
||||||
api.getAccount(id).then((res) => {
|
api.getAccount(id).then((res) => {
|
||||||
this.form = res.data;
|
this.form = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
handleDelete(id) {
|
handleDelete(id) {
|
||||||
this.$confirm('确认删除?', '提示', {
|
this.$confirm('确认删除?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
api.delAccount(id).then((res) => {
|
api.delAccount(id).then((res) => {
|
||||||
// 获取列表
|
// 获取列表
|
||||||
this.getDataList();
|
this.getDataList()
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
onSubmit(formName) {
|
onSubmit(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let url = "";
|
let url = ''
|
||||||
if (this.addOrEdit == true) {
|
if (this.addOrEdit == true) {
|
||||||
url = accountSave;
|
url = accountSave
|
||||||
} else {
|
} else {
|
||||||
url = accountUpdate;
|
url = accountUpdate
|
||||||
}
|
}
|
||||||
url(this.form).then((res) => {
|
url(this.form).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false
|
||||||
// 充值数据
|
// 充值数据
|
||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields()
|
||||||
// 获取列表
|
// 获取列表
|
||||||
this.getDataList();
|
this.getDataList()
|
||||||
this.dialogTitle = "";
|
this.dialogTitle = ''
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false
|
||||||
this.$refs["form"].clearValidate();
|
this.$refs['form'].clearValidate()
|
||||||
this.$refs["form"].resetFields();
|
this.$refs['form'].resetFields()
|
||||||
},
|
},
|
||||||
openDig() {
|
openDig() {
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true
|
||||||
this.addOrEdit = true;
|
this.addOrEdit = true
|
||||||
this.dialogTitle = '添加';
|
this.dialogTitle = '添加'
|
||||||
},
|
},
|
||||||
getCountry() {
|
getCountry() {
|
||||||
userCountryList().then((res) => {
|
userCountryList().then((res) => {
|
||||||
this.countryList = res.data;
|
this.countryList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
@ -585,46 +577,46 @@ export default {
|
||||||
res.rows.forEach((item) => {
|
res.rows.forEach((item) => {
|
||||||
this.countryList.forEach((child) => {
|
this.countryList.forEach((child) => {
|
||||||
if (item.pkCountry == child.pkCountry) {
|
if (item.pkCountry == child.pkCountry) {
|
||||||
item.pkCountryName = child.name;
|
item.pkCountryName = child.name
|
||||||
item.pkCountryIcon = child.nationalFlag2;
|
item.pkCountryIcon = child.nationalFlag2
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
this.total = res.total;
|
this.total = res.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val
|
||||||
},
|
},
|
||||||
uploadImgChange(file, fileList) {
|
uploadImgChange(file, fileList) {
|
||||||
this.noneUploadImg = fileList.length > 0;
|
this.noneUploadImg = fileList.length > 0
|
||||||
},
|
},
|
||||||
// 图片上传成功后的回调
|
// 图片上传成功后的回调
|
||||||
handlePictureSuccess(res, file) {
|
handlePictureSuccess(res, file) {
|
||||||
this.form.backgroundImg = res.data.url;
|
this.form.backgroundImg = res.data.url
|
||||||
console.log(
|
console.log(
|
||||||
"%c [ res ]-345",
|
'%c [ res ]-345',
|
||||||
"font-size:13px; background:#490cce; color:#8d50ff;",
|
'font-size:13px; background:#490cce; color:#8d50ff;',
|
||||||
res
|
res
|
||||||
);
|
)
|
||||||
},
|
},
|
||||||
// 图片上传删除
|
// 图片上传删除
|
||||||
handleRemove(file, fileList) {
|
handleRemove(file, fileList) {
|
||||||
this.form.backgroundImg = "";
|
this.form.backgroundImg = ''
|
||||||
this.noneUploadImg = fileList.length > 0;
|
this.noneUploadImg = fileList.length > 0
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
if (rowIndex % 2 == 1) {
|
if (rowIndex % 2 == 1) {
|
||||||
return "warning-row";
|
return 'warning-row'
|
||||||
} else if (rowIndex % 2 == 0) {
|
} else if (rowIndex % 2 == 0) {
|
||||||
return "success-row";
|
return 'success-row'
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
::v-deep .el-date-editor.el-input,
|
::v-deep .el-date-editor.el-input,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue