Commit e2f86dbe by Yang

问题修复--更新

parent dc325ac6
......@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>court-oa-meeting</title>
<title>内部信息网</title>
<!-- <title></title> -->
</head>
<body>
......
......@@ -127,3 +127,12 @@ export function enableTurnOnSystem(data) {
})
}
// // 干警栏目
// export function getBoardAndSubAllNews(data) {
// return request({
// url: `/websiteCluster/web/getBoardAndSubAllNews`,
// method: 'POST',
// data,
// })
// }
......@@ -233,3 +233,36 @@ export const sendBatchAssRemindSms = (data) => {
})
}
//获取指定栏目审核人
export const getAssUserList = (data) => {
return request({
url: 'websiteCluster/website/getAssUserList',
method: 'POST',
data
})
}
export const getAssUserRecently = (data) => {
return request({
url: 'websiteCluster/website/getAssUserRecently',
method: 'POST',
data
})
}
export const boardList = (data) => {
return request({
url: 'websiteCluster/website/boardList',
method: 'POST',
data
})
}
export const boardDetail = (data) => {
return request({
url: 'websiteCluster/board/boardDetail',
method: 'POST',
data
})
}
......@@ -87,9 +87,9 @@ import { mapGetters, mapMutations } from "vuex";
import { setUserInfo } from "@/utils/auth";
import { getInfo,logout } from "@/api/login";
import { removeToken,getToken } from "@/utils/auth";
import {
// import {
// enableTurnOnSystem
} from "@/api/homePage.js"
// } from "@/api/homePage.js"
export default {
components: {
......
......@@ -345,7 +345,8 @@ export default {
path: "/manage",
meta: { title: "信息发布系统" }
}
]
],
isAdmmin: false // 当前用户是否为高院内部人员
};
},
computed: {
......@@ -362,7 +363,6 @@ export default {
this.getSubLevelBoard(2, 130); //法院业务
},
methods: {
//1、点击一级导航
menuRouterClick(item, index) {
console.log("menuRouterClick-index==", index);
......@@ -388,9 +388,17 @@ export default {
} else {
enableTurnOnSystem().then(res => {
if (res.success) {
this.$router.push({
path: item.path //跳转路由
});
res.data == "K00"
? (this.isAdmmin = true)
: (this.isAdmmin = false);
if (!this.isAdmmin) {
this.$message.error("无访问权限");
} else {
this.$router.push({
path: item.path //跳转路由
});
}
} else {
this.$message({
message: "您的账号没有权限!",
......
......@@ -388,12 +388,13 @@ export default {
},
// 查看详情
setParams(val){
this.$router.push({
path:'/detail',//跳转路由
query:{//参数对象
newsId:val.newsId
}
});
window.open(`/#/detail?newsId=${val.newsId}`,'_blank');
// this.$router.push({
// path:'/detail',//跳转路由
// query:{//参数对象
// newsId:val.newsId
// }
// });
},
},
};
......
<template>
<div>
<el-dialog :visible.sync="visible" title="提交审核" width="380px">
<div>
<el-input
type="textarea"
disabled
placeholder="请选择用户"
:value="selectUser.nickName || ''"
></el-input>
</div>
<div class="mt-10 text-center">
<el-button @click="getAssUserRecently" size="mini"
>最近联系人</el-button
>
<el-button @click="userShow = true" size="mini">选择审核用户</el-button>
<el-button @click="selectUser = {}" size="mini">清空</el-button>
</div>
<div class="mt-15 text-center">
<el-button @click="submit" size="mini" type="primary"
>确认</el-button
>
<el-button @click="visible = false" size="mini" type="danger"
>关闭</el-button
>
</div>
</el-dialog>
<el-dialog :visible.sync="userShow" title="选择审核人" width="380px">
<div>
<div>
<div class="title">板块负责人</div>
<div
v-for="(item, index) in assUserList.moderatorList"
:key="index"
class="list"
@click="select(item)"
>
{{ item.nickName }}
</div>
</div>
<div class="mt-20">
<div class="title">板块审核人</div>
<div
v-for="(item, index) in assUserList.assessorList"
:key="index"
class="list"
@click="select(item)"
>
{{ item.nickName }}
</div>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import { getAssUserList, getAssUserRecently } from "@/api/manage/manage";
export default {
data() {
return {
visible: false,
param: {},
//审核列表
userShow: false,
assUserList: {},
selectUser: {},
};
},
created() {},
methods: {
//显示审核框
dialogShow(param) {
console.log(param);
this.visible = true;
this.param = param;
this.getAssUserList();
},
//隐藏提交审核框
dialogClose() {
this.visible = false;
},
select(item) {
this.selectUser = item;
console.log(item);
this.userShow = false;
},
//获取审核人员
getAssUserList() {
getAssUserList({
boardId: this.param.boardId,
}).then((res) => {
if (res) {
this.assUserList = res.data;
} else {
this.$message.error(res.errMsg);
}
});
},
//最近审核人
getAssUserRecently() {
getAssUserRecently({
boardId: this.param.boardId,
}).then((res) => {
if (res.success) {
this.selectUser = res.data.id ? res.data : {};
} else {
this.$message.error(res.errMsg);
}
});
},
//提交
submit() {
this.$emit("submit", this.selectUser);
this.dialogClose();
},
},
};
</script>
<style lang="scss" scoped>
::v-deep {
.el-textarea__inner {
font-size: 18px;
}
.el-textarea.is-disabled .el-textarea__inner {
color: #303133;
}
}
.title {
line-height: 30px;
color: #333333;
background: #eeeeee;
text-align: center;
}
.list {
line-height: 30px;
// border-radius: 4px;
padding: 0 10px;
margin-top: 5px;
// text-align: center;
}
.list:hover {
background: #e6a23c;
// border-radius: 4px;
color: #ffffff;
font-weight: bold;
cursor: pointer;
}
</style>
\ No newline at end of file
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