7 Commits

  1. 16
      src/components/workspace/GoldGraph.vue
  2. 4
      src/components/workspace/GoldManagement.vue
  3. 87
      src/views/audit/gold/rechargeAudit.vue

16
src/components/workspace/GoldGraph.vue

@ -784,23 +784,23 @@ onUnmounted(() => {
}
.graph-card-list {
background: #F3FAFF;
background: #E7F4FD;
box-shadow: 0 0 8px 0 #00000040;
padding: 12px;
.card-select {
:deep(.el-input__wrapper) {
:deep(.el-select__wrapper) {
background-color: #E7F4FD !important;
// :hover {
// background-color: red !important;
// }
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25) !important;
border: none !important;
}
:deep(.el-input__inner) {
background-color: transparent !important;
}
:deep(.el-input__suffix) {
background-color: transparent !important;
:deep(.el-select-dropdown__item.selected) {
// :hover { background-color: red !important; }
background: red !important;
}
}

4
src/components/workspace/GoldManagement.vue

@ -405,7 +405,7 @@ const initConsumeDetailChart = () => {
//
legend: {
orient: 'vertical',
left: 'left',
left: '20%',
top: '85',
icon: 'circle',
iconSize: 5,
@ -463,7 +463,7 @@ const initRechargePeopleChart = () => {
const option = {
legend: {
orient: 'vertical',
left: 'left',
left: '20%',
top: '85',
icon: 'circle',
iconSize: 5,

87
src/views/audit/gold/rechargeAudit.vue

@ -1,5 +1,5 @@
<template>
<el-card style="margin-bottom: 0.5vh;">
<el-card class="card1" style="margin-bottom: 0.5vh;">
<el-col style="margin-bottom: 1vh">
<div class="select">
<div class="selectRow">
@ -47,12 +47,12 @@
</div>
</el-col>
</el-card>
<el-card>
<el-card class="card2">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="待审核" name="wait" v-if="hasrechargeWait&&hasrechargeWaitShow"></el-tab-pane>
<el-tab-pane label="待审核" name="wait" v-if="hasrechargeWait && hasrechargeWaitShow"></el-tab-pane>
<el-tab-pane label="已通过" name="pass" v-if="hasrechargeThrough"></el-tab-pane>
<el-tab-pane label="已驳回" name="reject" v-if="hasrechargeReject"></el-tab-pane>
<div>
<div class="goldStatistics">
<!-- 总条数{{ format3(stats.totalNum) }}&nbsp;&nbsp;&nbsp;&nbsp;-->
充值新币{{ format3(stats.permanentGolds) }}新币&nbsp;&nbsp;&nbsp;&nbsp;
@ -119,7 +119,8 @@
{{ moment(scope.row.auditTime).format('YYYY-MM-DD HH:mm:ss') }}
</template>
</el-table-column>
<el-table-column v-if="activeName === 'wait'&&(hasrechargeWaitThough||hasrechargeWaitReject)&&hasrechargeWaitShow" fixed="right" prop="operation" label="操作" width="150px">
<el-table-column v-if="activeName === 'wait' && (hasrechargeWaitThough || hasrechargeWaitReject) && hasrechargeWaitShow"
fixed="right" prop="operation" label="操作" width="150px">
<template #default="scope">
<div class="operation">
<el-popconfirm title="确定要通过此条记录吗?" @confirm="handleApprove(scope.row)">
@ -135,7 +136,8 @@
</el-button>
</template>
</el-popconfirm>
<el-button v-if="hasrechargeWaitReject" :disabled="clicked || cancelClicked" type="primary" text @click="showRejectDialog(scope.row)">
<el-button v-if="hasrechargeWaitReject" :disabled="clicked || cancelClicked" type="primary" text
@click="showRejectDialog(scope.row)">
驳回
</el-button>
</div>
@ -189,7 +191,7 @@ const hasrechargeWaitThough = ref(false) // 充值审核通过
const hasrechargeWaitReject = ref(false) //
//
const initPermissions = async() => {
const initPermissions = async () => {
if (!menuTree.value || !menuTree.value.length) return;
hasrechargeThrough.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeThrough);
hasrechargeReject.value = hasMenuPermission(menuTree.value, permissionMapping.rechargeReject);
@ -480,21 +482,21 @@ const adminReject = async function () {
const handleClick = function (tab, event) {
activeName.value = tab.props.name
if (tab.props.name === 'wait') {
if(!hasrechargeWait){
if (!hasrechargeWait) {
ElMessage.error('暂无权限')
return
}
if(hasrechargeWaitShow){
if (hasrechargeWaitShow) {
adminWait()
}
} else if (tab.props.name === 'pass') {
if(!hasrechargeThrough){
if (!hasrechargeThrough) {
ElMessage.error('暂无权限')
return
}
adminPass()
} else if (tab.props.name === 'reject') {
if(!hasrechargeReject){
if (!hasrechargeReject) {
ElMessage.error('暂无权限')
return
}
@ -525,7 +527,7 @@ const handlePagination = (type, val) => {
const clicked = ref(false);
//
const handleApprove = async (row) => {
if(!hasrechargeWaitThough){
if (!hasrechargeWaitThough) {
ElMessage.error('暂无权限')
return
}
@ -550,7 +552,7 @@ const handleApprove = async (row) => {
}
const showRejectDialog = (row) => {
if(!hasrechargeWaitReject){
if (!hasrechargeWaitReject) {
ElMessage.error('暂无权限')
return
}
@ -562,7 +564,7 @@ const showRejectDialog = (row) => {
const cancelClicked = ref(false)
//
const handleReject = async () => {
if(!hasrechargeWaitReject){
if (!hasrechargeWaitReject) {
ElMessage.error('暂无权限')
return
}
@ -700,11 +702,11 @@ const formatTime = (val) => val ? moment(val).format('YYYY-MM-DD HH:mm:ss') : ''
//
onMounted(async function () {
await initPermissions()
if(hasrechargeWaitShow.value){
if (hasrechargeWaitShow.value) {
rechargeAudit.value.auditStatus = '0'
}else if(hasrechargeThrough.value){
} else if (hasrechargeThrough.value) {
rechargeAudit.value.auditStatus = '1'
}else if(hasrechargeReject){
} else if (hasrechargeReject) {
rechargeAudit.value.auditStatus = '2'
}
await getActivity()
@ -716,6 +718,7 @@ onMounted(async function () {
</script>
<style scoped lang="scss">
//
.pagination {
display: flex;
margin-top: 0.5vh;
@ -725,6 +728,56 @@ onMounted(async function () {
display: flex;
}
//
.card1 {
background: #F3FAFE;
}
//
.card2 {
background: #E7F4FD;
}
//
.goldStatistics {
margin-left: 1vw;
margin-bottom: 1vh;
color: #000000;
font-family: "PingFang SC";
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 20px;
}
/* 表头/表体 wrapper 与 table body 单元格 */
//
// :deep(.el-table__body),
// :deep(.el-table__header),
// :deep(.el-table__body tbody),
// :deep(.el-table__body tr),
// :deep(.el-table__row),
:deep(.el-table__header-wrapper),
:deep(.el-table__body-wrapper),
:deep(.el-table__cell),
/* 表格 */
:deep(.el-table__body td) {
background-color: #F3FAFE !important;
}
/* 表头 */
:deep(.el-table__header th) {
background-color: #F3FAFE !important;
}
/* 鼠标悬停 */
:deep(.el-table__row:hover > .el-table__cell) {
background-color: #E5EBFE !important;
}
.select {
display: flex;

Loading…
Cancel
Save