Commit 1bffafdb authored by 黄奎's avatar 黄奎

页面修改

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