Commit 463e6515 by liangzhen

角色切换查询

1 parent d66efaec
......@@ -8,7 +8,7 @@
class="demo-ruleForm"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option label="2024年" value="2024"></el-option>
<el-option label="2023年" value="2023"></el-option>
<el-option label="2022年" value="2022"></el-option>
......@@ -16,10 +16,10 @@
</el-select>
</el-form-item>
<el-form-item label="后评估名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleForm.batchName" placeholder="请输入"></el-input>
<el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item label="后评估状态:" prop="postEvalState" class="fromItem">
<el-select v-model="ruleForm.postEvalState" placeholder="请选择">
<el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
<el-option label="未下发" value="0"></el-option>
<el-option label="已下发" value="1"></el-option>
<el-option label="已撤回" value="2"></el-option>
......@@ -30,10 +30,11 @@
<el-input
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item label="项目ID:" prop="projectId" class="fromItem">
<el-input v-model="ruleForm.projectId" placeholder="请输入"></el-input>
<el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item class="button">
......@@ -447,7 +448,7 @@ export default {
padding: 20px 10px;
margin-bottom: 20px;
.fromItem {
width: 24%;
min-width: 24%;
margin: 0 0.5%;
margin-bottom: 20px;
.el-input {
......@@ -459,6 +460,8 @@ export default {
}
/deep/ .el-form-item__content {
text-align: left;
display: inline-block;
margin-left: 10px !important;
}
/deep/ .el-form-item__label {
font-weight: bold;
......
......@@ -3,7 +3,7 @@
<div class="main">
<el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
<el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option label="2024年" value="2024"></el-option>
<el-option label="2023年" value="2023"></el-option>
<el-option label="2022年" value="2022"></el-option>
......@@ -11,10 +11,10 @@
</el-select>
</el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleForm.batchName" placeholder="请输入"></el-input>
<el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item label="后评估状态:" prop="postEvalState" class="fromItem">
<el-select v-model="ruleForm.postEvalState" placeholder="请选择">
<el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
<el-option label="未下发" value="0"></el-option>
<el-option label="已下发" value="1"></el-option>
<el-option label="已撤回" value="2"></el-option>
......@@ -364,7 +364,7 @@ export default {
padding: 20px 10px;
margin-bottom: 20px;
.fromItem {
width: 24%;
min-width: 24%;
margin: 0 0.5%;
margin-bottom: 20px;
.el-input {
......@@ -376,6 +376,8 @@ export default {
}
/deep/ .el-form-item__content {
text-align: left;
display: inline-block;
margin-left: 10px !important;
}
/deep/ .el-form-item__label {
font-weight: bold;
......
......@@ -174,6 +174,7 @@ export default {
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
.Btn {
width:calc(100% - 246px);
position:fixed;
......
......@@ -237,17 +237,15 @@ export default {
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
.bottom {
width: 99%;
position: absolute;
// height: 80px;
bottom: 130px;
width:calc(100% - 246px);
position:fixed;
bottom: -15px;
right: 0;
// left: 50%;
z-index: 100;
// transform: translate(-50%);
background-color: #f5f5f6;
line-height: 62px;
line-height: 80px;
.textarea {
margin-top: 1px;
}
......@@ -316,9 +314,7 @@ export default {
background-color: #f5f5f6;
padding: 10px;
padding-top: 0;
// display: flex;
// padding: 0 20px;
padding-bottom: 200px;
padding-bottom: 10px;
position: relative;
}
......
......@@ -33,8 +33,8 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="项目ID:" prop="projectId" class="fromItem" clearable>
<el-input v-model="ruleForm.projectId" placeholder="请输入"></el-input>
<el-form-item label="项目ID:" prop="projectId" class="fromItem" >
<el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item class="button">
......
......@@ -538,7 +538,17 @@ export default {
message: {},
};
},
watch:{
// 监听路由对象中的参数部分
'$route.params': {
immediate: true,
handler(newParams, oldParams) {
this.submitForm();
}
}
},
mounted() {
console.log('author')
this.submitForm();
},
methods: {
......
......@@ -320,6 +320,15 @@ export default {
dialog: false,
};
},
watch:{
// 监听路由对象中的参数部分
'$route.params': {
immediate: true,
handler(newParams, oldParams) {
this.submitForm();
}
}
},
mounted() {
this.submitForm();
},
......
......@@ -189,10 +189,10 @@ export default {
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
.bottom {
width:calc(100% - 246px);
position:fixed;
// height: 80px;
bottom: -15px;
right: 0;
z-index: 100;
......@@ -267,10 +267,6 @@ export default {
background-color: #f5f5f6;
padding: 10px;
padding-top: 0;
// display: flex;
// padding: 0 20px;
padding-bottom: 200px;
position: relative;
}
.tableTitle {
......
<template>
<div>
<iframe name="iframeName" id="iframeId" src="./test.html"></iframe>
</div>
</template>
<script>
export default {
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -38,7 +38,7 @@
<div id="hpg" @click="navigateToChild('5','/mainLayout')" :class="active=='5'?'active':''">
<span class="between iconfont" >&#xe612;</span>&nbsp;后评估管控中心
</div>
<div id="zhfx" :class="active=='6'?'active':''">
<div id="zhfx" :class="active=='6'?'active':''" @click="navigateToChild('6','/mainLayout')">
<span class="between iconfont">&#xe603;</span>&nbsp;综合分析中心
</div>
<div id="xtgl" :class="active=='7'?'active':''">
......
<template>
<div class="layout">
<LeftBar class="bar" :authority='authority'></LeftBar>
<LeftBar class="bar" :authority="authority" :autho="autho"></LeftBar>
<ContinerView class="continer" id="myElement">
<router-view></router-view>
</ContinerView>
<div class="changeqx">
<!-- <el-dropdown @command="handleCommand">
<el-button type="primary">
<div style="margin-right: 35px" >权限切换</div>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="(item) in submenu"
:value="item.id"
:command="item.id"
:key="item.id">{{item.menu}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> -->
<el-menu
<el-menu
router
class="el-menu-vertical-demo"
:unique-opened="true"
@open="handleOpen"
>
<el-submenu
v-for="(item, index) in menuList"
......@@ -30,7 +18,6 @@
class="submenu1"
>
<template slot="title">
<span>{{ item.name }}</span>
</template>
<el-submenu
......@@ -40,17 +27,16 @@
class="submenu2"
>
<template slot="title">
<span >{{ item2.name }}</span>
<span>{{ item2.name }}</span>
</template>
<el-menu-item
v-for="(item3, index3) in item2.children"
:key="index3"
:index="item3.url"
class="submenu3"
@click="clicksub(item2,item3)"
@click="clicksub(item2, item3)"
>
<span class="title3">{{ item3.name }}</span >
<span class="title3">{{ item3.name }}</span>
</el-menu-item>
</el-submenu>
</el-submenu>
......@@ -71,100 +57,97 @@ export default {
data() {
return {
title: "确认更改",
submenu:[
submenu: [
{
id:1,
menu:'省公司管理'
id: 1,
menu: "省公司管理",
},
{
id:2,
menu:'省公司专家'
id: 2,
menu: "省公司专家",
},
{
id:3,
menu:'项目建设单位专员'
id: 3,
menu: "项目建设单位专员",
},
],
menuList:[
{
name: "权限切换",
url: "",
children: [
{
name: "省公司管理",
url: "",
id:1,
children: [
{
name: "张宇",
code:"sgtig_zhangyu",
url: "/mainLayout/auxiliarySelection",
children: [],
},
],
},
{
name: "省公司专家",
id:2,
children: [
{
name: "李一鸣",
code:"sgtig_liyiming",
children: [],
},
{
name: "王美玲",
code:"sgtig_wangmeiling",
children: [],
},
],
},
{
name: "项目建设单位专责",
id:3,
children: [
{
name: "孟德建",
code:"sgtig_mengdejian",
children: [],
},
{
name: "李文博",
code:"sgtig_liwenbo",
children: [],
},
{
name: "章轲",
code:"sgtig_zhangke",
children: [],
},
],
},
{
name: "超级管理员",
url: "",
id:99,
children: [
{
name: "魏征",
code:"sgtig_weizheng",
children: [],
},
],
},
],
},
],
authority:null,
menuList: [
{
name: "权限切换",
url: "",
children: [
{
name: "省公司管理",
url: "",
id: 1,
children: [
{
name: "张宇",
code: "sgtig_zhangyu",
url: "/mainLayout/auxiliarySelection",
children: [],
},
],
},
{
name: "省公司专家",
id: 2,
children: [
{
name: "李一鸣",
code: "sgtig_liyiming",
children: [],
},
{
name: "王美玲",
code: "sgtig_wangmeiling",
children: [],
},
],
},
{
name: "项目建设单位专责",
id: 3,
children: [
{
name: "孟德建",
code: "sgtig_mengdejian",
children: [],
},
{
name: "李文博",
code: "sgtig_liwenbo",
children: [],
},
{
name: "章轲",
code: "sgtig_zhangke",
children: [],
},
],
},
{
name: "超级管理员",
url: "",
id: 99,
children: [
{
name: "魏征",
code: "sgtig_weizheng",
children: [],
},
],
},
],
},
],
authority: null,
autho:null
};
},
mounted() {
......@@ -186,19 +169,19 @@ export default {
},
handleCommand(item) {
console.log(item,"item")//下拉菜单里面的值
console.log(item, "item"); //下拉菜单里面的值
// this.authority=item
},
handleOpen(e, a){
console.log(e, a,'e, ae, a')
handleOpen(e, a) {
// console.log(e, a, "e, ae, a");
},
clicksub(a, b) {
console.log("选怎", a, b);
sessionStorage.setItem("author", b.code);
sessionStorage.setItem("authorName", a.id);
this.authority = a.id;
this.autho= b.code
},
clicksub(a,b){
console.log('选怎',a,b)
sessionStorage.setItem('author',b.code)
sessionStorage.setItem('authorName',a.id)
this.authority=a.id
}
},
};
</script>
......@@ -218,14 +201,14 @@ export default {
}
.continer {
width: 100%;
height: 100%;
height: 100%;
// flex: 1;
box-sizing: border-box;
// overflow: auto;
// overflow: auto;
}
.changeqx{
.changeqx {
position: absolute;
right:30px;
right: 30px;
top: 5px;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!