Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
longhui_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨硕
longhui_web
Commits
8b68f9bb
Commit
8b68f9bb
authored
Jun 25, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc端修改
parent
0eb46d07
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
element-ui.scss
src/styles/element-ui.scss
+1
-0
businessadd.vue
src/views/business/businessadd.vue
+23
-2
index.vue
src/views/business/index.vue
+3
-0
No files found.
src/styles/element-ui.scss
View file @
8b68f9bb
...
@@ -416,3 +416,4 @@ label {
...
@@ -416,3 +416,4 @@ label {
text-align
:
left
;
text-align
:
left
;
}
}
}
}
src/views/business/businessadd.vue
View file @
8b68f9bb
...
@@ -32,6 +32,11 @@
...
@@ -32,6 +32,11 @@
<el-input
v-model
.
trim=
"form.entryAccount"
:maxlength=
"25"
placeholder=
"请输入商家账号"
/>
<el-input
v-model
.
trim=
"form.entryAccount"
:maxlength=
"25"
placeholder=
"请输入商家账号"
/>
</el-form-item>
</el-form-item>
</div>
</div>
<div
style=
"display: flex;justify-content: space-between"
>
<el-form-item
label=
"权重"
prop=
"sort"
>
<el-input-number
v-model=
"form.sort"
:min=
"0"
:max=
"9999"
style=
"width: 100%"
controls-position=
"right"
:precision=
"0"
/>
</el-form-item>
</div>
<el-form-item
label=
"商家简介"
prop=
"entryDetails"
>
<el-form-item
label=
"商家简介"
prop=
"entryDetails"
>
<el-input
v-model
.
trim=
"form.entryDetails"
type=
"textarea"
:maxlength=
"500"
placeholder=
"请输入商家简介"
/>
<el-input
v-model
.
trim=
"form.entryDetails"
type=
"textarea"
:maxlength=
"500"
placeholder=
"请输入商家简介"
/>
</el-form-item>
</el-form-item>
...
@@ -69,7 +74,7 @@
...
@@ -69,7 +74,7 @@
>
>
<img
v-if=
"imgageUrl"
:src=
"imgageUrl"
class=
"avatar"
>
<img
v-if=
"imgageUrl"
:src=
"imgageUrl"
class=
"avatar"
>
<!--
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
-->
<!--
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
-->
<div
v-if=
"!imgageUrl"
class=
"upload-trademark"
>
<div
v-if=
"!imgageUrl"
class=
"upload-trademark"
>
<i
class=
"el-icon-plus"
style=
"width: 20px;height: 20px;margin-top: 10px;"
/>
<i
class=
"el-icon-plus"
style=
"width: 20px;height: 20px;margin-top: 10px;"
/>
<div
class=
"upload-trademark-title"
>
上传封面
</div>
<div
class=
"upload-trademark-title"
>
上传封面
</div>
</div>
</div>
...
@@ -131,7 +136,9 @@ export default {
...
@@ -131,7 +136,9 @@ export default {
entryAccount
:
[
entryAccount
:
[
{
required
:
true
,
message
:
'请输入商家账号'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入商家账号'
,
trigger
:
'blur'
}
// { validator: verifyNameProp, trigger: 'blur' }
// { validator: verifyNameProp, trigger: 'blur' }
]
],
sort
:
[{
required
:
true
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
type
:
'number'
,
validator
:
this
.
validWeigh
,
trigger
:
'change'
}]
}
}
}
}
},
},
...
@@ -139,6 +146,8 @@ export default {
...
@@ -139,6 +146,8 @@ export default {
const
baseURL
=
'http://192.144.239.97:20043/file/'
const
baseURL
=
'http://192.144.239.97:20043/file/'
if
(
this
.
type
===
0
)
{
if
(
this
.
type
===
0
)
{
this
.
form
=
{}
this
.
form
=
{}
this
.
imgageUrl
=
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
this
.
imgUrl
=
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
}
else
if
(
this
.
type
===
1
)
{
}
else
if
(
this
.
type
===
1
)
{
// this.form = this.$route.query.data
// this.form = this.$route.query.data
const
id
=
this
.
$route
.
query
.
id
const
id
=
this
.
$route
.
query
.
id
...
@@ -153,6 +162,14 @@ export default {
...
@@ -153,6 +162,14 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
validWeigh
(
rule
,
value
,
callback
)
{
console
.
log
(
'value'
,
value
)
if
(
value
>
0
)
{
callback
()
}
else
{
callback
(
new
Error
(
'权重不能为0'
))
}
},
ImageUpload
(
file
)
{
ImageUpload
(
file
)
{
console
.
log
(
'file'
,
file
)
console
.
log
(
'file'
,
file
)
const
formData
=
new
FormData
()
const
formData
=
new
FormData
()
...
@@ -197,6 +214,8 @@ export default {
...
@@ -197,6 +214,8 @@ export default {
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
this
.
reset
()
this
.
reset
()
this
.
$router
.
push
(
'/business/index'
)
this
.
$router
.
push
(
'/business/index'
)
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
error
(
res
.
message
)
}
}
})
})
}
else
{
}
else
{
...
@@ -206,6 +225,8 @@ export default {
...
@@ -206,6 +225,8 @@ export default {
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
this
.
reset
()
this
.
reset
()
this
.
$router
.
push
(
'/business/index'
)
this
.
$router
.
push
(
'/business/index'
)
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
error
(
res
.
message
)
}
}
})
})
}
}
...
...
src/views/business/index.vue
View file @
8b68f9bb
...
@@ -705,6 +705,9 @@ export default {
...
@@ -705,6 +705,9 @@ export default {
height
:
59px
;
height
:
59px
;
}
}
.memberDialog
{
.memberDialog
{
::v-deep
.el-dialog
.el-dialog__body
{
max-height
:
85vh
;
}
::v-deep
.el-table
tr
{
::v-deep
.el-table
tr
{
height
:
59px
;
height
:
59px
;
}
}
...
...
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