Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
source-trace-manage
Commits
9dd81b18
Commit
9dd81b18
authored
Apr 13, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
95191220
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
106 deletions
+114
-106
Deleted.vue
src/views/category/components/Deleted.vue
+2
-5
DeletedTable.vue
src/views/category/components/DeletedTable.vue
+6
-3
IncrementalTable.vue
src/views/category/components/IncrementalTable.vue
+1
-0
PassListTable.vue
src/views/pass/PassList/PassListTable.vue
+3
-0
Search.vue
src/views/pass/PassList/Search.vue
+5
-4
index.vue
src/views/pass/PassList/index.vue
+1
-1
TransferRecordList.vue
src/views/pass/TransferRecord/TransferRecordList.vue
+3
-0
index.vue
src/views/pass/TransferRecord/index.vue
+93
-93
No files found.
src/views/category/components/Deleted.vue
View file @
9dd81b18
...
@@ -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
...
...
src/views/category/components/DeletedTable.vue
View file @
9dd81b18
...
@@ -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
:
"
19
0"
,
width
:
"
30
0"
,
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
,
...
...
src/views/category/components/IncrementalTable.vue
View file @
9dd81b18
...
@@ -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
>
>
...
...
src/views/pass/PassList/PassListTable.vue
View file @
9dd81b18
...
@@ -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"
,
...
...
src/views/pass/PassList/Search.vue
View file @
9dd81b18
<
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
{
...
...
src/views/pass/PassList/index.vue
View file @
9dd81b18
<
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
...
...
src/views/pass/TransferRecord/TransferRecordList.vue
View file @
9dd81b18
...
@@ -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"
,
...
...
src/views/pass/TransferRecord/index.vue
View file @
9dd81b18
<
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
<div
class=
"flex-grow overflow-hidden list-table"
>
v-model:query=
"query"
<div
class=
"h-full"
v-if=
"loading"
ref=
"loading"
></div>
search-placeholder=
"搜索资产标识"
<transfer-record-list
:show-create-asset=
"false"
v-if=
"!loading"
></search>
@
nextPage=
"nextPage"
<div
class=
"flex-grow overflow-hidden list-table"
>
:transfer-list=
"transferList"
<div
class=
"h-full"
v-if=
"loading"
ref=
"loading"
></div>
/>
<transfer-record-list
</div>
v-if=
"!loading"
@
nextPage=
"nextPage"
:transfer-list=
"transferList"
/>
</div>
</div>
</div>
</
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
()
{
return
{
return
{
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
()
{
let
service
=
null
as
unknown
as
iService
;
this
.
$nextTick
(()
=>
{
service
=
ElLoading
.
service
({
target
:
this
.
$refs
.
loading
as
HTMLElement
,
});
});
await
this
.
getList
(
true
);
this
.
loading
=
false
;
service
.
close
();
},
watch
:
{
query
()
{
this
.
getList
(
true
);
},
},
async
mounted
()
{
},
let
service
=
null
as
unknown
as
iService
;
methods
:
{
this
.
$nextTick
(()
=>
{
/**
service
=
ElLoading
.
service
({
* @param refresh 当查询条件改变时传入整个列表刷新,否则查询数据添加到 passList
target
:
this
.
$refs
.
loading
as
HTMLElement
*/
})
async
getList
(
refresh
:
any
)
{
})
if
(
refresh
)
{
await
this
.
getList
(
true
);
this
.
page
=
1
;
this
.
loading
=
false
;
}
service
.
close
();
const
params
=
Object
.
assign
({},
this
.
query
,
{
},
page
:
this
.
page
,
watch
:
{
page_size
:
this
.
page_size
,
query
()
{
});
this
.
getList
(
true
);
let
newParams
=
params
as
any
;
if
(
params
.
identifier
===
""
)
{
const
{
identifier
,
...
restResult
}
=
params
;
newParams
=
restResult
;
}
const
res
=
await
$ajax
({
type
:
"get"
,
url
:
GO_URLS
.
transferList
,
params
:
newParams
,
});
if
(
res
)
{
this
.
total
=
res
.
data
.
total
;
if
(
refresh
)
{
this
.
transferList
=
res
.
data
.
results
||
[];
}
else
{
this
.
transferList
=
this
.
transferList
.
concat
(
res
.
data
.
results
);
}
}
}
},
},
methods
:
{
/**
/**
* 滚动加载通证列表
* @param refresh 当查询条件改变时传入整个列表刷新,否则查询数据添加到 passList
*/
*/
async
nextPage
()
{
async
getList
(
refresh
:
any
)
{
if
(
this
.
total
>
this
.
page
*
this
.
page_size
)
{
if
(
refresh
)
{
this
.
page
+=
1
;
this
.
page
=
1
;
await
this
.
getList
(
false
);
}
}
const
params
=
Object
.
assign
(
{},
this
.
query
,
{
page
:
this
.
page
,
page_size
:
this
.
page_size
}
)
let
newParams
=
params
as
any
;
if
(
params
.
identifier
===
''
)
{
const
{
identifier
,
...
restResult
}
=
params
newParams
=
restResult
;
};
const
res
=
await
$ajax
({
type
:
"get"
,
url
:
GO_URLS
.
transferList
,
params
:
newParams
});
if
(
res
)
{
this
.
total
=
res
.
data
.
total
;
if
(
refresh
)
{
this
.
transferList
=
res
.
data
.
results
||
[];
}
else
{
this
.
transferList
=
this
.
transferList
.
concat
(
res
.
data
.
results
);
}
}
},
/**
* 滚动加载通证列表
*/
async
nextPage
()
{
if
(
this
.
total
>
this
.
page
*
this
.
page_size
)
{
this
.
page
+=
1
;
await
this
.
getList
(
false
);
}
}
},
},
})
},
});
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.list-table
{
.list-table
{
margin-top
:
21px
;
margin-top
:
21px
;
margin-left
:
13px
;
margin-left
:
13px
;
margin-right
:
11px
;
margin-right
:
11px
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment