Просмотр исходного кода

fix(mp): 录入页与查看页统一黑白,分数改为黑色

harper 18 часов назад
Родитель
Сommit
0532a352f7

+ 1 - 1
web/page/mp/mp_cswsjc_record_detail.html

@@ -8,7 +8,7 @@
   <script src="/js/mp_base/base.js?v=20261127-auth-refresh-v1"></script>
   <style>
     [v-cloak] { display: none !important; }
-    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green:#19a463; --danger:#e5484d; }
+    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green: #222222; --danger:#e5484d; }
     * { box-sizing: border-box; }
     body { margin:0; color:var(--text); background:#f3f4f6;
       font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }

+ 1 - 1
web/page/mp/mp_fjjc_detail.html

@@ -12,7 +12,7 @@
       --line: #e5e7eb;
       --text: #222;
       --muted: #8b95a5;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
     }
     * { box-sizing: border-box; }

+ 1 - 1
web/page/mp/mp_fjjc_inp.html

@@ -12,7 +12,7 @@
       --line: #e5e7eb;
       --text: #222;
       --muted: #8b95a5;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
       --danger-soft: #fff0f0;
       --blue: #2f6fed;

+ 1 - 1
web/page/mp/mp_fjjc_list.html

@@ -12,7 +12,7 @@
       --text: #222;
       --muted: #8b95a5;
       --line: #e5e7eb;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
     }
     * { box-sizing: border-box; }

+ 1 - 1
web/page/mp/mp_fjyrjc_record_detail.html

@@ -8,7 +8,7 @@
   <script src="/js/mp_base/base.js?v=20261127-auth-refresh-v1"></script>
   <style>
     [v-cloak] { display:none !important; }
-    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green:#19a463; --danger:#e5484d; }
+    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green: #222222; --danger:#e5484d; }
     * { box-sizing:border-box; }
     body { margin:0; color:var(--text); background:#f3f4f6;
       font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }

+ 1 - 1
web/page/mp/mp_sqljc_detail.html

@@ -17,7 +17,7 @@
       --text: #222222;
       --muted: #8b95a5;
       --line: #eceef1;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
     }
 

+ 69 - 36
web/page/mp/mp_sqljc_inp.html

@@ -17,8 +17,8 @@
       --text: #222222;
       --muted: #8b95a5;
       --soft: #f7f8fa;
-      --green: #19a463;
-      --green-soft: #eaf8f1;
+      --green: #222222;
+      --green-soft: #f5f6f8;
       --danger: #e5484d;
       --danger-soft: #fff0f0;
     }
@@ -88,12 +88,24 @@
     }
 
     .info-row {
+      position: relative;
       display: grid;
       grid-template-columns: 92px 1fr;
       min-height: 58px;
       border-bottom: 1px solid var(--line);
     }
 
+    .info-row.required::before {
+      content: "";
+      position: absolute;
+      left: 92px;
+      top: 0;
+      bottom: 0;
+      width: 2px;
+      background: #ff3b30;
+      z-index: 1;
+    }
+
     .info-row:last-child {
       border-bottom: none;
     }
@@ -346,17 +358,7 @@
 
     <div class="page-content">
       <div class="info-table">
-        <div class="info-row">
-          <div class="info-label">检查人</div>
-          <div class="info-value">{{ jcryxm || '—' }}</div>
-        </div>
-
-        <div class="info-row">
-          <div class="info-label">检查日期</div>
-          <div class="info-value">{{ inspectionDate }}</div>
-        </div>
-
-        <div class="info-row">
+        <div class="info-row required">
           <div class="info-label">部门</div>
           <div class="info-value">
             <div class="select-cell">
@@ -365,7 +367,6 @@
                   :options="departmentOptions"
                   :mapping="{ text: 'n', value: 'v' }"
                   placeholder=""
-                  empty-option
                   searchable
                   @change="onDepartmentChange"
               />
@@ -373,21 +374,44 @@
           </div>
         </div>
 
-        <div v-if="form.bmid" class="info-row">
-          <div class="info-label">学员总人数</div>
-          <div class="info-value">{{ totalStudents }}</div>
+        <div class="info-row">
+          <div class="info-label">总分数</div>
+          <div class="info-value">{{ formatScore(totalFs) }}</div>
         </div>
 
-        <div v-if="form.bmid" class="info-row">
-          <div class="info-label">有效应到人数</div>
-          <div class="info-value">{{ expectedStudents }}</div>
+        <div class="info-row">
+          <div class="info-label">出勤率(%)</div>
+          <div class="info-value">{{ formatScore(attendanceRate) }}</div>
         </div>
 
-        <div v-if="form.bmid" class="info-row">
-          <div class="info-label">同步班级</div>
-          <div class="info-value info-text">
-            {{ classNamesText || '当前部门暂无有效班级' }}
-          </div>
+        <div class="info-row">
+          <div class="info-label">考勤分数</div>
+          <div class="info-value">{{ formatScore(attendanceRate) }}</div>
+        </div>
+
+        <div class="info-row">
+          <div class="info-label">队列分数</div>
+          <div class="info-value">{{ formatScore(queueScore) }}</div>
+        </div>
+
+        <div class="info-row">
+          <div class="info-label">风貌分数</div>
+          <div class="info-value">{{ formatScore(demeanorScore) }}</div>
+        </div>
+
+        <div class="info-row">
+          <div class="info-label">纪律分数</div>
+          <div class="info-value">{{ formatScore(disciplineScore) }}</div>
+        </div>
+
+        <div class="info-row">
+          <div class="info-label">检查人</div>
+          <div class="info-value">{{ jcryxm || '—' }}</div>
+        </div>
+
+        <div class="info-row">
+          <div class="info-label">检查日期</div>
+          <div class="info-value">{{ inspectionDate }}</div>
         </div>
 
         <div class="info-row">
@@ -487,10 +511,10 @@
       },
       computed: {
         departmentOptions() {
-          return [{ n: "", v: "" }].concat(this.departments.map((item) => ({
+          return this.departments.map((item) => ({
             n: item.bmmc || "",
             v: String(item.bmid == null ? "" : item.bmid)
-          })));
+          }));
         },
         expectedStudents() {
           const countCodes = [3, 4, 5, 6, 7, 8];
@@ -504,18 +528,22 @@
           return Math.min(100, this.round2(
               this.valueOfCode(2) * 100 / this.expectedStudents));
         },
+        queueScore() {
+          return this.round2(this.valueOfCode(11));
+        },
+        demeanorScore() {
+          return this.round2(
+              this.valueOfCode(21) + this.valueOfCode(22));
+        },
+        disciplineScore() {
+          return this.round2(this.valueOfCode(31));
+        },
         totalFs() {
-          const queueScore = this.valueOfCode(11);
-          const demeanorScore = this.valueOfCode(21) + this.valueOfCode(22);
-          const disciplineScore = this.valueOfCode(31);
           return this.round2(
               this.attendanceRate * 0.25
-              + queueScore * 0.20
-              + demeanorScore * 0.40
-              + disciplineScore * 0.15);
-        },
-        classNamesText() {
-          return this.classes.map((item) => item.bjmc).filter(Boolean).join("、");
+              + this.queueScore * 0.20
+              + this.demeanorScore * 0.40
+              + this.disciplineScore * 0.15);
         }
       },
       async mounted() {
@@ -615,6 +643,11 @@
           return Math.round(number * 100) / 100;
         },
 
+        formatScore(value) {
+          const number = this.round2(value);
+          return Number.isInteger(number) ? String(number) : number.toFixed(2);
+        },
+
         isScoreItem(item) {
           return item.mfz !== null && item.mfz !== undefined;
         },

+ 2 - 2
web/page/mp/mp_sqljc_list.html

@@ -18,7 +18,7 @@
       --muted: #8b95a5;
       --line: #e5e7eb;
       --soft: #f5f6f8;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
     }
 
@@ -90,7 +90,7 @@
       height: 40px;
       margin-bottom: 15px;
       border: 4px solid #f3f3f3;
-      border-top-color: #40ac6d;
+      border-top-color: #222222;
       border-radius: 50%;
       animation: spin 1s linear infinite;
     }

+ 2 - 2
web/page/mp/mp_ssnwjc_inp.html

@@ -17,8 +17,8 @@
       --text: #222222;
       --muted: #8b95a5;
       --soft: #f7f8fa;
-      --green: #19a463;
-      --green-soft: #eaf8f1;
+      --green: #222222;
+      --green-soft: #f5f6f8;
       --danger: #e5484d;
       --danger-soft: #fff0f0;
     }

+ 2 - 2
web/page/mp/mp_ssnwjc_list.html

@@ -16,7 +16,7 @@
       --muted: #8b95a5;
       --line: #e5e7eb;
       --soft: #f5f6f8;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
     }
 
@@ -88,7 +88,7 @@
       height: 40px;
       margin-bottom: 15px;
       border: 4px solid #f3f3f3;
-      border-top-color: #40ac6d;
+      border-top-color: #222222;
       border-radius: 50%;
       animation: spin 1s linear infinite;
     }

+ 1 - 1
web/page/mp/mp_ssnwjc_record_detail.html

@@ -16,7 +16,7 @@
       --text: #222222;
       --muted: #8b95a5;
       --soft: #f5f6f8;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
     }
 

+ 1 - 1
web/page/mp/mp_sswjjl_gr_record_detail.html

@@ -8,7 +8,7 @@
   <script src="/js/mp_base/base.js?v=20261127-auth-refresh-v1"></script>
   <style>
     [v-cloak] { display:none !important; }
-    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green:#19a463; --danger:#e5484d; }
+    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green: #222222; --danger:#e5484d; }
     * { box-sizing:border-box; }
     body { margin:0; color:var(--text); background:#f3f4f6;
       font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }

+ 1 - 1
web/page/mp/mp_sswjjl_jt_inp.html

@@ -12,7 +12,7 @@
       --line: #e5e7eb;
       --text: #222;
       --muted: #8b95a5;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
       --danger-soft: #fff0f0;
     }

+ 1 - 1
web/page/mp/mp_sswjjl_jt_record_detail.html

@@ -8,7 +8,7 @@
   <script src="/js/mp_base/base.js?v=20261127-auth-refresh-v1"></script>
   <style>
     [v-cloak] { display:none !important; }
-    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green:#19a463; --danger:#e5484d; }
+    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green: #222222; --danger:#e5484d; }
     * { box-sizing:border-box; }
     body { margin:0; color:var(--text); background:#f3f4f6;
       font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }

+ 1 - 1
web/page/mp/mp_xxwjjl_inp.html

@@ -12,7 +12,7 @@
       --line: #e5e7eb;
       --text: #222;
       --muted: #8b95a5;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
       --danger-soft: #fff0f0;
     }

+ 1 - 1
web/page/mp/mp_xxwjjl_record_detail.html

@@ -8,7 +8,7 @@
   <script src="/js/mp_base/base.js?v=20261127-auth-refresh-v1"></script>
   <style>
     [v-cloak] { display:none !important; }
-    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green:#19a463; --danger:#e5484d; }
+    :root { --line:#e5e7eb; --text:#222; --muted:#8b95a5; --green: #222222; --danger:#e5484d; }
     * { box-sizing:border-box; }
     body { margin:0; color:var(--text); background:#f3f4f6;
       font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }

+ 1 - 1
web/page/mp_fjyrjc_inp.html

@@ -13,7 +13,7 @@
       --line: #e5e7eb;
       --text: #222;
       --muted: #8b95a5;
-      --green: #19a463;
+      --green: #222222;
       --danger: #e5484d;
       --danger-soft: #fff0f0;
     }