Compare commits

...

3 Commits

Binary file not shown.

@ -1,9 +1,11 @@
import hasRole from './permission/hasRole'
import hasPermi from './permission/hasPermi'
import copyText from './common/copyText'
import preReClick from './preRe/preReClick'
export default function directive(app){
app.directive('hasRole', hasRole)
app.directive('hasPermi', hasPermi)
app.directive('copyText', copyText)
app.directive('preReClick', preReClick)
}

@ -0,0 +1,13 @@
export default {
mounted(el, binding) {
el.addEventListener('click', () => {
if (!el.disabled) {
el.disabled = true;
setTimeout(() => {
el.disabled = false;
}, binding.value || 2000)
}
})
}
}

@ -15,10 +15,10 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
// baseURL: import.meta.env.VITE_APP_BASE_API,
// baseURL: 'http://118.31.7.2:8800/',
baseURL: 'http://192.168.2.15:8800/',
// baseURL: 'http://192.168.2.15:8800/',
// baseURL: 'http://192.168.2.4:8800/',
// baseURL: 'http://202.199.90.115:8800/',
// baseURL: 'http://qkljr.sztzjy.com:91/',
baseURL: 'http://qkljr.sztzjy.com:91/',
// 超时
timeout: 60000
})

@ -185,7 +185,7 @@
</el-table-column>
<el-table-column align="center" prop="name" label="操作" width="200">
<template #default="scope">
<el-button link type="success" @click="redPacketvia(scope.row)" :disabled="scope.row.status == 1">
<el-button link type="success" @click="redPacketvia(scope.row)" :disabled="scope.row.status == 1" v-preReClick>
<svg-icon icon-class="look"/>{{ scope.row.status ==1? "已发放":'发放' }}
</el-button>
<el-button link type="warning" @click="Details(scope.row)">
@ -668,9 +668,9 @@ const submitForm=()=>{
if(isAddredParams.redPacketType=='等额红包'){
isAddredParams.totalRedPacketAmount = isAddredParams.redPacketQuantity * isAddredParams.totalRedPacketAmount;
}
if(valid){
if(isAddredParams.file === null) return proxy.$modal.msgError('请上传红包宣传图片')
if(isAddredParams.redPacketQuantity>3) return proxy.$modal.msgError('红包数量不能超过3个')
const formData=new FormData()
for(let key in isAddredParams){
formData.append(key,isAddredParams[key])

@ -280,8 +280,8 @@ const enterpriseaddRedPacket = () => {
}
// = *
if (valid) {
if (isAddredParams.file === '')
return proxy.$modal.msgError("请上传红包宣传图片");
if (isAddredParams.file === '') return proxy.$modal.msgError("请上传红包宣传图片");
if(isAddredParams.redPacketQuantity>3) return proxy.$modal.msgError('红包数量不能超过3个')
const formData = new FormData();
for(let key in isAddredParams){
formData.append(key,isAddredParams[key])

@ -205,7 +205,7 @@ console.log(tableData,"tableData");
<template #default="scope" >
<el-button link v-if="scope.row.node =='消费者'||scope.row.node =='企业'" @click="createNode(scope.row.node)"></el-button>
<el-button link v-if="scope.row.node =='消费者'||scope.row.node =='企业'" @click="createWallet(scope.row.node)"></el-button>
<el-button link v-if="scope.row.node =='消费者'" @click="recharge(scope.row,)"></el-button>
<el-button link v-if="scope.row.node ==''" @click="recharge(scope.row,)" v-preReClick></el-button>
<span v-if="scope.row.node =='商业银行'||scope.row.node =='中央银行'">/</span>
</template>
</el-table-column>

@ -441,7 +441,7 @@ getRedPacket()
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="getPacket"></el-button>
<el-button type="primary" @click="getPacket" v-preReClick></el-button>
<el-button type="primary" @click="dialogVisible = false">取消</el-button>
</span>
</template>

@ -110,7 +110,7 @@ getCurrency()
</el-table-column>
<el-table-column align="center" prop="address" label="操作" width="300">
<template #default="scope">
<el-button link type="warning" :disabled="scope.row.controlBitStatus== 'true'" @click="generate(scope.row)">
<el-button link type="warning" :disabled="scope.row.controlBitStatus== 'true'" @click="generate(scope.row)" v-preReClick>
<svg-icon icon-class="generate"/>生成控制位
</el-button>
<el-button link type="success" @click="look(scope.row.detailId)">

@ -13,6 +13,7 @@ const loading=ref(false)
const dialogVisible = ref(false);
//
const dialogQuotaVisible = ref(false);
const QuotaVisible = ref(false);
//
const decodeVisible = ref(false);
// total
@ -36,8 +37,8 @@ const getlist = async () => {
};
let controlData = reactive([]);
const look = async (val) => {
dialogQuotaVisible.value = true;
lookid.value=val.detailId
QuotaVisible.value = true;
coding.value=val.detailId
};
//
const getSummaries = (params) => {
@ -137,10 +138,12 @@ function getChange() {
tableData.value = res.data.list;
})
};
//
const destroy = () => {
lookid.value = "";
encoding.value="";
coding.value=''
dialogVisible.value = false;
if(dialogVisible.value==false){
controlData=[]
@ -148,11 +151,12 @@ const destroy = () => {
encoding.value=''
}else if(QuotaVisible.value==false){
coding.value=''
}
}
console.log(coding.value,"coding.value");
};
//
const QuotaVisible = ref(false);
//
const getQuota = () => {
@ -243,6 +247,7 @@ getlist();
>
<template #default="scope">
<el-button
:disabled="scope.row.digitalCurrencyGenerationStatus == 'true'"
link
type="primary"
@click="handleClose(scope.row)"
@ -373,6 +378,7 @@ getlist();
<template #footer>
<span class="dialog-footer">
<el-button type="primary" @click="generate"
v-preReClick
>数字签名 生成数字货币</el-button
>
</span>

@ -103,7 +103,7 @@ const getData=async()=>{
}
//
const height=ref(770)
const height=ref(760)
const toggleFullscreen = () => {
toggleFullscreenContainer('.merkleTree')
document.addEventListener('fullscreenchange', exitFullscreenHandler);
@ -117,7 +117,7 @@ const toggleFullscreen = () => {
if (!document.fullscreenElement && !document.mozFullScreenElement &&
!document.webkitFullscreenElement && !document.msFullscreenElement) {
// 退
height.value=790
height.value=760
}
}
const cell=ref([])

@ -27,12 +27,12 @@
<span>区块链</span>
</div>
<div class="block-item-content">
<p>区块哈希{{ item.blockHash }}</p>
<p>区块哈希{{ truncate(item.blockHash,15) }}</p>
<p>时间戳{{ item.timestamp }}</p>
<p>前一区块哈希{{ item.previousBlock }}</p>
<p>前一区块哈希{{ truncate(item.previousBlock,15) }}</p>
</div>
<div class="block-item-footer">
<span>交易数据{{ item.transactionCode }}</span>
交易数据{{ truncate(item.transactionCode,15) }}
</div>
</div>
</el-scrollbar>
@ -44,6 +44,7 @@
import {getTransactionBlock} from '@/api/user.js'
import {toggleFullscreenContainer} from '@/utils/index.js'
import { getSchoolId } from '../../../utils/auth';
import {truncate} from '@/utils/index.js'
const height = ref(600)
//
const nodeNumber = ref(0)
@ -169,6 +170,7 @@ onUnmounted(() => {
}
}
.block-item-footer {
display: block;
width: 242px;
height: 46px;
background: #2c6dff;

@ -64,7 +64,7 @@
<span>交易总览</span>
</div>
<div class="overview-content">
<p>交易哈希{{truncate(detailsData.blockHash ,55) }}</p>
<p>交易哈希{{truncate(detailsData.transactionCode ,55) }}</p>
<p>交易结果{{ detailsData.transactionResult=="true" ? '成功' :'失败' }}</p>
<p>时间{{ parseTime(detailsData.timestamp, "{y}-{m}-{d} {h}:{i}:{s}") }}</p>
<p>发送方{{ detailsData.sender }}</p>
@ -99,14 +99,8 @@ const getIndividualAssets = () => {
//
const checkDetails = (id) => {
QuotaVisible.value = true;
getBroadcastDetails({
schoolId: id.schoolId,
index: 1,
size: 100,
}).then(res => {
//
detailsData.value = res.data.list[0]
})
detailsData.value = id
};
getIndividualAssets();
</script>

Loading…
Cancel
Save