zhangjie 2 anos atrás
pai
commit
7bae62a447

+ 1 - 1
card/assets/styles/card-temp.css

@@ -279,7 +279,7 @@
   bottom: 40px;
 }
 .page-number-rect {
-  left: 152px;
+  left: 252px;
 }
 .page-number-rect-list {
   font-size: 0;

+ 89 - 88
src/components/base/CollegeSelect.vue

@@ -1,88 +1,89 @@
-<template>
-  <el-select
-    v-model="selected"
-    class="college-select"
-    :placeholder="placeholder"
-    filterable
-    :clearable="clearable"
-    :disabled="disabled"
-    @change="select"
-  >
-    <el-option
-      v-for="item in optionList"
-      :key="item.id"
-      :value="item.id"
-      :label="item.name"
-    >
-    </el-option>
-  </el-select>
-</template>
-
-<script>
-import {
-  unitQueryByType,
-  organizationFindByTypeList
-} from "../../modules/base/api";
-
-export default {
-  name: "college-select",
-  props: {
-    disabled: { type: Boolean, default: false },
-    placeholder: { type: String, default: "请选择" },
-    value: { type: [Number, String], default: "" },
-    clearable: { type: Boolean, default: true },
-    semesterId: { type: String, default: "" },
-    cascader: { type: Boolean, default: false }
-  },
-  data() {
-    return {
-      optionList: [],
-      selected: ""
-    };
-  },
-  watch: {
-    value: {
-      immediate: true,
-      handler(val) {
-        this.selected = val;
-      }
-    },
-    semesterId(val, oldval) {
-      if (val !== oldval) {
-        this.search("");
-        this.$emit("input", "");
-        this.$emit("change", {});
-      }
-    }
-  },
-  created() {
-    this.search();
-  },
-  methods: {
-    async search() {
-      this.optionList = [];
-      if (this.cascader && !this.semesterId) return;
-
-      if (this.cascader) {
-        const res = await unitQueryByType(
-          {
-            semesterId: this.semesterId
-          },
-          "COLLEGE"
-        );
-        this.optionList = res;
-      } else {
-        const res = await organizationFindByTypeList({ orgType: "COLLEGE" });
-        this.optionList = res;
-      }
-    },
-    select() {
-      this.$emit("input", this.selected);
-      this.$emit(
-        "change",
-        this.optionList.find(item => item.id === this.selected)
-      );
-    }
-  }
-};
-</script>
+<template>
+  <el-select
+    v-model="selected"
+    class="college-select"
+    :placeholder="placeholder"
+    filterable
+    :clearable="clearable"
+    :disabled="disabled"
+    @change="select"
+  >
+    <el-option
+      v-for="item in optionList"
+      :key="item.id"
+      :value="item.id"
+      :label="item.name"
+    >
+    </el-option>
+  </el-select>
+</template>
+
+<script>
+import {
+  unitQueryByType
+  // organizationFindByTypeList
+} from "../../modules/base/api";
+
+export default {
+  name: "college-select",
+  props: {
+    disabled: { type: Boolean, default: false },
+    placeholder: { type: String, default: "请选择" },
+    value: { type: [Number, String], default: "" },
+    clearable: { type: Boolean, default: true },
+    semesterId: { type: String, default: "" },
+    cascader: { type: Boolean, default: false }
+  },
+  data() {
+    return {
+      optionList: [],
+      selected: ""
+    };
+  },
+  watch: {
+    value: {
+      immediate: true,
+      handler(val) {
+        this.selected = val;
+      }
+    },
+    semesterId(val, oldval) {
+      if (val !== oldval) {
+        this.search("");
+        this.$emit("input", "");
+        this.$emit("change", {});
+      }
+    }
+  },
+  created() {
+    this.search();
+  },
+  methods: {
+    async search() {
+      this.optionList = [];
+      if (this.cascader && !this.semesterId) return;
+
+      if (this.cascader) {
+        const res = await unitQueryByType(
+          {
+            semesterId: this.semesterId
+          },
+          "COLLEGE"
+        );
+        this.optionList = res;
+      } else {
+        // const res = await organizationFindByTypeList({ orgType: "COLLEGE" });
+        const res = await unitQueryByType({}, "COLLEGE");
+        this.optionList = res;
+      }
+    },
+    select() {
+      this.$emit("input", this.selected);
+      this.$emit(
+        "change",
+        this.optionList.find(item => item.id === this.selected)
+      );
+    }
+  }
+};
+</script>

+ 78 - 0
src/constants/shortcutData.js

@@ -0,0 +1,78 @@
+export default [
+  {
+    router: "ExamTaskManage",
+    name: "命题任务管理",
+    icon: "",
+    params: {}
+  },
+  {
+    router: "TaskApplyManage",
+    name: "入库申请",
+    icon: "",
+    params: {}
+  },
+  {
+    router: "TaskReviewManage",
+    name: "入库审核",
+    icon: "",
+    params: {}
+  },
+  {
+    router: "TaskPaperManage",
+    name: "卷库查询",
+    icon: "",
+    params: {}
+  },
+  {
+    router: "PrintPlanManage",
+    name: "印刷计划管理",
+    icon: "",
+    params: {}
+  },
+  {
+    router: "MarkerLogin",
+    name: "评卷员阅卷",
+    icon: "",
+    params: {
+      trigger: "MARKER"
+    }
+  },
+  {
+    router: "MarkerLogin",
+    name: "科组长阅卷",
+    icon: "",
+    params: {
+      trigger: "MARK_LEADER"
+    }
+  },
+  {
+    router: "ScoreArchive",
+    name: "成绩管理",
+    icon: "",
+    params: {}
+  },
+  {
+    router: "AnalysisReportView",
+    name: "教务处看板",
+    icon: "",
+    params: {
+      trigger: "OFFICE_TEACHER"
+    }
+  },
+  {
+    router: "AnalysisReportView",
+    name: "学院分析报告",
+    icon: "",
+    params: {
+      trigger: "PRESIDENT"
+    }
+  },
+  {
+    router: "AnalysisReportView",
+    name: "任课老师报告",
+    icon: "",
+    params: {
+      trigger: "TEACHER"
+    }
+  }
+];

+ 2 - 1
src/store.js

@@ -15,7 +15,8 @@ import baseConfigs from "./modules/analysis/components/baseConfig/baseConfigsSto
 export default new Vuex.Store({
   state: {
     user: {},
-    privilegeMap
+    privilegeMap,
+    shortupMenus: []
   },
   mutations: {
     setUser(state, user) {

+ 15 - 0
src/views/Main.vue

@@ -0,0 +1,15 @@
+<template>
+  <div class="main">
+    main
+  </div>
+</template>
+
+<script>
+export default {
+  name: "main",
+  data() {
+    return {};
+  },
+  methods: {}
+};
+</script>