|
|
|
@ -6,119 +6,12 @@ import transactionNode from './components/transaction-node.vue';
|
|
|
|
|
import transactionBlock from './components/transaction-block.vue';
|
|
|
|
|
import transactionBroadcast from './components/transaction-broadcast.vue';
|
|
|
|
|
import merkle from './components/merkle.vue';
|
|
|
|
|
import useUserStore from "@/store/modules/user";
|
|
|
|
|
const userStore = useUserStore();
|
|
|
|
|
// 引入路由进行跳转
|
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
// 验证
|
|
|
|
|
const dialogVisible = ref(false);
|
|
|
|
|
// 解密
|
|
|
|
|
const decodeVisible = ref(false);
|
|
|
|
|
// 表格条数
|
|
|
|
|
const total = ref(0);
|
|
|
|
|
// 验证弹窗数组
|
|
|
|
|
const dialogList = reactive([
|
|
|
|
|
{
|
|
|
|
|
name: '兑换行是否有缴存足额的准备金?',
|
|
|
|
|
value: '1',
|
|
|
|
|
checked: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '兑换行公钥和私钥是否一致?',
|
|
|
|
|
value: '2',
|
|
|
|
|
checked: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '兑换行公钥和私钥是否一致?',
|
|
|
|
|
value: '3',
|
|
|
|
|
checked: false
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
// 投放系统切换
|
|
|
|
|
const isDeployed = ref(1);
|
|
|
|
|
const go = (idx) => {
|
|
|
|
|
isDeployed.value=idx
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
const verifylParams= reactive({
|
|
|
|
|
userId:userStore.userId,
|
|
|
|
|
size:1,
|
|
|
|
|
index:1
|
|
|
|
|
})
|
|
|
|
|
const verifylList= ref(null)
|
|
|
|
|
// 获取信息验证表格数据
|
|
|
|
|
const getTableData = async () => {
|
|
|
|
|
try {
|
|
|
|
|
const res = await centralBank.getTableData(verifylParams)
|
|
|
|
|
verifylList.value = res.data.list
|
|
|
|
|
total.value = res.data.total
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 解密params
|
|
|
|
|
const decryptParams = reactive({
|
|
|
|
|
Abstract:'',
|
|
|
|
|
detailId:'',
|
|
|
|
|
publicKey:''
|
|
|
|
|
})
|
|
|
|
|
//解密函数
|
|
|
|
|
const decryptData = (val) => {
|
|
|
|
|
decodeVisible.value = true
|
|
|
|
|
decryptParams.Abstract=val.transactionCode
|
|
|
|
|
decryptParams.detailId=val.detailId
|
|
|
|
|
console.log(val,"val");
|
|
|
|
|
};
|
|
|
|
|
const submitDecryptedForm = async() => {
|
|
|
|
|
try {
|
|
|
|
|
const res = await centralBank.decrypt(decryptParams)
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
decodeVisible.value = false
|
|
|
|
|
proxy.resetForm('ruleFormRef')
|
|
|
|
|
getTableData()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const showValidationAlert = (code) => {
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
decryptParams.detailId=code
|
|
|
|
|
};
|
|
|
|
|
const showverify = async() => {
|
|
|
|
|
try {
|
|
|
|
|
const res = await centralBank.verify(decryptParams.detailId)
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
|
// proxy.resetForm('ruleFormRef')
|
|
|
|
|
getTableData()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
//申请
|
|
|
|
|
const apply = async(code) => {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
decryptParams.detailId=code
|
|
|
|
|
const res = await centralBank.applygenerate(decryptParams.detailId)
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
getTableData()
|
|
|
|
|
proxy.$modal.msgSuccess(res.msg);
|
|
|
|
|
// dialogVisible.value = false
|
|
|
|
|
// proxy.resetForm('ruleFormRef')
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// 验证选择
|
|
|
|
|
getTableData()
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-central">
|
|
|
|
@ -143,6 +36,7 @@ getTableData()
|
|
|
|
|
// background-color: #fff;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
|
|
.central-bank-title {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
div {
|
|
|
|
@ -208,93 +102,10 @@ getTableData()
|
|
|
|
|
color: #ffffff !important;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.svg-icon{
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
}
|
|
|
|
|
:deep(.el-dialog){
|
|
|
|
|
background: url('../../../assets/images/dialogimg.png') no-repeat !important ;
|
|
|
|
|
background-size:100% 100% !important;
|
|
|
|
|
.el-dialog__header{
|
|
|
|
|
padding: 0px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
.el-dialog__headerbtn{
|
|
|
|
|
.el-dialog__close{
|
|
|
|
|
// background-color: pink !important;
|
|
|
|
|
// 插入照片上去
|
|
|
|
|
background: url('../../../assets/images/x.png') no-repeat !important ;
|
|
|
|
|
background-size:100% 100% !important;
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-dialog__title{
|
|
|
|
|
margin-top: -20px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 216px;
|
|
|
|
|
height: 59px;
|
|
|
|
|
line-height: 59px;
|
|
|
|
|
background: url('../../../assets/images/中央银行-切图/验证+解密弹窗-切图/弹窗标题.png') no-repeat !important ;
|
|
|
|
|
background-size:100% 100% !important;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-dialog__body{
|
|
|
|
|
padding: 30px 60px;
|
|
|
|
|
.df{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.el-form {
|
|
|
|
|
.el-form-item__label{
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
height: 46px;
|
|
|
|
|
line-height: 46px;
|
|
|
|
|
}
|
|
|
|
|
.el-input__wrapper{
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
caret-color: #ffffff;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.el-input{
|
|
|
|
|
height: 46px;
|
|
|
|
|
background: url('../../../assets/images/中央银行-切图/验证+解密弹窗-切图/输入框.png') no-repeat !important ;
|
|
|
|
|
background-size:100% 100% !important;
|
|
|
|
|
|
|
|
|
|
.el-input__inner{
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-dialog__footer{
|
|
|
|
|
text-align: center;
|
|
|
|
|
.dialog-footer{
|
|
|
|
|
.el-button{
|
|
|
|
|
// width: 244px;
|
|
|
|
|
padding: 0 107px;
|
|
|
|
|
height: 52px;
|
|
|
|
|
border: 2px solid #25F4F9;
|
|
|
|
|
background: linear-gradient(0deg, #0654B5 0%, #003155 50%, #2CD1E4 100%);
|
|
|
|
|
box-shadow: 0px 5px 6px 0px rgba(0,48,255,0.77);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
// background: url('../../../assets/images/中央银行-切图/验证+解密弹窗-切图/确定.png') no-repeat !important ;
|
|
|
|
|
// background-size:100% 100% !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|