Commit 870ff1c0 authored by 黄奎's avatar 黄奎

页面修改

parent eb5972e4
......@@ -14,11 +14,18 @@
</el-option>
</el-select>
<span>分类名称</span>
<el-input type="text" style="width:250px" size="small" maxlength="100" v-model="msg.Name">
<el-input type="text" style="width:250px" size="small" maxlength="100" v-model="msg.BrandName"
@input="msg.pageIndex=1,getList()" clearable>
</el-input>
<span style="margin-left: 10px">咨询用户</span>
<el-select size="small" v-model="msg.UserId" @change="(msg.pageIndex = 1), getList()" placeholder="请选择"
:filter-method="ChangeListName" filterable clearable>
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in userList" :key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
<span>是否回复</span>
<el-select style="margin:0 10px" class="w200" @change="msg.pageIndex=1,getList()" v-model="msg.IsReply"
size="small" placeholder="请选择" clearable>
<el-select style="margin:0 10px" @change="msg.pageIndex=1,getList()" v-model="msg.IsReply" size="small"
placeholder="请选择">
<el-option label="不限" :value="0"></el-option>
<el-option v-for="item in ReplyList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
......@@ -121,7 +128,7 @@
msg: {
pageIndex: 1,
pageSize: 15,
Name: "",
BrandName: "",
CategoryId: "",
BrandId: "",
UserId: "",
......@@ -155,15 +162,45 @@
CategoryList: [], //分类列表
isShowReplayForm: false, //是否显示回复弹窗
showType: 1, //回复类型(1-回复,2-查看)
userList: [], //用户列表
//用户查询
userMsg: {
pageIndex: 1,
pageSize: 50,
Name: "",
Source: 0,
MemberGrade: 0,
Id: 0,
Moblie: "",
}
}
},
created() {
this.getCategoryList()
this.getCategoryList();
this.getuserList();
},
mounted() {
this.getList();
},
methods: {
//搜索用户
ChangeListName(val) {
this.userMsg.Name = val;
this.getuserList();
},
//获取用户列表
getuserList() {
this.apipost(
"/api/user/GetMemberUserDropDownList",
this.userMsg,
(res) => {
if (res.data.resultCode == 1) {
let pageData = res.data.data.pageData;
this.userList = pageData;
}
}
);
},
showReplayForm(item, showType) {
this.replayMsg.GoodsId = item.Id;
this.replayMsg.GoodsImgList = item.GoodsImgList;
......
......@@ -75,14 +75,14 @@
}
},
created() {
this.getBrandList()
this.getCategoryList()
},
mounted() {
this.getList();
},
methods: {
//获取分类列表
getBrandList() {
getCategoryList() {
this.apipost("/api/Assess/GetCategoryDropList", {}, res => {
if (res.data.resultCode == 1) {
this.CategoryList = res.data.data;
......
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