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

修改外部用户成员管理初始化数据和解散圈子提示

上级 6f74b0f9
...@@ -130,7 +130,8 @@ ...@@ -130,7 +130,8 @@
let circleId = this.formData.id; let circleId = this.formData.id;
this.getRegionOption(); this.getRegionOption();
this.listLevels(); this.listLevels();
this.getOrganization(); // this.getOrganization();
// this.searchOrganization();
this.activeName = "second"; this.activeName = "second";
this.formOrganization.pageNum = 1; this.formOrganization.pageNum = 1;
this.formOrganization.name = ""; this.formOrganization.name = "";
...@@ -173,8 +174,9 @@ ...@@ -173,8 +174,9 @@
vm.optionsRegion = operationData.setRegionOption3( vm.optionsRegion = operationData.setRegionOption3(
res.data.provinceList res.data.provinceList
); );
this.getOrganization();
} }
} else { } else {
this.$message(res.message); this.$message(res.message);
} }
...@@ -230,7 +232,7 @@ ...@@ -230,7 +232,7 @@
if (setList.length > 0) { if (setList.length > 0) {
let req = { let req = {
ids: setList, ids: setList,
projectId: this.circleId, circleId: this.circleId,
type: typeStatus type: typeStatus
}; };
openLoading(vm); openLoading(vm);
...@@ -292,9 +294,23 @@ ...@@ -292,9 +294,23 @@
//查询机构列表 //查询机构列表
getOrganization() { getOrganization() {
let idType = localStorage.getItem("storageIdType"); let idType = localStorage.getItem("storageIdType");
let administrativeIdItem = "";
// 如果是外部用户(2),只能看到所在省份的数据
if(idType == 2){
let optionRegionArray = new Array();
optionRegionArray.push(this.optionsRegion[0].provinceId);
administrativeIdItem = operationData.setAdministrativeId(
optionRegionArray
);
}
console.log(administrativeIdItem);
// let administrativeIdItem = "";
let req = { let req = {
circleId: this.circleId, circleId: this.circleId,
districtIds: "", districtIds: administrativeIdItem,
orgLevel:"", orgLevel:"",
orgName: this.formOrganization.name, orgName: this.formOrganization.name,
pageNo: this.formOrganization.pageNum, pageNo: this.formOrganization.pageNum,
...@@ -419,4 +435,4 @@ ...@@ -419,4 +435,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
...@@ -114,9 +114,10 @@ export default { ...@@ -114,9 +114,10 @@ export default {
initPrivilege(){ initPrivilege(){
let idType = localStorage.getItem('storageIdType'); let idType = localStorage.getItem('storageIdType');
if(idType == null || idType == ""){ // if(idType == null || idType == ""){
idType = 1; // idType = 2;
} // localStorage.setItem('storageIdType', idType);
// }
this.searchForm.userType = idType; this.searchForm.userType = idType;
// 内部用户:运营人员 // 内部用户:运营人员
...@@ -279,7 +280,7 @@ export default { ...@@ -279,7 +280,7 @@ export default {
}, },
//解散圈子 //解散圈子
deleteRange(row) { deleteRange(row) {
this.$confirm(`确定解散“${row.name}”吗?`, '解散后圈子内的动态/直播等内容将不会保存', { this.$confirm(`解散后圈子内的动态/直播等内容将不会保存`, '确定解散“${row.name}”吗?', {
confirmButtonText: '解散', confirmButtonText: '解散',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册