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
09a94d26
Commit
09a94d26
authored
Mar 19, 2021
by
zenglun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交部分代码
parent
6391c09c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
24 deletions
+30
-24
package.json
package.json
+1
-2
addGoods.vue
src/components/category/addGoods.vue
+27
-20
UrlPrefix.js
src/config/UrlPrefix.js
+2
-2
No files found.
package.json
View file @
09a94d26
...
@@ -61,4 +61,4 @@
...
@@ -61,4 +61,4 @@
"last 2 versions"
,
"last 2 versions"
,
"not dead"
"not dead"
]
]
}
}
\ No newline at end of file
src/components/category/addGoods.vue
View file @
09a94d26
...
@@ -19,9 +19,10 @@ export default {
...
@@ -19,9 +19,10 @@ export default {
data
()
{
data
()
{
return
{
return
{
name
:
""
,
name
:
""
,
isactive
:
false
};
};
},
},
created
()
{},
computed
:
{
computed
:
{
//
//
},
},
...
@@ -32,6 +33,11 @@ export default {
...
@@ -32,6 +33,11 @@ export default {
this
.
$message
(
"请输入名称"
);
this
.
$message
(
"请输入名称"
);
return
false
;
return
false
;
}
}
if
(
this
.
isactive
)
{
return
;
}
this
.
isactive
=
true
;
const
res
=
await
this
.
$ajax
({
const
res
=
await
this
.
$ajax
({
type
:
"post"
,
type
:
"post"
,
url
:
GO_URLS
.
add
,
url
:
GO_URLS
.
add
,
...
@@ -43,7 +49,7 @@ export default {
...
@@ -43,7 +49,7 @@ export default {
userIcon
:
this
.
$store
.
state
.
userInfos
.
icon
||
""
,
userIcon
:
this
.
$store
.
state
.
userInfos
.
icon
||
""
,
evidenceName
:
this
.
name
,
evidenceName
:
this
.
name
,
stepName
:
""
,
stepName
:
""
,
banners
:
[]
,
banners
:
[]
}),
}),
detail
:
JSON
.
stringify
([
detail
:
JSON
.
stringify
([
{
{
...
@@ -55,62 +61,63 @@ export default {
...
@@ -55,62 +61,63 @@ export default {
data
:
{
data
:
{
type
:
"text"
,
type
:
"text"
,
format
:
"string"
,
format
:
"string"
,
value
:
this
.
name
,
value
:
this
.
name
},
},
type
:
0
,
type
:
0
,
key
:
"存证名称"
,
key
:
"存证名称"
,
label
:
"存证名称"
,
label
:
"存证名称"
},
},
{
{
data
:
{
data
:
{
type
:
"text"
,
type
:
"text"
,
format
:
"hash"
,
format
:
"hash"
,
value
:
"null"
,
value
:
"null"
},
},
type
:
0
,
type
:
0
,
key
:
"basehash"
,
key
:
"basehash"
,
label
:
"basehash"
,
label
:
"basehash"
},
},
{
{
data
:
{
data
:
{
type
:
"text"
,
type
:
"text"
,
format
:
"hash"
,
format
:
"hash"
,
value
:
"null"
,
value
:
"null"
},
},
type
:
0
,
type
:
0
,
key
:
"prehash"
,
key
:
"prehash"
,
label
:
"prehash"
,
label
:
"prehash"
},
},
{
{
data
:
{
data
:
{
type
:
"text"
,
type
:
"text"
,
format
:
"string"
,
format
:
"string"
,
value
:
null
,
value
:
null
},
},
type
:
0
,
type
:
0
,
key
:
"存证类型"
,
key
:
"存证类型"
,
label
:
"存证类型"
,
label
:
"存证类型"
}
,
}
]
,
]
},
},
{}
,
{}
])
,
])
}
,
}
});
});
if
(
res
)
{
if
(
res
)
{
this
.
$message
({
this
.
$message
({
message
:
"添加成功"
,
message
:
"添加成功"
,
type
:
"success"
,
type
:
"success"
});
});
this
.
isactive
=
false
;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/editTemplate"
,
path
:
"/editTemplate"
,
query
:
{
query
:
{
personalTemplateId
:
res
.
data
.
id
,
personalTemplateId
:
res
.
data
.
id
}
,
}
});
});
}
}
}
,
}
}
,
}
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
...
...
src/config/UrlPrefix.js
View file @
09a94d26
...
@@ -148,8 +148,8 @@ const configModules = {
...
@@ -148,8 +148,8 @@ const configModules = {
},
},
// 甘肃>测试环境
// 甘肃>测试环境
"gs_test"
:
{
"gs_test"
:
{
CHAIN_BROWSER_URL_PREFIX
:
'http://12
0.26.174.69:9032
/'
,
CHAIN_BROWSER_URL_PREFIX
:
'http://12
1.41.198.216:9010
/'
,
INERFACE_URL_PREFIX
:
'http://1
72.16.101.87
:46789'
,
INERFACE_URL_PREFIX
:
'http://1
21.41.198.216
:46789'
,
INDEX
:
{
INDEX
:
{
entry
:
'./src/entry/gs/main.ts'
,
entry
:
'./src/entry/gs/main.ts'
,
template
:
'./public/gs/index.html'
,
template
:
'./public/gs/index.html'
,
...
...
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