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

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

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