提交 ab2e6bb3 编写于 作者: bo.dang's avatar bo.dang

Merge remote-tracking branch 'origin/dev-liveSix-20200817' into dev-liveSix-20200817

...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<span class="text inlin" @click="goBalck">黑名单</span> <span class="text inlin" @click="goBalck">黑名单</span>
</el-col> </el-col>
<el-col :span="4" class="mm-r"> <el-col :span="4" class="mm-r">
<span class="text" @click="goManger" v-if="role">设置管理员</span> <span class="text" @click="goManger" v-if="role == 1">设置管理员</span>
</el-col> </el-col>
</el-row> </el-row>
<div class="member-main"> <div class="member-main">
...@@ -16,12 +16,15 @@ ...@@ -16,12 +16,15 @@
:circleId='circleId' :circleId='circleId'
:roleType='roleType' :roleType='roleType'
@setOrgTotal="setOrgTotal" @setOrgTotal="setOrgTotal"
@refreshRenYuan='refreshRenYuan'
ref='org'
></org> ></org>
<renyaun <renyaun
v-show="tab == 2" v-show="tab == 2"
:circleId='circleId' :circleId='circleId'
:roleType='roleType' :roleType='roleType'
@setPleTotal="setPleTotal" @setPleTotal="setPleTotal"
ref='renyaun'
></renyaun> ></renyaun>
</div> </div>
</div> </div>
...@@ -90,7 +93,18 @@ export default { ...@@ -90,7 +93,18 @@ export default {
this.$router.push(`/blacklist-manage?circleId=${this.circleId}&circleName=${this.circleName}`) this.$router.push(`/blacklist-manage?circleId=${this.circleId}&circleName=${this.circleName}`)
}, },
getRole() { getRole() {
this.role = localStorage.getItem("highMainManager") || localStorage.getItem("mainManager") || (localStorage.getItem("storageIdType") == 1 ? 1 : 0) if (localStorage.getItem("highMainManager") == 1 || localStorage.getItem("mainManager") == 1 || localStorage.getItem("storageIdType") == 1) {
this.role = 1
console.log('===================显示=================');
console.log(this.role);
} else {
this.role = 0
console.log('===================不显示=================');
console.log(this.role);
}
},
refreshRenYuan() {
this.$refs.renyaun.initRange()
} }
} }
} }
......
...@@ -390,16 +390,18 @@ export default { ...@@ -390,16 +390,18 @@ export default {
flex-direction: column; flex-direction: column;
.hcd { .hcd {
flex: 1; flex: 1;
overflow: hidden; overflow: hiddongen;
.tag-list { .tag-list {
margin-top: 20px; margin-top: 20px;
margin-bottom: 40px; margin-bottom: 40px;
display: table-caption;
overflow-y: scroll; overflow-y: scroll;
max-height: 500px; max-height: 500px;
&::-webkit-scrollbar{ &::-webkit-scrollbar{
width: 2px !important; width: 2px !important;
} }
.el-tag{
margin-right:10px;
}
} }
} }
......
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
let idType = localStorage.getItem("storageIdType"); let idType = localStorage.getItem("storageIdType");
getprovinces(idType).then(res => { getprovinces(idType).then(res => {
closeLoading(this); closeLoading(this);
if (res.code == "000000") { if (res.code == "000000" && res.data) {
if (idType == 1) { if (idType == 1) {
vm.optionsRegion = operationData.setRegionOption2( vm.optionsRegion = operationData.setRegionOption2(
res.data.provinceList res.data.provinceList
...@@ -390,6 +390,7 @@ export default { ...@@ -390,6 +390,7 @@ export default {
}); });
this.deleteVisible = false this.deleteVisible = false
this.searchOrganization() this.searchOrganization()
this.$emit('refreshRenYuan')
} }
}).catch(() => { }).catch(() => {
this.deleteVisible = false this.deleteVisible = false
...@@ -411,8 +412,9 @@ export default { ...@@ -411,8 +412,9 @@ export default {
this.dialogOrg = false this.dialogOrg = false
}, },
addOrg() { addOrg() {
this.dialogOrg = false this.dialogOrg = false
this.initRange() this.searchOrganization()
this.$emit('refreshRenYuan')
} }
} }
} }
......
...@@ -270,6 +270,7 @@ export default { ...@@ -270,6 +270,7 @@ export default {
message: '删除成功!' message: '删除成功!'
}); });
this.deleteVisible = false this.deleteVisible = false
this.formOrganization.pageNum = 1;
this.getList() this.getList()
}).catch(() => { }).catch(() => {
this.$message.error('删除失败,请稍后重试'); this.$message.error('删除失败,请稍后重试');
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-step title="选择学员范围">3</el-step> <el-step title="选择学员范围">3</el-step>
</el-steps> </el-steps>
</el-col> </el-col>
<div> <div style="white-space: nowrap">
<div v-if="!canNext" class="dis-btn">下一步</div> <div v-if="!canNext" class="dis-btn">下一步</div>
<el-button class="dis-btn-b" v-if="active != 0 && projectStatus == 1 && isPreview != 1" size="small" @click="save">暂存</el-button> <el-button class="dis-btn-b" v-if="active != 0 && projectStatus == 1 && isPreview != 1" size="small" @click="save">暂存</el-button>
<el-button class="dis-btn-b" v-if="active !== 2 && canNext" size="small" type="primary" @click="nextStep">下一步</el-button> <el-button class="dis-btn-b" v-if="active !== 2 && canNext" size="small" type="primary" @click="nextStep">下一步</el-button>
...@@ -463,6 +463,8 @@ export default { ...@@ -463,6 +463,8 @@ export default {
// 查看时,点击下一步直接跳 // 查看时,点击下一步直接跳
if (vm.isPreview == 1) { if (vm.isPreview == 1) {
vm.active = 2; vm.active = 2;
this.getCircleList();
this.getCircleData();
return; return;
} }
// 调用项目信息中的下一步操作 // 调用项目信息中的下一步操作
......
...@@ -1962,19 +1962,20 @@ export default { ...@@ -1962,19 +1962,20 @@ export default {
//暂存步骤2 //暂存步骤2
if (this.formData.scopeType == 1) { if (this.formData.scopeType == 1) {
//小生态暂存 //小生态暂存
if (this.formEcology.ecology == "") { // if (this.formEcology.ecology == "") {
vm.$message.info("完成"); // vm.$message.info("完成");
} else { // } else {
let req = {}; // let req = {};
req.ecology = []; // req.ecology = [];
req.ecology[0] = this.formEcology.ecology; // req.ecology[0] = this.formEcology.ecology;
vm // vm
.POST("portal/scope/v1/" + this.projectId + "/organization", req) // .POST("portal/scope/v1/" + this.projectId + "/organization", req)
.then(res => { // .then(res => {
//console.log('设定小生态范围',res); // //console.log('设定小生态范围',res);
vm.$message.info(res.message); // vm.$message.info(res.message);
}); // });
} // }
this.sendCircleData('storage');
return; return;
} }
if (this.tagsRegion.length == 0) { if (this.tagsRegion.length == 0) {
...@@ -2124,7 +2125,7 @@ export default { ...@@ -2124,7 +2125,7 @@ export default {
// } // }
// }); // });
// 设定小圈范围 // 设定小圈范围
this.sendCircleData(); this.sendCircleData('next');
return; return;
} }
if (this.idType == 1) { if (this.idType == 1) {
...@@ -3345,13 +3346,15 @@ export default { ...@@ -3345,13 +3346,15 @@ export default {
}); });
}, },
// 提交、修改圈子数据 // 提交、修改圈子数据
sendCircleData() { sendCircleData(type = 'next') {
const { microecologyId, groupType, groupIds } = this.formCircle; const { microecologyId, groupType, groupIds } = this.formCircle;
if (!microecologyId) { if (!microecologyId) {
vm.$message({ if (type == 'next') {
type: "info", vm.$message({
message: "请选择关联小圈" type: "info",
}); message: "请选择关联小圈"
});
}
return; return;
} }
const postData = { const postData = {
...@@ -3364,9 +3367,16 @@ export default { ...@@ -3364,9 +3367,16 @@ export default {
vm.POST("portal/portalMicroEcology/relation/saveOrUpdate", postData).then(res => { vm.POST("portal/portalMicroEcology/relation/saveOrUpdate", postData).then(res => {
closeLoading(vm); closeLoading(vm);
if (res.code == "000000") { if (res.code == "000000") {
this.active++; if (type == 'next') {
this.stepData = [false, false, true]; this.active++;
this.tagDrop(); this.stepData = [false, false, true];
this.tagDrop();
} else if (type == 'storage') {
vm.$message({
type: "success",
message: "暂存成功"
});
}
} }
}); });
}, },
......
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
}); });
} }
if (row.roleId == 1) { if (row.roleId == 1) {
this.$confirm(`确定要将管理员${row.name}”降为普通成员?`, '提示', { this.$confirm(`确定要将管理员“${row.name}”降为普通成员?`, '提示', {
confirmButtonText: '确 定', confirmButtonText: '确 定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
top="5vh" top="5vh"
:before-close="handleClose" :before-close="handleClose"
> >
<checkBlackList :circleId="circleId" @addOrg="addOrg" @handleClose="handleClose"></checkBlackList> <checkBlackList v-if="dialogBlackList" :circleId="circleId" @addOrg="addOrg" @handleClose="handleClose"></checkBlackList>
<!-- :roleType="roleType" --> <!-- :roleType="roleType" -->
</el-dialog> </el-dialog>
</div> </div>
...@@ -112,9 +112,8 @@ export default { ...@@ -112,9 +112,8 @@ export default {
}, },
created() { created() {
vm = this; vm = this;
// 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;
......
...@@ -171,6 +171,7 @@ export default { ...@@ -171,6 +171,7 @@ export default {
this.tableOrganization = res.data.peoplesDtoList; this.tableOrganization = res.data.peoplesDtoList;
this.totalOrganization = res.data.total; this.totalOrganization = res.data.total;
this.initOrganizationStatus();
} else { } else {
// vm.$message.info(res.message); // vm.$message.info(res.message);
// vm.$message.info("操作失败,请重试"); // vm.$message.info("操作失败,请重试");
...@@ -184,6 +185,7 @@ export default { ...@@ -184,6 +185,7 @@ export default {
console.log("clear() enter") console.log("clear() enter")
clearBlackListCacheOrg(this.circleId) clearBlackListCacheOrg(this.circleId)
.then(()=>{ .then(()=>{
this.search();
}) })
.catch((err=>{console.log(err)})) .catch((err=>{console.log(err)}))
}, },
...@@ -411,6 +413,7 @@ export default { ...@@ -411,6 +413,7 @@ export default {
}, },
//机构table中勾选一个 //机构table中勾选一个
selectOrganization(selection, row) { selectOrganization(selection, row) {
console.log("selectOrganization() : " + row.name)
this.selectionList = selection; this.selectionList = selection;
let flag = false; let flag = false;
for (let i = 0; i < selection.length; i++) { for (let i = 0; i < selection.length; i++) {
...@@ -437,7 +440,7 @@ export default { ...@@ -437,7 +440,7 @@ export default {
}, },
selectableTableList(row, index) { selectableTableList(row, index) {
// if (this.status4Flag == 1) { // if (this.status4Flag == 1) {
if (row.status == 2) { if (row.status == 2 || !(row.roleId == null || row.roleId == 0)) {
return false; return false;
} }
return true; return true;
...@@ -475,14 +478,14 @@ export default { ...@@ -475,14 +478,14 @@ export default {
let hashTable = {}; let hashTable = {};
let newArr = []; let newArr = [];
for(let i=0,l=arr.length;i<l;i++) { for(let i=0,l=arr.length;i<l;i++) {
if(!hashTable[arr[i].id]) { if(!hashTable[arr[i].id] && arr[i].status != 2) {
hashTable[arr[i].id] = true; hashTable[arr[i].id] = true;
newArr.push(arr[i]); newArr.push(arr[i]);
} }
} }
return newArr; return newArr;
}, },
//删除已选中的tag //删除已选中的tag
handleClose(item) { handleClose(item) {
this.selectOrganization([],item) this.selectOrganization([],item)
this.$refs.multipleOrganization.toggleRowSelection(item); this.$refs.multipleOrganization.toggleRowSelection(item);
...@@ -536,6 +539,9 @@ export default { ...@@ -536,6 +539,9 @@ export default {
display: table-caption; display: table-caption;
overflow-y: scroll; overflow-y: scroll;
max-height: 500px; max-height: 500px;
&::-webkit-scrollbar() {
width: 2px !important;
}
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册