Commit fe664ebd authored by zhengke's avatar zhengke

增加权限

parent 412e967d
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
</div> </div>
</div> </div>
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" label="新增文件夹" @click="showExamFolder(null)" /> <q-btn color="accent" size="sm" v-if="IsCreateFolder" class="q-mr-md" label="新增文件夹" @click="showExamFolder(null)" />
<q-btn-dropdown flat size="xs" color="dark" label="新增试卷" style="margin-left:10px;"> <q-btn-dropdown flat size="xs" color="dark" label="新增试卷" v-if="IsCreatePaper" style="margin-left:10px;">
<q-list> <q-list>
<q-item clickable v-close-popup @click="CreatePaper()"> <q-item clickable v-close-popup @click="CreatePaper()">
<q-item-section> <q-item-section>
...@@ -254,10 +254,21 @@ ...@@ -254,10 +254,21 @@
isShowExamFolder: false, //是否显示新增文件夹 isShowExamFolder: false, //是否显示新增文件夹
isShowMoveFolder: false, //是否显示 isShowMoveFolder: false, //是否显示
examObj: {}, //弹窗对象 examObj: {}, //弹窗对象
navList: [] //导航列表 navList: [], //导航列表
IsCreateFolder:false, //是否试卷创建文件夹权限
IsCreatePaper:false //是否创建试卷权限
} }
}, },
created() { created() {
let userinfo = this.getLocalStorage();
userinfo.ActionMenuList.map(x=>{//判断权限
if(x.FunctionCode == "Paper_CreateManager"){//判断是否试卷创建文件夹权限
this.IsCreateFolder = true;
}
if(x.FunctionCode == "Paper_CreatePaper"){//判断是否创建
this.IsCreatePaper = true;
}
})
}, },
mounted() { mounted() {
......
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