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
1bffafdb
Commit
1bffafdb
authored
Mar 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
77e7abfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
147 additions
and
211 deletions
+147
-211
addbrand.vue
src/components/tradePavilion/addbrand.vue
+92
-164
brandManagement.vue
src/components/tradePavilion/brandManagement.vue
+55
-47
No files found.
src/components/tradePavilion/addbrand.vue
View file @
1bffafdb
...
...
@@ -19,43 +19,24 @@
<el-input
v-model=
"addMsg.BrandName"
placeholder=
"请输入品牌名"
/>
</el-form-item>
<el-form-item
label=
"品牌视频"
>
<el-form-item
label=
"品牌视频"
>
<el-input
v-model=
"addMsg.VideoUrl"
size=
"small"
placeholder=
"请输入内容"
>
<el-button
@
click=
"changeState1 = true"
slot=
"append"
>
添加视频
</el-button>
</el-input>
<a
v-if=
"addMsg.VideoUrl != ''"
class=
"blue noline"
:href=
"addMsg.VideoUrl"
target=
"_blank"
>
视频链接
</a>
<a
v-if=
"addMsg.VideoUrl != ''"
class=
"blue noline"
:href=
"addMsg.VideoUrl"
target=
"_blank"
>
视频链接
</a>
</el-form-item>
<el-form-item
label=
"Logo"
class=
"is-required"
prop=
"Logo"
size=
"small"
>
<el-form-item
label=
"Logo"
class=
"is-required"
prop=
"Logo"
size=
"small"
>
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
<img
v-if=
"!addMsg.Logo || addMsg.Logo==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.Logo"
alt=
""
>
</div>
</el-form-item>
<!--
<el-form-item
label=
"品牌视频"
size=
"small"
>
-->
<!--
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
-->
<!--
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
-->
<!--
<img
v-if=
"!addMsg.VideoUrl || addMsg.VideoUrl==''"
src=
"../../assets/img/default.png"
--
>
<!-- style="width:80px;height:80px" alt="">-->
<!--
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.VideoUrl"
alt=
""
>
-->
<!--
</div>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"品牌介绍图"
class=
"is-required"
prop=
"BannerList"
size=
"small"
>
-->
<!--
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
-->
<!--
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
-->
<!--
<img
v-if=
"!addMsg.BannerList || addMsg.BannerList==''"
src=
"../../assets/img/default.png"
--
>
<!-- style="width:80px;height:80px" alt="">-->
<!--
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.BannerList"
alt=
""
>
-->
<!--
</div>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"品牌介绍图"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"第一张图片为封面图"
placement=
"top"
style=
"position: absolute;left: -22px;top:12px"
>
style=
"position: absolute;left: -22px;top:12px"
>
<i
class=
"el-tooltip el-icon-info"
></i>
</el-tooltip>
<p
style=
"color:#c9c9c9;margin-bottom: 12px;"
>
...
...
@@ -65,88 +46,77 @@
<div
class=
"nav_IconContent"
>
<draggable
v-model=
"addMsg.BannerList"
>
<div
v-for=
"(item, index) in addMsg.BannerList"
:key=
"index+'2'"
style=
"margin-right: 20px; position: relative; "
>
style=
"margin-right: 20px; position: relative; "
>
<div
class=
"colapp-image"
:style=
"
{
backgroundImage: 'url(' + item
.Path
+ ')'
backgroundImage: 'url(' + item + ')'
}">
</div>
<el-button
@
click=
"ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
</el-button>
<el-button
@
click=
"ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
</el-button>
</div>
</draggable>
</div>
<div
@
click=
"openChangeDig(2)"
v-if=
"addMsg.BannerList.length
<9
"
class=
"add-image-btn 2222
"
>
<div
@
click=
"openChangeDig(2)"
v-if=
"addMsg.BannerList.length
<9
"
class=
"add-image-btn 2222"
style=
"cursor:pointer;
"
>
+ 添加图片
</div>
</div>
</el-form-item>
<el-form-item
label=
"店铺数量"
prop=
"ShopNum"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.ShopNum"
placeholder=
"请输入店铺数量"
type=
"number"
/>
</el-form-item>
<el-form-item
label=
"建筑面积"
size=
"small"
>
<el-input
v-model=
"addMsg.BuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 40%;"
/>
<el-form-item
label=
"建筑面积"
size=
"small"
>
<el-input
v-model=
"addMsg.BuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 40%;"
/>
<span
style=
"margin: 0 10px;"
>
~
</span>
<el-input
v-model=
"addMsg.EndBuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 40%;"
/>
<el-input
v-model=
"addMsg.EndBuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 40%;"
/>
</el-form-item>
<el-form-item
label=
"需求面积"
size=
"small"
>
<el-input
v-model=
"addMsg.AreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 40%;"
/>
<el-form-item
label=
"需求面积"
size=
"small"
>
<el-input
v-model=
"addMsg.AreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 40%;"
/>
<span
style=
"margin: 0 10px;"
>
~
</span>
<el-input
v-model=
"addMsg.EndAreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 40%;"
/>
<el-input
v-model=
"addMsg.EndAreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 40%;"
/>
</el-form-item>
<el-form-item
label=
"客群定位"
size=
"small"
>
<el-input
v-model=
"addMsg.CustomerType"
placeholder=
"请输入客群定位"
/>
<el-form-item
label=
"客群定位"
size=
"small"
>
<el-input
v-model=
"addMsg.CustomerType"
placeholder=
"请输入客群定位"
/>
</el-form-item>
<el-form-item
label=
"品牌定位"
size=
"small"
>
<el-input
v-model=
"addMsg.BrandType"
placeholder=
"请输入品牌定位"
/>
<el-form-item
label=
"品牌定位"
size=
"small"
>
<el-input
v-model=
"addMsg.BrandType"
placeholder=
"请输入品牌定位"
/>
</el-form-item>
<el-form-item
label=
"扩店区域"
size=
"small"
>
<el-input
v-model=
"addMsg.StoreExpansion"
placeholder=
"请输入扩店区域"
/>
<el-form-item
label=
"扩店区域"
size=
"small"
>
<el-input
v-model=
"addMsg.StoreExpansion"
placeholder=
"请输入扩店区域"
/>
</el-form-item>
<el-form-item
label=
"商铺性质"
size=
"small"
>
<el-input
v-model=
"addMsg.ProjectType"
placeholder=
"请输入商铺性质"
/>
</el-form-item>
<el-form-item
label=
"商铺性质"
size=
"small"
>
<el-input
v-model=
"addMsg.ProjectType"
placeholder=
"请输入商铺性质"
/>
</el-form-item>
<el-form-item
label=
"电量"
prop=
"DianLiang"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.DianLiang"
placeholder=
"请输入电量"
/>
<el-input
v-model=
"addMsg.DianLiang"
placeholder=
"请输入电量"
/>
</el-form-item>
<!--
<el-form-item
label=
"店铺开口尺寸"
prop=
"ShopSize"
class=
"is-required"
size=
"small"
>
-->
<!--
<el-input
v-model=
"addMsg.ShopSize"
placeholder=
"请输入店铺开口尺寸"
/>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"上下水"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"管径"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"排污"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"燃气"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"排烟量"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"空调"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"新风"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"广告"
class=
"ue-style"
>
<UE
style=
"width:750px;"
:defaultMsg=
"Advertising"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE>
</el-form-item>
...
...
@@ -158,7 +128,6 @@
<div
style=
"margin-top:20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save('addMsg')"
>
保存
</el-button>
</div>
<!-- 选择文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"changeState"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
...
...
@@ -173,44 +142,44 @@
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
UE
from
"@/components/global/UE.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
draggable
from
"vuedraggable"
export
default
{
components
:
{
ChooseImg
,
UE
,
Choosevideo
Choosevideo
,
draggable
},
data
()
{
return
{
addMsg
:
{
ID
:
0
,
Logo
:
""
,
//
BannerList
:
[],
//品牌介绍图
VideoUrl
:
""
,
//品牌视频
FullBrandName
:
""
,
//品牌全名
BrandName
:
''
,
//品牌名
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
""
,
//建筑面积小
EndBuiltUpArea
:
""
,
//建筑面积大
CustomerType
:
''
,
//客群定位
BrandType
:
''
,
//品牌定位
StoreExpansion
:
''
,
//扩店区域
ProjectType
:
''
,
//商铺性质
AreaRequirement
:
0
,
//
EndAreaRequirement
:
0
,
//
Advertising
:
''
,
//广告
Other
:
''
,
//其他
ShopSize
:
1
,
//店铺开口尺寸
Plumbing
:
1
,
//上下水
Caliber
:
1
,
//管径
Sewage
:
1
,
//排污
RanQi
:
1
,
//燃气
DianLiang
:
''
,
//电量
PaiYan
:
1
,
//排烟量
KongTiao
:
1
,
//空调
XinFeng
:
1
,
//新风
BrandClassId
:
0
,
//品牌分类Id
ID
:
0
,
Logo
:
""
,
//Logo
BannerList
:
[],
//品牌介绍图
VideoUrl
:
""
,
//品牌视频
FullBrandName
:
""
,
//品牌全名
BrandName
:
''
,
//品牌名
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
""
,
//建筑面积小
EndBuiltUpArea
:
""
,
//建筑面积大
CustomerType
:
''
,
//客群定位
BrandType
:
''
,
//品牌定位
StoreExpansion
:
''
,
//扩店区域
ProjectType
:
''
,
//商铺性质
AreaRequirement
:
0
,
//
EndAreaRequirement
:
0
,
//
Advertising
:
''
,
//广告
Other
:
''
,
//其他
ShopSize
:
1
,
//店铺开口尺寸
Plumbing
:
1
,
//上下水
Caliber
:
1
,
//管径
Sewage
:
1
,
//排污
RanQi
:
1
,
//燃气
DianLiang
:
''
,
//电量
PaiYan
:
1
,
//排烟量
KongTiao
:
1
,
//空调
XinFeng
:
1
,
//新风
BrandClassId
:
0
,
//品牌分类Id
},
loadingPeople
:
false
,
dynamicTags
:
[],
...
...
@@ -220,14 +189,13 @@
inputVisible2
:
false
,
inputValue2
:
''
,
Advertising
:
""
,
Other
:
''
,
Other
:
''
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
350
},
Picindex
:
0
,
rules
:
{
FullBrandName
:
[{
required
:
true
,
message
:
'请输入品牌全名'
,
...
...
@@ -254,38 +222,39 @@
message
:
'请输入电量'
,
trigger
:
'blur'
}],
},
loading
:
false
,
changeState
:
false
,
changeState1
:
false
,
changeState1
:
false
,
imgType
:
0
,
peopleData
:
[],
BrandClassList
:[],
BrandClassList
:
[],
};
},
created
()
{
this
.
getBrandClassList
()
},
mounted
()
{
if
(
this
.
$route
.
query
.
ID
)
{
this
.
getData
(
this
.
$route
.
query
.
ID
)
}
this
.
getBrandClassList
()
},
ClearCarouse
(
index
)
{
this
.
addMsg
.
BannerList
.
splice
(
index
,
1
);
},
methods
:
{
//选择图片
SelectId
(
msg
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
if
(
this
.
imgType
==
1
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
this
.
addMsg
.
Logo
=
url
}
if
(
this
.
imgType
==
2
)
{
console
.
log
(
msg
)
// let url = this.getIconLink(msg.url)
// this.addMsg.ForeignersUrl = url
this
.
addMsg
.
BannerList
.
push
(
url
);
}
this
.
changeState
=
false
;
},
//删除品牌介绍图片
ClearCarouse
(
index
)
{
this
.
addMsg
.
BannerList
.
splice
(
index
,
1
);
},
openChangeDig
(
num
)
{
this
.
changeState
=
true
;
this
.
imgType
=
num
;
...
...
@@ -294,7 +263,7 @@
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
this
.
changeState1
=
false
;
},
getBrandClassList
(){
getBrandClassList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{},
res
=>
{
...
...
@@ -306,22 +275,13 @@
},
);
},
//保存品牌
Save
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
addMsg
.
GoodCourseList
=
this
.
dynamicTags2
let
content
=
this
.
$refs
.
ue
.
getUEContent
();
this
.
addMsg
.
Advertising
=
content
;
let
contento
=
this
.
$refs
.
ueother
.
getUEContent
();
this
.
addMsg
.
Other
=
contento
;
let
msg
=
this
.
addMsg
if
(
msg
.
UserId
==
''
)
{
msg
.
UserId
=
0
}
this
.
apipost
(
"/api/Education/AddOrUpdateTeacher"
,
msg
,
res
=>
{
this
.
apipost
(
"/api/Trade/GetSetBrand"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CommonJump
(
'
lecturermanage
'
);
this
.
CommonJump
(
'
brandManagement
'
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -332,51 +292,18 @@
}
});
},
//获取详情
getData
(
ID
)
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/
Education/GetTeacherModel
"
,
{
this
.
apipost
(
"/api/
Trade/GetBrandDetails
"
,
{
ID
:
ID
},
res
=>
{
this
.
loading
=
false
;
this
.
addMsg
=
res
.
data
.
data
;
if
(
this
.
addMsg
.
Introduction
&&
this
.
addMsg
.
Introduction
!=
""
)
{
this
.
defaultMsg
=
this
.
addMsg
.
Introduction
;
}
if
(
this
.
addMsg
.
LableNameList
!=
null
)
{
this
.
dynamicTags
=
this
.
addMsg
.
LableNameList
}
if
(
this
.
addMsg
.
GoodCourseList
!=
null
)
{
this
.
dynamicTags2
=
this
.
addMsg
.
GoodCourseList
}
if
(
this
.
addMsg
.
UserId
==
0
)
{
this
.
addMsg
.
UserId
=
''
}
else
if
(
this
.
addMsg
.
UserId
>
0
)
{
this
.
peopleData
=
[{
Id
:
this
.
addMsg
.
UserId
,
AliasName
:
this
.
addMsg
.
UserName
}]
}
})
},
remoteMethod
(
val
)
{
this
.
loadingPeople
=
true
;
this
.
apipost
(
"/api/User/GetListByPhoneOrAliasName"
,
{
'AliasName'
:
val
,
SmallShopId
:
0
},
res
=>
{
this
.
loadingPeople
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
peopleData
=
res
.
data
.
data
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
},
mounted
()
{}
};
</
script
>
...
...
@@ -496,6 +423,7 @@
.addbrand
.nav_IconContent
div
>
div
{
display
:
inline-block
;
}
.addbrand
.colapp-image
{
background-size
:
cover
;
background-position
:
center
center
;
...
...
src/components/tradePavilion/brandManagement.vue
View file @
1bffafdb
...
...
@@ -11,17 +11,17 @@
<div
class=
"block"
>
<span
style=
"margin-left: 10px"
>
品牌名
</span>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入品牌名"
v-model=
"msg.BrandName"
size=
"small
"
clearable
>
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入品牌名"
v-model=
"msg.BrandName
"
size=
"small"
clearable
>
</el-input>
<span
style=
"margin-left: 10px"
>
商铺性质
</span>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入商铺性质"
v-model=
"msg.ProjectType"
size=
"small
"
clearable
>
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入商铺性质"
v-model=
"msg.ProjectType
"
size=
"small"
clearable
>
</el-input>
<span
style=
"margin-left: 10px"
>
品牌分类
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 10px;"
v-model=
"msg.BrandClassId"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 10px;"
v-model=
"msg.BrandClassId"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
:label=
"x.ClassName"
:value=
"x.ID"
v-for=
"(x,y) in BrandClassList"
:key=
"y"
></el-option>
</el-select>
...
...
@@ -30,8 +30,8 @@
<div
style=
"display: flex;flex-direction: row;align-items: center;flex-wrap: wrap"
>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
上下水
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.Plumbing"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.Plumbing"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -39,8 +39,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
管径
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.Caliber"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.Caliber"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -48,8 +48,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
排污
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.Sewage"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.Sewage"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -57,8 +57,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
燃气
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.RanQi"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.RanQi"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -66,8 +66,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
电量
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.DianLiang"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.DianLiang"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -75,8 +75,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
排烟量
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.PaiYan"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.PaiYan"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -84,8 +84,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
空调
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.KongTiao"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.KongTiao"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -93,8 +93,8 @@
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<span>
新风
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.XinFeng"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 5px;"
v-model=
"msg.XinFeng"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"不限"
:value=
"-1"
></el-option>
<el-option
label=
"是"
:value=
"1"
></el-option>
<el-option
label=
"否"
:value=
"0"
></el-option>
...
...
@@ -106,23 +106,29 @@
<el-table
:data=
"dataList"
header-cell-class-name=
"headClass"
style=
"width: 100%"
border
>
<el-table-column
prop=
"Id"
label=
"ID"
width=
"100"
>
<template
slot-scope=
"scope"
>
<span
@
click=
"goRecruit(scope.row.I
d)"
>
{{
scope
.
row
.
Id
}}
</span>
<span
@
click=
"goRecruit(scope.row.I
D)"
>
{{
scope
.
row
.
ID
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"C
ontent"
label=
"品牌
"
>
<el-table-column
prop=
"C
lassName"
label=
"分类"
width=
"150
"
>
</el-table-column>
<el-table-column
prop=
"CoverPhoto"
label=
"图片"
>
<el-table-column
prop=
"BrandName"
label=
"品牌"
>
</el-table-column>
<el-table-column
prop=
"Logo"
label=
"Logo"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<img
v-if=
"scope.row.
CoverPhoto"
:src=
"scope.row.CoverPhot
o"
style=
"width:40px;height:40px;"
alt=
""
/>
<img
v-if=
"scope.row.
Logo"
:src=
"scope.row.Log
o"
style=
"width:40px;height:40px;"
alt=
""
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"IsOpen"
label=
"是否显示"
>
<el-table-column
prop=
"ShopNum"
label=
"店铺数量"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"BuiltUpArea"
label=
"建筑面积"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-switch
@
change=
"changeSwitch(scope.row)"
v-model=
"scope.row.IsOpen"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
<span>
{{
scope
.
row
.
BuiltUpArea
}}
至
{{
scope
.
row
.
EndBuiltUpArea
}}
平
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"BrandType"
label=
"品牌定位"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"CustomerType"
label=
"客群定位"
width=
"80"
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
...
...
@@ -135,7 +141,7 @@
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:current-page
.
sync=
"msg.pageIndex"
:total=
"pageCount"
>
layout=
"prev, pager, next"
:current-page
.
sync=
"msg.pageIndex"
:total=
"pageCount"
>
</el-pagination>
</div>
</div>
...
...
@@ -148,28 +154,30 @@
msg
:
{
pageIndex
:
1
,
pageSize
:
20
,
BrandName
:
''
,
//品牌名
ProjectType
:
''
,
//商铺性质
Plumbing
:
-
1
,
//上下水(0-否1-有)
Caliber
:
-
1
,
//管径(0-否1-有)
Sewage
:
-
1
,
//排污(0-否1-有)
RanQi
:
-
1
,
//燃气(0-否1-有)
DianLiang
:
-
1
,
//电量(0-否1-有)
PaiYan
:
-
1
,
//排烟量(0-否1-有)
KongTiao
:
-
1
,
//空调(0-否1-有)
XinFeng
:
-
1
,
//新风(0-否1-有)
BrandClassId
:
0
,
//分类
BrandName
:
''
,
//品牌名
ProjectType
:
''
,
//商铺性质
Plumbing
:
-
1
,
//上下水(0-否1-有)
Caliber
:
-
1
,
//管径(0-否1-有)
Sewage
:
-
1
,
//排污(0-否1-有)
RanQi
:
-
1
,
//燃气(0-否1-有)
DianLiang
:
-
1
,
//电量(0-否1-有)
PaiYan
:
-
1
,
//排烟量(0-否1-有)
KongTiao
:
-
1
,
//空调(0-否1-有)
XinFeng
:
-
1
,
//新风(0-否1-有)
BrandClassId
:
0
,
//分类
},
dataList
:
[],
pageCount
:
0
,
loading
:
false
,
BrandClassList
:[],
BrandClassList
:
[],
}
},
created
()
{
this
.
getList
();
this
.
getBrandClassList
()
},
mounted
()
{
this
.
getList
();
},
methods
:
{
getList
()
{
this
.
apipost
(
...
...
@@ -184,7 +192,7 @@
},
);
},
getBrandClassList
(){
getBrandClassList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{},
res
=>
{
...
...
@@ -209,7 +217,7 @@
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/
Education/DelEducationTalk
"
,
{
"/api/
Trade/RemoveBrand
"
,
{
Id
:
row
.
Id
},
res
=>
{
...
...
@@ -228,7 +236,7 @@
this
.
$router
.
push
({
name
:
'addbrand'
,
query
:
{
I
d
:
row
.
Id
,
I
D
:
row
.
Id
,
blank
:
"y"
}
});
...
...
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