Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
1ea7173c
Commit
1ea7173c
authored
Aug 27, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
ef1ec8e6
458c11ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
42 deletions
+64
-42
goodsClassification.vue
src/components/CommodityMan/goodsClassification.vue
+61
-39
tinyMerchantSet.vue
src/components/UserMan/tinyMerchant/tinyMerchantSet.vue
+3
-3
No files found.
src/components/CommodityMan/goodsClassification.vue
View file @
1ea7173c
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
<div
style=
"margin-top:10px;background:#fff;padding:20px"
>
<div
style=
"margin-top:10px;background:#fff;padding:20px"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"商品分类"
name=
"first"
>
<el-tab-pane
label=
"商品分类"
name=
"first"
>
<div
style=
"margin-bottom:18px"
>
<div
style=
"margin-bottom:18px;display: flex;flex-direction: row;align-items: center;justify-content: space-between"
>
<div>
<template
v-if=
"!dragState"
>
<template
v-if=
"!dragState"
>
<div
class=
"searchInput"
style=
"width:250px"
>
<div
class=
"searchInput"
style=
"width:250px"
>
<el-input
style=
"display:inline-block;width:225px;height:30px"
<el-input
style=
"display:inline-block;width:225px;height:30px"
...
@@ -20,12 +21,21 @@
...
@@ -20,12 +21,21 @@
<span
@
click=
"getSearch"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
<span
@
click=
"getSearch"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
</div>
</div>
<el-button
@
click=
"dragState=true"
style=
"margin-left:10x;"
size=
"small"
type=
"primary"
>
编辑排序
</el-button>
<el-button
@
click=
"dragState=true"
style=
"margin-left:10x;"
size=
"small"
type=
"primary"
>
编辑排序
</el-button>
</
template
>
</
template
>
<
template
v-if=
"dragState"
>
<
template
v-if=
"dragState"
>
<el-button
:loading=
"saveBtnLoad"
@
click=
"addSort"
size=
"small"
type=
"primary"
>
保存排序
</el-button>
<el-button
:loading=
"saveBtnLoad"
@
click=
"addSort"
size=
"small"
type=
"primary"
>
保存排序
</el-button>
<el-button
@
click=
"dragState=false"
style=
"margin:0 10x;"
size=
"small"
type=
"primary"
>
取消编辑
</el-button>
<el-button
@
click=
"dragState=false"
style=
"margin:0 10x;"
size=
"small"
type=
"primary"
>
取消编辑
</el-button>
<span>
拖动分类名称排序
</span>
<span>
拖动分类名称排序
</span>
</
template
>
</
template
>
</div>
<div>
分类的显示
<el-radio
v-model=
"SetPro"
label=
"1"
@
change=
"SetProduct(1)"
>
隐藏
</el-radio>
<el-radio
v-model=
"SetPro"
label=
"2"
@
change=
"SetProduct(2)"
>
显示
</el-radio>
</div>
</div>
</div>
<div
v-loading=
"loading"
flex=
"dir:left box:mean"
class=
"cat-list nopadding"
>
<div
v-loading=
"loading"
flex=
"dir:left box:mean"
class=
"cat-list nopadding"
>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<el-card
class=
"card-item-box"
shadow=
"never"
>
...
@@ -450,6 +460,7 @@ export default {
...
@@ -450,6 +460,7 @@ export default {
val
:
''
,
val
:
''
,
activeName
:
'first'
,
activeName
:
'first'
,
dragState
:
false
,
dragState
:
false
,
SetPro
:
'0'
,
msg1
:{
msg1
:{
Id
:
0
,
Id
:
0
,
Name
:
''
,
Name
:
''
,
...
@@ -842,6 +853,17 @@ export default {
...
@@ -842,6 +853,17 @@ export default {
})
})
},
},
SetProduct
(
type
){
//分类的显示/隐藏
this
.
apipost
(
"/api/product/SetProductCategoryShow"
,
{
IsShow
:
type
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
},
},
};
};
</
script
>
</
script
>
...
...
src/components/UserMan/tinyMerchant/tinyMerchantSet.vue
View file @
1ea7173c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<el-form-item
label=
"是否开启"
>
<el-form-item
label=
"是否开启"
>
<el-radio
v-model=
"addMsg.IsOpen"
:label=
"2"
>
开启
</el-radio>
<el-radio
v-model=
"addMsg.IsOpen"
:label=
"2"
>
开启
</el-radio>
<el-radio
v-model=
"addMsg.IsOpen"
:label=
"1"
@
change=
"addMsg.CustomMinPriceRate = 0 ,addMsg.CustomMaxPriceRate = 0,addMsg.CustomMinFixedPrice = 0,addMsg.CustomMaxFixedPrice = 0"
>
不开启
</el-radio>
<el-radio
v-model=
"addMsg.IsOpen"
:label=
"1"
>
不开启
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否需要审核"
>
<el-form-item
label=
"是否需要审核"
>
<el-radio
v-model=
"addMsg.IsExamine"
:label=
"2"
>
开启
</el-radio>
<el-radio
v-model=
"addMsg.IsExamine"
:label=
"2"
>
开启
</el-radio>
...
@@ -254,11 +254,11 @@
...
@@ -254,11 +254,11 @@
Save
(
formName
)
{
Save
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
addMsg
.
PriceType
==
1
&&
this
.
addMsg
.
CustomMinPriceRate
>=
this
.
addMsg
.
CustomMaxPriceRate
){
if
(
this
.
addMsg
.
IsOpen
==
2
&&
this
.
addMsg
.
CustomMinPriceRate
>=
this
.
addMsg
.
CustomMaxPriceRate
){
this
.
Error
(
'区间比例从低到高'
)
this
.
Error
(
'区间比例从低到高'
)
return
return
}
}
if
(
this
.
addMsg
.
PriceType
==
2
&&
this
.
addMsg
.
CustomMinFixedPrice
>=
this
.
addMsg
.
CustomMaxFixedPrice
){
if
(
this
.
addMsg
.
IsOpen
==
2
&&
this
.
addMsg
.
CustomMinFixedPrice
>=
this
.
addMsg
.
CustomMaxFixedPrice
){
this
.
Error
(
'区间价格从低到高'
)
this
.
Error
(
'区间价格从低到高'
)
return
return
}
}
...
...
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