Commit 81babcde authored by 吴春's avatar 吴春

11

parent 6c8e8823
...@@ -40,6 +40,13 @@ ...@@ -40,6 +40,13 @@
top: 1px; top: 1px;
"></span> "></span>
</div> </div>
<div class="searchInput" style="width: 200px; margin-bottom: 10px">
<el-select v-model="msg.ProjectType" size="small" placeholder="请选择项目区域" filterable clearable
@change="(msg.pageIndex = 1), getList()" @clear="(msg.pageIndex = 1), getList()">
<el-option v-for="item in ProjectTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</div>
<div class="searchInput" style="width: 250px; margin-bottom: 10px"> <div class="searchInput" style="width: 250px; margin-bottom: 10px">
<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.Developers" style="display: inline-block; width: 225px; height: 30px" placeholder="开发商" v-model="msg.Developers"
...@@ -104,17 +111,17 @@ ...@@ -104,17 +111,17 @@
</el-image> </el-image>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ProjectType" label="项目区域">
<template slot-scope="scope">
{{ getProject(scope.row.ProjectType) }}
</template>
</el-table-column>
<el-table-column prop="Address" width="200" label="项目地址"> <el-table-column prop="Address" width="200" label="项目地址">
</el-table-column> </el-table-column>
<el-table-column prop="Developers" width="200" label="开发商"> <el-table-column prop="Developers" width="200" label="开发商">
</el-table-column> </el-table-column>
<el-table-column prop="OpenTime" width="180" label="开业时间"> <el-table-column prop="OpenTime" width="180" label="开业时间">
</el-table-column> </el-table-column>
<el-table-column prop="ProjectType" label="项目类型">
<template slot-scope="scope">
{{ getProject(scope.row.ProjectType) }}
</template>
</el-table-column>
<el-table-column prop="IsRecommend" label="是否推荐" width="120"> <el-table-column prop="IsRecommend" label="是否推荐" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.IsRecommend" :active-value="1" :inactive-value="0" <el-switch v-model="scope.row.IsRecommend" :active-value="1" :inactive-value="0"
...@@ -391,7 +398,6 @@ ...@@ -391,7 +398,6 @@
} }
}); });
}, },
//获取项目类型 //获取项目类型
getProject(type) { getProject(type) {
let str = ""; let str = "";
......
...@@ -19,18 +19,16 @@ ...@@ -19,18 +19,16 @@
</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" <el-select class="w100" @change="(msg.pageIndex = 1), getList()" style="margin-left: 10px"
v-model="msg.ProjectType" size="small" placeholder="请选择商铺区域"> v-model="msg.ProjectType" size="small" placeholder="请选择商铺区域" filterable>
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option :label="x.Name" :value="x.Id" v-for="(x, y) in ProjectTypeList" :key="y"></el-option> <el-option :label="x.Name" :value="x.Id" v-for="(x, y) in ProjectTypeList" :key="y"></el-option>
</el-select> </el-select>
<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" <el-cascader style="margin-left: 10px" v-model="msg.BrandClassId" size="small" placeholder="请选择"
v-model="msg.BrandClassId" size="small" placeholder="请选择"> :options="BrandClassTree" :props="{checkStrictly: true, emitPath: false}" filterable
<el-option label="不限" :value="0"></el-option> @change="(msg.pageIndex = 1), getList()">
<el-option :label="x.ClassName" :value="x.ID" v-for="(x, y) in BrandClassList" :key="y"></el-option> </el-cascader>
</el-select>
<span style="margin-left: 10px">认证用户</span> <span style="margin-left: 10px">认证用户</span>
<el-select size="small" v-model="msg.UserId" :filter-method="ChangeListName" filterable <el-select size="small" v-model="msg.UserId" :filter-method="ChangeListName" filterable
@change="(msg.pageIndex = 1), getList()" placeholder="请选择"> @change="(msg.pageIndex = 1), getList()" placeholder="请选择">
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
...@@ -270,7 +268,7 @@ ...@@ -270,7 +268,7 @@
isIndeterminate: false, isIndeterminate: false,
pageCount: 0, pageCount: 0,
loading: false, loading: false,
BrandClassList: [], //品牌分类列表 BrandClassTree: [], //品牌分类列表
ProjectTypeList: [], //商铺性质列表 ProjectTypeList: [], //商铺性质列表
readonly: false, readonly: false,
downLoadLoading: false, //导出Loading downLoadLoading: false, //导出Loading
...@@ -286,7 +284,7 @@ ...@@ -286,7 +284,7 @@
} else { } else {
this.getuserList(); this.getuserList();
} }
this.getBrandClassList(); this.getBrandClassTree();
this.getProjectType(); this.getProjectType();
this.getDown(); this.getDown();
}, },
...@@ -434,12 +432,12 @@ ...@@ -434,12 +432,12 @@
} }
}); });
}, },
getBrandClassList() { getBrandClassTree() {
this.apipost("/api/Trade/GetBrandClassList", { this.apipost("/api/Trade/GetBrandClassTree", {
BrandCategory: 3 BrandCategory: 3
}, (res) => { }, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.BrandClassList = res.data.data; this.BrandClassTree = res.data.data;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -132,6 +132,12 @@ ...@@ -132,6 +132,12 @@
<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> </div>
</el-form-item> </el-form-item>
<el-form-item label="项目区域" prop="ProjectType">
<el-select style="width: 220px" v-model="addMsg.ProjectType" size="small" placeholder="请选择" filterable>
<el-option v-for="item in ProjectTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="项目地址" prop="Address"> <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>
...@@ -145,12 +151,6 @@ ...@@ -145,12 +151,6 @@
type="datetime" placeholder="请选择开业时间"> type="datetime" placeholder="请选择开业时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="项目地址" prop="ProjectType">
<el-select style="width: 220px" v-model="addMsg.ProjectType" size="small" placeholder="请选择">
<el-option v-for="item in ProjectTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="店铺数量" prop="ShopNum"> <el-form-item label="店铺数量" prop="ShopNum">
<el-input v-model="addMsg.ShopNum" @keyup.native="checkInteger(addMsg, 'ShopNum')" style="width: 690px" <el-input v-model="addMsg.ShopNum" @keyup.native="checkInteger(addMsg, 'ShopNum')" style="width: 690px"
size="small" placeholder="请输入店铺数量"> size="small" placeholder="请输入店铺数量">
......
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