提交 55c2ad34 编写于 作者: alex.zhang's avatar alex.zhang

黑名单优化

上级 2aa29f78
<template> <template>
<div class="yqrange-index-wrapper"> <div class="yqrange-index-wrapper">
<bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond" :curmbThird="curmbThird" :jumPathThird="jumPathThird" :jumPathFouth="jumPathFouth"></bread-crumb> <bread-crumb
:curmbFirst="curmbFirst"
:curmbSecond="curmbSecond"
:curmbThird="curmbThird"
:jumPathThird="jumPathThird"
:jumPathFouth="jumPathFouth"
></bread-crumb>
<div class="yqrange-index-content screenSet" id="screenSet"> <div class="yqrange-index-content screenSet" id="screenSet">
<div class="header-title">黑名单</div> <div class="header-title">黑名单</div>
<el-form <el-form
...@@ -10,8 +16,12 @@ ...@@ -10,8 +16,12 @@
label-suffix=":" label-suffix=":"
:inline="true" :inline="true"
> >
<el-row :gutter="30" type="flex" style="margin-top: 10px"> <el-row :gutter="10" type="flex" style="margin-top: 10px">
<p class="add_btn" @click="openDialogBlackList()">+ 添加人员至黑名单</p> <!-- <p class="add_btn" @click="openDialogBlackList()">+ 添加人员至黑名单</p> -->
<el-col class="add-organization">
<i class="el-icon-circle-plus-outline" @click="openDialogBlackList()"></i>
<i class="text" @click="openDialogBlackList()">添加人员至黑名单</i>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="机构"> <el-form-item label="机构">
<el-input size="small" v-model="searchForm.organization" placeholder="请输入机构名称"></el-input> <el-input size="small" v-model="searchForm.organization" placeholder="请输入机构名称"></el-input>
...@@ -22,7 +32,7 @@ ...@@ -22,7 +32,7 @@
<el-input size="small" v-model="searchForm.staffName" placeholder="请输入人员名称"></el-input> <el-input size="small" v-model="searchForm.staffName" placeholder="请输入人员名称"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" style="text-align: right;margin-top: 5px"> <el-col :span="7" style="text-align: right;margin-top: 5px">
<el-button type="primary" size="small" @click="search">搜索</el-button> <el-button type="primary" size="small" @click="search">搜索</el-button>
<el-button type="default" size="small" @click="searchCancel" style="margin-left:0;">取消搜索</el-button> <el-button type="default" size="small" @click="searchCancel" style="margin-left:0;">取消搜索</el-button>
</el-col> </el-col>
...@@ -57,17 +67,13 @@ ...@@ -57,17 +67,13 @@
</div> </div>
<el-dialog <el-dialog
title="添加机构" title="添加人员至黑名单"
:visible.sync="dialogBlackList" :visible.sync="dialogBlackList"
width="80%" width="80%"
top="5vh" top="5vh"
:before-close="handleClose" :before-close="handleClose"
> >
<checkBlackList <checkBlackList :circleId="circleId" @addOrg="addOrg" @handleClose="handleClose"></checkBlackList>
:circleId="circleId"
@addOrg="addOrg"
@handleClose="handleClose"
></checkBlackList>
<!-- :roleType="roleType" --> <!-- :roleType="roleType" -->
</el-dialog> </el-dialog>
</div> </div>
...@@ -90,7 +96,7 @@ export default { ...@@ -90,7 +96,7 @@ export default {
curmbFirst: "云鹊小圈", curmbFirst: "云鹊小圈",
curmbSecond: "", curmbSecond: "",
curmbThird: "黑名单", curmbThird: "黑名单",
jumPathThird: '/yq-range', jumPathThird: "/yq-range",
searchForm: { searchForm: {
organization: "", organization: "",
staffName: "", staffName: "",
...@@ -107,12 +113,17 @@ export default { ...@@ -107,12 +113,17 @@ export default {
created() { created() {
vm = this; vm = this;
// this.circleId = this.$route.query.id; // this.circleId = this.$route.query.id;
// this.circleId = 131; this.circleId = 131;
this.circleId = this.$route.query.circleId; // this.circleId = this.$route.query.circleId;
this.idType = localStorage.getItem("storageIdType"); this.idType = localStorage.getItem("storageIdType");
this.circleName = this.$route.query.circleName; this.circleName = this.$route.query.circleName;
this.curmbSecond = "圈子管理-" + this.circleName; this.curmbSecond = "圈子管理-" + this.circleName;
this.jumPathFouth = "/range-manage?id=" + this.circleId + "&name=" + this.circleName + "&activeName=first"; this.jumPathFouth =
"/range-manage?id=" +
this.circleId +
"&name=" +
this.circleName +
"&activeName=first";
console.log("alex storageIdType = " + this.idType + ", id = " + this.id); console.log("alex storageIdType = " + this.idType + ", id = " + this.id);
this.searchList(); this.searchList();
}, },
...@@ -123,7 +134,9 @@ export default { ...@@ -123,7 +134,9 @@ export default {
this.searchList(); this.searchList();
}, },
searchCancel() { searchCancel() {
this.searchForm.organization = "";
this.searchForm.staffName = "";
this.searchList();
}, },
searchList() { searchList() {
...@@ -212,7 +225,7 @@ export default { ...@@ -212,7 +225,7 @@ export default {
this.handleClose(); this.handleClose();
this.search(); this.search();
}, },
} },
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
...@@ -253,5 +266,16 @@ export default { ...@@ -253,5 +266,16 @@ export default {
margin-top: 10px; margin-top: 10px;
margin-left: 20px; margin-left: 20px;
} }
.add-organization {
margin-left: 0px;
line-height: 20px;
width: 200px;
cursor: pointer;
padding-top: 10px;
i {
font-size: 16px;
margin-right: 2px;
}
}
} }
</style> </style>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div slot="empty"> <div slot="empty">
<div class="table-empty"> <div class="table-empty">
<img src="../../assets/image/no-content1.png"> <img src="../../assets/image/no-content1.png">
<p>没有机构信息</p> <p>没有相关信息</p>
</div> </div>
</div> </div>
</el-table> </el-table>
...@@ -150,7 +150,9 @@ export default { ...@@ -150,7 +150,9 @@ export default {
this.searchList(); this.searchList();
}, },
searchCancel() { searchCancel() {
this.formOrganization.organization = "";
this.formOrganization.name = "";
this.searchList();
}, },
searchList() { searchList() {
console.log("黑名单搜索 " + this.circleId); console.log("黑名单搜索 " + this.circleId);
......
...@@ -331,8 +331,7 @@ export default { ...@@ -331,8 +331,7 @@ export default {
//成员管理 //成员管理
roleManage(row) { roleManage(row) {
this.$router.push({ this.$router.push({
// path: '/role-manage?id=' + row.id, path: '/role-manage?id=' + row.id,
path: '/blacklist-manage?id=' + row.id,
}) })
}, },
//编辑 //编辑
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册