常规维护
@@ -328,6 +351,17 @@ const saveTask = () => {
closeDialog();
};
+// 编辑和删除处理函数
+const handleEdit = () => {
+ console.log('执行编辑操作');
+ // 保留原有编辑逻辑
+};
+
+const handleDelete = () => {
+ console.log('执行删除操作');
+ // 保留原有删除逻辑
+};
+
const handleInspection1 = () => {
router.push('/rili/rili');
};
@@ -578,37 +612,59 @@ const handleInspection7 = () => {
.todo-actions {
position: absolute;
- right: -120px;
+ right: -80px;
top: 0;
bottom: 0;
display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 0 12px;
+ background-color: inherit;
opacity: 0;
transition: all 0.3s ease;
}
-.todo-actions .el-button {
- height: 100%;
- border-radius: 0;
- border-right: 1px solid #fff;
+.action-btn {
+ width: 36px;
+ height: 36px;
+ border: none;
+ border-radius: 50%;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 0;
+ background-color: #fff;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ transition: all 0.2s ease;
}
-.todo-actions .el-button:last-child {
- border-right: none;
-}
-
-.todo-item:hover .todo-content {
- transform: translateX(-120px);
+.action-btn:hover {
+ background-color: #f5f7fa;
+ transform: translateY(-1px);
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
+/* 悬停显示操作按钮 */
.todo-item:hover .todo-actions {
opacity: 1;
right: 0;
}
-.todo-actions .el-button {
- padding: 4px 8px;
- min-width: auto;
- font-size: 12px;
+/* 内容区域平移以给按钮留出空间 */
+.todo-item:hover .todo-content {
+ transform: translateX(-80px);
+}
+
+.action-icon {
+ width: 16px;
+ height: 16px;
+ object-fit: contain;
+}
+
+/* 调整按钮间距 */
+.todo-actions {
+ gap: 12px;
}
.status-legend {
diff --git a/src/views/zhinengxunjian/paidanjilu.vue b/src/views/zhinengxunjian/paidanjilu.vue
index ad7eb6d..60897d4 100644
--- a/src/views/zhinengxunjian/paidanjilu.vue
+++ b/src/views/zhinengxunjian/paidanjilu.vue
@@ -115,11 +115,10 @@
- 详情
+ 详情
@@ -128,13 +127,12 @@
查看进度
- 跟踪
+ 跟踪
diff --git a/src/views/zhinengxunjian/qiangxiujilu.vue b/src/views/zhinengxunjian/qiangxiujilu.vue
index 7d087a0..b87eb59 100644
--- a/src/views/zhinengxunjian/qiangxiujilu.vue
+++ b/src/views/zhinengxunjian/qiangxiujilu.vue
@@ -79,7 +79,7 @@
较上月 +8.7%