Commit d01a72a9 authored by zhengke's avatar zhengke

no message

parents 2ecae9bb 73215197
<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>
......@@ -4,7 +4,12 @@
<div class="main-container">
<div class="homeIndexTop">
<div class="hoindexImgdiv">
<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();
......
<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();
......
......@@ -21,19 +21,50 @@
</el-table-column>
<el-table-column prop="PageName" label="标题">
</el-table-column>
<el-table-column label="导航与模板" prop="DetailsList" width="500">
<el-table-column label="导航与模板" prop="DetailsList" width="400">
<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: 50%;
width: 90%;
padding-left: 20px;
}
......
......@@ -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>
......
<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,12 +312,12 @@
</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 {
export default {
name: "editBrandEnter",
data() {
let validataType = (rule, value, callback) => {
......@@ -515,59 +369,47 @@ export default {
PaiYanBZ: "", //排烟量备注
ShopSize: "", //店铺开口尺寸
IsShopSize: 1, //店铺开口尺寸(0-否1-有)
OpenShopWish:5,//开店意愿
IsInChengdu:0,//是否成都落地
CategoryId: 0,//分类ID
BrandEnterpriseType: 1,//(1-品牌,2-企业服务)
Introduce: '',//品牌简介/企业简介
DevIntention: '',//发展意向
Cooperation: '',//合作条件
PropertyDemand: '',//物业需求
Complementary: '',//配套需求
OpenShopWish: 5, //开店意愿
IsInChengdu: 0, //是否成都落地
CategoryId: 0, //分类ID
BrandEnterpriseType: 1, //(1-品牌,2-企业服务)
Introduce: '', //品牌简介/企业简介
DevIntention: '', //发展意向
Cooperation: '', //合作条件
PropertyDemand: '', //物业需求
Complementary: '', //配套需求
},
rules: {
Logo: [
{
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,
......@@ -585,7 +427,7 @@ export default {
},
created() {
this.isBrand = this.$route.query.isBrand
this.addMsg.BrandEnterpriseType = this.isBrand?this.isBrand:2
this.addMsg.BrandEnterpriseType = this.isBrand ? this.isBrand : 2
if (this.$route.query.ID) {
this.ID = this.$route.query.ID;
this.getData();
......@@ -596,7 +438,7 @@ export default {
//获取类型
getTypeEnumList() {
this.apipost("/api/Trade/GetBrandClassList", {
BrandCategory: this.isBrand?3:4
BrandCategory: this.isBrand ? 3 : 4
}, (res) => {
if (res.data.resultCode == 1) {
this.CategoryList = res.data.data;
......@@ -612,11 +454,11 @@ export default {
//其他
// let other = this.$refs.ueother.getUEContent();
// this.addMsg.Other = other;
if(this.addMsg.BuiltUpArea==='' || this.addMsg.EndBuiltUpArea===''){
if (this.addMsg.BuiltUpArea === '' || this.addMsg.EndBuiltUpArea === '') {
this.Error('请输入建筑面积')
return
}
if(this.addMsg.AreaRequirement==='' || this.addMsg.EndAreaRequirement===''){
if (this.addMsg.AreaRequirement === '' || this.addMsg.EndAreaRequirement === '') {
this.Error('请输入需求面积')
return
}
......@@ -627,7 +469,7 @@ export default {
this.addMsg,
(res) => {
if (res.data.resultCode === 1) {
this.CommonJump(this.isBrand?'BrandManager':'EnterpriseManager');
this.CommonJump(this.isBrand ? 'BrandManager' : 'EnterpriseManager');
this.Success(res.data.message);
} else {
this.Error(res.data.message);
......@@ -644,8 +486,7 @@ export default {
getData() {
this.pageloading = true;
this.apipost(
"/api/Trade/GetBrandEnterpriseInfo",
{
"/api/Trade/GetBrandEnterpriseInfo", {
ID: this.ID,
},
(res) => {
......@@ -679,22 +520,23 @@ export default {
this.changeState1 = false;
},
},
};
};
</script>
<style>
.editBrandEnter .content {
.editBrandEnter .content {
background: #fff;
margin-top: 10px;
box-sizing: border-box;
}
}
.editBrandEnter .editIconImg {
.editBrandEnter .editIconImg {
width: 80px;
height: 80px;
}
}
.editBrandEnter .add-image-btn {
.editBrandEnter .add-image-btn {
width: 100px;
height: 100px;
line-height: 100px;
......@@ -702,43 +544,44 @@ export default {
border: 1px solid #e2e2e2;
cursor: pointer;
text-align: center;
}
}
.editBrandEnter .nav_Main {
.editBrandEnter .nav_Main {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
}
.editBrandEnter .nav_IconContent {
.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 {
.editBrandEnter .colapp-image {
background-size: cover;
background-position: center center;
width: 100px;
height: 100px;
border-radius: 0%;
}
}
.editBrandEnter .delBtn {
.editBrandEnter .delBtn {
position: absolute;
right: -8px;
top: -8px;
padding: 4px 4px !important;
}
}
.delCarrClose {
.delCarrClose {
position: absolute;
right: 53px;
top: 8px;
padding: 4px 4px !important;
}
}
</style>
......@@ -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/CheckBuildingCarrierFile",
"/api/Trade/CheckBrandEnterpriseFile",
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/GetBuildingCarrierExportEnumList", {}, (res) => {
this.apipost("/api/Trade/GetBrandEnterpriseExportEnumList", {}, (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 = "";
......
......@@ -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
@change="(msg.pageIndex = 1), getList()" placeholder="请选择分类">
<el-select size="small" v-model="msg.CategoryId" filterable @change="(msg.pageIndex = 1), getList()" clearable
@clear="(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
@change="(msg.pageIndex = 1), getList()" placeholder="请选择开店状态">
<el-select size="small" v-model="msg.OpeningStatus" clearable @change="(msg.pageIndex = 1), getList()"
@clear="(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 = "";
......
<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,61 +88,30 @@
<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>
......@@ -244,54 +175,25 @@
<!-- </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,12 +429,12 @@
</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 {
export default {
name: "editVehicle",
data() {
let validataType = (rule, value, callback) => {
......@@ -668,24 +489,23 @@ export default {
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: [
{
OpeningStatus: 0,
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: "即将开业",
},
......@@ -695,153 +515,111 @@ export default {
},
],
rules: {
CarrierName: [
{
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,
......@@ -865,7 +643,7 @@ export default {
},
created() {
this.isCarrier = this.$route.query.isCarrier
this.addMsg.BuildingCarrierType = this.isCarrier?this.isCarrier:2
this.addMsg.BuildingCarrierType = this.isCarrier ? this.isCarrier : 2
if (this.$route.query.ID) {
this.ID = this.$route.query.ID;
this.getData();
......@@ -887,7 +665,7 @@ export default {
}
});
this.apipost("/api/Trade/GetBrandClassList", {
BrandCategory: this.isCarrier?1:2
BrandCategory: this.isCarrier ? 1 : 2
}, (res) => {
if (res.data.resultCode == 1) {
this.CategoryList = res.data.data;
......@@ -939,7 +717,7 @@ export default {
this.addMsg,
(res) => {
if (res.data.resultCode === 1) {
this.CommonJump(this.isCarrier?'BuildingServiceManager':'BuildingManager');
this.CommonJump(this.isCarrier ? 'BuildingServiceManager' : 'BuildingManager');
this.Success(res.data.message);
} else {
this.Error(res.data.message);
......@@ -956,8 +734,7 @@ export default {
getData() {
this.pageloading = true;
this.apipost(
"/api/Trade/GetBuildingCarrierInfo",
{
"/api/Trade/GetBuildingCarrierInfo", {
ID: this.ID,
},
(res) => {
......@@ -1030,12 +807,14 @@ export default {
//获取首店类别
GetAuthenticationCategoryEnumList() {
this.apipost(
"/api/AppletTrade/GetAuthenticationCategoryEnumList",
{ Name: "", Id: "" },
"/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) {
if (this.addMsg.FirstShopNumList && this.addMsg.FirstShopNumList.length === 0) {
this.shenList.map((e) => {
let obj = {
Id: e.Id,
......@@ -1060,22 +839,23 @@ export default {
this.addMsg.FirstShopNumList.splice(index, 1);
},
},
};
};
</script>
<style>
.editVehicle .content {
.editVehicle .content {
background: #fff;
margin-top: 10px;
box-sizing: border-box;
}
}
.editVehicle .editIconImg {
.editVehicle .editIconImg {
width: 80px;
height: 80px;
}
}
.editVehicle .add-image-btn {
.editVehicle .add-image-btn {
width: 100px;
height: 100px;
line-height: 100px;
......@@ -1083,43 +863,44 @@ export default {
border: 1px solid #e2e2e2;
cursor: pointer;
text-align: center;
}
}
.editVehicle .nav_Main {
.editVehicle .nav_Main {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
}
.editVehicle .nav_IconContent {
.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 {
.editVehicle .colapp-image {
background-size: cover;
background-position: center center;
width: 100px;
height: 100px;
border-radius: 0%;
}
}
.editVehicle .delBtn {
.editVehicle .delBtn {
position: absolute;
right: -8px;
top: -8px;
padding: 4px 4px !important;
}
}
.delCarrClose {
.delCarrClose {
position: absolute;
right: 53px;
top: 8px;
padding: 4px 4px !important;
}
}
</style>
......@@ -318,7 +318,7 @@
var fileName = "品牌信息.xls";
var that = this;
this.apipost(
"/api/Trade/CheckBrandEnterpriseFile",
"/api/Trade/CheckBrandFile",
msg,
(res) => {
if (res.data.resultCode == 1) {
......@@ -369,7 +369,7 @@
},
getDown() {
this.cityOptions = [];
this.apipost("/api/Trade/GetBrandEnterpriseExportEnumList", {}, (res) => {
this.apipost("/api/Trade/GetBusinessExportEnumList", {}, (res) => {
var tempData = [];
let data = res.data.data;
data.forEach((item) => {
......
<style>
.offlineIndex {
.offlineIndex {
height: 100%;
display: flex;
-webkit-box-orient: horizontal;
......@@ -14,16 +14,16 @@
box-sizing: border-box;
min-width: 0;
font-size: 14px;
}
}
.offlineIndex .mainLeftMenu {
.offlineIndex .mainLeftMenu {
position: relative;
display: flex;
flex-direction: row;
color: #fff;
}
}
.offlineIndex .leftMenu1 {
.offlineIndex .leftMenu1 {
background: #444444;
cursor: pointer;
width: 200px;
......@@ -33,17 +33,17 @@
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
}
.offlineIndex .asideInner {
.offlineIndex .asideInner {
background: rgba(0, 0, 0, 0.15);
padding: 6px 6px;
width: 100%;
border-radius: 3px;
font-weight: bold;
}
}
.offlineIndex .F_Logo {
.offlineIndex .F_Logo {
height: 60px;
background: #464d54;
color: #f2f2f2;
......@@ -53,25 +53,25 @@
padding: 0 15px;
display: flex;
align-items: center;
}
}
.offlineIndex .mainRightContent {
.offlineIndex .mainRightContent {
width: 100%;
height: 100%;
background-color: #f3f3f3;
min-width: 0;
}
}
.offlineIndex .mainRightTop {
.offlineIndex .mainRightTop {
width: 100%;
height: 60px;
background: #fff;
display: flex;
justify-content: space-between;
color: #909399;
}
}
.offlineIndex .mainRightLeft {
.offlineIndex .mainRightLeft {
width: 110px;
height: 60px;
line-height: 62px;
......@@ -80,37 +80,37 @@
cursor: pointer;
position: relative;
top: -2px;
}
}
.offlineIndex .marinRightList {
.offlineIndex .marinRightList {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 300px;
float: right;
}
}
.offlineIndex .marinRightList ul {
.offlineIndex .marinRightList ul {
display: flex;
width: 100%;
justify-content: space-around;
}
}
.offlineIndex .marinRightList ul li {
.offlineIndex .marinRightList ul li {
display: block;
list-style-type: none;
cursor: pointer;
color: #909399;
outline: none;
border: none;
}
}
.offlineIndex .main_routerPage {
.offlineIndex .main_routerPage {
padding: 20px;
overflow-y: scroll;
}
}
.offlineIndex .FsettingUU {
.offlineIndex .FsettingUU {
position: fixed;
width: 200px;
height: 100%;
......@@ -120,9 +120,9 @@
overflow: auto;
z-index: 5;
background-color: rgb(84, 92, 100);
}
}
.offlineIndex .FsettingUU .menu_item {
.offlineIndex .FsettingUU .menu_item {
font-size: 14px;
color: #303133;
padding: 0 20px;
......@@ -137,33 +137,34 @@
color: #fff;
display: flex;
align-items: center;
}
}
.offlineIndex .FsettingUU .menu_item i {
.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 {
.offlineIndex .menu_item:hover {
background-color: rgba(67, 74, 80, 0);
}
}
.offlineIndex .F_Logo:hover {
.offlineIndex .F_Logo:hover {
background-color: #30353a;
color: #fff;
}
}
.offlineIndex .Fchecked {
.offlineIndex .Fchecked {
color: rgb(255, 208, 75) !important;
}
}
.offlineIndex .Fchecked i {
.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,21 +389,19 @@
</div>
</template>
<script>
export default {
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";
......@@ -532,5 +415,6 @@ export default {
this.Height = document.documentElement.clientHeight - 60;
};
},
};
};
</script>
......@@ -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: domainUrl + '/api/File/LocalFileUploadImport',
UploadBlob: domainUrl + '/api/File/UploadBlob',
UploadFileUrl: mallApiUrl + '/api/File/LocalFileUploadImport',
UploadBlob: mallApiUrl + '/api/File/UploadBlob',
//文件上传自己服务器
VTUploadUrl: vtUploadUrl,
//文件预览自己服务器
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment