Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuzhen@situdata.com
/
yunxiao-admin-fe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
249be2df
authored
2020-11-20 16:34:25 +0800
by
zhen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
编辑新增产品添加取消逻辑
1 parent
9e8e52ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
src/views/editProduct.vue
src/views/editProduct.vue
View file @
249be2d
<
template
>
<Card>
<GoBack
class=
"go-back mb10"
></GoBack>
<h4
class=
"mb10"
>
产品基本属性
</h4>
<el-form
class=
"count-form"
...
...
@@ -124,6 +123,7 @@
</el-form-item>
</el-form>
<div
class=
"bottom"
>
<el-button
@
click=
"goBack"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
提交
</el-button>
</div>
</Card>
...
...
@@ -143,15 +143,11 @@ import {
productEdit
,
productAdd
}
from
'@/api/productInforManagement'
import
GoBack
from
'_c/goBack'
const
urlReg
=
/
[
a-zA-z
]
+:
\/\/[^\s]
*/
export
default
{
props
:
[
'idAndCode'
],
components
:
{
GoBack
},
data
()
{
const
validateCode
=
async
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
...
...
@@ -348,6 +344,9 @@ export default {
console
.
log
(
error
)
}
},
goBack
()
{
this
.
$router
.
go
(
-
1
)
},
async
editOrAdd
()
{
const
formData
=
this
.
constructorFormData
()
if
(
this
.
idAndCode
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment