Commit 9dd3f209 authored by 汪晓凯's avatar 汪晓凯

样式优化

parent 0188d9cd
...@@ -522,8 +522,8 @@ ...@@ -522,8 +522,8 @@
total: 0, //记录总条数 total: 0, //记录总条数
list: [],//表格数据 list: [],//表格数据
isIndeterminate: true, isIndeterminate: true,
checkAll: false, checkAll: true,
checkedOptions: [], checkedOptions: ['0', '1'],
options: ["买入", "卖出"], options: ["买入", "卖出"],
/*充提记录参数*/ /*充提记录参数*/
transactionTime1: null,// 时间筛选 transactionTime1: null,// 时间筛选
...@@ -533,15 +533,15 @@ ...@@ -533,15 +533,15 @@
list1: [],//表格数据 list1: [],//表格数据
recordsCountList: [],//充提记录统计 recordsCountList: [],//充提记录统计
isIndeterminate2: true, isIndeterminate2: true,
checkAll2: false, checkAll2: true,
checkedOptions1: [], checkedOptions1: ['0', '1'],
options1: ["充币", "提币"], options1: ["充币", "提币"],
isIndeterminate3: true, isIndeterminate3: true,
checkAll3: false, checkAll3: false,
checkedStates1: ['0'], checkedStates1: ['0'],
states1: ["成功", "失败"], states1: ["成功", "失败"],
isIndeterminate4: true,//币种筛选 isIndeterminate4: true,//币种筛选
checkAll4: false, checkAll4: true,
checkedCoins: [], checkedCoins: [],
coins: [], coins: [],
Loading: false,//充提币后数据加载标志 Loading: false,//充提币后数据加载标志
...@@ -556,7 +556,7 @@ ...@@ -556,7 +556,7 @@
//页面初始化 //页面初始化
init() { init() {
this.robotDetailInfo = JSON.parse(sessionStorage.getItem('robotDetailInfo')); this.robotDetailInfo = JSON.parse(sessionStorage.getItem('robotDetailInfo'));
this.coins = [this.robotDetailInfo.coin, this.robotDetailInfo.base]; this.checkedCoins = this.coins = [this.robotDetailInfo.coin, this.robotDetailInfo.base];
this.getWalletInfo(); this.getWalletInfo();
this.getTransaction(); this.getTransaction();
this.getRecords(); this.getRecords();
......
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
pageSize: 10, pageSize: 10,
transactionTime: '', //操作记录时间筛选 transactionTime: '', //操作记录时间筛选
isIndeterminate: true, isIndeterminate: true,
checkAll: false, checkAll: true,
checkedCoins: [], checkedCoins: [],
transactionLoading: false, //操作记录表格刷新标志 transactionLoading: false, //操作记录表格刷新标志
foldBar: true, foldBar: true,
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
this.walletInfo.forEach(item => { this.walletInfo.forEach(item => {
this.coinList.push(item.coin); this.coinList.push(item.coin);
}) })
this.coinList = [...new Set(this.coinList)]; this.checkedCoins = this.coinList = [...new Set(this.coinList)];
this.getRecords('1', 'init'); this.getRecords('1', 'init');
}) })
}, },
......
<template> <template>
<div class="coin-recharge-box"> <div class="coin-recharge-box">
<div class="record-box" v-loading="Loading" element-loading-text="正在刷新数据"> <div class="record-box" v-loading="Loading" element-loading-text="正在刷新数据">
<div class="title-box clearfix"> <div class="title-box ">
<span class="title">币种充提统计</span> <span class="title">币种充提统计</span>
<div class="select-bar fr clearfix"> <div class="select-bar fr ">
<div class="fl select"> <div class="fl select">
<el-select v-model="checkedWeb" clearable placeholder="交易所筛选"> <el-select v-model="checkedWeb" placeholder="交易所筛选">
<el-option <el-option
v-for="item in webs" v-for="item in webs"
:key="item" :key="item"
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="select-bar-content fl" :class="{'unfold' : !foldExchange0}"> <div ref="selectBar" v-click-outside="clickFoldExchange" class="select-bar-content fl" :class="{'unfold' : !foldExchange0}">
<span class="title">币种</span> <span class="title">币种</span>
<div class="fr"> <div class="fr">
<span class="ellipsis" v-show="currencies.length>3 && foldExchange0">...</span> <span class="ellipsis" v-show="currencies.length>3 && foldExchange0">...</span>
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
<script> <script>
import axios from 'axios'; import axios from 'axios';
import ApiConfig from "../config/api-config"; import ApiConfig from "../config/api-config";
import ClickOutside from 'vue-click-outside';
export default { export default {
data() { data() {
return { return {
...@@ -110,9 +111,8 @@ ...@@ -110,9 +111,8 @@
Loading: false, Loading: false,
checkedWeb: '', checkedWeb: '',
webs: [], webs: [],
checkAll0: false, //币种筛选 checkAll0: true, //币种筛选
checkedCurrencies: [], checkedCurrencies: [],
allCurrencies: [],//所有币种
currencies: [],//符合交易所条件的所有币种 currencies: [],//符合交易所条件的所有币种
isIndeterminate0: true, isIndeterminate0: true,
foldExchange0: true, foldExchange0: true,
...@@ -121,12 +121,27 @@ ...@@ -121,12 +121,27 @@
currentPage: 1, currentPage: 1,
} }
}, },
mounted () {
// prevent click outside event with popupItem.
this.popupItem = this.$refs.selectBar
},
// do not forget this section
directives: {
ClickOutside
},
created() { created() {
this.webs = this.webs.length === 0 && sessionStorage.getItem('webs') ? JSON.parse(sessionStorage.getItem('webs')) : this.webs; this.webs = this.webs.length === 0 && sessionStorage.getItem('webs') ? JSON.parse(sessionStorage.getItem('webs')) : this.webs;
this.currencies = this.currencies.length === 0 && sessionStorage.getItem('currencies') ? JSON.parse(sessionStorage.getItem('currencies')) : this.currencies; this.checkedWeb = this.webs[0];
for (let item of JSON.parse(sessionStorage.getItem('platInfo'))) {
if(item.platform === this.checkedWeb) {
this.checkedCurrencies = this.currencies = item.coin;
}
}
this.getRechargeList(); this.getRechargeList();
}, },
watch: { watch: {
checkedWeb() { checkedWeb() {
this.getRechargeList(); this.getRechargeList();
}, },
...@@ -134,13 +149,11 @@ ...@@ -134,13 +149,11 @@
methods: { methods: {
clickFoldExchange(type) { clickFoldExchange(type) {
switch (type) { switch (type) {
case 'web':
this.foldExchange = !this.foldExchange;
break;
case 'currency': case 'currency':
this.foldExchange0 = !this.foldExchange0; this.foldExchange0 = !this.foldExchange0;
break; break;
default: default:
this.foldExchange0 = true;
break break
} }
}, },
...@@ -252,7 +265,15 @@ ...@@ -252,7 +265,15 @@
color: rgba(51, 51, 51, 1); color: rgba(51, 51, 51, 1);
} }
} }
.select-bar {
width: 623px;
height: 40px;
position: relative;
}
.select-bar-content { .select-bar-content {
position: absolute;
right: 0;
top: 0;
float: left; float: left;
margin-left: 10px; margin-left: 10px;
width: 410px; width: 410px;
...@@ -260,7 +281,7 @@ ...@@ -260,7 +281,7 @@
background-color: #fff; background-color: #fff;
border-radius:4px; border-radius:4px;
border:1px solid rgba(224,224,224,1); border:1px solid rgba(224,224,224,1);
z-index: 100; z-index: 1000;
height: 40px; height: 40px;
overflow: hidden; overflow: hidden;
.amount { .amount {
...@@ -295,6 +316,9 @@ ...@@ -295,6 +316,9 @@
<style> <style>
/*select组件样式覆盖*/ /*select组件样式覆盖*/
.coin-recharge-box { .coin-recharge-box {
.el-table {
z-index: 1;
}
.count-box .el-button { .count-box .el-button {
background: rgba(119, 146, 167, 1); background: rgba(119, 146, 167, 1);
border: none; border: none;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment