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
cc8a2226
authored
2020-11-06 11:46:06 +0800
by
zhen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
详情页添加返回按钮
1 parent
bb5baa7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
2 deletions
.env.development
src/components/goBack/index.vue
src/views/editProduct.vue
.env.development
View file @
cc8a222
...
...
@@ -3,5 +3,5 @@ ENV = 'development'
# base api
# VUE_APP_BASE_API = 'http://192.168.11.67:8096'
VUE_APP_BASE_API = 'http://192.168.10.89:8096'
#
VUE_APP_BASE_API = 'https://beta-salecloud-hengan.situdata.com'
#
VUE_APP_BASE_API = 'http://192.168.10.89:8096'
VUE_APP_BASE_API = 'https://beta-salecloud-hengan.situdata.com'
...
...
src/components/goBack/index.vue
0 → 100644
View file @
cc8a222
<
template
>
<div
class=
"go-back"
>
<div
class=
"go-back-wrapper"
@
click=
"goBack"
>
<i
class=
"el-icon-back left-icon"
></i>
<span
class=
"title"
>
返回
</span>
</div>
</div>
</
template
>
<
script
>
export
default
{
methods
:
{
goBack
()
{
this
.
$router
.
go
(
-
1
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.go-back
{
&-wrapper
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
cursor
:
pointer
;
.left-icon
{
display
:
inline-block
;
font-size
:
18px
;
margin-right
:
6px
;
align-self
:
center
;
}
.title
{
font-size
:
14px
;
font-weight
:
500
;
}
}
}
</
style
>
src/views/editProduct.vue
View file @
cc8a222
<
template
>
<Card>
<GoBack
class=
"go-back mb10"
></GoBack>
<h4
class=
"mb10"
>
产品基本属性
</h4>
<el-form
class=
"count-form"
...
...
@@ -142,11 +143,15 @@ 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
)
{
...
...
@@ -376,12 +381,20 @@ export default {
}
}
let
blackFile
=
[]
this
.
fileList
.
forEach
(
item
=>
{
if
(
item
.
file
)
{
formData
.
append
(
`file
${
item
.
id
}
`
,
item
.
file
)
}
else
{
blackFile
.
push
(
item
.
id
)
}
})
if
(
this
.
idAndCode
)
{
// 修改模式添加此字段
formData
.
append
(
'blackFile'
,
blackFile
.
join
())
}
formData
.
append
(
'link'
,
this
.
linkForm
.
link
)
return
formData
...
...
@@ -433,4 +446,9 @@ export default {
display
:
flex
;
justify-content
:
center
;
}
.go-back
{
margin-left
:
-10px
;
margin-top
:
-20px
;
}
</
style
>
...
...
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