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
Hide 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,24 +8,34 @@
...
@@ -8,24 +8,34 @@
<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"
placeholder=
"请输入搜索内容"
placeholder=
"请输入搜索内容"
v-model=
"Name"
v-model=
"Name"
size=
"small"
size=
"small"
clearable
>
clearable
>
</el-input>
</el-input>
<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"
>
...
@@ -39,7 +49,7 @@
...
@@ -39,7 +49,7 @@
:list=
"tableData1"
:list=
"tableData1"
:options=
"{ animation:150}"
:options=
"{ animation:150}"
:no-transition-on-drag=
"false"
:no-transition-on-drag=
"false"
draggable=
".draggable"
draggable=
".draggable"
>
>
<!-- @change="change"
<!-- @change="change"
@start="start"
@start="start"
...
@@ -88,7 +98,7 @@
...
@@ -88,7 +98,7 @@
:list=
"tableData2"
:list=
"tableData2"
:options=
"{ animation:150}"
:options=
"{ animation:150}"
:no-transition-on-drag=
"false"
:no-transition-on-drag=
"false"
draggable=
".draggable"
draggable=
".draggable"
>
>
<div
@
click=
"getChild2(index,item)"
:class=
"{'draggable':dragState,'itemActive':activeIndex2==index}"
v-for=
"(item,index) in tableData2"
:key=
"item.Id"
>
<div
@
click=
"getChild2(index,item)"
:class=
"{'draggable':dragState,'itemActive':activeIndex2==index}"
v-for=
"(item,index) in tableData2"
:key=
"item.Id"
>
<el-row
style=
"padding:7px 0;height:50px;box-sizing:border-box"
>
<el-row
style=
"padding:7px 0;height:50px;box-sizing:border-box"
>
...
@@ -163,7 +173,7 @@
...
@@ -163,7 +173,7 @@
:list=
"tableData2"
:list=
"tableData2"
:options=
"{ animation:150}"
:options=
"{ animation:150}"
:no-transition-on-drag=
"false"
:no-transition-on-drag=
"false"
draggable=
".draggable"
draggable=
".draggable"
>
>
<div
@
click=
"getChild3(index)"
:class=
"{'draggable':dragState,'itemActive':activeIndex3==index}"
v-for=
"(item,index) in tableData3"
:key=
"item.Id"
>
<div
@
click=
"getChild3(index)"
:class=
"{'draggable':dragState,'itemActive':activeIndex3==index}"
v-for=
"(item,index) in tableData3"
:key=
"item.Id"
>
<el-row
style=
"padding:7px 0;height:50px;box-sizing:border-box"
>
<el-row
style=
"padding:7px 0;height:50px;box-sizing:border-box"
>
...
@@ -262,7 +272,7 @@
...
@@ -262,7 +272,7 @@
</el-card>
</el-card>
</div>
</div>
<el-button :loading="saveBtnLoad" @click="transClass" style="margin-top:10px" size="mini" type="primary">开始转移</el-button>
<el-button :loading="saveBtnLoad" @click="transClass" style="margin-top:10px" size="mini" type="primary">开始转移</el-button>
</div>
</div>
</el-tab-pane> -->
</el-tab-pane> -->
<el-tab-pane
label=
"商品批量转移"
name=
"second"
>
<el-tab-pane
label=
"商品批量转移"
name=
"second"
>
...
@@ -327,7 +337,7 @@
...
@@ -327,7 +337,7 @@
</el-card>
</el-card>
</div>
</div>
<el-button
:loading=
"saveBtnLoad"
@
click=
"transClass_t"
style=
"margin-top:10px"
size=
"mini"
type=
"primary"
>
开始转移
</el-button>
<el-button
:loading=
"saveBtnLoad"
@
click=
"transClass_t"
style=
"margin-top:10px"
size=
"mini"
type=
"primary"
>
开始转移
</el-button>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"分类样式"
name=
"third"
>
<el-tab-pane
label=
"分类样式"
name=
"third"
>
...
@@ -352,7 +362,7 @@
...
@@ -352,7 +362,7 @@
</div>
</div>
</div>
</div>
<div>
<div>
<div
style=
"padding: 18px 20px;border-bottom: 1px solid #EBEEF5;box-sizing: border-box;"
>
<div
style=
"padding: 18px 20px;border-bottom: 1px solid #EBEEF5;box-sizing: border-box;"
>
显示设置
显示设置
</div>
</div>
<el-form
:model=
"changestyle"
style=
"padding:0 30px;margin:20px 0"
:rules=
"changestylerules"
ref=
"changestyle"
label-width=
"180px"
>
<el-form
:model=
"changestyle"
style=
"padding:0 30px;margin:20px 0"
:rules=
"changestylerules"
ref=
"changestyle"
label-width=
"180px"
>
...
@@ -376,7 +386,7 @@
...
@@ -376,7 +386,7 @@
<el-option
label=
"3"
:value=
"3"
>
</el-option>
<el-option
label=
"3"
:value=
"3"
>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-button
:loading=
"saveBtnLoad"
@
click=
"SaveStyle('changestyle')"
style=
"margin-left: 10px;"
size=
"small"
type=
"primary"
>
保存
</el-button>
<el-button
:loading=
"saveBtnLoad"
@
click=
"SaveStyle('changestyle')"
style=
"margin-left: 10px;"
size=
"small"
type=
"primary"
>
保存
</el-button>
</div>
</div>
...
@@ -416,7 +426,7 @@
...
@@ -416,7 +426,7 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"Tier"
prop=
"Tier"
label=
"操作"
>
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
...
@@ -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
:
''
,
...
@@ -551,7 +562,7 @@ export default {
...
@@ -551,7 +562,7 @@ export default {
changestylerules
:{
changestylerules
:{
},
},
}
}
},
},
created
(){
created
(){
...
@@ -627,7 +638,7 @@ export default {
...
@@ -627,7 +638,7 @@ export default {
this
.
styleList
=
this
.
typeList3
;
this
.
styleList
=
this
.
typeList3
;
}
}
}
}
})
})
},
},
getnoChangeData
(
num
){
getnoChangeData
(
num
){
...
@@ -733,7 +744,7 @@ export default {
...
@@ -733,7 +744,7 @@ export default {
null
null
);
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
});
});
},
},
getSearch
(){
getSearch
(){
...
@@ -745,7 +756,7 @@ export default {
...
@@ -745,7 +756,7 @@ export default {
this
.
getList2
();
this
.
getList2
();
this
.
searchDig
=
true
this
.
searchDig
=
true
}
}
},
},
addSort
(){
addSort
(){
this
.
sortList
=
[];
this
.
sortList
=
[];
...
@@ -790,7 +801,7 @@ export default {
...
@@ -790,7 +801,7 @@ export default {
if
(
this
.
tableData2
.
length
==
0
){
if
(
this
.
tableData2
.
length
==
0
){
this
.
tableData3
=
[];
this
.
tableData3
=
[];
}
}
},
},
handleClick
(
val
){
handleClick
(
val
){
...
@@ -821,14 +832,14 @@ export default {
...
@@ -821,14 +832,14 @@ export default {
}
}
if
(
num
&&
num
==
1
){
if
(
num
&&
num
==
1
){
this
.
transData1
=
pageData
;
this
.
transData1
=
pageData
;
}
}
if
(
num
&&
num
==
2
){
if
(
num
&&
num
==
2
){
this
.
transData2
=
pageData
;
this
.
transData2
=
pageData
;
}
}
}
}
})
})
},
},
getList2
(){
getList2
(){
...
@@ -837,11 +848,22 @@ export default {
...
@@ -837,11 +848,22 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
if
(
res
.
data
.
resultCode
==
1
){
let
pageData
=
res
.
data
.
data
.
pageData
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
searchList
=
pageData
;
this
.
searchList
=
pageData
;
}
}
})
})
},
},
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
>
...
@@ -867,10 +889,10 @@ export default {
...
@@ -867,10 +889,10 @@ export default {
}
}
.goodsClass
.app-style
.style-img
{
.goodsClass
.app-style
.style-img
{
background-image
:
url('../../assets/img/userman/select.png')
;
background-image
:
url('../../assets/img/userman/select.png')
;
background-size
:
cover
;
background-size
:
cover
;
background-position
:
center
center
;
background-position
:
center
center
;
width
:
80px
;
width
:
80px
;
height
:
80px
;
height
:
80px
;
border-radius
:
0%
;
border-radius
:
0%
;
}
}
.goodsClass
.app-style
.image-box
.active
{
.goodsClass
.app-style
.image-box
.active
{
...
...
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