提交 a758ea8a 编写于 作者: yi.li's avatar yi.li

Merge branch 'dev-yqLive-20200611' of...

Merge branch 'dev-yqLive-20200611' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-yqLive-20200611
...@@ -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
...@@ -370,15 +370,15 @@ export default { ...@@ -370,15 +370,15 @@ export default {
}); });
// vm.search(); // vm.search();
vm.searchList(); vm.searchList();
if (res.message != "success") { // if (res.message != "success") {
vm.$message({ // vm.$message({
message: res.message, // message: res.message,
type: "warning" // type: "warning"
}); // });
} // }
} else { } else {
// vm.$message.info(res.message); // vm.$message.info(res.message);
vm.$message.info("操作失败,请重试"); vm.$message.error("操作失败,请重试");
} }
}) })
.catch(function(error) { .catch(function(error) {
......
...@@ -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;
// 内部用户:运营人员 // 内部用户:运营人员
...@@ -167,10 +168,11 @@ export default { ...@@ -167,10 +168,11 @@ export default {
this.tableData = []; this.tableData = [];
} }
}).catch((error) => { }).catch((error) => {
this.$message({ // this.$message({
message: error, // message: error,
type: 'error' // type: 'error'
}); // });
this.$message.error("请重试");
}) })
}, },
...@@ -233,20 +235,27 @@ export default { ...@@ -233,20 +235,27 @@ export default {
this.searchList(); this.searchList();
} else { } else {
if(status == "40"){ if(status == "40"){
this.$message.success("下线失败,请重试"); this.$message.error("下线失败,请重试");
} else if(status == "30") { } else if(status == "30") {
this.$message.success("上线失败,请重试"); this.$message.error("上线失败,请重试");
}else if(status == "50") { }else if(status == "50") {
this.$message.success("解散失败,请重试"); this.$message.error("解散失败,请重试");
} }
} }
}).catch((error) => { }).catch((error) => {
this.$message({ // this.$message({
message: error, // message: error,
type: 'error' // type: 'error'
}); // });
if(status == "40"){
this.$message.error("下线失败,请重试");
} else if(status == "30") {
this.$message.error("上线失败,请重试");
}else if(status == "50") {
this.$message.error("解散失败,请重试");
}
}) })
...@@ -279,7 +288,7 @@ export default { ...@@ -279,7 +288,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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册