|
@@ -17,7 +17,7 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <span v-if="isAdmin">
|
|
|
+ <span>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
@@ -81,7 +81,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <div class="pull-left" v-if="isAdmin">
|
|
|
+ <div class="pull-left">
|
|
|
<el-button
|
|
|
@click="settingMarkWork(scope.row)"
|
|
|
type="primary"
|
|
@@ -228,7 +228,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState } from "vuex";
|
|
|
-import { CORE_API, MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
|
|
|
+import { MARKING_API, DATA_PROCESS_API } from "@/constants/constants";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -263,7 +263,6 @@ export default {
|
|
|
examTitle: "",
|
|
|
loading: false,
|
|
|
closeClickModal: false,
|
|
|
- isAdmin: false,
|
|
|
saveLoading: false,
|
|
|
oldWorkName: ""
|
|
|
};
|
|
@@ -578,46 +577,10 @@ export default {
|
|
|
},
|
|
|
update(selected) {
|
|
|
this.formMarkWork.examId = selected;
|
|
|
- },
|
|
|
- getUserPrivileges() {
|
|
|
- var url = CORE_API + "/rolePrivilege/getUserPrivileges";
|
|
|
- let config = {
|
|
|
- url: url,
|
|
|
- method: "post",
|
|
|
- params: {
|
|
|
- groupCode: "MARK_WORK_MENUS",
|
|
|
- full: false
|
|
|
- },
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/x-www-form-urlencoded"
|
|
|
- }
|
|
|
- };
|
|
|
- this.$http(config)
|
|
|
- .then(response => {
|
|
|
- let temp = response.data;
|
|
|
- for (let menu in temp) {
|
|
|
- let menuItem = temp[menu];
|
|
|
- if (menuItem.ext1 == "button") {
|
|
|
- sessionStorage.setItem(menuItem.code, true);
|
|
|
- }
|
|
|
- }
|
|
|
- if (sessionStorage.getItem("AdminButtonShow")) {
|
|
|
- this.isAdmin = true;
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(response => {
|
|
|
- this.$notify({
|
|
|
- showClose: true,
|
|
|
- message: response.data,
|
|
|
- type: "error"
|
|
|
- });
|
|
|
- });
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getUserPrivileges();
|
|
|
this.initMarkWorkData();
|
|
|
- //this.getExamSelect();
|
|
|
}
|
|
|
};
|
|
|
</script>
|