Commit 96e74a8e by xue_wengang

用户管理

parent fe1bd88e
...@@ -2683,7 +2683,7 @@ ...@@ -2683,7 +2683,7 @@
:default-sort="{ prop: 'date', order: 'descending' }" :default-sort="{ prop: 'date', order: 'descending' }"
@sort-change="sortChange" @sort-change="sortChange"
@row-click="rowClick" @row-click="rowClick"
indent="20" indent=20
> >
<el-table-column <el-table-column
type="selection" type="selection"
......
src/views/index/img/daohang.png

75.3 KB | W: | H:

src/views/index/img/daohang.png

75.6 KB | W: | H:

src/views/index/img/daohang.png
src/views/index/img/daohang.png
src/views/index/img/daohang.png
src/views/index/img/daohang.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -26,14 +26,22 @@ ...@@ -26,14 +26,22 @@
</div> </div>
<div style="position: absolute; right: 40px; top: 35px; color: #9fbcda"> <div style="position: absolute; right: 40px; top: 35px; color: #9fbcda">
<span <span
style="padding-right: 20px; font-family: 'DIN'; font-size: 18px" @click="toIndex"
>{{ dateTime }}</span style="cursor: pointer; font-size: 15px; color: #e0d117"
> >
<span style="padding-right: 20px; font-size: 18px">|</span>
<span @click="toIndex" style="cursor: pointer; font-size: 15px">
<i style="padding-right: 10px" class="el-icon-s-home"></i> <i style="padding-right: 10px" class="el-icon-s-home"></i>
<span style="font-size: 16px">系统首页</span> <span style="font-size: 17px; padding-right: 20px">系统首页</span>
</span> </span>
<span style="padding-right: 20px; font-size: 18px">|</span>
<span style="font-family: 'DIN'; font-size: 18px">{{
dateTime
}}</span>
<i
style="padding-left: 10px; font-size: 25px"
class="el-icon-switch-button"
title="注销"
@click="loginOut"
></i>
</div> </div>
</div> </div>
<div v-if="istabShow == 1" class="daping_box_content"> <div v-if="istabShow == 1" class="daping_box_content">
...@@ -1181,6 +1189,12 @@ export default { ...@@ -1181,6 +1189,12 @@ export default {
}, },
}, },
methods: { methods: {
loginOut() {
sessionStorage.setItem("token", "");
sessionStorage.setItem("userInfo", "");
this.$store.commit("user/SET_ROLES", []);
window.location.href = 'http://zhyy.xzxt.an:8080/index'
},
/* 电诈start */ /* 电诈start */
//电诈案件涉案金额 //电诈案件涉案金额
dxzpsajeInit() { dxzpsajeInit() {
...@@ -4124,9 +4138,10 @@ export default { ...@@ -4124,9 +4138,10 @@ export default {
*/ */
toIndex() { toIndex() {
let Base64 = require("js-base64").Base64; let Base64 = require("js-base64").Base64;
let path = `http://zhyy.xzxt.an:8080/toGzzmYanshou?jumpDa=${Base64.encode( // let path = `http://zhyy.xzxt.an:8080/toGzzmYanshou?jumpDa=${Base64.encode(
JSON.parse(window.sessionStorage.getItem("userInfo")).identitycard // JSON.parse(window.sessionStorage.getItem("userInfo")).identitycard
)}`; // )}`;
let path = `http://zhyy.xzxt.an:8080/toHomePage`;
// toHomePageVue // toHomePageVue
//let path = `http://192.168.1.124:9090/toHomePage?jumpDa=${Base64.encode(JSON.parse(window.sessionStorage.getItem("userInfo")).identitycard)}`; //let path = `http://192.168.1.124:9090/toHomePage?jumpDa=${Base64.encode(JSON.parse(window.sessionStorage.getItem("userInfo")).identitycard)}`;
window.open(path, "_blank"); window.open(path, "_blank");
...@@ -5400,7 +5415,7 @@ export default { ...@@ -5400,7 +5415,7 @@ export default {
bottom: 260px; bottom: 260px;
right: 13%; right: 13%;
} }
.disClick{ .disClick {
cursor: not-allowed; cursor: not-allowed;
} }
</style> </style>
......
...@@ -222,9 +222,10 @@ export default { ...@@ -222,9 +222,10 @@ export default {
editMenu() { editMenu() {
if (this.selectedId.length > 0) { if (this.selectedId.length > 0) {
this.dialogVisible = true; this.dialogVisible = true;
let arr = new Set([...this.parentArr]) let arr = new Set([...this.parentArr]);
this.selec = new Set(this.selectedId[0].menuListId.filter(x => !arr.has(x))); this.selec = new Set(
console.log(difference); this.selectedId[0].menuListId.filter((x) => !arr.has(x))
);
//this.selec = this.selectedId[0].menuListId; //this.selec = this.selectedId[0].menuListId;
} else { } else {
this.$message.error("请选择角色"); this.$message.error("请选择角色");
...@@ -328,9 +329,14 @@ export default { ...@@ -328,9 +329,14 @@ export default {
}, },
//全选 //全选
handleCheckAllChange(val) { handleCheckAllChange(val) {
debugger;
if (this.checkAll) { if (this.checkAll) {
this.treeData.forEach((item) => { this.treeData.forEach((item) => {
this.selectedTree.push(item.id); if (item.hasChildren) {
this.handleChildren(item.children);
} else {
this.selectedTree.push(item.id);
}
}); });
this.$refs.tree.setCheckedNodes(this.treeData); this.$refs.tree.setCheckedNodes(this.treeData);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment