Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
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
Tracing
source-trace-manage-go
Commits
461fae81
Commit
461fae81
authored
Feb 18, 2022
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix two links link to browser
parent
3519748c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
IncrementalDataList.vue
src/components/newProductList/IncrementalDataList.vue
+5
-1
IssuePass.vue
src/components/newProductList/IssuePass.vue
+0
-1
common.ts
src/utils/app/common.ts
+1
-1
No files found.
src/components/newProductList/IncrementalDataList.vue
View file @
461fae81
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
v-else-if=
"item.pass_id === 0"
>
发行通证
</el-button>
v-else-if=
"item.pass_id === 0"
>
发行通证
</el-button>
<div
v-else
>
<div
v-else
>
<span
>
已发行
</span>
<span
>
已发行
</span>
<el-button
class=
"text-btn"
type=
"text"
>
查询
</el-button>
<el-button
@
click=
"checkPass(item)"
class=
"text-btn"
type=
"text"
>
查询
</el-button>
</div>
</div>
</li>
</li>
<li
class=
"content-set"
>
<li
class=
"content-set"
>
...
@@ -235,6 +235,7 @@ import { downloadQrCode, getQR, openChainBrowser } from "@/utils/app/common";
...
@@ -235,6 +235,7 @@ import { downloadQrCode, getQR, openChainBrowser } from "@/utils/app/common";
import
CommonDialog
from
"@/components/CommonDialog.vue"
;
import
CommonDialog
from
"@/components/CommonDialog.vue"
;
import
{
GO_URLS
}
from
"@/config/URLS"
;
import
{
GO_URLS
}
from
"@/config/URLS"
;
import
IssuePass
from
"@/components/newProductList/IssuePass"
;
import
IssuePass
from
"@/components/newProductList/IssuePass"
;
import
store
from
"@/store"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -279,6 +280,9 @@ export default {
...
@@ -279,6 +280,9 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
checkPass
(
item
)
{
window
.
open
(
`
${
store
.
getters
.
get_urlList
.
chain_browser_url
}
/trace_token?goods_id=
${
item
.
pass_id
}
`
);
},
showIssuePass
(
item
)
{
showIssuePass
(
item
)
{
this
.
curItem
=
item
;
this
.
curItem
=
item
;
this
.
passShow
=
true
;
this
.
passShow
=
true
;
...
...
src/components/newProductList/IssuePass.vue
View file @
461fae81
...
@@ -82,7 +82,6 @@ export default {
...
@@ -82,7 +82,6 @@ export default {
{
proof_id
:
this
.
content
.
id
}
{
proof_id
:
this
.
content
.
id
}
)
)
params
.
type
=
Number
(
params
.
type
);
params
.
type
=
Number
(
params
.
type
);
console
.
log
(
params
);
const
res
=
await
this
.
$ajax
({
const
res
=
await
this
.
$ajax
({
type
:
"post"
,
type
:
"post"
,
url
:
GO_URLS
.
pass
,
url
:
GO_URLS
.
pass
,
...
...
src/utils/app/common.ts
View file @
461fae81
...
@@ -3,7 +3,7 @@ import { Message } from 'element-ui';
...
@@ -3,7 +3,7 @@ import { Message } from 'element-ui';
import
store
from
"@/store"
;
import
store
from
"@/store"
;
function
getChainBrowserUrl
(
hash
:
string
):
string
{
function
getChainBrowserUrl
(
hash
:
string
):
string
{
return
`
${
store
.
getters
.
get_urlList
.
chain_browser_url
}
product?hash=
${
hash
}
`
;
return
`
${
store
.
getters
.
get_urlList
.
chain_browser_url
}
/
product?hash=
${
hash
}
`
;
}
}
/**
/**
...
...
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