本卡屬 FR-182(母卡 CM-3609 https://app.notion.com/p/FR-182-Agent-Agent-P1-License-Center-4-3-410346da4cd0816ea5e2c4757ebc4fbb),P3 主系統端,卡 P3-4b,Stage 7(P1 LC 端已 Done 上 188/189;P2 Agent 端 CM-3621~3623 Stage 4)。只改 FE。依賴:P3-1。

這張卡做什麼(白話)

主系統「遠端 Agent 管理」列表多一欄「授權」:每台顯示狀態標籤(正常/N 天後到期/寬限期/已過期/尚未開通/照無效)與到期日;還沒升到會回報的舊版 Agent 顯示「—」。另外把 P3-2 加的五個 error code 補進 FE 的錯誤碼字典(中英)。等 FR-181 B-3 合回(它動同一支 RemoteAgentManage.vue)。

reuse/extend/new

extend:src/views/remote-agent/RemoteAgentManage.vue 列表在「連線」欄後加「授權」欄:license_status 對 Tag(valid 綠「正常」/notice 黃「N 天後到期」/grace 紅「寬限期」/expired 紅「已過期」/missing 灰「尚未開通」/invalid、mismatch 紅「照無效」;NULL → 「—」+ tooltip「舊版 Agent 未回報」)+ license_expires_at 日期;一格一值(Tag 一格、日期一格);i18n remote-agent.json(zh-tw、en);error-code.json(zh-tw、en、zh-cn 若有)補 GRC_AGENT_LICENSE_* 五碼。等 181 B-3 合回(同檔)。

在哪裡

repo:~/Projects/Billows/Audit-Manager/compliance-manager-fe
改既有:src/views/remote-agent/RemoteAgentManage.vue
改既有:src/config/locales/i18n/zh-tw/remote-agent.json
改既有:src/config/locales/i18n/en/remote-agent.json
改既有:src/config/locales/i18n/zh-tw/error-code.json
改既有:src/config/locales/i18n/en/error-code.json

怎麼做

驗收(首腦照這個驗)

npm run build、lint 無新 error;DEV 列表:123 Agent(P3-3 版)顯示「正常」+到期日,未升版的 Agent 顯示「—」;grep -c GRC_AGENT_LICENSE src/config/locales/i18n/*/error-code.json 各 5;grep -c border-left 該檔不變

必讀