yanghao hace 7 horas
padre
commit
8ef00d3590
Se han modificado 3 ficheros con 13 adiciones y 9 borrados
  1. 1 1
      .env.local
  2. 5 1
      src/components/DeptTreeSelect/index.vue
  3. 7 7
      src/views/report-statistics/costs.vue

+ 1 - 1
.env.local

@@ -4,7 +4,7 @@ NODE_ENV=development
 VITE_DEV=true
 
 # 请求路径  http://192.168.188.149:48080  https://iot.deepoil.cc
-VITE_BASE_URL='http://192.168.188.149:48080'
+VITE_BASE_URL='https://iot.deepoil.cc'
 
 # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
 VITE_UPLOAD_TYPE=server

+ 5 - 1
src/components/DeptTreeSelect/index.vue

@@ -24,6 +24,10 @@ const props = defineProps({
   initSelect: {
     type: Boolean,
     default: true
+  },
+  showTitle: {
+    type: Boolean,
+    default: true
   }
 })
 
@@ -140,7 +144,7 @@ onMounted(() => {
 
 <template>
   <div class="gap-4 flex flex-col h-full">
-    <h1 class="text-lg font-medium">{{ props.title }}</h1>
+    <h1 v-if="showTitle" class="text-lg font-medium">{{ props.title }}</h1>
     <el-input
       v-model="deptName"
       size="default"

+ 7 - 7
src/views/report-statistics/costs.vue

@@ -69,8 +69,8 @@ const defaultStats: StatItem[] = [
     title: '维修成本',
     icon: 'i-material-symbols:home-repair-service-outline',
     class: {
-      bg1: 'bg-[var(--el-color-success-light-9)]',
-      bg2: 'bg-[var(--el-color-success-light-8)]',
+      bg1: 'bg-[var(--el-color-success-light-7)]',
+      bg2: 'bg-[var(--el-color-success-light-5)]',
       text: 'text-[var(--el-color-success)]'
     },
     value: 0,
@@ -81,8 +81,8 @@ const defaultStats: StatItem[] = [
     title: '保养成本',
     icon: 'i-material-symbols:construction-rounded',
     class: {
-      bg1: 'bg-[var(--el-color-primary-light-9)]',
-      bg2: 'bg-[var(--el-color-primary-light-8)]',
+      bg1: 'bg-[var(--el-color-primary-light-7)]',
+      bg2: 'bg-[var(--el-color-primary-light-5)]',
       text: 'text-[var(--el-color-primary)]'
     },
     value: 0,
@@ -93,8 +93,8 @@ const defaultStats: StatItem[] = [
     title: '委外维修',
     icon: 'i-material-symbols:work-outline',
     class: {
-      bg1: 'bg-[var(--el-color-warning-light-9)]',
-      bg2: 'bg-[var(--el-color-warning-light-8)]',
+      bg1: 'bg-[var(--el-color-warning-light-7)]',
+      bg2: 'bg-[var(--el-color-warning-light-5)]',
       text: 'text-[var(--el-color-warning)]'
     },
     value: 0,
@@ -181,8 +181,8 @@ watch(
         :top-id="156"
         :deptId="156"
         v-model="query.deptId"
-        title="队伍"
         :init-select="false"
+        :show-title="false"
       />
     </div>
     <div class="grid grid-rows-[1fr_32px] gap-4">