|
@@ -28,6 +28,22 @@
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <el-select style="width:150px" v-model="customertype" clearable placeholder="请选择" @change="filterStatus">
|
|
|
+ <el-option
|
|
|
+ v-for="item in customertypeoptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.value"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select style="width:150px" v-model="customerlevel" clearable placeholder="请选择" @change="filterStatus">
|
|
|
+ <el-option
|
|
|
+ v-for="item in customerleveloptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
<el-input
|
|
|
style="width:200px;"
|
|
|
placeholder="请输入查询内容"
|
|
@@ -234,6 +250,10 @@ export default {
|
|
|
}]
|
|
|
},
|
|
|
evocationdownloadqx:false,
|
|
|
+ customerlevel:'',
|
|
|
+ customertype:'',
|
|
|
+ customertypeoptions:[],
|
|
|
+ customerleveloptions:[],
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -275,6 +295,8 @@ export default {
|
|
|
pageSize: that.pageSize,
|
|
|
isSure: that.value,
|
|
|
searchCriteria: that.input,
|
|
|
+ department: that.customertype,
|
|
|
+ rank: that.customerlevel+'',
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
console.log(res)
|
|
@@ -344,6 +366,29 @@ export default {
|
|
|
this.currentPage=1;
|
|
|
this.PostGroupPageList()
|
|
|
},
|
|
|
+ //获取基础数据
|
|
|
+ PostGroupPageListInit(){
|
|
|
+ var url="/api/Groups/PostGroupPageListInit"
|
|
|
+ var that=this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url:url,
|
|
|
+ headers:{
|
|
|
+ Authorization:'Bearer '
|
|
|
+ },
|
|
|
+ }).then(function(res){
|
|
|
+ if(res.data.code==200){
|
|
|
+ that.customertypeoptions=res.data.data.depData;
|
|
|
+ that.customerleveloptions=res.data.data.rankData;
|
|
|
+ }else{
|
|
|
+ that.$message({
|
|
|
+ message:res.data.msg ,
|
|
|
+ type: 'warning',
|
|
|
+ offset:50
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//编辑
|
|
|
handleEdit(index, row,rows) {
|
|
|
var tzczval={
|
|
@@ -446,6 +491,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
+ this.PostGroupPageListInit();
|
|
|
if(JSON.parse(localStorage.getItem('tzczval'))){
|
|
|
this.currentPage=JSON.parse(localStorage.getItem('tzczval')).currentPage;
|
|
|
this.value=JSON.parse(localStorage.getItem('tzczval')).value;
|