提交 79b1bc22 编写于 作者: kai.wang's avatar kai.wang

Merge branch 'dev-liveSix-20200817' of...

Merge branch 'dev-liveSix-20200817' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-liveSix-20200817
...@@ -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>
...@@ -91,6 +94,9 @@ export default { ...@@ -91,6 +94,9 @@ export default {
}, },
getRole() { getRole() {
this.role = localStorage.getItem("highMainManager") || localStorage.getItem("mainManager") || (localStorage.getItem("storageIdType") == 1 ? 1 : 0) this.role = localStorage.getItem("highMainManager") || localStorage.getItem("mainManager") || (localStorage.getItem("storageIdType") == 1 ? 1 : 0)
},
refreshRenYuan() {
this.$refs.renyaun.initRange()
} }
} }
} }
......
...@@ -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
...@@ -412,7 +413,8 @@ export default { ...@@ -412,7 +413,8 @@ export default {
}, },
addOrg() { addOrg() {
this.dialogOrg = false this.dialogOrg = false
this.initRange() this.searchOrganization()
this.$emit('refreshRenYuan')
} }
} }
} }
......
...@@ -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,7 +478,7 @@ export default { ...@@ -475,7 +478,7 @@ 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]);
} }
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册