Browse Source

no message

kllay 1 day ago
parent
commit
bbf6da1eaa

+ 3 - 3
src/views/system/screenconsole/component/InfoCards.vue

@@ -28,7 +28,7 @@ import {
   Coin, Box, Document, Avatar, Folder,
   Monitor, ShoppingCart, User, Setting, Tools
 } from '@element-plus/icons-vue'
-import { defineProps } from 'vue'
+import { defineProps,computed } from 'vue'
 
 const props = defineProps({
   summaryData: {
@@ -37,14 +37,14 @@ const props = defineProps({
   }
 })
 
-const infoList = [
+const infoList = computed(()=>[
   { label: '设备总数', value: props.summaryData.total_devices, icon: Coin },
   { label: '在借数', value: props.summaryData.total_borrows, icon: Box },
   { label: '在库数', value: props.summaryData.total_warehouses, icon: Document },
   { label: '维修中', value: props.summaryData.total_maintenances, icon: Avatar },
   { label: '用户数', value: props.summaryData.total_students, icon: Folder },
   { label: '借用件次数', value: props.summaryData.total_applications, icon: Monitor },
-];
+]);
 function handleClick(item: any) {
   console.log('点击信息卡片:', item.label);
 }

+ 5 - 6
src/views/system/screenconsole/component/StatusCards.vue

@@ -33,7 +33,7 @@
 import {
   Edit, Refresh, Tools, Box, Folder, Monitor
 } from '@element-plus/icons-vue'
-import { defineProps } from 'vue'
+import { defineProps ,computed} from 'vue'
 
 
 const props = defineProps({
@@ -43,15 +43,14 @@ const props = defineProps({
   }
 })
 
-const statusList = [
+const statusList = computed(()=>[
   { label: '待审核', value: props.statusData.pending_approval, icon: Edit },
   { label: '待归还', value: props.statusData.pending_return, icon: Refresh },
   { label: '待维修', value: props.statusData.pending_maintenance, icon: Tools },
-  { label: '已逾期', value: props.statusData.pending_restock, icon: Box },
-];
-  
+  { label: '已逾期', value: props.statusData.pending_overdue, icon: Box },
+])
   function handleClick(item: any) {
-    console.log('点击状态卡片:', item.label);
+      console.log('点击状态卡片:', item.label);
   }
   </script>
   

+ 1 - 0
src/views/system/screenconsole/index.vue

@@ -52,6 +52,7 @@ import StockAlerts from './component/StockAlerts.vue';
 const pendingItems = ref({
   pending_approval: 0,
   pending_return: 0,
+  pending_overdue: 0,
   pending_maintenance: 0,
   pending_restock: 0,
   pending_warehousing: 0,

+ 9 - 1
src/views/system/timetablemanage/index.vue

@@ -44,7 +44,15 @@
 					<div
 					v-for="course in scope.row[`day${index + 1}`]"
 					:key="course.id"
-					style="margin-bottom: 4px; cursor: pointer"
+					style="
+							margin-bottom: 6px;
+							cursor: pointer;
+							border: 1px solid #ccc;
+							border-radius: 6px;
+							padding: 3px;
+							background-color: transparent;
+							box-shadow: 0 1px 2px rgba(0,0,0,0.05);
+						"
 					@click.stop="openDialogEdit(course)"
 					>
 						{{ course.classdetail }} 老师:({{ course.teacher_name }}) 教室:{{ course.classroom }}