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