Commit 463e6515 by liangzhen

角色切换查询

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