Commit 9dd81b18 authored by chenqikuai's avatar chenqikuai

修改样式

parent 95191220
...@@ -12,12 +12,9 @@ ...@@ -12,12 +12,9 @@
回收站 回收站
</div> </div>
<sySearch <sySearch
:value="params.key_words" v-model:value="params.key_words"
:set-value="(v: any) => { @search="inputBlur"
params.key_words = v;
}"
placeholder="搜索存证名称/存证地址" placeholder="搜索存证名称/存证地址"
:handle-search="inputBlur"
></sySearch> ></sySearch>
</div> </div>
<div <div
......
...@@ -95,13 +95,16 @@ const handleClickQuery = (item: any, v: any) => { ...@@ -95,13 +95,16 @@ const handleClickQuery = (item: any, v: any) => {
const columns = [ const columns = [
{ {
width: "80", width: "30",
},
{
width: "90",
label: "序号", label: "序号",
dataIndex: "id", dataIndex: "id",
slotName: "id", slotName: "id",
}, },
{ {
width: "190", width: "300",
label: "存证名称", label: "存证名称",
dataIndex: "name", dataIndex: "name",
showOverflowTooltip: true, showOverflowTooltip: true,
...@@ -135,7 +138,7 @@ const columns = [ ...@@ -135,7 +138,7 @@ const columns = [
slotName: "query", slotName: "query",
}, },
{ {
width: "100", width: "85",
label: "操作", label: "操作",
dataIndex: "operate", dataIndex: "operate",
showOverflowTooltip: true, showOverflowTooltip: true,
......
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
<span <span
v-if="item2.status === 0" v-if="item2.status === 0"
class="state-start" class="state-start"
style="width: 70px"
@click="$emit('incremental-chain', item2, props)" @click="$emit('incremental-chain', item2, props)"
>点击上链</span >点击上链</span
> >
......
...@@ -121,6 +121,9 @@ export default defineComponent({ ...@@ -121,6 +121,9 @@ export default defineComponent({
return { return {
columns: [ columns: [
{ {
minWidth: "30",
},
{
label: "资产名称", label: "资产名称",
minWidth: "180", minWidth: "180",
slotName: "name", slotName: "name",
......
<template> <template>
<div class="search-wrapper items-center"> <div class="search-wrapper items-center">
<syButton @click="goPassMaker">创建数字资产</syButton> <syButton @click="goPassMaker" v-if="showCreateAsset"
>创建数字资产</syButton
>
<div class="choose-type ml-4"> <div class="choose-type ml-4">
<syMoreOperate <syMoreOperate
teleport teleport
...@@ -21,8 +23,7 @@ ...@@ -21,8 +23,7 @@
</syMoreOperate> </syMoreOperate>
</div> </div>
<sySearch <sySearch
:value="searchInput" v-model:value="searchInput"
:set-value="(v: any) => searchInput = v"
placeholder="搜索资产标识" placeholder="搜索资产标识"
></sySearch> ></sySearch>
<div class="sort"> <div class="sort">
...@@ -55,7 +56,7 @@ export default defineComponent({ ...@@ -55,7 +56,7 @@ export default defineComponent({
sySearch, sySearch,
syMoreOperate, syMoreOperate,
}, },
props: ["query", "searchPlaceholder"], props: ["query", "searchPlaceholder", "showCreateAsset"],
emits: ["update:query"], emits: ["update:query"],
data() { data() {
return { return {
......
<template> <template>
<div class="h-full flex flex-col"> <div class="h-full flex flex-col">
<Search v-model:query="query"></Search> <Search v-model:query="query" :showCreateAsset="true"></Search>
<div class="flex-grow overflow-hidden list-table"> <div class="flex-grow overflow-hidden list-table">
<div class="h-full" v-if="loading" ref="loading"></div> <div class="h-full" v-if="loading" ref="loading"></div>
<pass-list-table <pass-list-table
......
...@@ -81,6 +81,9 @@ export default defineComponent({ ...@@ -81,6 +81,9 @@ export default defineComponent({
return { return {
columns: [ columns: [
{ {
minWidth: "30",
},
{
label: "转账名称", label: "转账名称",
prop: "pass_name", prop: "pass_name",
slotName: "pass_name", slotName: "pass_name",
......
<template> <template>
<div class="h-full flex flex-col"> <div class="h-full flex flex-col">
<search v-model:query="query" search-placeholder="搜索资产标识"></search> <search
v-model:query="query"
search-placeholder="搜索资产标识"
:show-create-asset="false"
></search>
<div class="flex-grow overflow-hidden list-table"> <div class="flex-grow overflow-hidden list-table">
<div class="h-full" v-if="loading" ref="loading"></div> <div class="h-full" v-if="loading" ref="loading"></div>
<transfer-record-list <transfer-record-list
...@@ -13,14 +17,14 @@ ...@@ -13,14 +17,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from "vue" import { defineComponent } from "vue";
import SearchVue from "../PassList/Search.vue"; import SearchVue from "../PassList/Search.vue";
import TransferRecordList from "./TransferRecordList.vue"; import TransferRecordList from "./TransferRecordList.vue";
import { GO_URLS } from "cqk-sy-ui" import { GO_URLS } from "cqk-sy-ui";
import { $ajax } from "@/service"; import { $ajax } from "@/service";
import { ElLoading } from "element-plus"; import { ElLoading } from "element-plus";
type iService = ReturnType<typeof ElLoading.service> type iService = ReturnType<typeof ElLoading.service>;
export default defineComponent({ export default defineComponent({
data() { data() {
...@@ -28,27 +32,27 @@ export default defineComponent({ ...@@ -28,27 +32,27 @@ export default defineComponent({
query: { query: {
// 查询通证列表的查询条件 // 查询通证列表的查询条件
type: 0, type: 0,
identifier: '', identifier: "",
amount_sort: 0 amount_sort: 0,
}, },
page: 1, page: 1,
page_size: 50, page_size: 50,
transferList: [], // 查询到的通证列表 transferList: [], // 查询到的通证列表
total: 0, total: 0,
loading: true, loading: true,
} };
}, },
components: { components: {
Search: SearchVue, Search: SearchVue,
TransferRecordList TransferRecordList,
}, },
async mounted() { async mounted() {
let service = null as unknown as iService; let service = null as unknown as iService;
this.$nextTick(() => { this.$nextTick(() => {
service = ElLoading.service({ service = ElLoading.service({
target: this.$refs.loading as HTMLElement target: this.$refs.loading as HTMLElement,
}) });
}) });
await this.getList(true); await this.getList(true);
this.loading = false; this.loading = false;
service.close(); service.close();
...@@ -56,7 +60,7 @@ export default defineComponent({ ...@@ -56,7 +60,7 @@ export default defineComponent({
watch: { watch: {
query() { query() {
this.getList(true); this.getList(true);
} },
}, },
methods: { methods: {
/** /**
...@@ -66,23 +70,19 @@ export default defineComponent({ ...@@ -66,23 +70,19 @@ export default defineComponent({
if (refresh) { if (refresh) {
this.page = 1; this.page = 1;
} }
const params = Object.assign( const params = Object.assign({}, this.query, {
{},
this.query,
{
page: this.page, page: this.page,
page_size: this.page_size page_size: this.page_size,
} });
)
let newParams = params as any; let newParams = params as any;
if (params.identifier === '') { if (params.identifier === "") {
const { identifier, ...restResult } = params const { identifier, ...restResult } = params;
newParams = restResult; newParams = restResult;
}; }
const res = await $ajax({ const res = await $ajax({
type: "get", type: "get",
url: GO_URLS.transferList, url: GO_URLS.transferList,
params: newParams params: newParams,
}); });
if (res) { if (res) {
this.total = res.data.total; this.total = res.data.total;
...@@ -101,9 +101,9 @@ export default defineComponent({ ...@@ -101,9 +101,9 @@ export default defineComponent({
this.page += 1; this.page += 1;
await this.getList(false); await this.getList(false);
} }
}
}, },
}) },
});
</script> </script>
<style scoped> <style scoped>
......
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