Commit d649f9bc authored by 黄奎's avatar 黄奎

页面修改

parent bc536633
...@@ -140,7 +140,9 @@ ...@@ -140,7 +140,9 @@
</div> </div>
</template> </template>
<script> <script>
import {
GetClassTypePageList
} from "../../../api/system/index";
import { import {
GetStudentList GetStudentList
} from "../../../api/course/class"; } from "../../../api/course/class";
...@@ -226,24 +228,21 @@ ...@@ -226,24 +228,21 @@
DepartmentList: [] //部门列表 DepartmentList: [] //部门列表
}; };
}, },
computed: mapState({ computed: {
//是否有下载权限 //获取计算后的问题分类(读音选择题、汉字选择题等)
isReturnperiods(state) { isReturnperiods() {
if ( let UserInfo = this.getLocalStorage();
state.user.userInfo && let isAuth = false;
state.user.userInfo.ActionMenuList && if (UserInfo.ActionMenuList && UserInfo.ActionMenuList.length > 0) {
state.user.userInfo.ActionMenuList.length > 0 UserInfo.ActionMenuList.forEach(x => {
) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Edit_Returnperiods") { if (x.FunctionCode == "Edit_Returnperiods") {
return x; isAuth = true;
} }
}); });
return action && action.FunctionCode;
} }
return false; return isAuth;
} }
}), },
created() { created() {
this.getCustomFrom(); this.getCustomFrom();
this.queryDeptList(); this.queryDeptList();
......
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