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
1786d058
Commit
1786d058
authored
Apr 14, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
02c58ee7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
74 deletions
+90
-74
IncrementalTable.vue
src/views/category/components/IncrementalTable.vue
+78
-13
IssuePass.vue
src/views/category/components/IssuePass.vue
+12
-59
uploadFile.vue
src/views/category/components/uploadFile.vue
+0
-2
No files found.
src/views/category/components/IncrementalTable.vue
View file @
1786d058
...
...
@@ -58,9 +58,10 @@
v-if=
"props.index.$index === expandTheListIndex"
v-for=
"(item2, index2) in props.incrementList"
:key=
"index2"
class=
"notFirstLineCell"
class=
"notFirstLineCell cursor-pointer overflow-ellipsis overflow-hidden whitespace-nowrap"
@
click=
"enterDetails(item2, props, props.index.$index)"
>
{{
stringCutting
(
item2
.
name
,
7
)
}}
{{
item2
.
name
}}
</div>
</
template
>
<
template
#
date=
"props"
>
...
...
@@ -217,7 +218,9 @@
</template>
<
template
#
proof=
"props"
>
<div
class=
"firstLineCell"
>
<span
v-if=
"props.status !== 2"
class=
"text-gray text-xs"
>
创建数字资产
</span>
<span
v-if=
"props.status !== 2"
class=
"text-gray text-xs"
>
创建数字资产
</span
>
<el-button
class=
"text-btn text-xs"
type=
"text"
...
...
@@ -226,8 +229,13 @@
>
创建数字资产
</el-button
>
<div
v-else
class=
"flex items-center"
>
<span
class=
"text-black mr-2.5 whitespace-nowrap text-xs"
>
已发行
</span>
<el-button
@
click=
"checkPass(props)"
class=
"text-btn text-xs"
type=
"text"
<span
class=
"text-black mr-2.5 whitespace-nowrap text-xs"
>
已发行
</span
>
<el-button
@
click=
"checkPass(props)"
class=
"text-btn text-xs"
type=
"text"
>
查询
</el-button
>
</div>
...
...
@@ -273,17 +281,42 @@
</div>
</
template
>
</syTable>
<syCommonDialog
showMask
v-if=
"passShow"
@
closePopup=
"passShow = false"
>
<IssuePass
@
update=
"$emit('update')"
:content=
"curItem"
@
closePopup=
"passShow = false"
></IssuePass>
<syCommonDialog
showMask
type=
"element"
:visible=
"passShow"
:title-align-center=
"true"
@
closePopup=
"passShow = false"
:element-dialog-props=
"{
title: switchStatus === 'form' ? '创建数字资产' : '源文件上链',
width: '592px',
}"
:no-padding=
"true"
>
<
template
#
titleLeft
>
<div
class=
"back_btn cursor-pointer"
@
click=
"switchStatus = 'form'"
v-if=
"switchStatus !== 'form'"
>
<i
class=
"iconfont iconZUO1 header-btn_back-icon"
></i>
返回
</div>
</
template
>
<
template
#
default
>
<IssuePass
@
update=
"$emit('update')"
:setStatus=
"(v: string) => (switchStatus = v)"
:status=
"switchStatus"
:content=
"curItem"
@
closePopup=
"passShow = false"
></IssuePass
></
template
>
</syCommonDialog>
</template>
<
script
lang=
"ts"
setup
>
import
{
$ajax
}
from
"@/service"
;
import
{
setIncrementList
}
from
"@/store/mutations"
;
import
{
setIncrementList
,
setTheAnchor
}
from
"@/store/mutations"
;
import
{
globalState
}
from
"@/store/state"
;
import
IssuePass
from
"./IssuePass.vue"
;
import
{
...
...
@@ -295,11 +328,11 @@ import {
downloadQrCode
,
openChainBrowser
,
GO_URLS
,
stringCutting
,
syCommonDialog
,
}
from
"cqk-sy-ui"
;
import
{
ElMessage
,
ElButton
}
from
"element-plus"
;
import
{
ref
,
watch
}
from
"vue"
;
import
{
router
}
from
"@/router"
;
const
getIndex
=
(
index
:
number
)
=>
{
return
(
globalState
.
page
-
1
)
*
10
+
(
index
+
1
);
...
...
@@ -377,6 +410,9 @@ const passShow = ref(false);
const
curItem
=
ref
({});
const
expandTheListIndex
=
ref
(
-
1
);
const
dialogTitle
=
ref
(
"创建数字资产"
);
const
switchStatus
=
ref
(
"form"
);
watch
(
()
=>
globalState
.
listOfInformation
,
(
newV
,
oldV
)
=>
{
...
...
@@ -460,6 +496,23 @@ const getOperateList = (item: any) => {
});
};
const
enterDetails
=
(
item2
:
{
status
:
number
;
id
:
any
},
item
:
{
id
:
any
;
name
:
any
},
index
:
any
)
=>
{
if
(
item2
.
status
===
1
)
return
false
;
setTheAnchor
(
index
);
router
.
push
({
path
:
"/editTemplate"
,
query
:
{
personalTemplateId
:
item
.
id
,
//父级id
personalTemplateName
:
item
.
name
,
// 父级name
childId
:
item2
.
id
,
// 当前存证id
},
});
};
const
handleClickMoreOperateItem
=
(
value
:
string
,
props
:
any
)
=>
{
operateList
.
find
((
i
)
=>
i
.
value
===
value
)?.
click
(
props
);
};
...
...
@@ -536,6 +589,18 @@ const openBlock = (item: any, index: any) => {
};
</
script
>
<
style
lang=
"scss"
scoped
>
.back_btn
{
white-space
:
nowrap
;
width
:
62px
;
font-weight
:
400
;
font-size
:
16px
;
cursor
:
pointer
;
.header-btn_back-icon
{
color
:
#d2d2d2
;
font-size
:
14px
;
margin-right
:
5px
;
}
}
.iconerweima--check
{
color
:
var
(
--
sy-blue
);
cursor
:
pointer
;
...
...
src/views/category/components/IssuePass.vue
View file @
1786d058
<
template
>
<div
class=
"issue-pass"
v-loading=
"inSubmit"
>
<div
class=
"head"
v-show=
"switchStatus == 'form'"
>
创建数字资产
</div>
<div
class=
"form"
v-show=
"switchStatus == 'form'"
>
<div
class=
"form"
v-show=
"status == 'form'"
>
<div
class=
"content"
>
<img
src=
"https://cdn.jsdelivr.net/npm/trace-resource@1.0.9/images/newProductList/pass.png"
...
...
@@ -115,7 +114,7 @@
/>
</div>
<div
class=
"file_name"
>
{{
file
.
name
}}
</div>
<div
class=
"reUpload"
@
click=
"s
witchStatus = 'upload'
"
>
<div
class=
"reUpload"
@
click=
"s
etStatus('upload')
"
>
<img
src=
"https://cdn.jsdelivr.net/npm/trace-resource@1.0.9/images/newProductList/reUpload_icon.png"
alt=
""
...
...
@@ -138,16 +137,7 @@
预计扣除次数
<span
class=
"fee"
>
{{
fee
}}
</span>
次
</div>
</div>
<div
class=
"head upload_head"
v-show=
"switchStatus == 'upload'"
>
<div
class=
"back_btn"
@
click=
"goForm"
>
<i
class=
"iconfont iconZUO1 header-btn_back-icon"
></i>
返回
</div>
源文件上链
<div
class=
"back_btn"
></div>
</div>
<div
class=
"upload"
v-show=
"switchStatus == 'upload'"
>
<div
class=
"upload"
v-show=
"status == 'upload'"
>
<UploadFileVue
@
uploaded=
"uploaded"
:fileData=
"file"
></UploadFileVue>
<Button
class=
"w-full"
...
...
@@ -183,7 +173,7 @@ import { $ajax } from "@/service";
export
default
defineComponent
({
name
:
"IssuePass"
,
props
:
[
"content"
],
props
:
[
"content"
,
"setStatus"
,
"status"
],
components
:
{
Button
:
syButton
,
UploadFileVue
,
...
...
@@ -212,7 +202,6 @@ export default defineComponent({
fileUpload
:
[{
required
:
false
,
message
:
"点击上传"
,
trigger
:
"blur"
}],
},
amountDisable
:
false
,
switchStatus
:
"form"
,
chainSelectAction
:
[
{
value
:
0
,
...
...
@@ -264,10 +253,10 @@ export default defineComponent({
},
methods
:
{
goUpload
()
{
this
.
s
witchStatus
=
"upload"
;
this
.
s
etStatus
(
"upload"
)
;
},
goForm
()
{
this
.
s
witchStatus
=
"form"
;
this
.
s
etStatus
(
"form"
)
;
},
uploaded
(
payload
:
any
)
{
if
(
payload
.
file
.
name
)
{
...
...
@@ -344,7 +333,7 @@ export default defineComponent({
width
:
30%
;
}
.el-form-item
{
margin-bottom
:
17
px
;
margin-bottom
:
20
px
;
.el-form-item__label
{
line-height
:
35px
;
...
...
@@ -354,13 +343,7 @@ export default defineComponent({
padding-right
:
22px
;
}
.el-form-item__content
{
height
:
35px
;
line-height
:
35px
;
.el-input
{
width
:
420px
;
height
:
35px
;
line-height
:
35px
;
input
:
:-
webkit-outer-spin-button
,
input
::-
webkit-inner-spin-button
{
-webkit-appearance
:
none
;
...
...
@@ -368,21 +351,10 @@ export default defineComponent({
input
[
type
=
"number"
]
{
-moz-appearance
:
textfield
;
}
.el-input__inner
{
height
:
35px
;
line-height
:
35px
;
}
}
.el-button--primary
{
width
:
30%
;
height
:
35px
;
line-height
:
35px
;
padding
:
0
;
}
}
.el-form-item__error
{
padding-left
:
94
px
;
padding-left
:
0
px
;
}
.el-input__icon
{
line-height
:
35px
;
...
...
@@ -434,10 +406,7 @@ export default defineComponent({
</
style
>
<
style
scoped
lang=
"scss"
>
.issue-pass
{
width
:
592px
;
min-height
:
450px
;
background
:
#ffffff
;
border-radius
:
4px
;
.head
{
line-height
:
60px
;
font-size
:
18px
;
...
...
@@ -446,25 +415,9 @@ export default defineComponent({
text-align
:
center
;
border-bottom
:
1px
solid
#f0f1f5
;
}
.upload_head
{
display
:
flex
;
justify-content
:
space-between
;
padding
:
0
34px
;
.back_btn
{
white-space
:
nowrap
;
width
:
62px
;
font-weight
:
400
;
font-size
:
16px
;
cursor
:
pointer
;
.header-btn_back-icon
{
color
:
#d2d2d2
;
font-size
:
14px
;
margin-right
:
5px
;
}
}
}
.form
{
padding
:
17px
37px
67
px
38px
;
padding
:
20px
37px
0
px
38px
;
.content
{
width
:
517px
;
...
...
@@ -476,7 +429,7 @@ export default defineComponent({
color
:
#a6a6a6
;
display
:
flex
;
align-items
:
center
;
margin-bottom
:
14
px
;
margin-bottom
:
20
px
;
img
{
width
:
30px
;
...
...
@@ -492,7 +445,7 @@ export default defineComponent({
}
}
.upload
{
padding
:
17px
37px
67
px
38px
;
padding
:
17px
37px
0
px
38px
;
.upload_tip
{
margin-top
:
12px
;
color
:
#ff8311
;
...
...
src/views/category/components/uploadFile.vue
View file @
1786d058
...
...
@@ -165,9 +165,7 @@
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
"vue"
;
import
{
GO_URLS
}
from
"cqk-sy-ui"
;
import
{
ElMessage
,
ElRadio
,
ElProgress
}
from
"element-plus"
;
import
{
$ajax
}
from
"@/service"
;
enum
UploadStatusType
{
INIT
=
1
,
...
...
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