فهرست منبع

feat: 学号字母

zhangjie 8 ماه پیش
والد
کامیت
784f0ae03f
3فایلهای تغییر یافته به همراه35 افزوده شده و 33 حذف شده
  1. 22 29
      public/index.html
  2. 5 2
      src/modules/admin/components/school/SchoolSetStdno.vue
  3. 8 2
      src/modules/base/components/ModifyCardRule.vue

+ 22 - 29
public/index.html

@@ -1,32 +1,25 @@
 <!DOCTYPE html>
 <html>
-  <head>
-    <meta charset="utf-8" />
-    <meta
-      name="viewport"
-      content="width=device-width,initial-scale=1.0,
-    maximum-scale=1.0,minimum-scale=1.0, user-scalable=no"
-    />
-    <meta name="renderer" content="webkit|ie-comp|ie-stand" />
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
-    <meta name="apple-mobile-web-app-capable" content="yes" />
-    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
-    <meta
-      http-equiv="Content-Security-Policy"
-      content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ;"
-    />
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
-    <title>知学知考</title>
-  </head>
 
-  <body>
-    <noscript>
-      <strong
-        >We're sorry but 管理后台 doesn't work properly without JavaScript
-        enabled. Please enable it to continue.</strong
-      >
-    </noscript>
-    <div id="app"></div>
-    <!-- built files will be auto injected -->
-  </body>
-</html>
+<head>
+  <meta charset="utf-8" />
+  <meta name="viewport" content="width=device-width,initial-scale=1.0,
+    maximum-scale=1.0,minimum-scale=1.0, user-scalable=no" />
+  <meta name="renderer" content="webkit|ie-comp|ie-stand" />
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+  <meta http-equiv="Content-Security-Policy"
+    content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ;" />
+  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
+  <title>知学知考</title>
+</head>
+
+<body>
+  <noscript>
+    <strong>We're sorry but 管理后台 doesn't work properly without JavaScript
+      enabled. Please enable it to continue.</strong>
+  </noscript>
+  <div id="app"></div>
+  <!-- built files will be auto injected -->
+</body>
+
+</html>

+ 5 - 2
src/modules/admin/components/school/SchoolSetStdno.vue

@@ -181,7 +181,7 @@ export default {
     },
   },
   mounted() {
-    // this.initData();
+    this.initData();
   },
   methods: {
     async initData() {
@@ -295,7 +295,10 @@ export default {
 
       const datas = deepCopy(this.stdnoInfo);
       datas[0].value = val;
-      const res = await schoolSetStdnoUpdate(datas).catch(() => {});
+      const res = await schoolSetStdnoUpdate({
+        param: datas,
+        schoolId: this.school.id,
+      }).catch(() => {});
       this.loading = false;
 
       if (!res) return;

+ 8 - 2
src/modules/base/components/ModifyCardRule.vue

@@ -76,12 +76,12 @@
             disabled
           ></el-input-number>
         </el-form-item>
-        <el-form-item prop="paperType" label="AB卷版式:" class="inline-block">
+        <el-form-item prop="paperType" label="AB卷版式:">
           <el-select
             v-model="modalForm.paperType"
             style="width: 142px"
             placeholder="请选择"
-            :disabled="!editable"
+            :disabled="!editable || modalForm.examNumberStyle !== 'PASTE'"
           >
             <el-option
               v-for="(val, key) in PAPER_TYPE"
@@ -467,6 +467,12 @@ export default {
         this.modalForm.examNumberDigit = 10;
         this.modalForm.fillFields = [];
       }
+
+      if (this.modalForm.examNumberStyle === "FILL") {
+        this.modalForm.paperType = "FILL";
+      } else if (this.modalForm.examNumberStyle === "PRINT") {
+        this.modalForm.paperType = "PRINT";
+      }
     },
     toEditUndertaking() {
       this.$refs.ModifyCardRuleUndertaking.open();