刘洋 2 роки тому
батько
коміт
f51b893c0c

+ 2 - 2
server.config.ts

@@ -3,11 +3,11 @@ import type { ServerOptions } from 'vite'
 const server: ServerOptions = {
 const server: ServerOptions = {
   proxy: {
   proxy: {
     '^/?(api|file)/': {
     '^/?(api|file)/': {
-      target: 'http://192.168.10.41:8200',
+      // target: 'http://192.168.10.41:8200',
       // target: 'http://192.168.10.178:8200',
       // target: 'http://192.168.10.178:8200',
       // target: 'http://192.168.10.108:8200',
       // target: 'http://192.168.10.108:8200',
       // target: 'http://cet-test.markingtool.cn',
       // target: 'http://cet-test.markingtool.cn',
-      // target: 'http://192.168.10.136:80',
+      target: 'http://192.168.10.136:80',
       // target: 'http://cet-dev.markingtool.cn:8200',
       // target: 'http://cet-dev.markingtool.cn:8200',
     },
     },
   },
   },

+ 8 - 1
src/components/shared/MarkHeader.vue

@@ -26,7 +26,7 @@
       </div>
       </div>
       <div class="data-item">
       <div class="data-item">
         <div class="icon-item">
         <div class="icon-item">
-          <lock-entry />
+          <lock-entry :in-layout="false" />
         </div>
         </div>
         <div class="icon-item">
         <div class="icon-item">
           <message :reply-user-id="props.replyUserId" :paper-path="props.paperPath"></message>
           <message :reply-user-id="props.replyUserId" :paper-path="props.paperPath"></message>
@@ -347,6 +347,13 @@ const willLogout = async () => {
 .common-mark-header {
 .common-mark-header {
   height: $MainLayoutHeaderHeight;
   height: $MainLayoutHeaderHeight;
   background-color: $MainLayoutHeaderBg;
   background-color: $MainLayoutHeaderBg;
+  :deep(.message-icon) {
+    .msg-box {
+      .tip {
+        color: #999;
+      }
+    }
+  }
   .left-icons-wrap {
   .left-icons-wrap {
     position: relative;
     position: relative;
     padding-right: 15px;
     padding-right: 15px;

+ 9 - 2
src/components/shared/UserInfo.vue

@@ -15,7 +15,7 @@
       <p class="tip">{{ info.userName }}</p>
       <p class="tip">{{ info.userName }}</p>
     </div>
     </div>
   </el-tooltip> -->
   </el-tooltip> -->
-  <div class="user-info flex items-center">
+  <div class="user-info flex items-center" :class="{ 'in-layout': inLayout }">
     <img v-if="props.inLayout" src="../../assets/images/icon-个人-蓝@2x.png" />
     <img v-if="props.inLayout" src="../../assets/images/icon-个人-蓝@2x.png" />
     <img v-else src="../../assets/images/icon-个人-灰@2x.png" />
     <img v-else src="../../assets/images/icon-个人-灰@2x.png" />
     <div class="desc flex" :class="{ 'not-in-layout': !props.inLayout }">
     <div class="desc flex" :class="{ 'not-in-layout': !props.inLayout }">
@@ -54,6 +54,13 @@ const visibleUpdatePwd = ref<boolean>(false)
     height: 32x;
     height: 32x;
     margin-right: 10px;
     margin-right: 10px;
   }
   }
+  &.in-layout {
+    .desc {
+      .role {
+        color: #666;
+      }
+    }
+  }
   .desc {
   .desc {
     height: 34px;
     height: 34px;
     flex-direction: column;
     flex-direction: column;
@@ -64,7 +71,7 @@ const visibleUpdatePwd = ref<boolean>(false)
     }
     }
     .role {
     .role {
       font-size: 12px;
       font-size: 12px;
-      color: #666;
+      color: #8a8a8a;
       font-weight: normal;
       font-weight: normal;
     }
     }
     &.not-in-layout {
     &.not-in-layout {

+ 1 - 0
src/components/shared/message/MessageList.vue

@@ -342,6 +342,7 @@ onUnmounted(() => {
         white-space: pre-wrap;
         white-space: pre-wrap;
         color: #444;
         color: #444;
         font-size: 12px;
         font-size: 12px;
+        font-weight: 500;
       }
       }
     }
     }
     .msg-content-box {
     .msg-content-box {

+ 6 - 1
src/layout/main/MainHeader.vue

@@ -16,7 +16,7 @@
       </div>
       </div>
       <div class="data-item flex">
       <div class="data-item flex">
         <div class="icon-item">
         <div class="icon-item">
-          <lock-entry></lock-entry>
+          <lock-entry :in-layout="inLayout"></lock-entry>
         </div>
         </div>
         <div v-if="mainStore?.myUserInfo?.role !== 'ADMIN'" class="icon-item">
         <div v-if="mainStore?.myUserInfo?.role !== 'ADMIN'" class="icon-item">
           <message
           <message
@@ -72,6 +72,11 @@ const mainStore = useMainStore()
   :deep(p.tip) {
   :deep(p.tip) {
     color: #8a8a8a;
     color: #8a8a8a;
   }
   }
+  &.in-layout {
+    :deep(p.tip) {
+      color: #666;
+    }
+  }
   &.in-layout {
   &.in-layout {
     background-color: #fff;
     background-color: #fff;
     :deep(.user-info) {
     :deep(.user-info) {

+ 1 - 1
src/modules/analysis/marking-progress/components/GroupProgress.vue

@@ -144,7 +144,7 @@ const columns = computed<TableColumn[]>(() => {
         formatter(row) {
         formatter(row) {
           return row.dayFinishCounts.find((v) => v.date === d)?.count ?? ''
           return row.dayFinishCounts.find((v) => v.date === d)?.count ?? ''
         },
         },
-        minWidth: 100,
+        minWidth: 125,
         sortable: true,
         sortable: true,
         sortMethod: function (a, b) {
         sortMethod: function (a, b) {
           let aCount = a.dayFinishCounts.find((v) => v.date === d)?.count ?? 0
           let aCount = a.dayFinishCounts.find((v) => v.date === d)?.count ?? 0

+ 3 - 2
src/modules/analysis/personnel-statistics/index.vue

@@ -148,7 +148,6 @@ const data = computed<ExtractApiResponse<'getStatisticsByGroup'>>(() => {
       }
       }
     })
     })
     .filter((v: any) => !!v)
     .filter((v: any) => !!v)
-  console.log('groupList:', groupList)
   // alert(model.markingGroupNumber)
   // alert(model.markingGroupNumber)
   const totalIndex = groupList.findIndex((v) => v.markingGroupNumber === 0)
   const totalIndex = groupList.findIndex((v) => v.markingGroupNumber === 0)
   let expandData = groupList
   let expandData = groupList
@@ -176,7 +175,9 @@ function onSearch() {
 }
 }
 
 
 onOptionInit(onSearch)
 onOptionInit(onSearch)
-
+watch([() => fetchModel.value.markingGroupNumber], () => {
+  onSearch()
+})
 const { fetch: exportStatisticsByGroup, loading: exporting } = useFetch('exportStatisticsByGroup', 'get')
 const { fetch: exportStatisticsByGroup, loading: exporting } = useFetch('exportStatisticsByGroup', 'get')
 /**导出 */
 /**导出 */
 function onExport() {
 function onExport() {