فهرست منبع

Merge branch 'master' of http://git.derkj.com:9095/waibao/NN2025081602

* 'master' of http://git.derkj.com:9095/waibao/NN2025081602:
  增加19专业大类
wesmiler 5 ماه پیش
والد
کامیت
95985302e1

+ 23 - 22
addons/admin/src/views/common/layout/Layout.vue

@@ -1,30 +1,30 @@
 <!-- 页面布局 -->
 <template>
   <div :class="layoutClass">
-    <ele-header/><!-- 顶栏 -->
+    <ele-header /><!-- 顶栏 -->
     <el-container class="ele-admin-main">
-      <ele-sidebar v-if="showSidebar"/><!-- 侧边栏 -->
+      <ele-sidebar v-if="showSidebar" /><!-- 侧边栏 -->
       <div class="ele-admin-body">
-        <ele-tabs v-if="theme.showTabs"/><!-- 多页签 -->
+        <ele-tabs v-if="theme.showTabs" /><!-- 多页签 -->
         <keep-alive :include="$setting.keepAliveList">
-          <router-view v-if="!theme.reload"/><!-- 路由出口 -->
+          <router-view v-if="!theme.reload" /><!-- 路由出口 -->
         </keep-alive>
       </div>
     </el-container>
     <div class="ele-admin-shade" @click="collapse"></div><!-- 小屏幕下遮罩层 -->
-    <ele-setting v-if="$setting.showSetting"/><!-- 主题设置抽屉 -->
-    <ele-password/><!-- 修改密码弹窗 -->
+    <ele-setting v-if="$setting.showSetting" /><!-- 主题设置抽屉 -->
+    <ele-password /><!-- 修改密码弹窗 -->
 
-    <Chat></Chat>
+    <!-- <Chat></Chat>
     <div class="chat-icon" @click="showChatPopup()">
       <img class="icon" :src="customIcon" alt="">
       <span class="count" v-if="user.unreadCount">{{user.unreadCount||0}}</span>
-    </div>
+    </div> -->
   </div>
 </template>
 
 <script>
-import {mapGetters} from 'vuex'
+import { mapGetters } from 'vuex'
 import EleHeader from './Header'
 import EleSidebar from './Sidebar'
 import EleTabs from './Tabs'
@@ -33,8 +33,8 @@ import ElePassword from '../fragment/Password'
 import Chat from './Chat'
 export default {
   name: "EleLayout",
-  components: {EleHeader, EleSidebar, EleTabs, EleSetting, ElePassword,Chat},
-  data(){
+  components: { EleHeader, EleSidebar, EleTabs, EleSetting, ElePassword, Chat },
+  data() {
     return {
       customIcon: require('@/assets/icon-custom.png'),
     }
@@ -44,22 +44,22 @@ export default {
     layoutClass() {
       return [
         'ele-admin-layout',
-        {'ele-layout-collapse': this.theme.collapse},  // 折叠状态
-        {'ele-layout-fixed': this.theme.fixedLayout},  // 固定顶栏和侧栏
-        {'ele-side-dark': this.theme.sideStyle === 1},  // 暗色侧栏
-        {'ele-side-color-icon': this.theme.colorfulIcon},  // 侧栏彩色图标
-        {'ele-head-dark': this.theme.headStyle !== 0},  // 暗色顶栏
-        {'ele-logo-auto-size': this.theme.logoAutoSize || this.theme.layoutStyle === 1},  // logo宽度自适应
-        {'ele-tabs-show': this.theme.showTabs},  // 开启多页签
+        { 'ele-layout-collapse': this.theme.collapse },  // 折叠状态
+        { 'ele-layout-fixed': this.theme.fixedLayout },  // 固定顶栏和侧栏
+        { 'ele-side-dark': this.theme.sideStyle === 1 },  // 暗色侧栏
+        { 'ele-side-color-icon': this.theme.colorfulIcon },  // 侧栏彩色图标
+        { 'ele-head-dark': this.theme.headStyle !== 0 },  // 暗色顶栏
+        { 'ele-logo-auto-size': this.theme.logoAutoSize || this.theme.layoutStyle === 1 },  // logo宽度自适应
+        { 'ele-tabs-show': this.theme.showTabs },  // 开启多页签
         ['', 'ele-tab-dot', 'ele-tab-card'][this.theme.tabStyle],  // 页签风格
-        {'ele-admin-body-limit': !this.theme.bodyFull}  // 主体内容定宽
+        { 'ele-admin-body-limit': !this.theme.bodyFull }  // 主体内容定宽
       ]
     },
     /* 是否显示侧边栏 */
     showSidebar() {
       return this.theme.layoutStyle !== 1 || this.theme.screenWidth < 768;  // 小屏幕强制左侧菜单模式
     },
-    ...mapGetters(['theme','user']),
+    ...mapGetters(['theme', 'user']),
   },
   mounted() {
     this.getUserInfo();
@@ -68,7 +68,7 @@ export default {
     }
   },
   methods: {
-    showChatPopup(){
+    showChatPopup() {
       this.$store.dispatch('user/setShowChat', true);
       console.log(this.user.showChat)
     },
@@ -118,7 +118,7 @@ export default {
     /* 监听路由变化 */
     $route() {
       if (this.theme.screenWidth < 768) {
-        this.$store.dispatch('theme/set', {key: 'collapse', value: true});
+        this.$store.dispatch('theme/set', { key: 'collapse', value: true });
       }
       if (!this.$setting.watchResize) {
         this.onWindowResize();
@@ -134,6 +134,7 @@ export default {
   bottom: 10px;
   right: 20px;
   z-index: 996;
+
   .icon {
     width: 48px;
     position: relative;

+ 2 - 2
addons/admin/src/views/exam/component/SubjectManager.vue

@@ -17,7 +17,7 @@
                         v-if="defaultType === 2 || defaultType === 3">
                         <template slot-scope="{ row }">
                             <el-tag type="success" v-if="row.attr_type">{{ attrTypeOptions[row.attr_type] || '未知'
-                            }}</el-tag>
+                                }}</el-tag>
                             <span v-else>-</span>
                         </template>
                     </el-table-column>
@@ -116,7 +116,7 @@ export default {
                 subject_name: [{ required: true, message: '请输入科目名称', trigger: 'blur' }],
                 type: [{ required: true, message: '请选择所属栏目', trigger: 'change' }]
             },
-            attrTypeOptions: { 1: "文化基础" },
+            attrTypeOptions: { 1: "文化基础", 2: '19专业大类' },
         }
     },
     watch: {

+ 2 - 2
addons/admin/src/views/subject/subject.vue

@@ -77,7 +77,7 @@
                     <el-table-column prop="attr_type" label="类别属性" width="120" v-if="showAttrTypeColumn">
                         <template slot-scope="{ row }">
                             <el-tag type="success" v-if="row.attr_type">{{ attrTypeOptions[row.attr_type] || '未知'
-                                }}</el-tag>
+                            }}</el-tag>
                             <span v-else>-</span>
                         </template>
                     </el-table-column>
@@ -163,7 +163,7 @@ export default {
                 type: [{ required: true, message: "请选择所属栏目", trigger: "change" }]
             },
             typeOptions: { 1: "单招", 2: "对口", 3: "专升本" },
-            attrTypeOptions: { 1: "文化基础" },
+            attrTypeOptions: { 1: "文化基础", 2: '19专业大类' },
             permissionMap: {
                 delete: "sys:subject:delete",
                 edit: "sys:subject:edit",