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
b2a001a1
Commit
b2a001a1
authored
Apr 21, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aa5b1ae3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
607 additions
and
376 deletions
+607
-376
addbrand.vue
src/components/tradePavilion/addbrand.vue
+607
-376
No files found.
src/components/tradePavilion/addbrand.vue
View file @
b2a001a1
<
template
>
<
template
>
<div
v-loading=
"loading"
class=
"addbrand"
>
<div
v-loading=
"loading"
class=
"addbrand"
>
<div
class=
"head-title"
>
<div
class=
"head-title"
>
<span
@
click=
"CommonJump('brandManagement')"
class=
"blue point"
>
品牌管理
</span>
/ 编辑品牌管理
<span
@
click=
"CommonJump('brandManagement')"
class=
"blue point"
>
品牌管理
</span
>
/ 编辑品牌管理
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
style=
"width:70%"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
style=
"width: 70%"
>
<el-form-item
label=
"品牌分类"
class=
"is-required"
prop=
"BrandClassId"
>
<el-form-item
label=
"品牌分类"
class=
"is-required"
prop=
"BrandClassId"
>
<el-select
class=
"w300"
v-model=
"addMsg.BrandClassId"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w300"
v-model=
"addMsg.BrandClassId"
size=
"small"
placeholder=
"请选择"
>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
v-for=
"item in BrandClassList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
<el-option
v-for=
"item in BrandClassList"
:key=
"item.ID"
:label=
"item.ClassName"
:value=
"item.ID"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌全名"
prop=
"FullBrandName"
class=
"is-required"
size=
"small"
>
<el-form-item
<el-input
v-model=
"addMsg.FullBrandName"
class=
"w600"
placeholder=
"请输入品牌全名"
maxlength=
"100"
/>
label=
"品牌全名"
prop=
"FullBrandName"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.FullBrandName"
class=
"w600"
placeholder=
"请输入品牌全名"
maxlength=
"100"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌名"
prop=
"BrandName"
class=
"is-required"
size=
"small"
>
<el-form-item
<el-input
v-model=
"addMsg.BrandName"
class=
"w600"
placeholder=
"请输入品牌名"
maxlength=
"100"
/>
label=
"品牌名"
prop=
"BrandName"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.BrandName"
class=
"w600"
placeholder=
"请输入品牌名"
maxlength=
"100"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌视频"
>
<el-form-item
label=
"品牌视频"
>
<el-input
v-model=
"addMsg.VideoUrl"
class=
"w600"
size=
"small"
placeholder=
"请输入内容"
>
<el-input
<el-button
@
click=
"changeState1 = true"
slot=
"append"
>
添加视频
</el-button>
v-model=
"addMsg.VideoUrl"
class=
"w600"
size=
"small"
placeholder=
"请输入内容"
>
<el-button
@
click=
"changeState1 = true"
slot=
"append"
>
添加视频
</el-button
>
</el-input>
</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>
<el-form-item
label=
"Logo"
class=
"is-required"
prop=
"Logo"
size=
"small"
>
<el-form-item
label=
"Logo"
class=
"is-required"
prop=
"Logo"
size=
"small"
>
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
<div
<img
v-if=
"!addMsg.Logo || addMsg.Logo==''"
src=
"../../assets/img/default.png"
class=
"app-gallery-item"
style=
"width:80px;height:80px"
alt=
""
>
style=
"position: relative; width: 100px; margin-top: 10px"
<el-image
>
v-else
<img
style=
"width: 80px;height:80px;"
v-if=
"!addMsg.Logo || addMsg.Logo == ''"
:src=
"addMsg.Logo"
src=
"../../assets/img/default.png"
:preview-src-list=
"logoList"
>
style=
"width: 80px; height: 80px"
</el-image>
alt=
""
/>
<el-image
v-else
style=
"width: 80px; height: 80px"
:src=
"addMsg.Logo"
:preview-src-list=
"logoList"
>
</el-image>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌介绍图"
>
<el-form-item
label=
"品牌介绍图"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"第一张图片为封面图"
placement=
"top"
<el-tooltip
style=
"position: absolute;left: -5px;top:12px"
>
class=
"item"
effect=
"dark"
content=
"第一张图片为封面图"
placement=
"top"
style=
"position: absolute; left: -5px; top: 12px"
>
<i
class=
"el-tooltip el-icon-info"
></i>
<i
class=
"el-tooltip el-icon-info"
></i>
</el-tooltip>
</el-tooltip>
<p
style=
"color:
#c9c9c9;margin:0 0 12px 20px;
"
>
<p
style=
"color:
#c9c9c9; margin: 0 0 12px 20px
"
>
第一张图片为缩略图,其它图片为轮播图,建议像素750*750,最多支持上传9张
第一张图片为缩略图,其它图片为轮播图,建议像素750*750,最多支持上传9张
</p>
</p>
<div
class=
"nav_Main"
>
<div
class=
"nav_Main"
>
<div
class=
"nav_IconContent"
>
<div
class=
"nav_IconContent"
>
<draggable
v-model=
"addMsg.BannerList"
>
<draggable
v-model=
"addMsg.BannerList"
>
<div
style=
"position: relative;margin-right: 20px;display:inline-block;"
v-for=
"(item, index) in addMsg.BannerList"
:key=
"index+'2'"
>
<div
<el-image
style=
"
style=
"width: 100px;height:100px;"
position: relative;
:src=
"item"
margin-right: 20px;
:preview-src-list=
"addMsg.BannerList"
>
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"
>
</el-image>
</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>
</el-button>
</div>
</div>
</draggable>
</draggable>
</div>
</div>
<div
@
click=
"openChangeDig(2)"
v-if=
"addMsg.BannerList.length
<9
"
class=
"add-image-btn 2222"
<div
style=
"cursor:pointer;"
>
@
click=
"openChangeDig(2)"
v-if=
"addMsg.BannerList.length
<
9
"
class=
"add-image-btn 2222"
style=
"cursor: pointer"
>
+ 添加图片
+ 添加图片
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"店铺数量"
prop=
"ShopNum"
class=
"is-required"
size=
"small"
>
<el-form-item
<el-input
v-model=
"addMsg.ShopNum"
class=
"w600"
placeholder=
"请输入店铺数量"
type=
"number"
maxlength=
"3"
/>
label=
"店铺数量"
prop=
"ShopNum"
class=
"is-required"
size=
"small"
>
<el-input
v-model=
"addMsg.ShopNum"
class=
"w600"
placeholder=
"请输入店铺数量"
type=
"number"
maxlength=
"3"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"建筑面积"
size=
"small"
>
<el-form-item
label=
"建筑面积"
size=
"small"
>
<el-input
v-model=
"addMsg.BuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 200px"
<el-input
maxlength=
"7"
/>
v-model=
"addMsg.BuiltUpArea"
<span
style=
"margin: 0 10px;"
>
~
</span>
placeholder=
"请输入建筑面积"
<el-input
v-model=
"addMsg.EndBuiltUpArea"
placeholder=
"请输入建筑面积"
type=
"number"
style=
"width: 200px"
type=
"number"
maxlength=
"7"
/>
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-form-item>
</el-form-item>
<el-form-item
label=
"需求面积"
size=
"small"
>
<el-form-item
label=
"需求面积"
size=
"small"
>
<el-input
v-model=
"addMsg.AreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 200px"
<el-input
maxlength=
"7"
/>
v-model=
"addMsg.AreaRequirement"
<span
style=
"margin: 0 10px;"
>
~
</span>
placeholder=
"请输入需求面积"
<el-input
v-model=
"addMsg.EndAreaRequirement"
placeholder=
"请输入需求面积"
type=
"number"
style=
"width: 200px"
type=
"number"
maxlength=
"7"
/>
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-form-item>
</el-form-item>
<el-form-item
label=
"客群定位"
size=
"small"
>
<el-form-item
label=
"客群定位"
size=
"small"
>
<el-input
v-model=
"addMsg.CustomerType"
placeholder=
"请输入客群定位"
class=
"w600"
maxlength=
"200"
/>
<el-input
v-model=
"addMsg.CustomerType"
placeholder=
"请输入客群定位"
class=
"w600"
maxlength=
"200"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"品牌定位"
size=
"small"
>
<el-form-item
label=
"品牌定位"
size=
"small"
>
<el-input
v-model=
"addMsg.BrandType"
placeholder=
"请输入品牌定位"
class=
"w600"
maxlength=
"100"
/>
<el-input
v-model=
"addMsg.BrandType"
placeholder=
"请输入品牌定位"
class=
"w600"
maxlength=
"100"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"拓店区域"
size=
"small"
>
<el-form-item
label=
"拓店区域"
size=
"small"
>
<el-input
v-model=
"addMsg.StoreExpansion"
placeholder=
"请输入拓店区域"
class=
"w600"
maxlength=
"200"
/>
<el-input
v-model=
"addMsg.StoreExpansion"
placeholder=
"请输入拓店区域"
class=
"w600"
maxlength=
"200"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商铺性质"
size=
"small"
>
<el-form-item
label=
"商铺性质"
size=
"small"
>
<el-select
class=
"w300"
v-model=
"addMsg.ProjectType"
size=
"small"
placeholder=
"请选择商铺性质"
>
<el-select
class=
"w300"
v-model=
"addMsg.ProjectType"
size=
"small"
placeholder=
"请选择商铺性质"
>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
v-for=
"item in ProjectTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
<el-option
v-for=
"item in ProjectTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"电量"
size=
"small"
>
<
!--
<
el-form-item
label=
"电量"
size=
"small"
>
<el-input
v-model=
"addMsg.
DianLiang
"
class=
"w600"
placeholder=
"请输入电量"
maxlength=
"80"
/>
<el-input
v-model=
"addMsg.
ShopSize
"
class=
"w600"
placeholder=
"请输入电量"
maxlength=
"80"
/>
</el-form-item>
</el-form-item>
-->
<div
class=
"brandShuxing"
>
<div
class=
"brandShuxing"
>
<el-form-item
label=
"上下水"
class=
"is-required"
>
<div
class=
"brandShuxing_item"
>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"1"
>
是
</el-radio>
<el-form-item
label=
"店铺开口尺寸"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.IsShopSize"
:label=
"1"
>
是
</el-radio>
</el-form-item>
<el-radio
v-model=
"addMsg.IsShopSize"
:label=
"0"
>
否
</el-radio>
<el-form-item
label=
"管径"
class=
"is-required"
>
</el-form-item>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"1"
>
是
</el-radio>
<el-input
<el-radio
v-model=
"addMsg.Caliber"
:label=
"0"
>
否
</el-radio>
v-model=
"addMsg.ShopSize"
</el-form-item>
v-if=
"addMsg.IsShopSize == 1"
size=
"small"
class=
"w120"
placeholder=
"店铺开口尺寸"
maxlength=
"80"
/>
</div>
<div
class=
"brandShuxing_item"
>
<el-form-item
label=
"燃气"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-input
v-model=
"addMsg.RanQiBZ"
v-if=
"addMsg.RanQi == 1"
size=
"small"
class=
"w120"
placeholder=
"燃气备注"
maxlength=
"80"
/>
</div>
</div>
</div>
<div
class=
"brandShuxing"
>
<div
class=
"brandShuxing"
>
<el-form-item
label=
"排污"
class=
"is-required"
>
<div
class=
"brandShuxing_item"
>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"1"
>
是
</el-radio>
<el-form-item
label=
"排烟量"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"1"
>
是
</el-radio>
</el-form-item>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"0"
>
否
</el-radio>
<el-form-item
label=
"燃气"
class=
"is-required"
>
</el-form-item>
<el-radio
v-model=
"addMsg.RanQi"
:label=
"1"
>
是
</el-radio>
<el-input
<el-radio
v-model=
"addMsg.RanQi"
:label=
"0"
>
否
</el-radio>
v-model=
"addMsg.PaiYanBZ"
</el-form-item>
v-if=
"addMsg.PaiYan == 1"
size=
"small"
class=
"w120"
placeholder=
"排烟量"
maxlength=
"80"
/>
</div>
<div
class=
"brandShuxing_item"
>
<el-form-item
label=
"电量"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.IsDianLiang"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.IsDianLiang"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-input
v-model=
"addMsg.DianLiang"
v-if=
"addMsg.IsDianLiang == 1"
size=
"small"
class=
"w120"
placeholder=
"电量"
maxlength=
"80"
/>
</div>
</div>
</div>
<div
class=
"brandShuxing"
>
<div
class=
"brandShuxing"
>
<el-form-item
label=
"排烟量"
class=
"is-required"
>
<div
class=
"brandShuxing_item"
>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"1"
>
是
</el-radio>
<el-form-item
label=
"上下水"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.PaiYan"
:label=
"0"
>
否
</el-radio>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"1"
>
是
</el-radio>
</el-form-item>
<el-radio
v-model=
"addMsg.Plumbing"
:label=
"0"
>
否
</el-radio>
<el-form-item
label=
"空调"
class=
"is-required"
>
</el-form-item>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"1"
>
是
</el-radio>
</div>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"0"
>
否
</el-radio>
<div
class=
"brandShuxing_item"
>
</el-form-item>
<el-form-item
label=
"管径"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Caliber"
:label=
"0"
>
否
</el-radio>
</el-form-item>
</div>
</div>
</div>
<el-form-item
label=
"新风"
class=
"is-required"
>
<div
class=
"brandShuxing"
>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"1"
>
是
</el-radio>
<div
class=
"brandShuxing_item"
>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"0"
>
否
</el-radio>
<el-form-item
label=
"排污"
class=
"is-required"
>
</el-form-item>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.Sewage"
:label=
"0"
>
否
</el-radio>
</el-form-item>
</div>
<div
class=
"brandShuxing_item"
>
<el-form-item
label=
"空调"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.KongTiao"
:label=
"0"
>
否
</el-radio>
</el-form-item>
</div>
</div>
<div
class=
"brandShuxing"
>
<div
class=
"brandShuxing_item"
>
<el-form-item
label=
"新风"
class=
"is-required"
>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model=
"addMsg.XinFeng"
:label=
"0"
>
否
</el-radio>
</el-form-item>
</div>
</div>
<el-form-item
label=
"广告"
class=
"ue-style"
>
<el-form-item
label=
"广告"
class=
"ue-style"
>
<UE
style=
"width:700px;"
:defaultMsg=
"Advertising"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE>
<UE
style=
"width: 700px"
:defaultMsg=
"Advertising"
:config=
"config"
:IsMultiple=
"true"
ref=
"ue"
></UE>
</el-form-item>
</el-form-item>
<el-form-item
label=
"其他"
class=
"ue-style"
>
<el-form-item
label=
"其他"
class=
"ue-style"
>
<UE
style=
"width:700px;"
:defaultMsg=
"Other"
:config=
"config"
:IsMultiple=
"true"
ref=
"ueother"
></UE>
<UE
style=
"width: 700px"
:defaultMsg=
"Other"
:config=
"config"
:IsMultiple=
"true"
ref=
"ueother"
></UE>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
style=
"margin-top:20px"
>
<div
style=
"margin-top: 20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save('addMsg')"
>
保存
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save('addMsg')"
>
保存
</el-button
>
</div>
</div>
<!-- 选择文件 -->
<!-- 选择文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"changeState"
width=
"1240px"
>
<el-dialog
title=
"选择文件"
:visible
.
sync=
"changeState"
width=
"1240px"
>
...
@@ -157,181 +379,191 @@
...
@@ -157,181 +379,191 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
UE
from
"@/components/global/UE.vue"
;
import
UE
from
"@/components/global/UE.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
Choosevideo
from
"@/components/global/Choosevideo.vue"
;
import
draggable
from
"vuedraggable"
import
draggable
from
"vuedraggable"
;
export
default
{
export
default
{
components
:
{
components
:
{
ChooseImg
,
ChooseImg
,
UE
,
UE
,
Choosevideo
,
Choosevideo
,
draggable
draggable
,
},
},
data
()
{
data
()
{
return
{
return
{
addMsg
:
{
addMsg
:
{
ID
:
0
,
ID
:
0
,
Logo
:
""
,
//Logo
Logo
:
""
,
//Logo
BannerList
:
[],
//品牌介绍图
BannerList
:
[],
//品牌介绍图
VideoUrl
:
""
,
//品牌视频
VideoUrl
:
""
,
//品牌视频
FullBrandName
:
""
,
//品牌全名
FullBrandName
:
""
,
//品牌全名
BrandName
:
''
,
//品牌名
BrandName
:
""
,
//品牌名
ShopNum
:
""
,
//店铺数量
ShopNum
:
""
,
//店铺数量
BuiltUpArea
:
""
,
//建筑面积小
BuiltUpArea
:
""
,
//建筑面积小
EndBuiltUpArea
:
""
,
//建筑面积大
EndBuiltUpArea
:
""
,
//建筑面积大
CustomerType
:
''
,
//客群定位
CustomerType
:
""
,
//客群定位
BrandType
:
''
,
//品牌定位
BrandType
:
""
,
//品牌定位
StoreExpansion
:
''
,
//扩店区域
StoreExpansion
:
""
,
//扩店区域
ProjectType
:
0
,
//商铺性质
ProjectType
:
0
,
//商铺性质
AreaRequirement
:
0
,
//
AreaRequirement
:
0
,
//
EndAreaRequirement
:
0
,
//
EndAreaRequirement
:
0
,
//
Advertising
:
''
,
//广告
Advertising
:
""
,
//广告
Other
:
''
,
//其他
Other
:
""
,
//其他
ShopSize
:
1
,
//店铺开口尺寸
ShopSize
:
1
,
//店铺开口尺寸
Plumbing
:
1
,
//上下水
Plumbing
:
1
,
//上下水
Caliber
:
1
,
//管径
Caliber
:
1
,
//管径
Sewage
:
1
,
//排污
Sewage
:
1
,
//排污
RanQi
:
1
,
//燃气
RanQi
:
1
,
//燃气
DianLiang
:
''
,
//电量
DianLiang
:
""
,
//电量
PaiYan
:
1
,
//排烟量
PaiYan
:
1
,
//排烟量
KongTiao
:
1
,
//空调
KongTiao
:
1
,
//空调
XinFeng
:
1
,
//新风
XinFeng
:
1
,
//新风
BrandClassId
:
0
,
//品牌分类Id
BrandClassId
:
0
,
//品牌分类Id
},
RanQiBZ
:
""
,
//燃气备注
loadingPeople
:
false
,
IsDianLiang
:
1
,
//电量(0-否1-有)
dynamicTags
:
[],
PaiYanBZ
:
""
,
//排烟量备注
dynamicTags2
:
[],
ShopSize
:
""
,
//店铺开口尺寸
inputVisible
:
false
,
IsShopSize
:
1
,
//店铺开口尺寸(0-否1-有)
inputValue
:
''
,
},
inputVisible2
:
false
,
loadingPeople
:
false
,
inputValue2
:
''
,
dynamicTags
:
[],
Advertising
:
""
,
dynamicTags2
:
[],
Other
:
''
,
inputVisible
:
false
,
config
:
{
inputValue
:
""
,
initialFrameWidth
:
null
,
inputVisible2
:
false
,
initialFrameHeight
:
200
inputValue2
:
""
,
},
Advertising
:
""
,
Picindex
:
0
,
Other
:
""
,
rules
:
{
config
:
{
FullBrandName
:
[{
initialFrameWidth
:
null
,
initialFrameHeight
:
200
,
},
Picindex
:
0
,
rules
:
{
FullBrandName
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入品牌全名'
,
message
:
"请输入品牌全名"
,
trigger
:
'blur'
trigger
:
"blur"
,
}],
},
BrandName
:
[{
],
BrandName
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入品牌名'
,
message
:
"请输入品牌名"
,
trigger
:
'blur'
trigger
:
"blur"
,
}],
},
Logo
:
[{
],
Logo
:
[
{
required
:
true
,
required
:
true
,
message
:
'请选择Logo'
,
message
:
"请选择Logo"
,
trigger
:
'blur'
trigger
:
"blur"
,
}],
},
ShopNum
:
[{
],
ShopNum
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入店铺数量'
,
message
:
"请输入店铺数量"
,
trigger
:
'blur'
trigger
:
"blur"
,
}],
},
loading
:
false
,
changeState
:
false
,
changeState1
:
false
,
imgType
:
0
,
peopleData
:
[],
BrandClassList
:
[],
//品牌分类列表
ProjectTypeList
:
[],
//商铺性质列表
logoList
:[]
};
},
created
()
{
this
.
getBrandClassList
();
this
.
getProjectType
();
},
mounted
()
{
if
(
this
.
$route
.
query
.
ID
)
{
this
.
getData
(
this
.
$route
.
query
.
ID
)
}
},
methods
:
{
//获取商铺性质
getProjectType
()
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ProjectTypeList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
},
);
],
},
},
//选择图片
loading
:
false
,
SelectId
(
msg
)
{
changeState
:
false
,
let
url
=
this
.
getIconLink
(
msg
.
url
)
changeState1
:
false
,
if
(
this
.
imgType
==
1
)
{
imgType
:
0
,
this
.
addMsg
.
Logo
=
url
peopleData
:
[],
BrandClassList
:
[],
//品牌分类列表
ProjectTypeList
:
[],
//商铺性质列表
logoList
:
[],
};
},
created
()
{
this
.
getBrandClassList
();
this
.
getProjectType
();
},
mounted
()
{
if
(
this
.
$route
.
query
.
ID
)
{
this
.
getData
(
this
.
$route
.
query
.
ID
);
}
},
methods
:
{
//获取商铺性质
getProjectType
()
{
this
.
apipost
(
"/api/Trade/GetProjectTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ProjectTypeList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
}
if
(
this
.
imgType
==
2
)
{
});
this
.
addMsg
.
BannerList
.
push
(
url
);
},
//选择图片
SelectId
(
msg
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
);
if
(
this
.
imgType
==
1
)
{
this
.
addMsg
.
Logo
=
url
;
}
if
(
this
.
imgType
==
2
)
{
this
.
addMsg
.
BannerList
.
push
(
url
);
}
this
.
changeState
=
false
;
},
//删除品牌介绍图片
ClearCarouse
(
index
)
{
this
.
addMsg
.
BannerList
.
splice
(
index
,
1
);
},
openChangeDig
(
num
)
{
this
.
changeState
=
true
;
this
.
imgType
=
num
;
},
Selectvideo
(
val
)
{
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
this
.
changeState1
=
false
;
},
getBrandClassList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BrandClassList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
}
this
.
changeState
=
false
;
});
},
},
//删除品牌介绍图片
//保存品牌
ClearCarouse
(
index
)
{
Save
(
formName
)
{
this
.
addMsg
.
BannerList
.
splice
(
index
,
1
);
//广告
},
let
advertising
=
this
.
$refs
.
ue
.
getUEContent
();
openChangeDig
(
num
)
{
this
.
addMsg
.
Advertising
=
advertising
;
this
.
changeState
=
true
;
//其他
this
.
imgType
=
num
;
let
other
=
this
.
$refs
.
ueother
.
getUEContent
();
},
this
.
addMsg
.
Other
=
other
;
Selectvideo
(
val
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
addMsg
.
VideoUrl
=
val
.
Path
;
if
(
valid
)
{
this
.
changeState1
=
false
;
this
.
apipost
(
"/api/Trade/GetSetBrand"
,
this
.
addMsg
,
(
res
)
=>
{
},
getBrandClassList
()
{
this
.
apipost
(
"/api/Trade/GetBrandClassList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BrandClassList
=
res
.
data
.
data
;
this
.
CommonJump
(
"brandManagement"
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
},
});
);
}
else
{
},
return
false
;
//保存品牌
}
Save
(
formName
)
{
});
//广告
},
let
advertising
=
this
.
$refs
.
ue
.
getUEContent
();
//获取详情
this
.
addMsg
.
Advertising
=
advertising
;
getData
(
ID
)
{
//其他
this
.
loading
=
true
;
let
other
=
this
.
$refs
.
ueother
.
getUEContent
();
this
.
apipost
(
this
.
addMsg
.
Other
=
other
;
"/api/Trade/GetBrandDetails"
,
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
{
if
(
valid
)
{
ID
:
ID
,
this
.
apipost
(
"/api/Trade/GetSetBrand"
,
this
.
addMsg
,
res
=>
{
},
if
(
res
.
data
.
resultCode
==
1
)
{
(
res
)
=>
{
this
.
CommonJump
(
'brandManagement'
);
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
else
{
return
false
;
}
});
},
//获取详情
getData
(
ID
)
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/Trade/GetBrandDetails"
,
{
ID
:
ID
},
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
this
.
addMsg
=
res
.
data
.
data
;
...
@@ -344,163 +576,162 @@
...
@@ -344,163 +576,162 @@
this
.
logoList
=
[];
this
.
logoList
=
[];
this
.
logoList
.
push
(
this
.
addMsg
.
Logo
);
this
.
logoList
.
push
(
this
.
addMsg
.
Logo
);
}
}
}
)
}
},
);
},
},
},
};
};
</
script
>
</
script
>
<
style
>
<
style
>
.app-add-cat
.el-checkbox-group
{
.app-add-cat
.el-checkbox-group
{
font-size
:
14px
!important
;
font-size
:
14px
!important
;
}
}
.app-add-cat
.el-checkbox
{
margin-right
:
0
;
}
.app-add-cat
.el-dialog__body
{
padding
:
10px
20px
!important
;
}
.app-add-cat
.tag-box
.tag-item
{
.app-add-cat
.el-checkbox
{
margin-right
:
5px
;
margin-right
:
0
;
}
}
.app-add-cat
.tag-box
{
.app-add-cat
.el-dialog__body
{
margin
:
20px
0
;
padding
:
10px
20px
!important
;
}
}
.app-add-cat
.app-goods-cat-list
.active
{
.app-add-cat
.tag-box
.tag-item
{
background
:
#FAFAFA
;
margin-right
:
5px
;
}
}
.app-add-cat
.app-goods-cat-list
.cat-item
{
.app-add-cat
.tag-box
{
cursor
:
pointer
;
margin
:
20px
0
;
padding
:
5px
10px
;
}
}
.app-add-cat
.app-goods-cat-list
{
.app-add-cat
.app-goods-cat-list
.active
{
border
:
1px
solid
#E8EAEE
;
background
:
#fafafa
;
border-radius
:
5px
;
}
margin-top
:
-5px
;
padding
:
10px
0
;
overflow
:
scroll
;
height
:
400px
;
}
.app-add-cat
.app-goods-cat-list
.cat-item
{
cursor
:
pointer
;
padding
:
5px
10px
;
}
.app-add-cat
.app-goods-cat-list
{
border
:
1px
solid
#e8eaee
;
border-radius
:
5px
;
margin-top
:
-5px
;
padding
:
10px
0
;
overflow
:
scroll
;
height
:
400px
;
}
.addbrand
.blue
{
.addbrand
.blue
{
color
:
#409EFF
;
color
:
#409eff
;
}
}
.addbrand
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
.addbrand
.content
{
.addbrand
.gez_list
{
background
:
#fff
;
/*width: 650px;*/
margin-top
:
10px
;
margin-bottom
:
12px
;
padding
:
20px
;
padding
:
20px
;
box-sizing
:
border-box
;
border
:
1px
solid
#ebeef5
;
}
background-color
:
#fff
;
color
:
#303133
;
}
.addbrand
.gez_list
{
.addbrand
.quyu
{
/*width: 650px;*/
background-color
:
#f4f4f5
;
margin-bottom
:
12px
;
color
:
#909399
;
padding
:
20px
;
padding
:
10px
;
border
:
1px
solid
#EBEEF5
;
line-height
:
30px
;
background-color
:
#FFF
;
height
:
30px
;
color
:
#303133
;
font-size
:
12px
;
border-radius
:
4px
;
white-space
:
nowrap
;
margin
:
5px
;
}
}
.addbrand
.el-tag
+
.el-tag
{
margin-left
:
10px
;
}
.addbrand
.quyu
{
.addbrand
.button-new-tag
{
background-color
:
#f4f4f5
;
margin-left
:
10px
;
color
:
#909399
;
height
:
32px
;
padding
:
10px
;
line-height
:
30px
;
line-height
:
30px
;
padding-top
:
0
;
height
:
30px
;
padding-bottom
:
0
;
font-size
:
12px
;
}
border-radius
:
4px
;
white-space
:
nowrap
;
margin
:
5px
;
}
.addbrand
.el-tag
+
.el-tag
{
.addbrand
.input-new-tag
{
margin-left
:
10px
;
width
:
90px
;
}
margin-left
:
10px
;
vertical-align
:
bottom
;
}
.addbrand
.button-new-tag
{
.addbrand
.ue-style
.el-form-item__content
{
margin-left
:
10px
;
line-height
:
0
;
height
:
32px
;
}
line-height
:
30px
;
padding-top
:
0
;
padding-bottom
:
0
;
}
.addbrand
.input-new-tag
{
.addbrand
.app-gallery-item
{
width
:
90px
;
border
:
none
;
margin-left
:
10px
;
}
vertical-align
:
bottom
;
}
.addbrand
.ue-style
.el-form-item__content
{
.addbrand
.nav_Main
{
line-height
:
0
;
display
:
flex
;
}
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.addbrand
.app-gallery-item
{
.addbrand
.nav_IconContent
{
border
:
none
display
:
flex
;
}
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.addbrand
.nav_Main
{
/* .addbrand .nav_IconContent div>div {
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
.addbrand
.nav_IconContent
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
}
/* .addbrand .nav_IconContent div>div {
display: inline-block;
display: inline-block;
} */
} */
.addbrand
.colapp-image
{
.addbrand
.colapp-image
{
background-size
:
cover
;
background-size
:
cover
;
background-position
:
center
center
;
background-position
:
center
center
;
width
:
100px
;
width
:
100px
;
height
:
100px
;
height
:
100px
;
border-radius
:
0%
;
border-radius
:
0%
;
}
}
.addbrand
.add-image-btn
{
width
:
100px
;
height
:
100px
;
line-height
:
100px
;
color
:
#419efb
;
border
:
1px
solid
#e2e2e2
;
cursor
:
pointer
;
text-align
:
center
;
}
.addbrand
.delBtn
{
.addbrand
.add-image-btn
{
position
:
absolute
;
width
:
100px
;
right
:
-8px
;
height
:
100px
;
top
:
-8px
;
line-height
:
100px
;
padding
:
4px
4px
!important
;
color
:
#419efb
;
}
border
:
1px
solid
#e2e2e2
;
cursor
:
pointer
;
text-align
:
center
;
}
.addbrand
.w600
{
.addbrand
.delBtn
{
width
:
600px
;
position
:
absolute
;
}
right
:
-8px
;
top
:
-8px
;
padding
:
4px
4px
!important
;
}
.addbrand
.brandShuxing
{
.addbrand
.w600
{
display
:
flex
;
width
:
600px
;
justify-content
:
space-between
;
}
width
:
700px
;
}
.addbrand
.brandShuxing
{
display
:
flex
;
justify-content
:
space-between
;
width
:
850px
;
}
.addbrand
.brandShuxing_item
{
display
:
flex
;
justify-content
:
space-between
;
width
:
50%
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment