feat(custom): i
This commit is contained in:
@@ -8,7 +8,7 @@ VITE_USE_MOCK = false
|
|||||||
VITE_USE_PROXY = true
|
VITE_USE_PROXY = true
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VITE_BASE_API = '/admin'
|
VITE_BASE_API = 'https://www.wanzhuanyongcheng.cn/admin'
|
||||||
|
|
||||||
|
|
||||||
VITE_WS1_URL = 'game.wanzhuanyongcheng.cn/dice/home'
|
VITE_WS1_URL = 'game.wanzhuanyongcheng.cn/dice/home'
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ async function setupApp() {
|
|||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
if (value.length > 0) {
|
if (value.length > 0) {
|
||||||
const hasPermission = permissions.some((key) => {
|
const hasPermission = permissions.some((key) => {
|
||||||
return all_permission == key || value.includes(key)
|
return all_permission === key || value.includes(key)
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!hasPermission) {
|
if (!hasPermission) {
|
||||||
|
|||||||
@@ -217,12 +217,13 @@ const getList = async () => {
|
|||||||
((res.data.total * 10) / (res.data.total * 10 + res.data.totalDices)) *
|
((res.data.total * 10) / (res.data.total * 10 + res.data.totalDices)) *
|
||||||
100
|
100
|
||||||
).toFixed(2)
|
).toFixed(2)
|
||||||
|
|
||||||
const b = ((res.data.totalDices / (res.data.total * 10 + res.data.totalDices)) * 100).toFixed(
|
const b = ((res.data.totalDices / (res.data.total * 10 + res.data.totalDices)) * 100).toFixed(
|
||||||
2
|
2
|
||||||
)
|
)
|
||||||
option.value.xAxis.data.push(`第${item.Periods}期-${item.Name}`)
|
option.value.xAxis.data.push(`第${item.Periods}期-${item.Name}`)
|
||||||
option.value.series[0].name = `下注(豆子): ${a}%`
|
option.value.series[0].name = `下注(豆子): ${a}%`
|
||||||
option.value.series[0].data.push(item.NumberSum)
|
option.value.series[0].data.push(item.NumberSum * 10)
|
||||||
option.value.series[1].name = `赔付(积分): ${b}%`
|
option.value.series[1].name = `赔付(积分): ${b}%`
|
||||||
option.value.series[1].data.push(item.TotalCount)
|
option.value.series[1].data.push(item.TotalCount)
|
||||||
})
|
})
|
||||||
@@ -232,7 +233,7 @@ const getList = async () => {
|
|||||||
)
|
)
|
||||||
const b = ((res.data.totalDices / (res.data.total * 10 + res.data.totalDices)) * 100).toFixed(2)
|
const b = ((res.data.totalDices / (res.data.total * 10 + res.data.totalDices)) * 100).toFixed(2)
|
||||||
|
|
||||||
option1.value.series[0].data.push({ value: res.data.total, name: `总下注: ${a}%` })
|
option1.value.series[0].data.push({ value: res.data.total * 10, name: `总下注: ${a}%` })
|
||||||
option1.value.series[0].data.push({
|
option1.value.series[0].data.push({
|
||||||
value: res.data.totalDices,
|
value: res.data.totalDices,
|
||||||
name: `总赔付: ${b}%`,
|
name: `总赔付: ${b}%`,
|
||||||
|
|||||||
Reference in New Issue
Block a user