revert: 删除购油方案功能,修复MyDiary模板错误
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Successful in 53s
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Successful in 53s
完全移除oil_plans相关代码: - 后端: 7个API端点、2个数据库表 - 前端: plans store、Inventory方案UI、UserManagement方案编辑器 - UserMenu: 方案通知按钮 - 修复MyDiary.vue多余的section-card div导致的构建失败 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -44,8 +44,6 @@
|
||||
<!-- 用户名更新通知:去修改按钮(已改过则显示已读) -->
|
||||
<button v-else-if="isUsernameNotice(n) && !auth.user.username_changed" class="notif-action-btn notif-btn-plan" @click="goRename(n)">去修改</button>
|
||||
<button v-else-if="isUsernameNotice(n) && auth.user.username_changed" class="notif-mark-one" @click="markOneRead(n)">已读</button>
|
||||
<!-- 方案请求通知:去定制按钮 -->
|
||||
<button v-else-if="isPlanRequest(n)" class="notif-action-btn notif-btn-plan" @click="goPlanDesign(n)">去定制</button>
|
||||
<!-- 审核类通知:去审核按钮 -->
|
||||
<button v-else-if="isReviewable(n)" class="notif-action-btn notif-btn-review" @click="goReview(n)">去审核</button>
|
||||
<!-- 默认:已读按钮 -->
|
||||
@@ -167,16 +165,6 @@ function goRename(n) {
|
||||
changeUsername()
|
||||
}
|
||||
|
||||
function isPlanRequest(n) {
|
||||
return n.title && (n.title.includes('方案请求') || n.title.includes('方案需求'))
|
||||
}
|
||||
|
||||
function goPlanDesign(n) {
|
||||
markOneRead(n)
|
||||
emit('close')
|
||||
window.location.hash = '#/users'
|
||||
}
|
||||
|
||||
function isReviewable(n) {
|
||||
if (!n.title) return false
|
||||
// Admin: review recipe/business/applications
|
||||
@@ -319,8 +307,6 @@ onMounted(loadNotifications)
|
||||
}
|
||||
.notif-btn-added { color: #4a9d7e; border-color: #7ec6a4; }
|
||||
.notif-btn-added:hover { background: #e8f5e9; }
|
||||
.notif-btn-plan { color: #1565c0; border-color: #90caf9; }
|
||||
.notif-btn-plan:hover { background: #e3f2fd; }
|
||||
.notif-btn-review { color: #e65100; border-color: #ffb74d; }
|
||||
.notif-btn-review:hover { background: #fff3e0; }
|
||||
.notif-body { color: #888; font-size: 12px; margin-top: 2px; white-space: pre-line; }
|
||||
|
||||
Reference in New Issue
Block a user