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
30704569
authored
2020-12-04 17:37:41 +0800
by
zhen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:更新iframe测试用例
1 parent
aceda2b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
src/views/editProduct.vue
src/views/editProduct.vue
View file @
3070456
<
template
>
<Card>
<Card
v-loading=
"pageLoading"
>
<h4
class=
"mb10"
>
产品基本属性
</h4>
<el-form
class=
"count-form"
...
...
@@ -215,7 +215,8 @@ export default {
},
linkRules
:
{
link
:
[{
validator
:
validateLink
,
trigger
:
'blur'
}]
}
},
pageLoading
:
false
}
},
computed
:
{
...
...
@@ -348,9 +349,9 @@ export default {
this
.
$router
.
go
(
-
1
)
},
async
editOrAdd
()
{
this
.
pageLoading
=
true
const
formData
=
this
.
constructorFormData
()
if
(
this
.
idAndCode
)
{
const
formData
=
this
.
constructorFormData
()
const
{
code
}
=
await
productEdit
(
formData
)
if
(
code
===
0
)
{
this
.
$message
({
...
...
@@ -369,6 +370,7 @@ export default {
this
.
$router
.
push
({
path
:
'product-infor-management'
})
}
}
this
.
pageLoading
=
false
},
constructorFormData
()
{
const
formData
=
new
FormData
()
...
...
@@ -384,7 +386,8 @@ export default {
this
.
fileList
.
forEach
(
item
=>
{
if
(
item
.
file
)
{
formData
.
append
(
`file
${
item
.
id
}
`
,
item
.
file
)
}
else
{
}
if
(
!
item
.
name
)
{
blackFile
.
push
(
item
.
id
)
}
})
...
...
@@ -406,10 +409,10 @@ export default {
code
:
this
.
idAndCode
.
code
})
this
.
form
=
{
name
:
name
,
type
:
type
,
code
:
code
,
risk
:
risk
,
name
,
type
,
code
,
risk
,
channel
:
channel
.
split
(
','
).
map
(
item
=>
item
-
0
)
}
...
...
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