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
d01a72a9
Commit
d01a72a9
authored
Dec 10, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
no message
parents
2ecae9bb
73215197
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1245 additions
and
1581 deletions
+1245
-1581
skuForm.vue
src/components/CommodityMan/skuForm.vue
+90
-0
Index.vue
src/components/Index.vue
+17
-6
chooseMenu.vue
src/components/common/chooseMenu.vue
+52
-22
CustomPage.vue
src/components/sallCenter/CustomPage.vue
+49
-4
link.vue
src/components/sallCenter/plugin/link.vue
+6
-1
BrandEnterEdit.vue
src/components/tradePavilion/BrandEnterEdit.vue
+278
-435
BrandEnterpriseManager.vue
src/components/tradePavilion/BrandEnterpriseManager.vue
+11
-17
BuildingManager.vue
src/components/tradePavilion/BuildingManager.vue
+14
-24
BuildingVehicle.vue
src/components/tradePavilion/BuildingVehicle.vue
+463
-682
brandManagement.vue
src/components/tradePavilion/brandManagement.vue
+2
-2
tradePavilionIndex.vue
src/components/tradePavilion/tradePavilionIndex.vue
+248
-364
index.js
src/plug/index.js
+11
-21
index.js
src/router/index.js
+4
-3
No files found.
src/components/CommodityMan/skuForm.vue
0 → 100644
View file @
d01a72a9
<
template
>
<div
class=
"skuForm"
>
<div
class=
"content"
>
<template
v-if=
"MonthDayList&&MonthDayList.length>0"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
v-for=
"(item,index) in MonthDayList"
:key=
'index'
:label=
"item.YearMonth"
>
<template
v-if=
"item.DateList && item.DateList.length>0"
>
<table>
<thead>
<tr>
<th>
日期
</th>
<th>
价格
</th>
<th>
库存
</th>
<th>
成本
</th>
</tr>
</thead>
<tbody
v-for=
"(subItem,subIndex) in item.DateList"
>
<tr>
<td>
{{
subItem
.
Day
}}
</td>
<td>
<el-input
v-model=
"subItem.SellingPrice"
@
keyup
.
native=
"checkPrice(subItem,'SellingPrice')"
size=
"small"
style=
"width:100px;"
></el-input>
</td>
<td>
<el-input
v-model=
"subItem.InventoryNum"
@
keyup
.
native=
"checkPrice(subItem,'InventoryNum')"
size=
"small"
style=
"width:100px;"
></el-input>
</td>
<td>
<el-input
v-model=
"subItem.CostMoney"
@
keyup
.
native=
"checkPrice(subItem,'CostMoney')"
size=
"small"
style=
"width:100px;"
></el-input>
</td>
</tr>
</tbody>
</table>
</
template
>
</el-tab-pane>
</el-tabs>
</template>
</div>
</div>
</template>
<
script
>
export
default
{
components
:
{},
name
:
"skuForm"
,
props
:
[
"addMsg"
,
"SpecificationValueList"
,
"SpecificationList"
,
"SpecificationPriceList"
],
data
()
{
return
{
QMsg
:
{
StartDate
:
"2024-01-01"
,
EndDate
:
'2024-05-20'
},
MonthDayList
:
[],
//
activeName
:
""
}
},
created
()
{
},
mounted
()
{
this
.
getDayData
();
},
methods
:
{
handleClick
()
{
},
getDayData
()
{
this
.
apipost
(
'/api/product/CreateSkuCalendar'
,
this
.
QMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
MonthDayList
=
res
.
data
.
data
;
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
},
};
</
script
>
<
style
>
</
style
>
src/components/Index.vue
View file @
d01a72a9
...
...
@@ -4,7 +4,12 @@
<div
class=
"main-container"
>
<div
class=
"homeIndexTop"
>
<div
class=
"hoindexImgdiv"
>
<!--
<img
src=
"../assets/img/logo.png"
alt=
""
style=
"height:30px"
>
-->
<template
v-if=
"mall_userInfo&&mall_userInfo.TenantId==30"
>
<!--
<img
src=
"../assets/img/logo.png"
alt=
""
style=
"height:30px"
>
-->
</
template
>
<
template
v-else
>
<img
src=
"../assets/img/logo.png"
alt=
""
style=
"height:30px"
>
</
template
>
</div>
<div
class=
"hoindexRight"
style=
"cursor:pointer;"
>
<el-dropdown>
...
...
@@ -221,8 +226,12 @@
</div>
</div>
</div>
<!-- <div style="text-align: center;line-height: 60px;color: #000;font-size:12px">由成都微途科技有限公司提供技术支持</div> -->
<
template
v-if=
"mall_userInfo&&mall_userInfo.TenantId==30"
>
<div
style=
"text-align: center;line-height: 60px;color: #000;font-size:12px"
></div>
</
template
>
<
template
v-else
>
<div
style=
"text-align: center;line-height: 60px;color: #000;font-size:12px"
>
由成都微途科技有限公司提供技术支持
</div>
</
template
>
<!-- 修改手机号 -->
<el-dialog
title=
"修改手机号"
:visible
.
sync=
"dialogVisible"
width=
"400px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
...
...
@@ -486,7 +495,8 @@
required
:
true
,
trigger
:
'blur'
}]
}
},
mall_userInfo
:
{},
}
},
methods
:
{
...
...
@@ -621,8 +631,8 @@
let
userInfo
=
this
.
getLocalStorage
();
userInfo
.
MallBaseId
=
item
.
MallBaseId
;
userInfo
.
MallName
=
item
.
MallName
;
userInfo
.
IsOpenSchool
=
item
.
IsOpenSchool
;
userInfo
.
IsKorea
=
item
.
IsKorea
;
userInfo
.
IsOpenSchool
=
item
.
IsOpenSchool
;
userInfo
.
IsKorea
=
item
.
IsKorea
;
localStorage
.
mall_userInfo
=
JSON
.
stringify
(
userInfo
);
},
//修改密码
...
...
@@ -745,6 +755,7 @@
},
},
mounted
()
{
this
.
mall_userInfo
=
JSON
.
parse
(
localStorage
.
mall_userInfo
);
this
.
TestMiniApp
();
this
.
init
();
this
.
getMiniPrograme
();
...
...
src/components/common/chooseMenu.vue
View file @
d01a72a9
<
style
>
.other_Style
{
color
:
#409EFF
;
.other_Style
{
color
:
#409EFF
;
}
</
style
>
<
template
>
<div
class=
"chooseMenu"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
v-for=
"(item,index) in dataList"
:label=
"item.PageTypeName"
:name=
"item.PageTypeId+''"
:key=
"index"
>
<div
style=
"height:450px;overflow:scroll;line-height:normal;"
v-if=
"item.PageTypeId!=6"
>
<template
v-for=
"(subItem,subIndex) in item.SubMenuList"
>
<div
:key=
"subIndex"
style=
"margin-bottom:10px;"
>
<el-checkbox
v-model=
"subItem.IsChecked"
:key=
"subIndex"
@
change=
"checkMenuChange(subItem)"
>
<span
v-if=
"subItem.SelfPageName"
>
{{
subItem
.
SelfPageName
}}
</span>
<span
v-else
>
{{
subItem
.
PageName
}}
</span>
</el-checkbox>
</div>
</
template
>
</div>
<div
style=
"height:450px;overflow:scroll"
v-else
>
<div
style=
"height:450px;overflow:scroll;line-height:normal;"
v-if=
"item.PageTypeId==6"
>
<el-input
placeholder=
"输入关键字进行过滤"
style=
"width:99%;margin-bottom:10px;"
v-model=
"filterText"
>
</el-input>
<el-tree
:data=
"item.SubMenuList"
node-key=
"PageId"
ref=
"tree"
:props=
"defaultProps"
filter
:filter-node-method=
"filterNode"
@
check=
"handleCheck"
:check-strictly=
"true"
show-checkbox
:check-on-click-node=
"true"
>
:filter-node-method=
"filterNode"
@
check=
"handleCheck"
:check-strictly=
"true"
show-checkbox
:check-on-click-node=
"true"
>
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span
:class=
"
{'other_Style':data.SubMenuList
&&
data.SubMenuList.length>0}">
{{
data
.
PageName
}}
</span>
</span>
</el-tree>
</div>
<!--商载通-->
<div
style=
"height:450px;overflow:scroll;line-height:normal;"
v-if=
"item.PageTypeId==8"
>
<!--
<el-input
placeholder=
"输入关键字进行过滤"
style=
"width:99%;margin-bottom:10px;"
v-model=
"filterText"
>
</el-input>
-->
<el-tree
:data=
"item.SubMenuList"
node-key=
"PageId"
ref=
"ybszttree"
:props=
"defaultProps"
filter
:filter-node-method=
"filterNode"
@
check=
"handleSZTCheck"
:check-strictly=
"true"
show-checkbox
:check-on-click-node=
"true"
>
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span
:class=
"
{'other_Style':data.SubMenuList
&&
data.SubMenuList.length>0}">
{{
data
.
PageName
}}
</span>
</span>
</el-tree>
</div>
<div
style=
"height:450px;overflow:scroll"
v-else
>
<template
v-for=
"(subItem,subIndex) in item.SubMenuList"
>
<div
:key=
"subIndex"
style=
"margin-bottom:5px;"
>
<el-checkbox
v-model=
"subItem.IsChecked"
:key=
"subIndex"
@
change=
"checkMenuChange(subItem)"
>
<span
v-if=
"subItem.SelfPageName"
>
{{
subItem
.
SelfPageName
}}
</span>
<span
v-else
>
{{
subItem
.
PageName
}}
</span>
</el-checkbox>
</div>
</
template
>
</div>
</el-tab-pane>
</el-tabs>
</div>
...
...
@@ -74,9 +88,23 @@
IsParameter
:
0
,
ParameterValue
:
""
,
PageName
:
""
,
new_link_url
:
''
new_link_url
:
''
};
if
(
this
.
activeName
!=
6
)
{
if
(
this
.
activeName
==
6
)
{
obj
.
PageUrl
=
this
.
checkedObj
.
PageUrl
obj
.
new_link_url
=
this
.
checkedObj
.
PageUrl
obj
.
IsParameter
=
this
.
checkedObj
.
IsParameter
obj
.
ParameterValue
=
this
.
checkedObj
.
ParameterValue
obj
.
PageName
=
this
.
checkedObj
.
PageName
;
}
//宜宾商载通
if
(
this
.
activeName
==
8
)
{
obj
.
PageUrl
=
this
.
checkedObj
.
PageUrl
obj
.
new_link_url
=
this
.
checkedObj
.
PageUrl
obj
.
IsParameter
=
this
.
checkedObj
.
IsParameter
obj
.
ParameterValue
=
this
.
checkedObj
.
ParameterValue
obj
.
PageName
=
this
.
checkedObj
.
PageName
;
}
else
{
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
SubMenuList
&&
item
.
SubMenuList
.
length
>
0
)
{
...
...
@@ -92,12 +120,6 @@
}
});
}
}
else
{
obj
.
PageUrl
=
this
.
checkedObj
.
PageUrl
obj
.
new_link_url
=
this
.
checkedObj
.
PageUrl
obj
.
IsParameter
=
this
.
checkedObj
.
IsParameter
obj
.
ParameterValue
=
this
.
checkedObj
.
ParameterValue
obj
.
PageName
=
this
.
checkedObj
.
PageName
;
}
return
obj
;
},
...
...
@@ -134,6 +156,14 @@
this
.
checkedObj
=
a
;
}
},
//check单选
handleSZTCheck
(
a
,
b
)
{
//a为传递给 data 属性的数组中该节点所对应的对象;b为树目前的选中状态对象
if
(
b
.
checkedKeys
.
length
>
0
)
{
this
.
$refs
.
ybszttree
[
0
].
setCheckedKeys
([
a
.
PageId
]);
this
.
checkedObj
=
a
;
}
},
},
mounted
()
{
this
.
getList
();
...
...
src/components/sallCenter/CustomPage.vue
View file @
d01a72a9
...
...
@@ -21,19 +21,50 @@
</el-table-column>
<el-table-column
prop=
"PageName"
label=
"标题"
>
</el-table-column>
<el-table-column
label=
"导航与模板"
prop=
"DetailsList"
width=
"
5
00"
>
<el-table-column
label=
"导航与模板"
prop=
"DetailsList"
width=
"
4
00"
>
<template
slot-scope=
"scope"
>
<div
class=
"templat-list"
>
<template
v-if=
"scope.row.DetailsList && scope.row.DetailsList.length>0"
v-for=
"(subItem,subIndex) in scope.row.DetailsList"
>
<div
class=
"templat-item"
:key=
"subIndex"
>
<div>
{{
subItem
.
NavName
}}
</div>
<div
style=
"color: rgb(153, 153, 153);"
>
{{
subItem
.
TemplateShowName
}}
</div>
<div
style=
"color: rgb(153, 153, 153);"
>
<template
v-if=
"subItem.NavName&&subItem.NavName!=''"
>
{{
subItem
.
NavName
}}
:
</
template
>
{{subItem.TemplateShowName}}
</div>
</div>
</template>
</div>
</template>
</el-table-column>
<el-table-column
prop=
"IsShowBottomTabBar"
label=
"导航条"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.IsShowNav==1"
>
显示
</
template
>
<
template
v-else
>
<font
style=
"color:red;"
>
不显示
</font>
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
"IsShowBottomTabBar"
label=
"底部导航"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.IsShowBottomTabBar==1"
>
显示
</
template
>
<
template
v-else
>
<font
style=
"color:red;"
>
不显示
</font>
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
"IsNoShowTitle"
label=
"标题"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.IsNoShowTitle==0"
>
显示
</
template
>
<
template
v-else
>
<font
style=
"color:red;"
>
不显示
</font>
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
"IsHome"
label=
"设为首页"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.IsHome"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
...
...
@@ -48,6 +79,7 @@
</el-switch>
</
template
>
</el-table-column>
<el-table-column
prop=
"IsUse"
label=
"禁用/启用"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.IsUse"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
...
...
@@ -88,6 +120,15 @@
<el-switch
v-model=
"addMsg.IsShowNav"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"显示底部导航条"
>
<el-switch
v-model=
"addMsg.IsShowBottomTabBar"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"不显示标题"
>
<el-switch
v-model=
"addMsg.IsNoShowTitle"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"模板和导航"
>
<div
style=
"max-width:480px;"
>
<div
class=
"Custom_item"
v-for=
"(item,index) in addMsg.DetailsList"
:key=
"index"
>
...
...
@@ -154,6 +195,8 @@
IsHome
:
0
,
IsUse
:
1
,
IsShowNav
:
0
,
IsShowBottomTabBar
:
1
,
//是否显示底部导航
IsNoShowTitle
:
0
,
//是否不显示标题
DetailsList
:
[]
},
total
:
0
,
...
...
@@ -254,6 +297,8 @@
this
.
addMsg
.
IsShowNav
=
jsonData
.
IsShowNav
;
this
.
addMsg
.
IsHome
=
jsonData
.
IsHome
;
this
.
addMsg
.
DetailsList
=
jsonData
.
DetailsList
;
this
.
addMsg
.
IsShowBottomTabBar
=
jsonData
.
IsShowBottomTabBar
;
this
.
addMsg
.
IsNoShowTitle
=
jsonData
.
IsNoShowTitle
;
this
.
CustomIsShowAdd
=
false
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
...
...
@@ -333,7 +378,7 @@
}
.CustomPage
.templat-item
div
{
width
:
5
0%
;
width
:
9
0%
;
padding-left
:
20px
;
}
...
...
src/components/sallCenter/plugin/link.vue
View file @
d01a72a9
...
...
@@ -213,13 +213,18 @@
<el-button
@
click=
"isShowLink=true"
>
选择链接
</el-button>
</
template
>
</el-input>
<
template
v-if=
"data.link&&data.link.url"
>
<el-input
size=
"small"
class=
"link-page"
v-model=
"data.link.url"
>
<template
slot=
"prepend"
>
链接地址
</
template
>
</el-input>
</template>
</el-form-item>
<el-form-item
v-if=
"data.style == '1'"
label=
"图标开关"
>
<el-switch
v-model=
"data.picSwitch"
></el-switch>
</el-form-item>
<
template
v-if=
"data.picSwitch"
>
<el-form-item
label=
"图标"
>
<label
slot=
"label"
>
图标
<label
slot=
"label"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"最大宽度750px,最大高度36px,图标等比例缩放"
placement=
"top"
>
<i
class=
"el-icon-info"
></i>
</el-tooltip>
...
...
src/components/tradePavilion/BrandEnterEdit.vue
View file @
d01a72a9
<
template
>
<div
v-loading=
"pageloading"
class=
"editBrandEnter"
>
<div
class=
"head-title"
>
<span
@
click=
"CommonJump(isBrand?'BrandManager':'EnterpriseManager')"
class=
"blue point"
>
{{
isBrand
?
'品牌'
:
'服务'
}}
管理
</span
>
<span
@
click=
"CommonJump(isBrand?'BrandManager':'EnterpriseManager')"
class=
"blue point"
>
{{
isBrand
?
'品牌'
:
'服务'
}}
管理
</span>
/
<span>
{{
ID
?
'编辑'
:
'新增'
}}{{
isBrand
?
'品牌'
:
'服务'
}}
</span>
</div>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"180px"
>
<el-card
shadow=
"never"
style=
"margin-top: 10px"
class=
"box-card"
>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}分类`" class="is-required" prop="CategoryId">
<el-select
class=
"w300"
v-model=
"addMsg.CategoryId"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in CategoryList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
<el-select
class=
"w300"
v-model=
"addMsg.CategoryId"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in CategoryList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}全名`"
prop="FullBrandName"
class="is-required"
size="small"
>
<el-input
v-model=
"addMsg.FullBrandName"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}全名`"
maxlength="100"
style="width: 690px;"
/>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}全名`" prop="FullBrandName" class="is-required" size="small">
<el-input
v-model=
"addMsg.FullBrandName"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}全名`" maxlength="100"
style="width: 690px;" />
</el-form-item>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}名`"
prop="BrandName"
class="is-required"
size="small"
>
<el-input
v-model=
"addMsg.BrandName"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}名`"
maxlength="100"
style="width: 690px;"
/>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}名`" prop="BrandName" class="is-required" size="small">
<el-input
v-model=
"addMsg.BrandName"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}名`" maxlength="100"
style="width: 690px;" />
</el-form-item>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}视频`">
<el-input
v-model=
"addMsg.VideoUrl"
size=
"small"
placeholder=
"请输入内容"
style=
"width: 690px;"
>
<el-button
@
click=
"changeState1 = true"
slot=
"append"
>
添加视频
</el-button
>
<el-input
v-model=
"addMsg.VideoUrl"
size=
"small"
placeholder=
"请输入内容"
style=
"width: 690px;"
>
<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-button
@
click=
"type=1,choicImg=true"
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=
""
/>
<el-image
v-else
style=
"width: 80px; height: 80px"
:src=
"addMsg.Logo"
:preview-src-list=
"LogoList"
>
<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=
""
/>
<el-image
v-else
style=
"width: 80px; height: 80px"
:src=
"addMsg.Logo"
:preview-src-list=
"LogoList"
>
</el-image>
</div>
</el-form-item>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}介绍图`">
<el-tooltip
class=
"item"
effect=
"dark"
content=
"第一张图片为封面图"
placement=
"top"
style=
"position: absolute; left: -5px; top: 12px"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"第一张图片为封面图"
placement=
"top"
style=
"position: absolute; left: -5px; top: 12px"
>
<i
class=
"el-tooltip el-icon-info"
></i>
</el-tooltip>
<p
style=
"color: #c9c9c9; margin: 0 0 12px 20px"
>
...
...
@@ -106,105 +47,47 @@
<div
class=
"nav_Main"
>
<div
class=
"nav_IconContent"
>
<draggable
v-model=
"addMsg.BannerList"
>
<div
style=
"
<div
style=
"
position: relative;
margin-right: 20px;
display: inline-block;
"
v-for=
"(item, index) in addMsg.BannerList"
:key=
"index + '2'"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"item"
:preview-src-list=
"addMsg.BannerList"
>
"
v-for=
"(item, index) in addMsg.BannerList"
:key=
"index + '2'"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"item"
:preview-src-list=
"addMsg.BannerList"
>
</el-image>
<el-button
@
click=
"ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
<el-button
@
click=
"ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
</el-button>
</div>
</draggable>
</div>
<div
@
click=
"type=2,choicImg=true"
v-if=
"addMsg.BannerList.length
<
9
"
class=
"add-image-btn 2222"
style=
"cursor: pointer"
>
<div
@
click=
"type=2,choicImg=true"
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"
maxlength=
"3"
style=
"width: 690px;"
/>
<el-form-item
label=
"店铺数量"
prop=
"ShopNum"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.ShopNum"
placeholder=
"请输入店铺数量"
type=
"number"
maxlength=
"3"
style=
"width: 690px;"
/>
</el-form-item>
<el-form-item
label=
"建筑面积"
size=
"small"
>
<el-input
v-model=
"addMsg.BuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
<el-form-item
label=
"建筑面积"
size=
"small"
>
<el-input
v-model=
"addMsg.BuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
<span
style=
"margin: 0 10px"
>
~
</span>
<el-input
v-model=
"addMsg.EndBuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
<el-input
v-model=
"addMsg.EndBuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
</el-form-item>
<el-form-item
label=
"需求面积"
size=
"small"
>
<el-input
v-model=
"addMsg.AreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
<el-input
v-model=
"addMsg.AreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
<span
style=
"margin: 0 10px"
>
~
</span>
<el-input
v-model=
"addMsg.EndAreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
<el-input
v-model=
"addMsg.EndAreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 200px"
maxlength=
"7"
/>
</el-form-item>
<el-form-item
label=
"客群定位"
size=
"small"
>
<el-input
v-model=
"addMsg.CustomerType"
placeholder=
"请输入客群定位"
maxlength=
"200"
style=
"width: 690px;"
/>
<el-input
v-model=
"addMsg.CustomerType"
placeholder=
"请输入客群定位"
maxlength=
"200"
style=
"width: 690px;"
/>
</el-form-item>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}定位`" size="small">
<el-input
v-model=
"addMsg.BrandType"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}定位`"
maxlength="100"
style="width: 690px;"
/>
<el-input
v-model=
"addMsg.BrandType"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}定位`" maxlength="100"
style="width: 690px;" />
</el-form-item>
<!--
<el-form-item
label=
"拓店区域"
size=
"small"
>
...
...
@@ -392,59 +275,30 @@
</el-form-item>
-->
<el-form-item
label=
"发展意向"
prop=
""
>
<el-input
v-model=
"addMsg.DevIntention"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入发展意向"
>
<el-input
v-model=
"addMsg.DevIntention"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入发展意向"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"合作条件"
prop=
""
>
<el-input
v-model=
"addMsg.Cooperation"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入合作条件"
>
<el-input
v-model=
"addMsg.Cooperation"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入合作条件"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"物业需求"
prop=
""
>
<el-input
v-model=
"addMsg.PropertyDemand"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入物业需求"
>
<el-input
v-model=
"addMsg.PropertyDemand"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入物业需求"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"配套需求"
prop=
""
>
<el-input
v-model=
"addMsg.Complementary"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入配套需求"
>
<el-input
v-model=
"addMsg.Complementary"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入配套需求"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
:label=
"`$
{isBrand?'品牌':'服务'}简介`" class="ue-style">
<el-input
type=
"textarea"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}简介`"
v-model="addMsg.Introduce"
maxlength="500"
show-word-limit
rows="8"
style="width: 690px;"
>
<el-input
type=
"textarea"
:placeholder=
"`请输入$
{isBrand?'品牌':'服务'}简介`" v-model="addMsg.Introduce"
maxlength="500" show-word-limit rows="8" style="width: 690px;">
</el-input>
</el-form-item>
</el-card>
</el-form>
<div
style=
"padding: 20px; background: #fff; margin-top: 10px"
>
<el-button
@
click=
"Save('addMsg')"
size=
"small"
type=
"primary"
>
保存
</el-button
>
<el-button
@
click=
"Save('addMsg')"
size=
"small"
type=
"primary"
>
保存
</el-button>
</div>
<!-- 选择图片文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"choicImg"
width=
"1240px"
>
...
...
@@ -458,287 +312,276 @@
</
template
>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
commonMap
from
"@/components/common/commonMap.vue"
;
import
draggable
from
"vuedraggable"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
commonMap
from
"@/components/common/commonMap.vue"
;
import
draggable
from
"vuedraggable"
;
export
default
{
name
:
"editBrandEnter"
,
data
()
{
let
validataType
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
CategoryId
==
0
)
{
return
callback
(
new
Error
(
"请选择类型"
));
}
else
{
callback
();
}
};
let
validataLogo
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
Logo
==
""
)
{
return
callback
(
new
Error
(
"请上传Logo"
));
}
else
{
callback
();
}
};
return
{
pageloading
:
false
,
addMsg
:
{
ID
:
0
,
Logo
:
""
,
//Logo
BannerList
:
[],
//品牌介绍图
VideoUrl
:
""
,
//品牌视频
FullBrandName
:
""
,
//品牌全名
BrandName
:
""
,
//品牌名
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
0
,
//建筑面积小
EndBuiltUpArea
:
0
,
//建筑面积大
CustomerType
:
""
,
//客群定位
BrandType
:
""
,
//品牌定位
StoreExpansion
:
""
,
//扩店区域
ProjectType
:
0
,
//商铺性质
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
RanQiBZ
:
""
,
//燃气备注
IsDianLiang
:
1
,
//电量(0-否1-有)
PaiYanBZ
:
""
,
//排烟量备注
ShopSize
:
""
,
//店铺开口尺寸
IsShopSize
:
1
,
//店铺开口尺寸(0-否1-有)
OpenShopWish
:
5
,
//开店意愿
IsInChengdu
:
0
,
//是否成都落地
CategoryId
:
0
,
//分类ID
BrandEnterpriseType
:
1
,
//(1-品牌,2-企业服务)
Introduce
:
''
,
//品牌简介/企业简介
DevIntention
:
''
,
//发展意向
Cooperation
:
''
,
//合作条件
PropertyDemand
:
''
,
//物业需求
Complementary
:
''
,
//配套需求
},
rules
:
{
Logo
:
[
{
export
default
{
name
:
"editBrandEnter"
,
data
()
{
let
validataType
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
CategoryId
==
0
)
{
return
callback
(
new
Error
(
"请选择类型"
));
}
else
{
callback
();
}
};
let
validataLogo
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
Logo
==
""
)
{
return
callback
(
new
Error
(
"请上传Logo"
));
}
else
{
callback
();
}
};
return
{
pageloading
:
false
,
addMsg
:
{
ID
:
0
,
Logo
:
""
,
//Logo
BannerList
:
[],
//品牌介绍图
VideoUrl
:
""
,
//品牌视频
FullBrandName
:
""
,
//品牌全名
BrandName
:
""
,
//品牌名
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
0
,
//建筑面积小
EndBuiltUpArea
:
0
,
//建筑面积大
CustomerType
:
""
,
//客群定位
BrandType
:
""
,
//品牌定位
StoreExpansion
:
""
,
//扩店区域
ProjectType
:
0
,
//商铺性质
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
RanQiBZ
:
""
,
//燃气备注
IsDianLiang
:
1
,
//电量(0-否1-有)
PaiYanBZ
:
""
,
//排烟量备注
ShopSize
:
""
,
//店铺开口尺寸
IsShopSize
:
1
,
//店铺开口尺寸(0-否1-有)
OpenShopWish
:
5
,
//开店意愿
IsInChengdu
:
0
,
//是否成都落地
CategoryId
:
0
,
//分类ID
BrandEnterpriseType
:
1
,
//(1-品牌,2-企业服务)
Introduce
:
''
,
//品牌简介/企业简介
DevIntention
:
''
,
//发展意向
Cooperation
:
''
,
//合作条件
PropertyDemand
:
''
,
//物业需求
Complementary
:
''
,
//配套需求
},
rules
:
{
Logo
:
[{
required
:
true
,
validator
:
validataLogo
,
trigger
:
"change"
,
},
],
FullBrandName
:
[
{
},
],
FullBrandName
:
[{
required
:
true
,
message
:
"请输入品牌全名"
,
trigger
:
"blur"
,
},
],
BrandName
:
[
{
},
],
BrandName
:
[{
required
:
true
,
message
:
"请输入品牌名"
,
trigger
:
"blur"
,
},
],
Logo
:
[
{
},
],
Logo
:
[{
required
:
true
,
message
:
"请选择Logo"
,
trigger
:
"blur"
,
},
],
ShopNum
:
[
{
},
],
ShopNum
:
[{
required
:
true
,
message
:
"请输入店铺数量"
,
trigger
:
"blur"
,
},
],
CategoryId
:
[
{
},
],
CategoryId
:
[{
required
:
true
,
validator
:
validataType
,
trigger
:
"change"
,
},
],
},
ID
:
0
,
type
:
-
1
,
choicImg
:
false
,
changeState1
:
false
,
LogoList
:
[],
isBrand
:
true
,
CategoryList
:
[],
};
},
components
:
{
ChooseImg
,
Choosevideo
,
draggable
,
},
created
()
{
this
.
isBrand
=
this
.
$route
.
query
.
isBrand
this
.
addMsg
.
BrandEnterpriseType
=
this
.
isBrand
?
this
.
isBrand
:
2
if
(
this
.
$route
.
query
.
ID
)
{
this
.
ID
=
this
.
$route
.
query
.
ID
;
this
.
getData
();
}
this
.
getTypeEnumList
();
},
methods
:
{
//获取类型
getTypeEnumList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{
BrandCategory
:
this
.
isBrand
?
3
:
4
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CategoryList
=
res
.
data
.
data
;
let
obj
=
{
ClassName
:
"请选择"
,
ID
:
0
,
};
this
.
CategoryList
.
unshift
(
obj
);
}
});
},
],
},
ID
:
0
,
type
:
-
1
,
choicImg
:
false
,
changeState1
:
false
,
LogoList
:
[],
isBrand
:
true
,
CategoryList
:
[],
};
},
Save
(
formName
)
{
//其他
// let other = this.$refs.ueother.getUEContent();
// this.addMsg.Other = other;
if
(
this
.
addMsg
.
BuiltUpArea
===
''
||
this
.
addMsg
.
EndBuiltUpArea
===
''
){
this
.
Error
(
'请输入建筑面积'
)
return
}
if
(
this
.
addMsg
.
AreaRequirement
===
''
||
this
.
addMsg
.
EndAreaRequirement
===
''
)
{
this
.
Error
(
'请输入需求面积'
)
return
components
:
{
ChooseImg
,
Choosevideo
,
draggable
,
},
created
()
{
this
.
isBrand
=
this
.
$route
.
query
.
isBrand
this
.
addMsg
.
BrandEnterpriseType
=
this
.
isBrand
?
this
.
isBrand
:
2
if
(
this
.
$route
.
query
.
ID
)
{
this
.
ID
=
this
.
$route
.
query
.
ID
;
this
.
getData
();
}
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
apipost
(
"/api/Trade/SetBrandEnterprise"
,
this
.
addMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
CommonJump
(
this
.
isBrand
?
'BrandManager'
:
'EnterpriseManager'
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
else
{
return
false
;
}
});
this
.
getTypeEnumList
();
},
getData
()
{
this
.
pageloading
=
true
;
this
.
apipost
(
"/api/Trade/GetBrandEnterpriseInfo"
,
{
ID
:
this
.
ID
,
},
(
res
)
=>
{
this
.
pageloading
=
false
;
methods
:
{
//获取类型
getTypeEnumList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{
BrandCategory
:
this
.
isBrand
?
3
:
4
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
this
.
LogoList
=
[];
this
.
LogoList
.
push
(
this
.
addMsg
.
Logo
);
this
.
CategoryList
=
res
.
data
.
data
;
let
obj
=
{
ClassName
:
"请选择"
,
ID
:
0
,
};
this
.
CategoryList
.
unshift
(
obj
);
}
});
},
Save
(
formName
)
{
//其他
// let other = this.$refs.ueother.getUEContent();
// this.addMsg.Other = other;
if
(
this
.
addMsg
.
BuiltUpArea
===
''
||
this
.
addMsg
.
EndBuiltUpArea
===
''
)
{
this
.
Error
(
'请输入建筑面积'
)
return
}
if
(
this
.
addMsg
.
AreaRequirement
===
''
||
this
.
addMsg
.
EndAreaRequirement
===
''
)
{
this
.
Error
(
'请输入需求面积'
)
return
}
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
apipost
(
"/api/Trade/SetBrandEnterprise"
,
this
.
addMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
CommonJump
(
this
.
isBrand
?
'BrandManager'
:
'EnterpriseManager'
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
return
false
;
}
});
},
getData
()
{
this
.
pageloading
=
true
;
this
.
apipost
(
"/api/Trade/GetBrandEnterpriseInfo"
,
{
ID
:
this
.
ID
,
},
(
res
)
=>
{
this
.
pageloading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
this
.
LogoList
=
[];
this
.
LogoList
.
push
(
this
.
addMsg
.
Logo
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
}
);
},
//选择图片
SelectId
(
msg
)
{
if
(
this
.
type
==
1
)
{
this
.
addMsg
.
Logo
=
this
.
getIconLink
(
msg
.
url
);
}
);
},
//选择图片
SelectId
(
msg
)
{
if
(
this
.
type
==
1
)
{
this
.
addMsg
.
Logo
=
this
.
getIconLink
(
msg
.
url
);
}
if
(
this
.
type
==
2
)
{
this
.
addMsg
.
BannerList
.
push
(
msg
.
url
);
}
this
.
choicImg
=
false
;
},
ClearCarouse
(
index
)
{
this
.
addMsg
.
BannerList
.
splice
(
index
,
1
);
},
Selectvideo
(
val
)
{
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
this
.
changeState1
=
false
;
if
(
this
.
type
==
2
)
{
this
.
addMsg
.
BannerList
.
push
(
msg
.
url
);
}
this
.
choicImg
=
false
;
},
ClearCarouse
(
index
)
{
this
.
addMsg
.
BannerList
.
splice
(
index
,
1
);
},
Selectvideo
(
val
)
{
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
this
.
changeState1
=
false
;
},
},
}
,
};
}
;
</
script
>
<
style
>
.editBrandEnter
.content
{
background
:
#fff
;
margin-top
:
10px
;
box-sizing
:
border-box
;
}
.editBrandEnter
.content
{
background
:
#fff
;
margin-top
:
10px
;
box-sizing
:
border-box
;
}
.editBrandEnter
.editIconImg
{
width
:
80px
;
height
:
80px
;
}
.editBrandEnter
.editIconImg
{
width
:
80px
;
height
:
80px
;
}
.editBrandEnter
.add-image-btn
{
width
:
100px
;
height
:
100px
;
line-height
:
100px
;
color
:
#419efb
;
border
:
1px
solid
#e2e2e2
;
cursor
:
pointer
;
text-align
:
center
;
}
.editBrandEnter
.add-image-btn
{
width
:
100px
;
height
:
100px
;
line-height
:
100px
;
color
:
#419efb
;
border
:
1px
solid
#e2e2e2
;
cursor
:
pointer
;
text-align
:
center
;
}
.editBrandEnter
.nav_Main
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.editBrandEnter
.nav_Main
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.editBrandEnter
.nav_IconContent
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.editBrandEnter
.nav_IconContent
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
/* .editBrandEnter .nav_IconContent div>div {
/* .editBrandEnter .nav_IconContent div>div {
display: inline-block;
} */
.editBrandEnter
.colapp-image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
100px
;
height
:
100px
;
border-radius
:
0%
;
}
.editBrandEnter
.colapp-image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
100px
;
height
:
100px
;
border-radius
:
0%
;
}
.editBrandEnter
.delBtn
{
position
:
absolute
;
right
:
-8px
;
top
:
-8px
;
padding
:
4px
4px
!important
;
}
.editBrandEnter
.delBtn
{
position
:
absolute
;
right
:
-8
px
;
top
:
-
8px
;
padding
:
4px
4px
!important
;
}
.delCarrClose
{
position
:
absolute
;
right
:
53
px
;
top
:
8px
;
padding
:
4px
4px
!important
;
}
.delCarrClose
{
position
:
absolute
;
right
:
53px
;
top
:
8px
;
padding
:
4px
4px
!important
;
}
</
style
>
src/components/tradePavilion/BrandEnterpriseManager.vue
View file @
d01a72a9
...
...
@@ -14,7 +14,7 @@
<
template
>
<div
class=
"VehicleManagement"
>
<div
class=
"head-title"
>
{{
isBrand
?
'
品牌'
:
'
服务'
}}
管理
{{
isBrand
?
'
消费品牌'
:
'企业
服务'
}}
管理
<div>
<el-button
@
click=
"checkAll=false,dialogVisible = true"
style=
"float: right; margin-top: -25px"
size=
"small"
type=
"primary"
>
...
...
@@ -23,14 +23,14 @@
</div>
<div>
<el-button
type=
"primary"
style=
"float: right; margin: -25px 10px 0px 0px"
class=
"el-button--small"
@
click=
"CommonJump('BrandEnterEdit',
{isBrand:isBrand?1:0})">新增
{{
isBrand
?
'
品牌'
:
'
服务'
}}
</el-button>
@
click=
"CommonJump('BrandEnterEdit',
{isBrand:isBrand?1:0})">新增
{{
isBrand
?
'
消费品牌'
:
'企业
服务'
}}
</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=
"`$
{isBrand?'
品牌':'
服务'}名称`" v-model="msg.BrandName"
style=
"display: inline-block; width: 225px; height: 30px"
:placeholder=
"`$
{isBrand?'
消费品牌':'企业
服务'}名称`" v-model="msg.BrandName"
size="small" clearable>
</el-input>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
"
...
...
@@ -42,7 +42,7 @@
</div>
<div
class=
"searchInput"
style=
"width: 200px; margin-bottom: 10px"
>
<el-select
size=
"small"
v-model=
"msg.CategoryId"
filterable
@
change=
"(msg.pageIndex = 1), getList()"
:placeholder=
"`
请选择$
{isBrand?'品牌':'服务'}分类`
">
@
change=
"(msg.pageIndex = 1), getList()"
:placeholder=
"`
$
{isBrand?'消费品牌':'企业服务'}分类`" clearable @clear="(msg.pageIndex = 1), getList()
">
<el-option
v-for=
"item in CategoryList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
</el-option>
</el-select>
...
...
@@ -146,7 +146,7 @@
ExcelEnumIds
:
[],
UserId
:
0
,
RandomNum
:
0
,
//随机数
CategoryId
:
0
,
//分类Id
CategoryId
:
""
,
//分类Id
BrandEnterpriseType
:
null
,
//(1-品牌,2-服务)
OpeningStatus
:
-
1
,
// 0-即将开业,1-已开业
QShopType
:
0
,
//1-成都首店,2-宜宾商载通
...
...
@@ -192,7 +192,7 @@
BrandName
:
""
,
//名称
pageIndex
:
1
,
pageSize
:
15
,
CategoryId
:
0
,
//分类Id
CategoryId
:
""
,
//分类Id
BrandEnterpriseType
:
this
.
isBrand
?
1
:
2
,
//(1-品牌,2-服务)
}
this
.
getList
();
...
...
@@ -254,13 +254,13 @@
},
2000
);
},
checkCarrierFile
(
msg
)
{
var
fileName
=
"服务信息.xls"
;
var
fileName
=
"
企业
服务信息.xls"
;
if
(
this
.
isBrand
)
{
fileName
=
"消费品牌信息.xls"
;
}
var
that
=
this
;
this
.
apipost
(
"/api/Trade/CheckB
uildingCarrier
File"
,
"/api/Trade/CheckB
randEnterprise
File"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -269,7 +269,7 @@
if
(
this
.
isBrand
)
{
this
.
loadingText
=
"正在下载消费品牌文件,请勿关闭或刷新页面..."
;
}
else
{
this
.
loadingText
=
"正在下载服务文件,请勿关闭或刷新页面..."
;
this
.
loadingText
=
"正在下载
企业
服务文件,请勿关闭或刷新页面..."
;
}
var
fileUrl
=
res
.
data
.
data
.
fileUrl
;
var
filepath
=
res
.
data
.
data
.
filePath
;
...
...
@@ -289,7 +289,7 @@
responseType
:
'arraybuffer'
,
onDownloadProgress
:
(
progressEvent
)
=>
{
const
progress
=
Math
.
round
((
progressEvent
.
loaded
/
progressEvent
.
total
)
*
100
);
that
.
loadingText
=
`正在下载【`
+
(
that
.
isBrand
?
'
品牌'
:
"
服务"
)
+
`】文件`
+
progress
+
that
.
loadingText
=
`正在下载【`
+
(
that
.
isBrand
?
'
消费品牌'
:
"企业
服务"
)
+
`】文件`
+
progress
+
`%,请勿关闭或刷新页面...`
;
// 在这里处理下载进度, 如更新界面上的进度条
}
...
...
@@ -317,7 +317,7 @@
getDown
()
{
this
.
cityOptions
=
[];
this
.
apipost
(
"/api/Trade/GetB
uildingCarrier
ExportEnumList"
,
{},
(
res
)
=>
{
this
.
apipost
(
"/api/Trade/GetB
randEnterprise
ExportEnumList"
,
{},
(
res
)
=>
{
this
.
cities
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
data
.
forEach
((
item
)
=>
{
...
...
@@ -362,15 +362,9 @@
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CategoryList
=
res
.
data
.
data
;
let
obj
=
{
ClassName
:
"不限"
,
ID
:
0
,
};
this
.
CategoryList
.
unshift
(
obj
);
}
});
},
//获取项目类型
getProject
(
type
)
{
let
str
=
""
;
...
...
src/components/tradePavilion/BuildingManager.vue
View file @
d01a72a9
...
...
@@ -14,7 +14,7 @@
<
template
>
<div
class=
"VehicleManagement"
>
<div
class=
"head-title"
>
{{
isCarrier
?
'载体'
:
'楼宇'
}}
管理
{{
isCarrier
?
'
商业
载体'
:
'楼宇'
}}
管理
<div>
<el-button
@
click=
"checkAll=false,dialogVisible = true"
style=
"float: right; margin-top: -25px"
size=
"small"
type=
"primary"
>
...
...
@@ -23,7 +23,7 @@
</div>
<div>
<el-button
type=
"primary"
style=
"float: right; margin: -25px 10px 0px 0px"
class=
"el-button--small"
@
click=
"CommonJump('BuildingVehicle',
{isCarrier:isCarrier?1:0})">新增
{{
isCarrier
?
'载体'
:
'楼宇'
}}
</el-button>
@
click=
"CommonJump('BuildingVehicle',
{isCarrier:isCarrier?1:0})">新增
{{
isCarrier
?
'
商业
载体'
:
'楼宇'
}}
</el-button>
</div>
</div>
<div
class=
"content"
>
...
...
@@ -84,24 +84,24 @@
</el-option>
</el-select>
</div>
-->
<div
class=
"searchInput"
style=
"width: 200px; margin-bottom: 10px"
>
<
!--
<
div
class=
"searchInput"
style=
"width: 200px; margin-bottom: 10px"
>
<el-select
size=
"small"
v-model=
"msg.QShopType"
filterable
@
change=
"(msg.pageIndex = 1), getList()"
placeholder=
"请选择首店类型"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in ShopTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</div>
</div>
-->
<div
class=
"searchInput"
style=
"width: 200px; margin-bottom: 10px"
>
<el-select
size=
"small"
v-model=
"msg.CategoryId"
filterable
@
c
hange=
"(msg.pageIndex = 1), getList()"
placeholder=
"请选择分类
"
>
<el-select
size=
"small"
v-model=
"msg.CategoryId"
filterable
@
change=
"(msg.pageIndex = 1), getList()"
clearable
@
c
lear=
"(msg.pageIndex = 1), getList()"
:placeholder=
"(isCarrier?'商业载体':'楼宇')+`分类`
"
>
<el-option
v-for=
"item in CategoryList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
</el-option>
</el-select>
</div>
<div
class=
"searchInput"
style=
"width: 200px; margin-bottom: 10px"
>
<el-select
size=
"small"
v-model=
"msg.OpeningStatus"
filterable
@
c
hange=
"(msg.pageIndex = 1), getList()"
placeholder=
"请选择开店
状态"
>
<el-select
size=
"small"
v-model=
"msg.OpeningStatus"
clearable
@
change=
"(msg.pageIndex = 1), getList()"
@
c
lear=
"(msg.pageIndex = 1), getList()"
placeholder=
"开业
状态"
>
<el-option
v-for=
"item in OpeningList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
...
...
@@ -114,13 +114,13 @@
<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"
>
<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>
</
template
>
</el-table-column>
-->
</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"
>
...
...
@@ -219,9 +219,9 @@
ExcelEnumIds
:
[],
UserId
:
0
,
RandomNum
:
0
,
//随机数
CategoryId
:
0
,
//分类Id
CategoryId
:
""
,
//分类Id
BuildingCarrierType
:
null
,
//(1-载体,2-楼宇)
OpeningStatus
:
-
1
,
// 0-即将开业,1-已开业
OpeningStatus
:
""
,
// 0-即将开业,1-已开业
QShopType
:
0
,
//1-成都首店,2-宜宾商载通
},
usermsg
:
{
...
...
@@ -261,10 +261,6 @@
},
],
OpeningList
:
[{
Name
:
'不限'
,
Id
:
-
1
},
{
Name
:
'即将开业'
,
Id
:
0
},
...
...
@@ -299,9 +295,9 @@
ExcelEnumIds
:
[],
UserId
:
0
,
RandomNum
:
0
,
//随机数
CategoryId
:
0
,
//分类Id
CategoryId
:
""
,
//分类Id
BuildingCarrierType
:
this
.
isCarrier
?
1
:
2
,
//(1-载体,2-楼宇)
OpeningStatus
:
-
1
,
// 0-即将开业,1-已开业
OpeningStatus
:
""
,
// 0-即将开业,1-已开业
QShopType
:
0
,
//1-成都首店,2-宜宾商载通
}
this
.
getList
();
...
...
@@ -483,15 +479,9 @@
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CategoryList
=
res
.
data
.
data
;
let
obj
=
{
ClassName
:
"不限"
,
ID
:
0
,
};
this
.
CategoryList
.
unshift
(
obj
);
}
});
},
//获取项目类型
getProject
(
type
)
{
let
str
=
""
;
...
...
src/components/tradePavilion/BuildingVehicle.vue
View file @
d01a72a9
<
template
>
<div
v-loading=
"pageloading"
class=
"editVehicle"
>
<div
class=
"head-title"
>
<span
@
click=
"CommonJump(isCarrier?'BuildingServiceManager':'BuildingManager')"
class=
"blue point"
>
{{
isCarrier
?
'载体'
:
'楼宇'
}}
管理
</span
>
/
<span>
{{
ID
?
'编辑'
:
'新增'
}}{{
isCarrier
?
'载体'
:
'楼宇'
}}
</span>
<span
@
click=
"CommonJump(isCarrier?'BuildingServiceManager':'BuildingManager')"
class=
"blue point"
>
{{
isCarrier
?
'商业载体'
:
'楼宇'
}}
管理
</span>
/
<span>
{{
ID
?
'编辑'
:
'新增'
}}{{
isCarrier
?
'商业载体'
:
'楼宇'
}}
</span>
</div>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"180px"
>
<el-card
shadow=
"never"
style=
"margin-top: 10px"
class=
"box-card"
>
<el-form-item
label=
"项目名称"
prop=
"CarrierName"
>
<el-input
v-model=
"addMsg.CarrierName"
style=
"width: 690px"
placeholder=
"请输入项目名称"
size=
"small"
>
<el-input
v-model=
"addMsg.CarrierName"
style=
"width: 690px"
placeholder=
"请输入项目名称"
size=
"small"
>
</el-input>
</el-form-item>
<el-form-item
label=
"Logo"
prop=
"Logo"
>
<div>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"建议尺寸:88*88"
placement=
"top-start"
>
<el-button
size=
"small"
@
click=
"(choicImg = true), (type = 1)"
>
选择文件
</el-button
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"建议尺寸:88*88"
placement=
"top-start"
>
<el-button
size=
"small"
@
click=
"(choicImg = true), (type = 1)"
>
选择文件
</el-button>
</el-tooltip>
</div>
<div
class=
"editIconImg"
>
<el-image
style=
"width: 80px; height: 80px"
v-if=
"addMsg.Logo"
:src=
"addMsg.Logo"
:preview-src-list=
"LogoList"
>
<el-image
style=
"width: 80px; height: 80px"
v-if=
"addMsg.Logo"
:src=
"addMsg.Logo"
:preview-src-list=
"LogoList"
>
</el-image>
<img
v-else
style=
"width: 80px; height: 80px"
src=
"../../assets/img/default.png"
alt=
""
/>
<img
v-else
style=
"width: 80px; height: 80px"
src=
"../../assets/img/default.png"
alt=
""
/>
</div>
</el-form-item>
<el-form-item
label=
"介绍图(多张)"
class=
"is-required"
>
<div
class=
"nav_Main"
>
<div
class=
"nav_IconContent"
>
<draggable
v-model=
"introImgList"
>
<div
v-for=
"(item, index) in introImgList"
:key=
"index + '2'"
style=
"
<div
v-for=
"(item, index) in introImgList"
:key=
"index + '2'"
style=
"
margin-right: 20px;
position: relative;
display: inline-block;
"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"item"
:preview-src-list=
"introImgList"
>
"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"item"
:preview-src-list=
"introImgList"
>
</el-image>
<el-button
@
click=
"type=2,ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
<el-button
@
click=
"type=2,ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
</el-button>
</div>
</draggable>
</div>
<div
@
click=
"(choicImg = true), (type = 2)"
class=
"add-image-btn 2222"
>
<div
@
click=
"(choicImg = true), (type = 2)"
class=
"add-image-btn 2222"
>
+ 添加图片
</div>
</div>
...
...
@@ -126,68 +88,37 @@
<div
class=
"nav_Main"
>
<div
class=
"nav_IconContent"
>
<draggable
v-model=
"addMsg.Honor"
>
<div
v-for=
"(item, index) in addMsg.Honor"
:key=
"index + '2'"
style=
"
<div
v-for=
"(item, index) in addMsg.Honor"
:key=
"index + '2'"
style=
"
margin-right: 20px;
position: relative;
display: inline-block;
"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"item"
:preview-src-list=
"addMsg.Honor"
>
"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"item"
:preview-src-list=
"addMsg.Honor"
>
</el-image>
<el-button
@
click=
"type=3,ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
<el-button
@
click=
"type=3,ClearCarouse(index)"
class=
"delBtn"
type=
"danger"
icon=
"el-icon-close"
circle
>
</el-button>
</div>
</draggable>
</div>
<div
@
click=
"(choicImg = true), (type = 3)"
class=
"add-image-btn 2222"
>
<div
@
click=
"(choicImg = true), (type = 3)"
class=
"add-image-btn 2222"
>
+ 添加图片
</div>
</div>
</el-form-item>
<el-form-item
label=
"开发商"
prop=
"Developers"
>
<el-input
v-model=
"addMsg.Developers"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入开发商"
></el-input>
<el-input
v-model=
"addMsg.Developers"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入开发商"
></el-input>
</el-form-item>
<el-form-item
label=
"开业状态"
prop=
""
>
<el-select
v-model=
"addMsg.OpeningStatus"
filterable
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in OpeningStatusList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
<el-form-item
label=
"开业状态"
>
<el-select
v-model=
"addMsg.OpeningStatus"
filterable
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in OpeningStatusList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<!--
<el-form-item
label=
""
prop=
""
>
<div
slot=
"label"
>
首店类型/数量 -->
<!--
<el-tooltip
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"添加首店类型/数量"
...
...
@@ -195,13 +126,13 @@
>
<i
class=
"el-icon-plus"
@
click=
"addTypeAndNum"
></i>
</el-tooltip>
-->
<!--
</div>
<!--
</div>
<div
style=
"width: 690px; display: flex; align-items: center"
v-for=
"(item, index) in addMsg.FirstShopNumList"
:key=
"index"
>
-->
<!--
<el-select
<!--
<el-select
v-model=
"item.Id"
filterable
size=
"small"
...
...
@@ -216,7 +147,7 @@
>
</el-option>
</el-select>
-->
<!--
<div
<!--
<div
style=
"
width: 40%;
white-space: nowrap;
...
...
@@ -233,7 +164,7 @@
size=
"small"
placeholder=
"首店数量"
></el-input>
-->
<!--
<el-tooltip
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除首店类型/数量"
...
...
@@ -241,57 +172,28 @@
>
<i
class=
"el-icon-delete"
@
click=
"delTypeAndNum(index)"
></i>
</el-tooltip>
-->
<!--
</div>
<!--
</div>
</el-form-item>
-->
<el-form-item
:label=
"`$
{isCarrier?'载体':'楼宇'}视频`">
<el-input
v-model=
"addMsg.VideoUrl"
style=
"width: 690px"
size=
"small"
:placeholder=
"`请输入$
{isCarrier?'载体':'楼宇'}视频`"
>
<el-button
@
click=
"changeState1 = true"
slot=
"append"
>
添加视频
</el-button
>
<el-input
v-model=
"addMsg.VideoUrl"
style=
"width: 690px"
size=
"small"
:placeholder=
"`请输入$
{isCarrier?'载体':'楼宇'}视频`">
<el-button
@
click=
"changeState1 = true"
slot=
"append"
>
添加视频
</el-button>
</el-input>
<div>
<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>
</div>
</el-form-item>
<el-form-item
label=
"项目地址"
prop=
"Address"
>
<el-input
v-model=
"addMsg.Address"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入项目地址"
></el-input>
<el-input
v-model=
"addMsg.Address"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入项目地址"
></el-input>
</el-form-item>
<el-form-item
label=
"经纬度"
style=
"margin-top: 15px"
size=
"small"
>
<el-input
v-model=
"addMsg.LatAndLon"
style=
"width: 690px"
:disabled=
"true"
>
<el-button
@
click=
"isShowMap = true"
slot=
"append"
>
展开地图
</el-button
>
<el-input
v-model=
"addMsg.LatAndLon"
style=
"width: 690px"
:disabled=
"true"
>
<el-button
@
click=
"isShowMap = true"
slot=
"append"
>
展开地图
</el-button>
</el-input>
</el-form-item>
<el-form-item
label=
"开业时间"
>
<el-date-picker
v-model=
"addMsg.OpenTime"
clearable
value-format=
"yyyy-MM-dd HH:mm:ss"
size=
"small"
type=
"datetime"
placeholder=
"请选择开业时间"
>
<el-date-picker
v-model=
"addMsg.OpenTime"
clearable
value-format=
"yyyy-MM-dd HH:mm:ss"
size=
"small"
type=
"datetime"
placeholder=
"请选择开业时间"
>
</el-date-picker>
</el-form-item>
<!--
<el-form-item
label=
"项目类型"
prop=
"ProjectType"
>
...
...
@@ -437,159 +339,78 @@
</el-input>
</el-form-item>
-->
<el-form-item
label=
"地铁信息"
>
<div
v-for=
"(item, index) in MetroList"
:key=
"index"
style=
"position: relative; width: 690px"
>
<el-input
v-model=
"item.MetroNum"
@
keyup
.
native=
"checkInteger(item, 'MetroNum')"
style=
"width: 200px"
size=
"small"
placeholder=
"地铁线路"
/>
<el-input
v-model=
"item.MetroName"
style=
"width: 200px"
size=
"small"
placeholder=
"站点名称"
/>
<el-input
v-model=
"item.Distance"
style=
"width: 200px"
size=
"small"
placeholder=
"距离"
/>
<el-button
@
click=
"delCarrier(index)"
class=
"delCarrClose"
type=
"danger"
icon=
"el-icon-close"
circle
>
<div
v-for=
"(item, index) in MetroList"
:key=
"index"
style=
"position: relative; width: 690px"
>
<el-input
v-model=
"item.MetroNum"
@
keyup
.
native=
"checkInteger(item, 'MetroNum')"
style=
"width: 200px"
size=
"small"
placeholder=
"地铁线路"
/>
<el-input
v-model=
"item.MetroName"
style=
"width: 200px"
size=
"small"
placeholder=
"站点名称"
/>
<el-input
v-model=
"item.Distance"
style=
"width: 200px"
size=
"small"
placeholder=
"距离"
/>
<el-button
@
click=
"delCarrier(index)"
class=
"delCarrClose"
type=
"danger"
icon=
"el-icon-close"
circle
>
</el-button>
</div>
<el-button
type=
"primary"
@
click=
"addMetroList"
icon=
"el-icon-plus"
circle
></el-button>
<el-button
type=
"primary"
@
click=
"addMetroList"
icon=
"el-icon-plus"
circle
></el-button>
</el-form-item>
<el-form-item
label=
"分类"
prop=
"CategoryId"
>
<el-select
v-model=
"addMsg.CategoryId"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in CategoryList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
<el-select
v-model=
"addMsg.CategoryId"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in CategoryList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"资产权属"
prop=
"Ascription"
>
<el-input
v-model=
"addMsg.Ascription"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入资产权属"
>
<!--prop="Ascription"-->
<el-form-item
label=
"资产权属"
>
<el-input
v-model=
"addMsg.Ascription"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入资产权属"
maxlength=
"500"
>
</el-input>
</el-form-item>
<el-form-item
label=
"项目面积"
prop=
"CarrierSize"
>
<el-input
v-model=
"addMsg.CarrierSize"
@
keyup
.
native=
"checkPrice(addMsg, 'CarrierSize')"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入项目面积"
>
<!--prop="CarrierSize"-->
<el-form-item
label=
"项目面积"
>
<el-input
v-model=
"addMsg.CarrierSize"
@
keyup
.
native=
"checkPrice(addMsg, 'CarrierSize')"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入项目面积"
maxlength=
"500"
>
<
template
slot=
"append"
>
㎡
</
template
>
</el-input>
</el-form-item>
<el-form-item
label=
"物业构成"
prop=
"PropertyComposition"
>
<el-input
v-model=
"addMsg.PropertyComposition"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入物业构成"
>
<!--prop="PropertyComposition"-->
<el-form-item
label=
"物业构成"
>
<el-input
v-model=
"addMsg.PropertyComposition"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入物业构成"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"项目发展及定位"
prop=
"Location"
>
<el-input
v-model=
"addMsg.Location"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入项目发展及定位"
>
<!--prop="Location"-->
<el-form-item
label=
"项目发展及定位"
>
<el-input
v-model=
"addMsg.Location"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入项目发展及定位"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"周边人群结构特征"
prop=
"Crowd"
>
<el-input
v-model=
"addMsg.Crowd"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入周边人群结构特征"
>
<!-- prop="Crowd"-->
<el-form-item
label=
"周边人群结构特征"
>
<el-input
v-model=
"addMsg.Crowd"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入周边人群结构特征"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"人流量参数"
prop=
"VisitorsFlowrate"
>
<el-input
v-model=
"addMsg.VisitorsFlowrate"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入人流量参数"
>
<!--prop="VisitorsFlowrate"-->
<el-form-item
label=
"人流量参数"
>
<el-input
v-model=
"addMsg.VisitorsFlowrate"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入人流量参数"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"商业楼层"
prop=
"LayersNum"
>
<el-input
v-model=
"addMsg.LayersNum"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入商业楼层"
>
<!--prop="LayersNum"-->
<el-form-item
label=
"商业楼层"
>
<el-input
v-model=
"addMsg.LayersNum"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入商业楼层"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"水电气及配套"
prop=
"SupportingFacilities"
>
<el-input
v-model=
"addMsg.SupportingFacilities"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入水电气及配套"
>
<!--prop="SupportingFacilities"-->
<el-form-item
label=
"水电气及配套"
>
<el-input
v-model=
"addMsg.SupportingFacilities"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入水电气及配套"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"管理公司及管理费"
prop=
"ManagementCompany"
>
<el-input
v-model=
"addMsg.ManagementCompany"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入管理公司及管理费"
>
<!--prop="ManagementCompany"-->
<el-form-item
label=
"管理公司及管理费"
>
<el-input
v-model=
"addMsg.ManagementCompany"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入管理公司及管理费"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
<el-form-item
label=
"目标招商业态及品牌需求"
prop=
"BrandDemand"
>
<el-input
v-model=
"addMsg.BrandDemand"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入目标招商业态及品牌需求"
>
<!--prop="BrandDemand"-->
<el-form-item
label=
"目标招商业态及品牌需求"
>
<el-input
v-model=
"addMsg.BrandDemand"
style=
"width: 690px"
size=
"small"
placeholder=
"请输入目标招商业态及品牌需求"
maxlength=
"500"
show-word-limit
>
</el-input>
</el-form-item>
</el-card>
</el-form>
<div
style=
"padding: 20px; background: #fff; margin-top: 10px"
>
<el-button
@
click=
"Save('addMsg')"
size=
"small"
type=
"primary"
>
保存
</el-button
>
<el-button
@
click=
"Save('addMsg')"
size=
"small"
type=
"primary"
>
保存
</el-button>
</div>
<!-- 选择图片文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"choicImg"
width=
"1240px"
>
...
...
@@ -608,518 +429,478 @@
</template>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
commonMap
from
"@/components/common/commonMap.vue"
;
import
draggable
from
"vuedraggable"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
commonMap
from
"@/components/common/commonMap.vue"
;
import
draggable
from
"vuedraggable"
;
export
default
{
name
:
"editVehicle"
,
data
()
{
let
validataType
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
ProjectType
==
0
)
{
return
callback
(
new
Error
(
"请选择项目类型"
));
}
else
{
callback
();
}
};
let
validataLogo
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
Logo
==
""
)
{
return
callback
(
new
Error
(
"请上传Logo"
));
}
else
{
callback
();
}
};
return
{
pageloading
:
false
,
addMsg
:
{
ID
:
0
,
CarrierName
:
""
,
// 载体名称
Logo
:
""
,
// BannerList: [], //载体介绍图
VideoUrl
:
""
,
//载体视频
Address
:
""
,
//载体地址
LatAndLon
:
""
,
//载体地址经纬度
Developers
:
""
,
//开发商
OpenTime
:
""
,
//开业时间
ProjectType
:
0
,
//项目类型
CarrierSize
:
0
,
//商业体量
LayersNum
:
""
,
//商业层数
CarNum
:
0
,
//车位数量
CarrierPlan
:
""
,
//业态规划
CarrierTarget
:
""
,
//招引目标
Location
:
""
,
//定位
Crowd
:
""
,
//目标人群
CarrierMetroList
:
[],
//地铁信息
FirstShopNumList
:
[
//载体类型、数量
// {
// Id: 0,
// Name: "",
// Num: 0,
// },
],
// HonorList: [], //载体荣誉
Discount
:
""
,
//招引优惠政策
StartingInfo
:
""
,
//首发政策
FirstShow
:
""
,
//首秀政策
FirstExhibition
:
""
,
//首展政策
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
""
,
//经营面积
AreaRequirement
:
""
,
//可租赁面积
YeJi
:
""
,
//去年业绩
OpeningStatus
:
-
1
,
BuildingCarrierType
:
1
,
//(1-载体,2-楼宇)
CategoryId
:
0
,
//分类
Ascription
:
''
,
//资产权属
CarrierSize
:
null
,
//项目面积
PropertyComposition
:
''
,
//物业构成
Location
:
''
,
//项目发展及定位
Crowd
:
''
,
//周边人群结构特征
VisitorsFlowrate
:
null
,
//人流量参数
LayersNum
:
null
,
//商业楼层
SupportingFacilities
:
''
,
//水电气及配套
ManagementCompany
:
null
,
//管理公司及管理费
BrandDemand
:
''
,
//目标招商业态及品牌需求
Banner
:
[],
//介绍图
Honor
:
[],
//荣誉图
},
OpeningStatusList
:
[
{
id
:
0
,
name
:
"即将开业"
,
},
{
id
:
1
,
name
:
"已开业"
,
export
default
{
name
:
"editVehicle"
,
data
()
{
let
validataType
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
ProjectType
==
0
)
{
return
callback
(
new
Error
(
"请选择项目类型"
));
}
else
{
callback
();
}
};
let
validataLogo
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
addMsg
.
Logo
==
""
)
{
return
callback
(
new
Error
(
"请上传Logo"
));
}
else
{
callback
();
}
};
return
{
pageloading
:
false
,
addMsg
:
{
ID
:
0
,
CarrierName
:
""
,
// 载体名称
Logo
:
""
,
// BannerList: [], //载体介绍图
VideoUrl
:
""
,
//载体视频
Address
:
""
,
//载体地址
LatAndLon
:
""
,
//载体地址经纬度
Developers
:
""
,
//开发商
OpenTime
:
""
,
//开业时间
ProjectType
:
0
,
//项目类型
CarrierSize
:
0
,
//商业体量
LayersNum
:
""
,
//商业层数
CarNum
:
0
,
//车位数量
CarrierPlan
:
""
,
//业态规划
CarrierTarget
:
""
,
//招引目标
Location
:
""
,
//定位
Crowd
:
""
,
//目标人群
CarrierMetroList
:
[],
//地铁信息
FirstShopNumList
:
[
//载体类型、数量
// {
// Id: 0,
// Name: "",
// Num: 0,
// },
],
// HonorList: [], //载体荣誉
Discount
:
""
,
//招引优惠政策
StartingInfo
:
""
,
//首发政策
FirstShow
:
""
,
//首秀政策
FirstExhibition
:
""
,
//首展政策
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
""
,
//经营面积
AreaRequirement
:
""
,
//可租赁面积
YeJi
:
""
,
//去年业绩
OpeningStatus
:
0
,
BuildingCarrierType
:
1
,
//(1-载体,2-楼宇)
CategoryId
:
0
,
//分类
Ascription
:
''
,
//资产权属
CarrierSize
:
null
,
//项目面积
PropertyComposition
:
''
,
//物业构成
Location
:
''
,
//项目发展及定位
Crowd
:
''
,
//周边人群结构特征
VisitorsFlowrate
:
null
,
//人流量参数
LayersNum
:
null
,
//商业楼层
SupportingFacilities
:
''
,
//水电气及配套
ManagementCompany
:
null
,
//管理公司及管理费
BrandDemand
:
''
,
//目标招商业态及品牌需求
Banner
:
[],
//介绍图
Honor
:
[],
//荣誉图
},
],
rules
:
{
CarrierName
:
[
OpeningStatusList
:
[{
id
:
0
,
name
:
"即将开业"
,
},
{
id
:
1
,
name
:
"已开业"
,
},
],
rules
:
{
CarrierName
:
[{
required
:
true
,
message
:
"请输入载体名称"
,
trigger
:
"blur"
,
},
],
Developers
:
[
{
},
],
Developers
:
[{
required
:
true
,
message
:
"请输入开发商"
,
trigger
:
"blur"
,
},
],
Address
:
[
{
},
],
Address
:
[{
required
:
true
,
message
:
"请输入项目地址"
,
trigger
:
"blur"
,
},
],
OpenTime
:
[
{
},
],
OpenTime
:
[{
required
:
true
,
message
:
"请选择开业时间"
,
trigger
:
"blur"
,
},
],
ProjectType
:
[
{
},
],
ProjectType
:
[{
required
:
true
,
validator
:
validataType
,
trigger
:
"change"
,
},
],
Logo
:
[
{
},
],
Logo
:
[{
required
:
true
,
validator
:
validataLogo
,
trigger
:
"change"
,
},
],
ShopNum
:
[
{
},
],
ShopNum
:
[{
required
:
true
,
message
:
"请输入店铺数量"
,
trigger
:
"change"
,
},
],
BuiltUpArea
:
[
{
},
],
BuiltUpArea
:
[{
required
:
true
,
message
:
"请输入经营面积"
,
trigger
:
"change"
,
},
],
AreaRequirement
:
[
{
},
],
AreaRequirement
:
[{
required
:
true
,
message
:
"请输入可租赁面积"
,
trigger
:
"change"
,
},
],
YeJi
:
[
{
},
],
YeJi
:
[{
required
:
true
,
message
:
"请输入去年业绩"
,
trigger
:
"change"
,
},
],
CategoryId
:
[
{
},
],
CategoryId
:
[{
required
:
true
,
message
:
"请选择分类"
,
trigger
:
"change"
,
},
],
Ascription
:
[
{
},
],
Ascription
:
[{
required
:
true
,
message
:
"请输入资产权属"
,
trigger
:
"burl"
,
},
],
CarrierSize
:
[
{
},
],
CarrierSize
:
[{
required
:
true
,
message
:
"请输入项目面积"
,
trigger
:
"burl"
,
},
],
PropertyComposition
:
[
{
},
],
PropertyComposition
:
[{
required
:
true
,
message
:
"请输入物业构成"
,
trigger
:
"burl"
,
},
],
Location
:
[
{
},
],
Location
:
[{
required
:
true
,
message
:
"请输入项目发展及定位"
,
trigger
:
"burl"
,
},
],
Crowd
:
[
{
},
],
Crowd
:
[{
required
:
true
,
message
:
"请输入周边人群结构特征"
,
trigger
:
"burl"
,
},
],
VisitorsFlowrate
:
[
{
},
],
VisitorsFlowrate
:
[{
required
:
true
,
message
:
"请输入人流量参数"
,
trigger
:
"burl"
,
},
],
LayersNum
:
[
{
},
],
LayersNum
:
[{
required
:
true
,
message
:
"请输入商业楼层"
,
trigger
:
"burl"
,
},
],
SupportingFacilities
:
[
{
},
],
SupportingFacilities
:
[{
required
:
true
,
message
:
"请输入水电气及配套"
,
trigger
:
"burl"
,
},
],
ManagementCompany
:
[
{
},
],
ManagementCompany
:
[{
required
:
true
,
message
:
"请输入管理公司及管理费"
,
trigger
:
"burl"
,
},
],
BrandDemand
:
[
{
},
],
BrandDemand
:
[{
required
:
true
,
message
:
"请输入目标招商业态及品牌需求"
,
trigger
:
"burl"
,
},
],
},
ID
:
0
,
type
:
-
1
,
choicImg
:
false
,
changeState1
:
false
,
isShowMap
:
false
,
//显示地图
MetroList
:
[],
//地铁信息数据
ProjectTypeList
:
[],
//项目类型数组
introImgList
:
[],
//介绍图
LogoList
:
[],
shenList
:
[],
isCarrier
:
true
,
CategoryList
:
[]
};
},
components
:
{
ChooseImg
,
Choosevideo
,
commonMap
,
draggable
,
},
created
()
{
this
.
isCarrier
=
this
.
$route
.
query
.
isCarrier
this
.
addMsg
.
BuildingCarrierType
=
this
.
isCarrier
?
this
.
isCarrier
:
2
if
(
this
.
$route
.
query
.
ID
)
{
this
.
ID
=
this
.
$route
.
query
.
ID
;
this
.
getData
();
}
this
.
getTypeEnumList
();
this
.
GetAuthenticationCategoryEnumList
();
},
methods
:
{
//获取项目类型
getTypeEnumList
()
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ProjectTypeList
=
res
.
data
.
data
;
let
obj
=
{
Name
:
"不限"
,
Id
:
0
,
};
this
.
ProjectTypeList
.
unshift
(
obj
);
}
});
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{
BrandCategory
:
this
.
isCarrier
?
1
:
2
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CategoryList
=
res
.
data
.
data
;
let
obj
=
{
ClassName
:
"不限"
,
ID
:
0
,
};
this
.
CategoryList
.
unshift
(
obj
);
}
});
},
//新增地铁信息
addMetroList
()
{
let
obj
=
{
MetroNum
:
""
,
MetroName
:
""
,
Distance
:
""
,
},
],
},
ID
:
0
,
type
:
-
1
,
choicImg
:
false
,
changeState1
:
false
,
isShowMap
:
false
,
//显示地图
MetroList
:
[],
//地铁信息数据
ProjectTypeList
:
[],
//项目类型数组
introImgList
:
[],
//介绍图
LogoList
:
[],
shenList
:
[],
isCarrier
:
true
,
CategoryList
:
[]
};
this
.
MetroList
.
push
(
obj
);
},
//删除地铁信息
delCarrier
(
index
)
{
this
.
MetroList
.
splice
(
index
,
1
);
components
:
{
ChooseImg
,
Choosevideo
,
commonMap
,
draggable
,
},
Save
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
MetroList
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
this
.
MetroList
.
length
;
i
++
)
{
if
(
this
.
MetroList
[
i
].
MetroNum
==
""
)
{
this
.
Error
(
`请填写第地铁信息
${
i
+
1
}
行地铁线路`
);
return
;
}
if
(
this
.
MetroList
[
i
].
MetroName
==
""
)
{
this
.
Error
(
`请填写第地铁信息
${
i
+
1
}
行站点名称`
);
return
;
}
}
}
// if(this.introImgList.length==0){
// this.Error('请上传介绍图');
// return;
// }
this
.
addMsg
.
CarrierMetroList
=
this
.
MetroList
;
// this.addMsg.BannerList = this.introImgList;
this
.
addMsg
.
Banner
=
this
.
introImgList
;
this
.
apipost
(
"/api/Trade/SetBuildingCarrier"
,
this
.
addMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
CommonJump
(
this
.
isCarrier
?
'BuildingServiceManager'
:
'BuildingManager'
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
else
{
return
false
;
}
});
created
()
{
this
.
isCarrier
=
this
.
$route
.
query
.
isCarrier
this
.
addMsg
.
BuildingCarrierType
=
this
.
isCarrier
?
this
.
isCarrier
:
2
if
(
this
.
$route
.
query
.
ID
)
{
this
.
ID
=
this
.
$route
.
query
.
ID
;
this
.
getData
();
}
this
.
getTypeEnumList
();
this
.
GetAuthenticationCategoryEnumList
();
},
getData
()
{
this
.
pageloading
=
true
;
this
.
apipost
(
"/api/Trade/GetBuildingCarrierInfo"
,
{
ID
:
this
.
ID
,
},
(
res
)
=>
{
this
.
pageloading
=
false
;
methods
:
{
//获取项目类型
getTypeEnumList
()
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ProjectTypeList
=
res
.
data
.
data
;
let
obj
=
{
Name
:
"不限"
,
Id
:
0
,
};
this
.
ProjectTypeList
.
unshift
(
obj
);
}
});
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{
BrandCategory
:
this
.
isCarrier
?
1
:
2
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
if
(
res
.
data
.
data
.
CarrierMetroList
&&
res
.
data
.
data
.
CarrierMetroList
.
length
>
0
)
{
this
.
MetroList
=
res
.
data
.
data
.
CarrierMetroList
;
this
.
CategoryList
=
res
.
data
.
data
;
let
obj
=
{
ClassName
:
"不限"
,
ID
:
0
,
};
this
.
CategoryList
.
unshift
(
obj
);
}
});
},
//新增地铁信息
addMetroList
()
{
let
obj
=
{
MetroNum
:
""
,
MetroName
:
""
,
Distance
:
""
,
};
this
.
MetroList
.
push
(
obj
);
},
//删除地铁信息
delCarrier
(
index
)
{
this
.
MetroList
.
splice
(
index
,
1
);
},
Save
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
MetroList
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
this
.
MetroList
.
length
;
i
++
)
{
if
(
this
.
MetroList
[
i
].
MetroNum
==
""
)
{
this
.
Error
(
`请填写第地铁信息
${
i
+
1
}
行地铁线路`
);
return
;
}
if
(
this
.
MetroList
[
i
].
MetroName
==
""
)
{
this
.
Error
(
`请填写第地铁信息
${
i
+
1
}
行站点名称`
);
return
;
}
}
}
// if (
// res.data.data.BannerList &&
// res.data.data.BannerList.length > 0
// ) {
// this.introImgList = res.data.data.BannerList;
// if(this.introImgList.length==0){
// this.Error('请上传介绍图');
// return;
// }
if
(
res
.
data
.
data
.
Banner
&&
res
.
data
.
data
.
Banner
.
length
>
0
)
{
this
.
introImgList
=
res
.
data
.
data
.
Banner
;
}
if
(
res
.
data
.
data
.
OpenTime
)
{
this
.
addMsg
.
OpenTime
=
this
.
addMsg
.
OpenTime
.
replace
(
"T"
,
" "
);
}
this
.
LogoList
=
[];
this
.
LogoList
.
push
(
this
.
addMsg
.
Logo
);
this
.
addMsg
.
CarrierMetroList
=
this
.
MetroList
;
// this.addMsg.BannerList = this.introImgList;
this
.
addMsg
.
Banner
=
this
.
introImgList
;
this
.
apipost
(
"/api/Trade/SetBuildingCarrier"
,
this
.
addMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
CommonJump
(
this
.
isCarrier
?
'BuildingServiceManager'
:
'BuildingManager'
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
else
{
this
.
Error
(
res
.
data
.
message
)
;
return
false
;
}
}
);
},
//选择图片
SelectId
(
msg
)
{
if
(
this
.
type
==
1
)
{
this
.
addMsg
.
Logo
=
this
.
getIconLink
(
msg
.
url
);
}
if
(
this
.
type
==
2
)
{
this
.
introImgList
.
push
(
msg
.
url
);
}
if
(
this
.
type
==
3
)
{
// this.addMsg.HonorList.push(msg.url);
this
.
addMsg
.
Honor
.
push
(
msg
.
url
);
}
this
.
choicImg
=
false
;
},
ClearCarouse
(
index
)
{
if
(
this
.
type
==
2
)
{
this
.
introImgList
.
splice
(
index
,
1
);
}
if
(
this
.
type
==
3
)
{
// this.addMsg.HonorList.splice(index, 1);
this
.
addMsg
.
Honor
.
splice
(
index
,
1
);
}
},
Selectvideo
(
val
)
{
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
this
.
changeState1
=
false
;
},
//得到地图信息
mapEvent
(
e
)
{
this
.
addMsg
.
LatAndLon
=
e
.
lat
+
","
+
e
.
long
;
// this.addMsg.Address = e.Address;
this
.
isShowMap
=
false
;
},
//获取首店类别
GetAuthenticationCategoryEnumList
()
{
this
.
apipost
(
"/api/AppletTrade/GetAuthenticationCategoryEnumList"
,
{
Name
:
""
,
Id
:
""
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
shenList
=
res
.
data
.
data
;
if
(
this
.
addMsg
.
FirstShopNumList
&&
this
.
addMsg
.
FirstShopNumList
.
length
===
0
)
{
this
.
shenList
.
map
((
e
)
=>
{
let
obj
=
{
Id
:
e
.
Id
,
Name
:
e
.
Name
,
Num
:
0
,
};
this
.
addMsg
.
FirstShopNumList
.
push
(
obj
);
});
});
},
getData
()
{
this
.
pageloading
=
true
;
this
.
apipost
(
"/api/Trade/GetBuildingCarrierInfo"
,
{
ID
:
this
.
ID
,
},
(
res
)
=>
{
this
.
pageloading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
if
(
res
.
data
.
data
.
CarrierMetroList
&&
res
.
data
.
data
.
CarrierMetroList
.
length
>
0
)
{
this
.
MetroList
=
res
.
data
.
data
.
CarrierMetroList
;
}
// if (
// res.data.data.BannerList &&
// res.data.data.BannerList.length > 0
// ) {
// this.introImgList = res.data.data.BannerList;
// }
if
(
res
.
data
.
data
.
Banner
&&
res
.
data
.
data
.
Banner
.
length
>
0
)
{
this
.
introImgList
=
res
.
data
.
data
.
Banner
;
}
if
(
res
.
data
.
data
.
OpenTime
)
{
this
.
addMsg
.
OpenTime
=
this
.
addMsg
.
OpenTime
.
replace
(
"T"
,
" "
);
}
this
.
LogoList
=
[];
this
.
LogoList
.
push
(
this
.
addMsg
.
Logo
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
}
);
},
//选择图片
SelectId
(
msg
)
{
if
(
this
.
type
==
1
)
{
this
.
addMsg
.
Logo
=
this
.
getIconLink
(
msg
.
url
);
}
);
},
addTypeAndNum
()
{
this
.
addMsg
.
FirstShopNumList
.
push
({
Id
:
0
,
Name
:
""
,
Num
:
0
,
});
},
delTypeAndNum
(
index
)
{
this
.
addMsg
.
FirstShopNumList
.
splice
(
index
,
1
);
if
(
this
.
type
==
2
)
{
this
.
introImgList
.
push
(
msg
.
url
);
}
if
(
this
.
type
==
3
)
{
// this.addMsg.HonorList.push(msg.url);
this
.
addMsg
.
Honor
.
push
(
msg
.
url
);
}
this
.
choicImg
=
false
;
},
ClearCarouse
(
index
)
{
if
(
this
.
type
==
2
)
{
this
.
introImgList
.
splice
(
index
,
1
);
}
if
(
this
.
type
==
3
)
{
// this.addMsg.HonorList.splice(index, 1);
this
.
addMsg
.
Honor
.
splice
(
index
,
1
);
}
},
Selectvideo
(
val
)
{
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
this
.
changeState1
=
false
;
},
//得到地图信息
mapEvent
(
e
)
{
this
.
addMsg
.
LatAndLon
=
e
.
lat
+
","
+
e
.
long
;
// this.addMsg.Address = e.Address;
this
.
isShowMap
=
false
;
},
//获取首店类别
GetAuthenticationCategoryEnumList
()
{
this
.
apipost
(
"/api/AppletTrade/GetAuthenticationCategoryEnumList"
,
{
Name
:
""
,
Id
:
""
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
shenList
=
res
.
data
.
data
;
if
(
this
.
addMsg
.
FirstShopNumList
&&
this
.
addMsg
.
FirstShopNumList
.
length
===
0
)
{
this
.
shenList
.
map
((
e
)
=>
{
let
obj
=
{
Id
:
e
.
Id
,
Name
:
e
.
Name
,
Num
:
0
,
};
this
.
addMsg
.
FirstShopNumList
.
push
(
obj
);
});
}
}
}
);
},
addTypeAndNum
()
{
this
.
addMsg
.
FirstShopNumList
.
push
({
Id
:
0
,
Name
:
""
,
Num
:
0
,
});
},
delTypeAndNum
(
index
)
{
this
.
addMsg
.
FirstShopNumList
.
splice
(
index
,
1
);
},
},
}
,
};
}
;
</
script
>
<
style
>
.editVehicle
.content
{
background
:
#fff
;
margin-top
:
10px
;
box-sizing
:
border-box
;
}
.editVehicle
.content
{
background
:
#fff
;
margin-top
:
10px
;
box-sizing
:
border-box
;
}
.editVehicle
.editIconImg
{
width
:
80px
;
height
:
80px
;
}
.editVehicle
.editIconImg
{
width
:
80px
;
height
:
80px
;
}
.editVehicle
.add-image-btn
{
width
:
100px
;
height
:
100px
;
line-height
:
100px
;
color
:
#419efb
;
border
:
1px
solid
#e2e2e2
;
cursor
:
pointer
;
text-align
:
center
;
}
.editVehicle
.add-image-btn
{
width
:
100px
;
height
:
100px
;
line-height
:
100px
;
color
:
#419efb
;
border
:
1px
solid
#e2e2e2
;
cursor
:
pointer
;
text-align
:
center
;
}
.editVehicle
.nav_Main
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.editVehicle
.nav_Main
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.editVehicle
.nav_IconContent
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.editVehicle
.nav_IconContent
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
/* .editVehicle .nav_IconContent div>div {
/* .editVehicle .nav_IconContent div>div {
display: inline-block;
} */
.editVehicle
.colapp-image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
100px
;
height
:
100px
;
border-radius
:
0%
;
}
.editVehicle
.colapp-image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
100px
;
height
:
100px
;
border-radius
:
0%
;
}
.editVehicle
.delBtn
{
position
:
absolute
;
right
:
-8px
;
top
:
-8px
;
padding
:
4px
4px
!important
;
}
.editVehicle
.delBtn
{
position
:
absolute
;
right
:
-8
px
;
top
:
-
8px
;
padding
:
4px
4px
!important
;
}
.delCarrClose
{
position
:
absolute
;
right
:
53
px
;
top
:
8px
;
padding
:
4px
4px
!important
;
}
.delCarrClose
{
position
:
absolute
;
right
:
53px
;
top
:
8px
;
padding
:
4px
4px
!important
;
}
</
style
>
src/components/tradePavilion/brandManagement.vue
View file @
d01a72a9
...
...
@@ -318,7 +318,7 @@
var
fileName
=
"品牌信息.xls"
;
var
that
=
this
;
this
.
apipost
(
"/api/Trade/CheckBrand
Enterprise
File"
,
"/api/Trade/CheckBrandFile"
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -369,7 +369,7 @@
},
getDown
()
{
this
.
cityOptions
=
[];
this
.
apipost
(
"/api/Trade/GetB
randEnterprise
ExportEnumList"
,
{},
(
res
)
=>
{
this
.
apipost
(
"/api/Trade/GetB
usiness
ExportEnumList"
,
{},
(
res
)
=>
{
var
tempData
=
[];
let
data
=
res
.
data
.
data
;
data
.
forEach
((
item
)
=>
{
...
...
src/components/tradePavilion/tradePavilionIndex.vue
View file @
d01a72a9
<
style
>
.offlineIndex
{
height
:
100%
;
display
:
flex
;
-webkit-box-orient
:
horizontal
;
-ms-flex-direction
:
row
;
flex-direction
:
row
;
-webkit-box-flex
:
1
;
-ms-flex
:
1
;
flex
:
1
;
-ms-flex-preferred-size
:
auto
;
flex-basis
:
auto
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
min-width
:
0
;
font-size
:
14px
;
}
.offlineIndex
{
height
:
100%
;
display
:
flex
;
-webkit-box-orient
:
horizontal
;
-ms-flex-direction
:
row
;
flex-direction
:
row
;
-webkit-box-flex
:
1
;
-ms-flex
:
1
;
flex
:
1
;
-ms-flex-preferred-size
:
auto
;
flex-basis
:
auto
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
min-width
:
0
;
font-size
:
14px
;
}
.offlineIndex
.mainLeftMenu
{
position
:
relative
;
display
:
flex
;
flex-direction
:
row
;
color
:
#fff
;
}
.offlineIndex
.mainLeftMenu
{
position
:
relative
;
display
:
flex
;
flex-direction
:
row
;
color
:
#fff
;
}
.offlineIndex
.leftMenu1
{
background
:
#444444
;
cursor
:
pointer
;
width
:
200px
;
height
:
100%
;
overflow-y
:
auto
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
}
.offlineIndex
.leftMenu1
{
background
:
#444444
;
cursor
:
pointer
;
width
:
200px
;
height
:
100%
;
overflow-y
:
auto
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
}
.offlineIndex
.asideInner
{
background
:
rgba
(
0
,
0
,
0
,
0.15
);
padding
:
6px
6px
;
width
:
100%
;
border-radius
:
3px
;
font-weight
:
bold
;
}
.offlineIndex
.asideInner
{
background
:
rgba
(
0
,
0
,
0
,
0.15
);
padding
:
6px
6px
;
width
:
100%
;
border-radius
:
3px
;
font-weight
:
bold
;
}
.offlineIndex
.F_Logo
{
height
:
60px
;
background
:
#464d54
;
color
:
#f2f2f2
;
cursor
:
pointer
;
font-weight
:
bold
;
text-align
:
center
;
padding
:
0
15px
;
display
:
flex
;
align-items
:
center
;
}
.offlineIndex
.F_Logo
{
height
:
60px
;
background
:
#464d54
;
color
:
#f2f2f2
;
cursor
:
pointer
;
font-weight
:
bold
;
text-align
:
center
;
padding
:
0
15px
;
display
:
flex
;
align-items
:
center
;
}
.offlineIndex
.mainRightContent
{
width
:
100%
;
height
:
100%
;
background-color
:
#f3f3f3
;
min-width
:
0
;
}
.offlineIndex
.mainRightContent
{
width
:
100%
;
height
:
100%
;
background-color
:
#f3f3f3
;
min-width
:
0
;
}
.offlineIndex
.mainRightTop
{
width
:
100%
;
height
:
60px
;
background
:
#fff
;
display
:
flex
;
justify-content
:
space-between
;
color
:
#909399
;
}
.offlineIndex
.mainRightTop
{
width
:
100%
;
height
:
60px
;
background
:
#fff
;
display
:
flex
;
justify-content
:
space-between
;
color
:
#909399
;
}
.offlineIndex
.mainRightLeft
{
width
:
110px
;
height
:
60px
;
line-height
:
62px
;
text-align
:
center
;
margin-left
:
30px
;
cursor
:
pointer
;
position
:
relative
;
top
:
-2px
;
}
.offlineIndex
.mainRightLeft
{
width
:
110px
;
height
:
60px
;
line-height
:
62px
;
text-align
:
center
;
margin-left
:
30px
;
cursor
:
pointer
;
position
:
relative
;
top
:
-2px
;
}
.offlineIndex
.marinRightList
{
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
;
width
:
300px
;
float
:
right
;
}
.offlineIndex
.marinRightList
{
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
;
width
:
300px
;
float
:
right
;
}
.offlineIndex
.marinRightList
ul
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-around
;
}
.offlineIndex
.marinRightList
ul
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-around
;
}
.offlineIndex
.marinRightList
ul
li
{
display
:
block
;
list-style-type
:
none
;
cursor
:
pointer
;
color
:
#909399
;
outline
:
none
;
border
:
none
;
}
.offlineIndex
.marinRightList
ul
li
{
display
:
block
;
list-style-type
:
none
;
cursor
:
pointer
;
color
:
#909399
;
outline
:
none
;
border
:
none
;
}
.offlineIndex
.main_routerPage
{
padding
:
20px
;
overflow-y
:
scroll
;
}
.offlineIndex
.main_routerPage
{
padding
:
20px
;
overflow-y
:
scroll
;
}
.offlineIndex
.FsettingUU
{
position
:
fixed
;
width
:
200px
;
height
:
100%
;
position
:
fixed
;
top
:
60px
;
left
:
0
;
overflow
:
auto
;
z-index
:
5
;
background-color
:
rgb
(
84
,
92
,
100
);
}
.offlineIndex
.FsettingUU
{
position
:
fixed
;
width
:
200px
;
height
:
100%
;
position
:
fixed
;
top
:
60px
;
left
:
0
;
overflow
:
auto
;
z-index
:
5
;
background-color
:
rgb
(
84
,
92
,
100
);
}
.offlineIndex
.FsettingUU
.menu_item
{
font-size
:
14px
;
color
:
#303133
;
padding
:
0
20px
;
cursor
:
pointer
;
-webkit-transition
:
border-color
0.3s
,
background-color
0.3s
,
color
0.3s
;
transition
:
border-color
0.3s
,
background-color
0.3s
,
color
0.3s
;
box-sizing
:
border-box
;
height
:
56px
;
line-height
:
56px
;
list-style
:
none
;
white-space
:
nowrap
;
color
:
#fff
;
display
:
flex
;
align-items
:
center
;
}
.offlineIndex
.FsettingUU
.menu_item
{
font-size
:
14px
;
color
:
#303133
;
padding
:
0
20px
;
cursor
:
pointer
;
-webkit-transition
:
border-color
0.3s
,
background-color
0.3s
,
color
0.3s
;
transition
:
border-color
0.3s
,
background-color
0.3s
,
color
0.3s
;
box-sizing
:
border-box
;
height
:
56px
;
line-height
:
56px
;
list-style
:
none
;
white-space
:
nowrap
;
color
:
#fff
;
display
:
flex
;
align-items
:
center
;
}
.offlineIndex
.FsettingUU
.menu_item
i
{
margin-right
:
5px
;
width
:
24px
;
text-align
:
center
;
font-size
:
18px
;
vertical-align
:
middle
;
color
:
#909399
;
}
.offlineIndex
.FsettingUU
.menu_item
i
{
margin-right
:
5px
;
width
:
24px
;
text-align
:
center
;
font-size
:
18px
;
vertical-align
:
middle
;
color
:
#909399
;
}
.offlineIndex
.menu_item
:hover
{
background-color
:
rgba
(
67
,
74
,
80
,
0
);
}
.offlineIndex
.menu_item
:hover
{
background-color
:
rgba
(
67
,
74
,
80
,
0
);
}
.offlineIndex
.F_Logo
:hover
{
background-color
:
#30353a
;
color
:
#fff
;
}
.offlineIndex
.F_Logo
:hover
{
background-color
:
#30353a
;
color
:
#fff
;
}
.offlineIndex
.Fchecked
{
color
:
rgb
(
255
,
208
,
75
)
!important
;
}
.offlineIndex
.Fchecked
{
color
:
rgb
(
255
,
208
,
75
)
!important
;
}
.offlineIndex
.Fchecked
i
{
color
:
rgb
(
255
,
208
,
75
)
!important
;
}
.offlineIndex
.Fchecked
i
{
color
:
rgb
(
255
,
208
,
75
)
!important
;
}
</
style
>
<
template
>
<div
class=
"offlineIndex"
>
...
...
@@ -174,79 +175,51 @@
{{
currentUser
.
MallName
}}
</div>
</div>
<ul
class=
"FsettingUU"
v-if=
"
mall_userInfo.TenantId!=30
"
>
<ul
class=
"FsettingUU"
v-if=
"
currentUser.TenantId==18
"
>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/companyList'}"
@click="isChecked='/companyList',CommonJump('companyList')">
<i
class=
"el-icon-menu"
></i><span>
公司资料
</span>
</li>
-->
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/contactus' }"
@click="(isChecked = '/contactus'), CommonJump('contactus')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/contactus' }"
@click="(isChecked = '/contactus'), CommonJump('contactus')">
<i
class=
"el-icon-menu"
></i><span>
联系我们
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/brandClassification' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/brandClassification' }" @click="
(isChecked = '/brandClassification'),
CommonJump('brandClassification')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
分类管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/VehicleManagement' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/VehicleManagement' }" @click="
(isChecked = '/VehicleManagement'),
CommonJump('VehicleManagement')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
载体管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/brandManagement' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/brandManagement' }" @click="
(isChecked = '/brandManagement'), CommonJump('brandManagement')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
品牌管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/activityType' }"
@click="(isChecked = '/activityType'), CommonJump('activityType')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/activityType' }"
@click="(isChecked = '/activityType'), CommonJump('activityType')">
<i
class=
"el-icon-menu"
></i><span>
活动类型管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/tradeactivityList' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/tradeactivityList' }" @click="
(isChecked = '/tradeactivityList'),
CommonJump('tradeactivityList')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
活动列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/newsList' }"
@click="(isChecked = '/newsList'), CommonJump('newsList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/newsList' }"
@click="(isChecked = '/newsList'), CommonJump('newsList')">
<i
class=
"el-icon-menu"
></i><span>
新闻列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/consultList' }"
@click="(isChecked = '/consultList'), CommonJump('consultList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/consultList' }"
@click="(isChecked = '/consultList'), CommonJump('consultList')">
<i
class=
"el-icon-menu"
></i><span>
咨询管理
</span>
</li>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/investmentList'}"
...
...
@@ -258,212 +231,128 @@
<i
class=
"el-icon-menu"
></i><span>
采购管理
</span>
</li>
-->
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/realAuthentication' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/realAuthentication' }" @click="
(isChecked = '/realAuthentication'),
CommonJump('realAuthentication')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
企业认证
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/firstStoreApply' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/firstStoreApply' }" @click="
(isChecked = '/firstStoreApply'), CommonJump('firstStoreApply')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
首店申请
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/wishList' }"
@click="(isChecked = '/wishList'), CommonJump('wishList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/wishList' }"
@click="(isChecked = '/wishList'), CommonJump('wishList')">
<i
class=
"el-icon-menu"
></i><span>
心愿列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/billboardList' }"
@click="(isChecked = '/billboardList'), CommonJump('billboardList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/billboardList' }"
@click="(isChecked = '/billboardList'), CommonJump('billboardList')">
<i
class=
"el-icon-menu"
></i><span>
榜单管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == 'registrationLogin' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == 'registrationLogin' }" @click="
(isChecked = 'registrationLogin'), CommonJump('registrationLogin')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
榜单报名表单
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/prizeMange' }"
@click="(isChecked = '/prizeMange'), CommonJump('prizeMange')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/prizeMange' }"
@click="(isChecked = '/prizeMange'), CommonJump('prizeMange')">
<i
class=
"el-icon-menu"
></i><span>
奖项管理
</span>
</li>
</ul>
<!-- 宜宾 -->
<ul
class=
"FsettingUU"
v-else
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/ybrandClassification' }"
@click="
<!-- 宜宾商载通 -->
<ul
class=
"FsettingUU"
v-if=
"currentUser.TenantId==30"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/ybrandClassification' }" @click="
(isChecked = '/ybrandClassification'),
CommonJump('ybrandClassification')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
分类管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/BuildingServiceManager' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/BuildingServiceManager' }" @click="
(isChecked = '/BuildingServiceManager'),
CommonJump('BuildingServiceManager')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
商业载体管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/tenementManager' }"
@click="
(isChecked = '/tenementManager'),
CommonJump('tenementManager')
"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/BuildingManager' }" @click="
(isChecked = '/BuildingManager'),
CommonJump('BuildingManager')
">
<i
class=
"el-icon-menu"
></i><span>
楼宇管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/BrandManager' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/BrandManager' }" @click="
(isChecked = '/BrandManager'), CommonJump('BrandManager')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
消费品牌管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/firmManager' }"
@click="
(isChecked = '/firmManager'), CommonJump('firmManager')
"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/EnterpriseManager' }" @click="
(isChecked = '/EnterpriseManager'), CommonJump('EnterpriseManager')
">
<i
class=
"el-icon-menu"
></i><span>
企业服务管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/activityType' }"
@click="(isChecked = '/activityType'), CommonJump('activityType')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/activityType' }"
@click="(isChecked = '/activityType'), CommonJump('activityType')">
<i
class=
"el-icon-menu"
></i><span>
活动类型管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/tradeactivityList' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/tradeactivityList' }" @click="
(isChecked = '/tradeactivityList'),
CommonJump('tradeactivityList')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
活动列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/newsList' }"
@click="(isChecked = '/newsList'), CommonJump('newsList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/newsList' }"
@click="(isChecked = '/newsList'), CommonJump('newsList')">
<i
class=
"el-icon-menu"
></i><span>
新闻列表
</span>
</li>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/serviceTypeList'}"
@click="isChecked='/serviceTypeList',CommonJump('serviceTypeList')">
<i
class=
"el-icon-menu"
></i><span>
服务类型列表
</span>
</li>
-->
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/consultList' }"
@click="(isChecked = '/consultList'), CommonJump('consultList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/consultList' }"
@click="(isChecked = '/consultList'), CommonJump('consultList')">
<i
class=
"el-icon-menu"
></i><span>
咨询管理
</span>
</li>
<!--
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/investmentList'}"
@click="isChecked='/investmentList',CommonJump('investmentList')">
<i
class=
"el-icon-menu"
></i><span>
招商管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{'Fchecked':isChecked=='/procurementList'}"
@click="isChecked='/procurementList',CommonJump('procurementList')">
<i
class=
"el-icon-menu"
></i><span>
采购管理
</span>
</li>
-->
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/realAuthentication' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/realAuthentication' }" @click="
(isChecked = '/realAuthentication'),
CommonJump('realAuthentication')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
企业认证
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/firstStoreApply' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/firstStoreApply' }" @click="
(isChecked = '/firstStoreApply'), CommonJump('firstStoreApply')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
首店申请
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/wishList' }"
@click="(isChecked = '/wishList'), CommonJump('wishList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/wishList' }"
@click="(isChecked = '/wishList'), CommonJump('wishList')">
<i
class=
"el-icon-menu"
></i><span>
心愿列表
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/billboardList' }"
@click="(isChecked = '/billboardList'), CommonJump('billboardList')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/billboardList' }"
@click="(isChecked = '/billboardList'), CommonJump('billboardList')">
<i
class=
"el-icon-menu"
></i><span>
榜单管理
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == 'registrationLogin' }"
@click="
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == 'registrationLogin' }" @click="
(isChecked = 'registrationLogin'), CommonJump('registrationLogin')
"
>
">
<i
class=
"el-icon-menu"
></i><span>
榜单报名表单
</span>
</li>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/prizeMange' }"
@click="(isChecked = '/prizeMange'), CommonJump('prizeMange')"
>
<li
class=
"menu_item"
:class=
"
{ Fchecked: isChecked == '/prizeMange' }"
@click="(isChecked = '/prizeMange'), CommonJump('prizeMange')">
<i
class=
"el-icon-menu"
></i><span>
奖项管理
</span>
</li>
</ul>
</div>
</div>
<div
class=
"mainRightContent"
>
<div
class=
"mainRightTop"
>
<div
class=
"mainRightLeft"
>
贸易服务
</div>
<div
class=
"mainRightLeft"
>
{{
currentUser
.
MallName
}}
</div>
<div
class=
"marinRightList"
>
<ul>
<li
style=
"display: none"
>
缓存
</li>
<li
style=
"display: none"
>
title="教程管理">
<li
style=
"display: none"
title=
"教程管理"
>
<el-dropdown
trigger=
"click"
>
<span
class=
"el-dropdown-link"
>
教程管理
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
...
...
@@ -483,14 +372,10 @@
<el-dropdown-item
disabled
>
{{
currentUser
.
MallName
}}
</el-dropdown-item>
<el-dropdown-item
disabled
>
{{
currentUser
.
Account
}}
(
{{
<el-dropdown-item
disabled
>
{{
currentUser
.
Account
}}
(
{{
currentUser
.
MobilePhone
}}
)
</el-dropdown-item
>
<el-dropdown-item
@
click
.
native=
"CommonJump('index')"
>
返回系统
</el-dropdown-item
>
}}
)
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"CommonJump('index')"
>
返回系统
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</li>
...
...
@@ -504,33 +389,32 @@
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
currentUser
:
{},
isChecked
:
""
,
Height
:
0
,
ERPEmpId
:
0
,
mall_userInfo
:{}
};
},
created
()
{
this
.
currentUser
=
this
.
getLocalStorage
();
this
.
ERPEmpId
=
this
.
currentUser
.
ERPEmpId
;
this
.
isChecked
=
this
.
$route
.
path
;
this
.
mall_userInfo
=
JSON
.
parse
(
localStorage
.
mall_userInfo
);
if
(
this
.
$route
.
query
.
FIndex
)
{
this
.
CommonJump
(
"companyList"
);
this
.
isChecked
=
"/companyList"
;
}
},
methods
:
{},
mounted
()
{
this
.
Height
=
document
.
documentElement
.
clientHeight
-
60
;
//监听浏览器窗口变化
window
.
onresize
=
()
=>
{
export
default
{
data
()
{
return
{
currentUser
:
{},
isChecked
:
""
,
Height
:
0
,
ERPEmpId
:
0
,
};
},
created
()
{
this
.
currentUser
=
this
.
getLocalStorage
();
this
.
ERPEmpId
=
this
.
currentUser
.
ERPEmpId
;
this
.
isChecked
=
this
.
$route
.
path
;
if
(
this
.
$route
.
query
.
FIndex
)
{
this
.
CommonJump
(
"companyList"
);
this
.
isChecked
=
"/companyList"
;
}
},
methods
:
{},
mounted
()
{
this
.
Height
=
document
.
documentElement
.
clientHeight
-
60
;
};
},
};
//监听浏览器窗口变化
window
.
onresize
=
()
=>
{
this
.
Height
=
document
.
documentElement
.
clientHeight
-
60
;
};
},
};
</
script
>
src/plug/index.js
View file @
d01a72a9
...
...
@@ -53,35 +53,25 @@ export default {
},
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
"http://192.168.5.46:8200"
;
let
javaUrl
=
'http://192.168.5.214:8018'
;
let
vtUploadUrl
=
"http://192.168.5.214:8120"
;
let
vtViewUrl
=
"http://192.168.5.214:8130"
;
let
erpWebUrl
=
"http://localhost:8080"
;
let
mallApiUrl
=
"http://192.168.5.46:8200"
;
//商城接口地址
let
javaUrl
=
'http://192.168.5.214:8018'
;
//资产Api地址
let
vtUploadUrl
=
"http://192.168.5.214:8120"
;
//文件上传地址
let
vtViewUrl
=
"http://192.168.5.214:8130"
;
//文件预览地址
let
erpWebUrl
=
"http://localhost:8080"
;
//ERP后台Web地址
let
locationName
=
window
.
location
.
hostname
;
if
(
locationName
.
indexOf
(
'testmall.oytour'
)
!==
-
1
)
{
domainUrl
=
"https://mallapi.oytour.com"
;
javaUrl
=
"http://property.oytour.com"
;
vtUploadUrl
=
"http://upload.oytour.com"
;
vtViewUrl
=
"https://imgfile.oytour.com"
;
erpWebUrl
=
"http://admin.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"https://mallapi.oytour.com"
;
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
mallApiUrl
=
"https://mallapi.oytour.com"
;
javaUrl
=
"http://property.oytour.com"
;
vtUploadUrl
=
"http://upload.oytour.com"
;
vtViewUrl
=
"https://imgfile.oytour.com"
;
erpWebUrl
=
"http://admin.oytour.com"
;
}
var
obj
=
{
//主地址npm
DomainUrl
:
domainUrl
,
//资产管理
javaUrl
:
javaUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
DomainUrl
:
mallApiUrl
,
//商城接口地址
javaUrl
:
javaUrl
,
//资产Api地址
ImageUrl
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com'
,
UploadFileUrl
:
domain
Url
+
'/api/File/LocalFileUploadImport'
,
UploadBlob
:
domain
Url
+
'/api/File/UploadBlob'
,
UploadFileUrl
:
mallApi
Url
+
'/api/File/LocalFileUploadImport'
,
UploadBlob
:
mallApi
Url
+
'/api/File/UploadBlob'
,
//文件上传自己服务器
VTUploadUrl
:
vtUploadUrl
,
//文件预览自己服务器
...
...
src/router/index.js
View file @
d01a72a9
...
...
@@ -802,24 +802,25 @@ export default new Router({
name
:
'VehicleManagement'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/VehicleManagement'
],
resolve
),
},
//楼宇
//楼宇
【商载通】
{
path
:
'/tenementManager'
,
name
:
'tenementManager'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/tenementManager'
],
resolve
),
},
//商业载体
//商业载体
【商载通】
{
path
:
'/BuildingServiceManager'
,
name
:
'BuildingServiceManager'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/BuildingManager'
],
resolve
),
},
//消费品牌管理
//消费品牌管理
【商载通】
{
path
:
'/BrandManager'
,
name
:
'BrandManager'
,
component
:
resolve
=>
require
([
'@/components/tradePavilion/BrandEnterpriseManager'
],
resolve
),
},
//企业服务管理
{
path
:
'/firmManager'
,
...
...
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