from notebook
This commit is contained in:
parent
1c3685199b
commit
2b6a9f7c5a
@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { SvelteToast } from "@zerodevx/svelte-toast";
|
import { SvelteToast } from "@zerodevx/svelte-toast";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import "../../app.css";
|
import "../app.css";
|
||||||
import Navbar from "$lib/ui-components/navbar.svelte";
|
import Navbar from "$lib/ui-components/navbar.svelte";
|
||||||
import { checkAuth, checkAuthSync } from "$lib/auth/Auth";
|
import { checkAuth, checkAuthSync } from "$lib/auth/Auth";
|
||||||
import { redirect } from "$lib/tools/url/URLTools";
|
import { redirect } from "$lib/tools/url/URLTools";
|
@ -90,12 +90,12 @@
|
|||||||
// $: if (foundedDispute !== 0) newSum = Number(foundedDispute?.summa);
|
// $: if (foundedDispute !== 0) newSum = Number(foundedDispute?.summa);
|
||||||
|
|
||||||
let showLoadingChangeSum = false;
|
let showLoadingChangeSum = false;
|
||||||
async function changeSum(id) {
|
async function changeSum(uuid) {
|
||||||
showLoadingChangeSum = true;
|
showLoadingChangeSum = true;
|
||||||
const res = await makePost(
|
const res = await makePost(
|
||||||
"admin/rollbackOrder",
|
"admin/rollbackOrder",
|
||||||
{
|
{
|
||||||
id: Number(id),
|
id: uuid,
|
||||||
summa: newSum.toString(),
|
summa: newSum.toString(),
|
||||||
},
|
},
|
||||||
makeAuthHeaderForAxios(getAuthInfo()?.a)
|
makeAuthHeaderForAxios(getAuthInfo()?.a)
|
||||||
@ -169,9 +169,10 @@
|
|||||||
<p class="text-sm mt-3">Сумма</p>
|
<p class="text-sm mt-3">Сумма</p>
|
||||||
<p>
|
<p>
|
||||||
{foundedDispute["summa"]}
|
{foundedDispute["summa"]}
|
||||||
{foundedDispute["currency_code"]} ({(
|
{foundedDispute["currency_code"]}
|
||||||
|
<!-- ({(
|
||||||
Number(foundedDispute["summa"]) / Number(foundedDispute["rate"])
|
Number(foundedDispute["summa"]) / Number(foundedDispute["rate"])
|
||||||
).toFixed(2)} USDT)
|
).toFixed(2)} USDT) -->
|
||||||
</p>
|
</p>
|
||||||
<!-- <p class="text-sm mt-3">Курс</p>
|
<!-- <p class="text-sm mt-3">Курс</p>
|
||||||
<p>{foundedDispute["rate"]} {foundedDispute["currency_code"]}</p> -->
|
<p>{foundedDispute["rate"]} {foundedDispute["currency_code"]}</p> -->
|
||||||
@ -225,14 +226,14 @@
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
changeSum(foundedDispute["id"]);
|
changeSum(foundedDispute["uuid"]);
|
||||||
}}
|
}}
|
||||||
class="btn btn-outline btn-info"
|
class="btn btn-outline btn-info"
|
||||||
>
|
>
|
||||||
{#if showLoadingChangeSum}
|
{#if showLoadingChangeSum}
|
||||||
<span class="loading loading-dots loading-xs"></span>
|
<span class="loading loading-dots loading-xs"></span>
|
||||||
{:else}
|
{:else}
|
||||||
{"Изменить суму ручками"}
|
{"Изменить сумму ручками"}
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
@ -20,21 +20,21 @@ const config = {
|
|||||||
prerender: {
|
prerender: {
|
||||||
// default: true,
|
// default: true,
|
||||||
entries: [
|
entries: [
|
||||||
"/admin/user/change/sampleToken",
|
"/user/change/sampleToken",
|
||||||
"/admin/user/edit/req/sampleToken/sampleReqID",
|
"/user/edit/req/sampleToken/sampleReqID",
|
||||||
"/admin/user/neworder/sampleToken",
|
"/user/neworder/sampleToken",
|
||||||
"/admin/user/profile/sampleToken",
|
"/user/profile/sampleToken",
|
||||||
"/admin/",
|
"/",
|
||||||
"/admin/login",
|
"/login",
|
||||||
"/admin/newuser",
|
"/newuser",
|
||||||
"/admin/userslist",
|
"/userslist",
|
||||||
"/admin/disputes",
|
"/disputes",
|
||||||
"/admin/payouts",
|
"/payouts",
|
||||||
"/admin/merchants",
|
"/merchants",
|
||||||
"/admin/orders",
|
"/orders",
|
||||||
"/admin/currencies",
|
"/currencies",
|
||||||
"/admin/sms",
|
"/sms",
|
||||||
"/admin/withdrawals"
|
"/withdrawals"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user