Commit bc66e71e authored by chenqikuai's avatar chenqikuai

fix

parent d45c7d9f
......@@ -7,7 +7,7 @@ import {
getVoterAddrCount,
} from "@/service/api";
import { iExecAccount, iPack, iVote } from "@/types/address";
import { icustomized2Tx, iTx } from "@/types/trade";
import { icustomized2Tx } from "@/types/trade";
import Rpc from "@/utils/Rpc";
import Vue from "vue";
......@@ -72,14 +72,14 @@ export default Vue.extend({
];
},
execerOptionsList(): { name: string; value: string }[] {
return this.execAccount.map((i: any) => ({
return this.execAccount.map((i) => ({
name: i.execer,
value: i.execer,
}));
},
balance(): number {
return (
this.execAccount.find((i: any) => i.execer === this.selectedExecer) || {
this.execAccount.find((i) => i.execer === this.selectedExecer) || {
account: {
balance: 0,
},
......@@ -88,7 +88,7 @@ export default Vue.extend({
},
frozen(): number {
return (
this.execAccount.find((i: any) => i.execer === this.selectedExecer) || {
this.execAccount.find((i) => i.execer === this.selectedExecer) || {
account: {
frozen: 0,
},
......@@ -159,6 +159,7 @@ export default Vue.extend({
this.pages3.pageSize
).then((res) => {
if (res.error === null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.packList = res.result.map((i: any) => ({
...i,
sender: i.from,
......@@ -180,6 +181,7 @@ export default Vue.extend({
this.pages2.pageSize
).then((res) => {
if (res.error === null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.voteList = res.result.map((i: any) => ({
...i,
sender: i.from,
......@@ -207,6 +209,7 @@ export default Vue.extend({
}
});
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
groupCellName(val: any) {
switch (val.row.tradeG) {
case 0:
......@@ -231,6 +234,7 @@ export default Vue.extend({
this.pages3.pageSize
).then((res) => {
if (res.error === null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.packList = res.result.map((i: any) => ({
...i,
sender: i.from,
......@@ -252,6 +256,7 @@ export default Vue.extend({
this.pages2.pageSize
).then((res) => {
if (res.error === null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.voteList = res.result.map((i: any) => ({
...i,
sender: i.from,
......
/* eslint-disable @typescript-eslint/no-explicit-any */
import { getRpc } from "ycc-api/src/service/Rpc";
import Vue from "vue";
import { getBlockOverviewAndRelativeHeight } from "ycc-api/dist/cmjs/service/blockDetail";
......@@ -41,6 +42,7 @@ export default Vue.extend({
};
},
methods: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
isSuccess(execer: any, ty: any) {
return !tradeAccuracy(execer, ty);
},
......@@ -66,6 +68,7 @@ export default Vue.extend({
}
});
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
checkGroup(arr: any[]) {
arr.map((current, index) => {
if (current.tx.groupCount > 1) {
......@@ -203,7 +206,7 @@ export default Vue.extend({
this.init();
},
watch: {
"$route.query.height"(newV, oldV) {
"$route.query.height"() {
this.pages = {
currentPage: 1,
pageSize: 10,
......
......@@ -21,22 +21,22 @@ export default Vue.extend({
});
},
computed: {
tradeInTotalList(): any {
tradeInTotalList(): { name: string; value: number }[] {
return [
{
name: this.$t("lang.address.totalReception"),
name: this.$t("lang.address.totalReception") as string,
value: this.receive,
},
{
name: this.$t("lang.address.totalSent"),
name: this.$t("lang.address.totalSent") as string,
value: this.send,
},
{
name: this.$t("lang.address.totalValue"),
name: this.$t("lang.address.totalValue") as string,
value: this.value,
},
{
name: this.$t("lang.block.txCount"),
name: this.$t("lang.block.txCount") as string,
value: this.txCount,
},
];
......
/* eslint-disable @typescript-eslint/no-explicit-any */
import Rpc from "@/utils/Rpc";
import { message } from "ant-design-vue";
import Vue, { PropType } from "vue";
......
/* eslint-disable @typescript-eslint/no-explicit-any */
import { getTxCount, getTxList } from "@/service/api";
import { icustomized2Tx } from "@/types/trade";
import Vue from "vue";
......
/* eslint-disable @typescript-eslint/no-explicit-any */
import { queryTransaction } from "ycc-api/dist/cmjs/service/blockDetail/index";
import Vue from "vue";
......@@ -9,15 +10,9 @@ export default Vue.extend({
loading: false,
};
},
mounted() {
this.init();
},
activated() {
this.init();
},
computed: {
},
methods: {
clickSearch(str: string) {
console.log(str);
......
/* eslint-disable @typescript-eslint/no-explicit-any */
export interface iAsset {
amount: number;
exec: string;
......@@ -7,6 +8,7 @@ export interface iAsset {
export interface iTx {
action_name: string;
amount: number;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assets: any[];
block_hash: string;
block_time: number;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment