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
b5c0a667
Commit
b5c0a667
authored
Jun 11, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bb8498ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
631 additions
and
408 deletions
+631
-408
VehicleManagement.vue
src/components/tradePavilion/VehicleManagement.vue
+311
-196
brandManagement.vue
src/components/tradePavilion/brandManagement.vue
+320
-212
No files found.
src/components/tradePavilion/VehicleManagement.vue
View file @
b5c0a667
<
style
>
.CarrierList
{
border-bottom
:
1px
dashed
#EEE
;
.CarrierList
{
border-bottom
:
1px
dashed
#eee
;
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.CarrierList
span
{
.CarrierList
span
{
display
:
inline-block
;
margin-right
:
10px
;
}
}
</
style
>
<
template
>
<div
class=
"VehicleManagement"
>
...
...
@@ -17,7 +16,8 @@
载体管理
<!--
<el-button
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
@
click=
"CommonJump('editVehicle')"
>
新增载体
</el-button>
-->
<div>
<div>
<el-button
@
click=
"dialogVisible = true"
style=
"float: right; margin-top: -25px"
...
...
@@ -26,60 +26,148 @@
>
批量导出
</el-button>
</div>
<div>
<el-button
type=
"primary"
style=
"float: right; margin: -25px 10px 0px 0px;"
class=
"el-button--small"
@
click=
"ommonJump('editVehicle')"
>
新增载体
</el-button></div>
<div>
<el-button
type=
"primary"
style=
"float: right; margin: -25px 10px 0px 0px"
class=
"el-button--small"
@
click=
"ommonJump('editVehicle')"
>
新增载体
</el-button
>
</div>
</div>
<div
class=
"content"
>
<div>
<div
class=
"searchInput"
style=
"width:250px;margin-bottom:10px;"
>
<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.CarrierName"
size=
"small"
clearable
>
<div
class=
"searchInput"
style=
"width: 250px; margin-bottom: 10px"
>
<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.CarrierName"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
color: #979dad;
font-size: 14px;
position: relative;
top: 1px;
"
></span>
</div>
<div
class=
"searchInput"
style=
"width:250px;margin-bottom:10px;"
>
<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.Developers"
size=
"small"
clearable
>
<div
class=
"searchInput"
style=
"width: 250px; margin-bottom: 10px"
>
<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.Developers"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
color: #979dad;
font-size: 14px;
position: relative;
top: 1px;
"
></span>
</div>
<div
class=
"searchInput"
style=
"width:250px;margin-bottom:10px;"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
@
clear=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:225px;height:30px"
@
keyup
.
native=
"checkInteger(msg,'MetroNum')"
placeholder=
"地铁线路"
v-model=
"msg.MetroNum"
size=
"small"
clearable
>
<div
class=
"searchInput"
style=
"width: 250px; margin-bottom: 10px"
>
<el-input
@
keyup
.
enter
.
native=
"(msg.pageIndex = 1), getList()"
@
clear=
"(msg.pageIndex = 1), getList()"
style=
"display: inline-block; width: 225px; height: 30px"
@
keyup
.
native=
"checkInteger(msg, 'MetroNum')"
placeholder=
"地铁线路"
v-model=
"msg.MetroNum"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
color: #979dad;
font-size: 14px;
position: relative;
top: 1px;
"
></span>
</div>
<div
class=
"searchInput"
style=
"width:250px;margin-bottom:10px;"
>
<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.MetroName"
size=
"small"
clearable
>
<div
class=
"searchInput"
style=
"width: 250px; margin-bottom: 10px"
>
<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.MetroName"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
color: #979dad;
font-size: 14px;
position: relative;
top: 1px;
"
></span>
</div>
<el-date-picker
class=
"indataPicker"
type=
"daterange"
v-model=
"dateStr"
range-separator=
"至"
start-placeholder=
"开业日期"
end-placeholder=
"开业日期"
size=
"small"
@
change=
"getList"
value-format=
"yyyy-MM-dd"
>
<el-date-picker
class=
"indataPicker"
type=
"daterange"
v-model=
"dateStr"
range-separator=
"至"
start-placeholder=
"开业日期"
end-placeholder=
"开业日期"
size=
"small"
@
change=
"getList"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</div>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%;margin:20px 0"
>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%; margin: 20px 0"
>
<el-table-column
prop=
"CarrierName"
width=
"200"
label=
"项目名称"
>
</el-table-column>
<el-table-column
prop=
"CarrierMetroList"
label=
"地铁信息"
width=
"200"
>
<template
slot-scope=
"scope"
>
<div
v-for=
"(item,index) in scope.row.CarrierMetroList"
:key=
"index"
class=
"CarrierList"
>
<span>
{{
item
.
MetroNum
}}
号线
</span><span>
{{
item
.
MetroName
}}
</span><span>
{{
item
.
Distance
}}
</span>
<div
v-for=
"(item, index) in scope.row.CarrierMetroList"
:key=
"index"
class=
"CarrierList"
>
<span>
{{
item
.
MetroNum
}}
号线
</span
><span>
{{
item
.
MetroName
}}
</span
><span>
{{
item
.
Distance
}}
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"Logo"
width=
"100"
label=
"logo"
>
<
template
slot-scope=
"scope"
>
<el-image
:src=
"scope.row.Logo"
style=
"width:50px;"
:preview-src-list=
"scope.row.LogoList"
>
<el-image
:src=
"scope.row.Logo"
style=
"width: 50px"
:preview-src-list=
"scope.row.LogoList"
>
</el-image>
</
template
>
</el-table-column>
...
...
@@ -91,26 +179,50 @@
</el-table-column>
<el-table-column
prop=
"ProjectType"
label=
"项目类型"
>
<
template
slot-scope=
"scope"
>
{{
getProject
(
scope
.
row
.
ProjectType
)
}}
{{
getProject
(
scope
.
row
.
ProjectType
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"CarrierSize"
label=
"商业体量"
>
</el-table-column>
<el-table-column
prop=
"CarrierSize"
label=
"商业体量"
>
</el-table-column>
<el-table-column
prop=
"LayersNum"
width=
"150"
label=
"商业层数"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top"
>
<img
@
click=
"CommonJump('editVehicle',
{ID:scope.row.ID})" src="../../assets/img/userman/edit.png" alt="">
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top"
>
<img
@
click=
"CommonJump('editVehicle',
{ ID: scope.row.ID })"
src="../../assets/img/userman/edit.png"
alt=""
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
@
click=
"delManage(scope.row)"
src=
"../../assets/img/userman/del.png"
alt=
""
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
@
click=
"delManage(scope.row)"
src=
"../../assets/img/userman/del.png"
alt=
""
/>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
<el-pagination
style=
"text-align: right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
...
...
@@ -163,19 +275,19 @@
</div>
</template>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
msg
:
{
MetroName
:
''
,
//地铁站名称
MetroName
:
""
,
//地铁站名称
pageIndex
:
1
,
pageSize
:
15
,
CarrierName
:
''
,
//载体名称
MetroNum
:
''
,
//地铁线路
Developers
:
''
,
//开发商
StartOpenTime
:
''
,
//开业开始时间
EndOpenTime
:
''
,
// 开业截止时间
ExcelEnumIds
:
[],
CarrierName
:
""
,
//载体名称
MetroNum
:
""
,
//地铁线路
Developers
:
""
,
//开发商
StartOpenTime
:
""
,
//开业开始时间
EndOpenTime
:
""
,
// 开业截止时间
ExcelEnumIds
:
[],
},
addMsg
:
{},
dialogVisible
:
false
,
...
...
@@ -203,23 +315,23 @@
this
.
msg
.
StartOpenTime
=
this
.
dateStr
[
0
];
this
.
msg
.
EndOpenTime
=
this
.
dateStr
[
1
];
}
else
{
this
.
msg
.
StartOpenTime
=
''
;
this
.
msg
.
EndOpenTime
=
''
;
this
.
msg
.
StartOpenTime
=
""
;
this
.
msg
.
EndOpenTime
=
""
;
}
this
.
apipost
(
"/api/Trade/GetCarrierPageList"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Trade/GetCarrierPageList"
,
this
.
msg
,
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
this
.
tableData
.
forEach
(
x
=>
{
x
.
LogoList
=
[]
this
.
tableData
.
forEach
((
x
)
=>
{
x
.
LogoList
=
[];
x
.
LogoList
.
push
(
x
.
Logo
);
})
});
}
})
});
},
handleCheckAllChange
(
val
)
{
handleCheckAllChange
(
val
)
{
this
.
checkedCities
=
val
?
this
.
cityOptions
:
[];
this
.
isIndeterminate
=
false
;
},
...
...
@@ -229,18 +341,22 @@ handleCheckAllChange(val) {
this
.
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
;
},
Export
()
{
this
.
msg
.
ExcelEnumIds
=
this
.
checkedCities
;
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
if
(
!
msg
.
Id
||
msg
.
Id
==
""
)
{
msg
.
Id
=
0
;
}
this
.
GetLocalFile
(
"/api/Trade/GetCarrierListToExcel"
,
msg
,
"载体信息.xls"
);
},
Export
()
{
this
.
msg
.
ExcelEnumIds
=
this
.
checkedCities
;
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
if
(
!
msg
.
Id
||
msg
.
Id
==
""
)
{
msg
.
Id
=
0
;
}
this
.
GetLocalFile
(
"/api/Trade/GetCarrierListToExcel"
,
msg
,
"载体信息.xls"
,
null
,
()
=>
{
this
.
checkedCities
=
[];
}
);
},
getDown
()
{
this
.
cityOptions
=
[];
this
.
apipost
(
"/api/Trade/GetCarrierExportEnumList"
,
{},
(
res
)
=>
{
...
...
@@ -257,18 +373,19 @@ handleCheckAllChange(val) {
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveCarrier"
,
{
"/api/Trade/RemoveCarrier"
,
{
CarrierId
:
obj
.
ID
,
Status
:
1
Status
:
1
,
},
res
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
}
);
});
},
...
...
@@ -278,42 +395,41 @@ handleCheckAllChange(val) {
},
//获取项目类型
getTypeEnumList
()
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
res
=>
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ProjectTypeList
=
res
.
data
.
data
;
}
})
});
},
//获取项目类型
getProject
(
type
)
{
let
str
=
''
this
.
ProjectTypeList
.
forEach
(
x
=>
{
let
str
=
""
;
this
.
ProjectTypeList
.
forEach
((
x
)
=>
{
if
(
x
.
Id
==
type
)
{
str
=
x
.
Name
str
=
x
.
Name
;
}
})
});
return
str
;
}
},
mounted
()
{}
};
},
mounted
()
{},
};
</
script
>
<
style
>
.VehicleManagement
.content
.searchInput
{
border
:
1px
solid
#DCDFE
6
;
.VehicleManagement
.content
.searchInput
{
border
:
1px
solid
#dcdfe
6
;
border-radius
:
4px
;
}
}
.VehicleManagement
.content
.searchInput
.el-input__inner
{
.VehicleManagement
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
}
.VehicleManagement
.content
.searchInput
{
.VehicleManagement
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
...
...
@@ -321,13 +437,12 @@ handleCheckAllChange(val) {
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
}
}
.VehicleManagement
.content
{
.VehicleManagement
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
}
</
style
>
src/components/tradePavilion/brandManagement.vue
View file @
b5c0a667
...
...
@@ -2,99 +2,177 @@
<div
class=
"brandManagement"
>
<div
class=
"el-card__header"
>
<span>
品牌列表
</span>
<div
style=
"display: flex;flex-direction: row;align-items: center"
>
<el-button
type=
"primary"
class=
"el-button--small"
@
click=
"addTopic"
>
新增
</el-button>
<el-button
<div
style=
"display: flex; flex-direction: row; align-items: center"
>
<el-button
type=
"primary"
class=
"el-button--small"
@
click=
"addTopic"
>
新增
</el-button
>
<el-button
class=
"el-button--small"
@
click=
"dialogVisible = true"
style=
"float: right; margin-top: -5px"
size=
"small"
style=
"float: right"
type=
"primary"
>
批量导出
</el-button>
</div>
</div>
<div
class=
"content"
>
<div
style=
"display: flex;
flex-direction: row;
align-items: center"
>
<div
style=
"display: flex;
flex-direction: row;
align-items: center"
>
<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
>
<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
>
</el-input>
<span
style=
"margin-left: 10px"
>
商铺性质
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-left: 10px;"
v-model=
"msg.ProjectType"
size=
"small"
placeholder=
"请选择商铺性质"
>
<el-select
class=
"w100"
@
change=
"(msg.pageIndex = 1), getList()"
style=
"margin-left: 10px"
v-model=
"msg.ProjectType"
size=
"small"
placeholder=
"请选择商铺性质"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
:label=
"x.Name"
:value=
"x.Id"
v-for=
"(x,y) in ProjectTypeList"
:key=
"y"
></el-option>
<el-option
:label=
"x.Name"
:value=
"x.Id"
v-for=
"(x, y) in ProjectTypeList"
:key=
"y"
></el-option>
</el-select>
<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-option
:label=
"x.ClassName"
:value=
"x.ID"
v-for=
"(x, y) in BrandClassList"
:key=
"y"
></el-option>
</el-select>
</div>
</div>
<div
style=
"display: flex;flex-direction: row;align-items: center;flex-wrap: wrap"
>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
</el-select>
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
</el-select>
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
</el-select>
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
</el-select>
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
</el-select>
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
</el-select>
</div>
<div
class=
"block"
style=
"margin-top: 15px;margin-left: 10px"
>
<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>
...
...
@@ -102,20 +180,29 @@
</div>
</div>
</div>
<div
style=
"padding: 20px;background: #fff;"
>
<el-table
:data=
"dataList"
header-cell-class-name=
"headClass"
style=
"width: 100%"
border
>
<div
style=
"padding: 20px; background: #fff"
>
<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.ID)"
>
{{
scope
.
row
.
ID
}}
</span>
<span
@
click=
"goRecruit(scope.row.ID)"
>
{{
scope
.
row
.
ID
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"ClassName"
label=
"分类"
width=
"150"
>
</el-table-column>
<el-table-column
prop=
"BrandName"
label=
"品牌"
>
</el-table-column>
<el-table-column
prop=
"BrandName"
label=
"品牌"
>
</el-table-column>
<el-table-column
prop=
"Logo"
label=
"Logo"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-image
v-if=
"scope.row.Logo"
:src=
"scope.row.Logo"
style=
"width:50px;"
:preview-src-list=
"scope.row.LogoList"
>
<el-image
v-if=
"scope.row.Logo"
:src=
"scope.row.Logo"
style=
"width: 50px"
:preview-src-list=
"scope.row.LogoList"
>
</el-image>
</
template
>
</el-table-column>
...
...
@@ -123,7 +210,10 @@
</el-table-column>
<el-table-column
prop=
"BuiltUpArea"
label=
"建筑面积"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
BuiltUpArea
}}
至
{{
scope
.
row
.
EndBuiltUpArea
}}
平
</span>
<span
>
{{
scope
.
row
.
BuiltUpArea
}}
至
{{
scope
.
row
.
EndBuiltUpArea
}}
平
</span
>
</
template
>
</el-table-column>
<el-table-column
prop=
"ProjectName"
label=
"商铺性质"
width=
"150"
>
...
...
@@ -134,22 +224,47 @@
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../assets/img/setup/edit.png"
alt=
""
class=
"imgstyle"
@
click=
"Edit(scope.row)"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../assets/img/setup/edit.png"
alt=
""
class=
"imgstyle"
@
click=
"Edit(scope.row)"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../assets/img/setup/del.png"
alt=
""
class=
"imgstyle"
@
click=
"delete_b(scope.row)"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../assets/img/setup/del.png"
alt=
""
class=
"imgstyle"
@
click=
"delete_b(scope.row)"
/>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"total, prev, pager, next"
:current-page
.
sync=
"msg.pageIndex"
:total=
"pageCount"
>
<el-pagination
style=
"text-align: right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"total, prev, pager, next"
:current-page
.
sync=
"msg.pageIndex"
:total=
"pageCount"
>
</el-pagination>
</div>
<!-- 选择导出信息 -->
<el-dialog
title=
"选择导出信息"
:visible
.
sync=
"dialogVisible"
width=
"960px"
>
<el-form
...
...
@@ -199,14 +314,14 @@
</div>
</template>
<
script
>
export
default
{
export
default
{
name
:
"brandManagement"
,
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
20
,
BrandName
:
''
,
//品牌名
BrandName
:
""
,
//品牌名
ProjectType
:
0
,
//商铺性质
Plumbing
:
-
1
,
//上下水(0-否1-有)
Caliber
:
-
1
,
//管径(0-否1-有)
...
...
@@ -217,7 +332,7 @@
KongTiao
:
-
1
,
//空调(0-否1-有)
XinFeng
:
-
1
,
//新风(0-否1-有)
BrandClassId
:
0
,
//分类
ExcelEnumIds
:
[],
ExcelEnumIds
:
[],
},
addMsg
:
{},
dialogVisible
:
false
,
...
...
@@ -231,7 +346,7 @@
loading
:
false
,
BrandClassList
:
[],
//品牌分类列表
ProjectTypeList
:
[],
//商铺性质列表
}
};
},
created
()
{
this
.
getBrandClassList
();
...
...
@@ -242,18 +357,22 @@
this
.
getList
();
},
methods
:
{
Export
()
{
this
.
msg
.
ExcelEnumIds
=
this
.
checkedCities
;
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
if
(
!
msg
.
Id
||
msg
.
Id
==
""
)
{
msg
.
Id
=
0
;
}
this
.
GetLocalFile
(
"/api/Trade/GetBrandListToExcel"
,
msg
,
"品牌信息.xls"
);
},
Export
()
{
this
.
msg
.
ExcelEnumIds
=
this
.
checkedCities
;
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
if
(
!
msg
.
Id
||
msg
.
Id
==
""
)
{
msg
.
Id
=
0
;
}
this
.
GetLocalFile
(
"/api/Trade/GetBrandListToExcel"
,
msg
,
"品牌信息.xls"
,
null
,
()
=>
{
this
.
checkedCities
=
[];
}
);
},
getDown
()
{
this
.
cityOptions
=
[];
this
.
apipost
(
"/api/Trade/GetBusinessExportEnumList"
,
{},
(
res
)
=>
{
...
...
@@ -266,16 +385,13 @@
},
//获取商铺性质
getProjectType
()
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
res
=>
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ProjectTypeList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
handleCheckAllChange
(
val
)
{
this
.
checkedCities
=
val
?
this
.
cityOptions
:
[];
...
...
@@ -288,33 +404,27 @@
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
;
},
getList
()
{
this
.
apipost
(
"/api/Trade/GetBrandPageList"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Trade/GetBrandPageList"
,
this
.
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
pageCount
=
res
.
data
.
data
.
count
;
this
.
dataList
.
forEach
(
x
=>
{
x
.
LogoList
=
[]
this
.
dataList
.
forEach
((
x
)
=>
{
x
.
LogoList
=
[];
x
.
LogoList
.
push
(
x
.
Logo
);
})
});
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
getBrandClassList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{},
res
=>
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BrandClassList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
);
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
@@ -322,70 +432,68 @@
},
//新增品牌
addTopic
()
{
this
.
$router
.
push
(
'/addbrand'
);
this
.
$router
.
push
(
"/addbrand"
);
},
//删除品牌
delete_b
(
row
)
{
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/Trade/RemoveBrand"
,
{
Id
:
row
.
ID
"/api/Trade/RemoveBrand"
,
{
Id
:
row
.
ID
,
},
res
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
}
);
});
},
//编辑数据
Edit
(
row
)
{
this
.
$router
.
push
({
name
:
'addbrand'
,
name
:
"addbrand"
,
query
:
{
ID
:
row
.
ID
,
blank
:
"y"
}
blank
:
"y"
,
},
});
},
//切换
changeSwitch
(
item
)
{
let
msg
=
{
Id
:
item
.
Id
,
IsOpen
:
item
.
IsOpen
}
this
.
apipost
(
"/api/Education/UpdateEducationTalkShow"
,
msg
,
res
=>
{
IsOpen
:
item
.
IsOpen
,
};
this
.
apipost
(
"/api/Education/UpdateEducationTalkShow"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
})
}
});
},
}
}
,
};
</
script
>
<
style
>
.brandManagement
.el-card__header
{
.brandManagement
.el-card__header
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
background
:
#fff
;
}
}
.brandManagement
.content
{
.brandManagement
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
15px
;
box-sizing
:
border-box
;
}
}
</
style
>
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