From 94262788b0b204535b5325fc47628c2a0fa64f53 Mon Sep 17 00:00:00 2001 From: dingcui Date: Fri, 29 Nov 2024 14:01:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(11.29):=20=E6=90=AD=E5=BB=BA=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- efm-demo-web/.prettierrc.json | 4 + efm-demo-web/package.json | 5 +- .../home/home-routing.module.ts | 12 +- .../app/implementation/home/home.component.ts | 7 +- .../basic-detail/basic-detail.module.ts | 13 +-- .../project-detail/project-detail.module.ts | 17 +-- .../src/assets/i18n/zh_TW/ant-components.json | 74 ++++++------ efm-demo-web/src/assets/i18n/zh_TW/basic.json | 105 ++++++++++-------- .../src/assets/i18n/zh_TW/default.json | 4 +- efm-demo-web/src/assets/i18n/zh_TW/task.json | 68 ++++++------ efm-demo-web/webpack.config.js | 38 +++---- 11 files changed, 172 insertions(+), 175 deletions(-) create mode 100644 efm-demo-web/.prettierrc.json diff --git a/efm-demo-web/.prettierrc.json b/efm-demo-web/.prettierrc.json new file mode 100644 index 0000000..90ff9bb --- /dev/null +++ b/efm-demo-web/.prettierrc.json @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "semi": true +} \ No newline at end of file diff --git a/efm-demo-web/package.json b/efm-demo-web/package.json index e15a126..3c4e8fe 100644 --- a/efm-demo-web/package.json +++ b/efm-demo-web/package.json @@ -25,7 +25,10 @@ "dw-zip": "node node_modules/@webdpt/scripts/builds/dw-zip.js", "microsite": "athena-microsite serve -e test -t mf", "microsite:paas": "athena-microsite serve -e paas -t mf", - "microsite:prod": "athena-microsite serve -e prod -t mf" + "microsite:prod": "athena-microsite serve -e prod -t mf", + "build:zip": "npm run translate && npm run build && npm run athena-zip", + "athena-zip": "node node_modules/@webdpt/scripts/builds/athena-zip.js --path=package-efm-demoAT", + "translate": "node node_modules/@webdpt/scripts/builds/translate.js" }, "private": true, "dependencies": { diff --git a/efm-demo-web/src/app/implementation/home/home-routing.module.ts b/efm-demo-web/src/app/implementation/home/home-routing.module.ts index 42f9608..ae352db 100644 --- a/efm-demo-web/src/app/implementation/home/home-routing.module.ts +++ b/efm-demo-web/src/app/implementation/home/home-routing.module.ts @@ -13,14 +13,14 @@ const routes: Routes = [ canActivate: [DwAuthGuardService, DwDefaultAppGuardService], data: { dwRouteData: { - programId: 'home' - } - } - } + programId: 'home', + }, + }, + }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], - exports: [RouterModule] + exports: [RouterModule], }) -export class HomeRoutingModule { } +export class HomeRoutingModule {} diff --git a/efm-demo-web/src/app/implementation/home/home.component.ts b/efm-demo-web/src/app/implementation/home/home.component.ts index 37fbce8..fd40f86 100644 --- a/efm-demo-web/src/app/implementation/home/home.component.ts +++ b/efm-demo-web/src/app/implementation/home/home.component.ts @@ -3,11 +3,8 @@ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', - styleUrls: ['./home.component.css'] + styleUrls: ['./home.component.css'], }) export class HomeComponent { - - constructor() { } - - + constructor() {} } diff --git a/efm-demo-web/src/app/implementation/programs/basic-detail/basic-detail.module.ts b/efm-demo-web/src/app/implementation/programs/basic-detail/basic-detail.module.ts index 02f934f..80c6ea0 100644 --- a/efm-demo-web/src/app/implementation/programs/basic-detail/basic-detail.module.ts +++ b/efm-demo-web/src/app/implementation/programs/basic-detail/basic-detail.module.ts @@ -1,15 +1,10 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -const programsModules = [ - -]; +const programsModules = []; @NgModule({ - imports: [ - CommonModule, - ...programsModules - ], - declarations: [] + imports: [CommonModule, ...programsModules], + declarations: [], }) -export class BasicDetailModule { } +export class BasicDetailModule {} diff --git a/efm-demo-web/src/app/implementation/programs/project-detail/project-detail.module.ts b/efm-demo-web/src/app/implementation/programs/project-detail/project-detail.module.ts index 8a7fd25..d58f3d9 100644 --- a/efm-demo-web/src/app/implementation/programs/project-detail/project-detail.module.ts +++ b/efm-demo-web/src/app/implementation/programs/project-detail/project-detail.module.ts @@ -1,15 +1,10 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; +import { NgModule } from "@angular/core"; +import { CommonModule } from "@angular/common"; -const programsModules = [ - -]; +const programsModules = []; @NgModule({ - imports: [ - CommonModule, - ...programsModules - ], - declarations: [] + imports: [CommonModule, ...programsModules], + declarations: [], }) -export class ProjectDetailModule { } +export class ProjectDetailModule {} diff --git a/efm-demo-web/src/assets/i18n/zh_TW/ant-components.json b/efm-demo-web/src/assets/i18n/zh_TW/ant-components.json index 9d0003e..4285366 100644 --- a/efm-demo-web/src/assets/i18n/zh_TW/ant-components.json +++ b/efm-demo-web/src/assets/i18n/zh_TW/ant-components.json @@ -1,6 +1,6 @@ { + "dj-c-由Athena发起当前项目": "由Athena發起當前專案", "dj-c-预计开工日": "預計開工日", - "dj-c-由Athena发起当前项目": "由Athena發起當前項目", "dj-c-来源由n张工单组成": "來源:由{{ taskName }}組成", "dj-c-来源由n张ids工单组成": "來源:由 {{ ids }} 等{{ n }}張{{ taskName }}組成", "dj-c-倒计时": "倒計時", @@ -11,8 +11,8 @@ "dj-c-更换": "更換", "dj-c-提示": "提示", "dj-c-我知道了": "我知道了", - "dj-c-存在异常是否忽略提交": "存在 {{n}} 項异常,
是否確定提交?", - "dj-c-是否确定提交": "是否確定提交?", + "dj-c-存在异常是否忽略提交": "存在 {{n}} 項異常,
是否確定提交?", + "dj-c-是否确定提交": "是否確定提交", "dj-c-请确认是否填写完整": "請確認是否填寫完整", "dj-c-取消": "取消", "dj-c-确认": "確認", @@ -25,7 +25,7 @@ "dj-c-拆行": "拆行", "dj-c-旧公式": "舊公式", "dj-c-新公式": "新公式", - "dj-c-查看模拟推估": "查看類比推估", + "dj-c-查看模拟推估": "查看模擬推估", "dj-c-权重总和应等于100": "權重總和應等於100", "dj-c-暂无数据": "暫無數據", "dj-c-必填": "必填", @@ -42,10 +42,10 @@ "dj-c-退回重签至": "退回重簽至", "dj-c-请输入签核意见": "請輸入簽核意見", "dj-c-签核意见": "簽核意見", - "dj-c-查看签核进度": "查看簽核進度", "dj-c-是否确定转派": "是否確定轉派", "dj-c-是否确定退回": "是否確定退回", "dj-c-签核进程": "簽核進程", + "dj-c-查看签核进度": "查看簽核進度", "dj-c-是否确定同意": "是否確定同意", "dj-c-非必填": "非必填", "dj-c-未开始": "未開始", @@ -73,31 +73,34 @@ "dj-c-共n项": "共{{ n }}項", "dj-c-共str": "共{{ str }}", "dj-c-个": "個", - "dj-c-页面加载失败": "頁面加載失敗", - "dj-c-重新加载": "重新加載", + "dj-c-页面加载失败": "頁面載入失敗", + "dj-c-重新加载": "重新載入", "dj-c-请不要输入表情": "請不要輸入表情", "dj-c-不能选择当前用户": "不能選擇當前用戶", "dj-c-是否确定退回重办": "是否確定退回重辦", "dj-c-所有计量": "所有計量", "dj-c-库存年月": "庫存年月", - "dj-c-周转天数": "周轉天數", + "dj-c-周转天数": "週轉天數", "dj-c-平均存货净额": "平均存貨淨額", "dj-c-销售净额": "銷售淨額", "dj-c-平均耗量(年月)": "平均耗量(年月)", "dj-c-标准差(年月)": "標準差(年月)", "dj-c-平均销售金额(年月)": "平均銷售金額(年月)", "dj-c-标准化生产": "標準化生產", + "dj-c-不可放弃": "不可放棄", + "dj-c-接单再做": "接單再做", + "dj-c-允许低缺料": "允許低缺料", "dj-c-修改": "修改", "dj-c-已": "已", "dj-c-总量": "總量", - "dj-c-目标:差异率小于n": "目标:差异率小于{{n}}", - "dj-c-共n项定位调整": "共{{n}}项定位调整", + "dj-c-目标:差异率小于n": "目標:差異率小於{{n}}", + "dj-c-共n项定位调整": "共{{n}}項定位調整", "dj-c-实际": "實際", "dj-c-合理": "合理", "dj-c-建议": "建議", "dj-c-本期共": "本期共", "dj-c-项": "項", - "dj-c-检测出现定位调整,建议修改参数": "检测出现定位调整,建议修改参数", + "dj-c-检测出现定位调整,建议修改参数": "檢測出現定位調整,建議修改參數", "dj-c-成品": "成品", "dj-c-半成品": "半成品", "dj-c-原材料": "原材料", @@ -107,16 +110,16 @@ "dj-c-低": "低", "dj-c-频进货": "頻進貨", "dj-c-原材料机制调整建议": "原材料機制調整建議", - "dj-c-项采纳": "項采納", + "dj-c-项采纳": "項採納", "dj-c-项拒绝": "項拒絕", "dj-c-共计": "共計", "dj-c-n项": "{{n}}項", "dj-c-返回": "返回", "dj-c-统计": "統計", "dj-c-标准差异率n": "標準差異率{{n}}", - "dj-c-采购间隔参数": "采購間隔參數", - "dj-c-实际采购LT": "實際采購LT", - "dj-c-实际采购": "實際采購", + "dj-c-采购间隔参数": "採購間隔參數", + "dj-c-实际采购LT": "實際採購LT", + "dj-c-实际采购": "實際採購", "dj-c-机制调整建议": "機制調整建議", "dj-c-建议新定位": "建議新定位", "dj-c-高频进货": "高頻進貨", @@ -125,14 +128,14 @@ "dj-c-高频进货n项": "高頻進貨{{n}}項", "dj-c-中频进货n项": "中頻進貨{{n}}項", "dj-c-低频进货n项": "低頻進貨{{n}}項", - "dj-c-没有可获取到的可退回列表": "沒有可獲取到的可退回列表", - "dj-c-数据加载异常": "數據加載異常", + "dj-c-没有可获取到的可退回列表": "沒有可獲取到的可退回清單", + "dj-c-数据加载异常": "數據載入異常", "dj-c-正在校验": "正在校驗", "dj-c-输入错误": "輸入錯誤", "dj-c-输入不完整": "輸入不完整", "dj-c-输入不完整或者错误": "輸入不完整或者輸入錯誤", "dj-c-校验失败": "校驗失敗", - "dj-c-支持批量提交但未选择对象": "支持批量提交但未選擇對象", + "dj-c-支持批量提交但未选择对象": "支援批量提交但未選擇對象", "dj-c-差异": "差異", "dj-c-方案进度": "方案進度", "dj-c-加量": "加量", @@ -141,12 +144,12 @@ "dj-c-提早": "提早", "dj-c-拆行输入错误": "拆行輸入錯誤", "dj-c-请上传": "請上傳", - "dj-c-上传于": "{{user}}上傳于{{date}}", - "dj-c-已删除附件": "附件已刪除", - "dj-c-删除附件失败": "删除附件失敗", + "dj-c-上传于": "{{user}}上傳於{{date}}", + "dj-c-已删除附件": "附檔已刪除", + "dj-c-删除附件失败": "刪除附檔失敗", "dj-c-上传失败": "上傳失敗", "dj-c-转派": "轉派", - "dj-c-没有查询到可退回的关卡名称": "沒有査詢到可退回的關卡名稱", + "dj-c-没有查询到可退回的关卡名称": "沒有查詢到可退回的關卡名稱", "dj-c-请刷新重试": "請刷新重試", "dj-c-当前任务已完成": "當前任務已完成", "dj-c-加签意见": "加簽意見", @@ -163,12 +166,12 @@ "dj-c-发票代号": "發票代號", "dj-c-发票号码": "發票號碼", "dj-c-开票日期": "開票日期", - "dj-c-校验码(后6位)": "校驗碼(後6位)", + "dj-c-校验码(后6位)": "校驗碼(後6位)", "dj-c-请将6位校验码输入完整": "請將6位校驗碼輸入完整", - "dj-c-金额(不含税)": "金額(不含稅)", - "dj-c-只能输入数字": "只能輸入數位", + "dj-c-金额(不含税)": "金額(不含稅)", + "dj-c-只能输入数字": "只能輸入數字", "dj-c-只能输入整数或者带2位小数": "只能輸入整數或者帶2位小數", - "dj-c-限制类型": "只支持{{ n }}", + "dj-c-限制类型": "只支援{{ n }}", "dj-c-不限制大小": "大小不限制", "dj-c-限制大小": "大小限制{{ n }}", "dj-c-请输入关键字": "請輸入關鍵字", @@ -186,32 +189,27 @@ "dj-c-请输入开票日期": "請輸入開票日期", "dj-c-请输入金额": "請輸入金額(不含稅)", "dj-c-上传发票": "上傳發票", - "dj-c-支持上传多张发票": "支持上傳多張發票", + "dj-c-支持上传多张发票": "支援上傳多張發票", "dj-c-请留言": "請輸入留言~", "dj-c-发送": "發送", "dj-c-通知提醒": "通知提醒", - "dj-c-msg-content": "請盡快完成任務~", + "dj-c-msg-content": "請儘快完成任務~", "dj-c-代": "代", "dj-c-前": "前", "dj-c-生效": "生效", "dj-c-已失效": "已失效", - "dj-c-已保存": "已保存", - "dj-c-未保存": "未保存", + "dj-c-已保存": "已存檔", + "dj-c-未保存": "未存檔", "dj-c-已选中n项": "已選中{{ n }}項", "dj-c-m来源共n项发生变更": "{{m}}共{{n}}項發生變更", "dj-c-查看甘特图": "查看甘特圖", "dj-c-甘特图": "甘特圖", "dj-c-异常": "異常", "dj-c-逾期n天": "逾期{{ n }}天", - "dj-c-全部信息请输入关键字搜索": "全部信息請輸入關鍵字搜索", + "dj-c-全部信息请输入关键字搜索": "全部資訊請輸入關鍵字搜尋", "dj-c-*至少选中一项数据": "*至少選中一項數據", "dj-c-已选n项": "已選{{ n }}項", "dj-c-荐": "薦", "dj-c-请输入专案编号": "請輸入專案編號", - "dj-c-请输入专案名称": "請輸入專案名稱", - "dj-c-计划维护": "計畫維護", - "dj-c-专案基础信息维护": "專案基礎信息維護", - "dj-c-启动专案": "啟動專案", - "dj-c-专案已启动": "專案已啟動", - "dj-c-专案已暂停": "專案已暫停" -} + "dj-c-请输入专案名称": "請輸入專案名稱" +} \ No newline at end of file diff --git a/efm-demo-web/src/assets/i18n/zh_TW/basic.json b/efm-demo-web/src/assets/i18n/zh_TW/basic.json index d9cd18b..40e809a 100644 --- a/efm-demo-web/src/assets/i18n/zh_TW/basic.json +++ b/efm-demo-web/src/assets/i18n/zh_TW/basic.json @@ -1,23 +1,23 @@ { "dj-请输入": "請輸入", "dj-请选择": "請選擇", - "dj-搜索点什么吧": "請輸入日期/項目目標/任務名稱/當責者/執行人", - "dj-历史记录": "搜索歷史", + "dj-搜索点什么吧": "搜尋點什麼吧", + "dj-历史记录": "搜尋歷史", "dj-登出": "登出", "dj-管理模组": "管理模組", - "dj-交付设计器": "交付设计器", + "dj-交付设计器": "交付設計器", "menu": { - "project-center": "項目中心" + "project-center": "專案中心" }, "dj-全部关闭": "全部關閉", "dj-批量操作": "批量操作", - "dj-来源由n张工单组成": "來源:由 {{ids}} 等 {{n}} 張 {{sourceName}} 組成", - "dj-来源由n张x单组成": "來源: 由{{taskName}} 組成", + "dj-来源由n张工单组成": "來源:由 {{ ids }} 等 {{ n }} 張{{sourceName}}組成", + "dj-来源由n张x单组成": "來源:由 {{taskName}} 組成", "dj-来源由n张如ids的x单组成": "來源:由 {{ ids }} 等 {{ n }} 張 {{taskName}} 組成", "dj-倒计时": "倒計時", "dj-预计开工日": "預計開工日", "dj-来源": "來源", - "dj-由Athena发起当前项目": "由Athena發起當前項目", + "dj-由Athena发起当前项目": "由Athena發起當前專案", "dj-人工": "人工", "dj-自动": "自動", "dj-未完成": "未完成", @@ -29,39 +29,39 @@ "dj-我知道了": "我知道了", "dj-立即查看": "立即查看", "dj-切换企业": "切換企業", - "dj-个性化设定": "設置", - "dj-常用设置": "常用設置", - "dj-基本设置": "個性化設定", + "dj-个性化设定": "設定", + "dj-常用设置": "常用設定", "dj-开启勿扰": "已開啟勿擾", "dj-关闭勿扰": "已關閉勿擾", "dj-开启代理人": "已開啟代理人", "dj-关闭代理人": "已關閉代理人", + "dj-基本设置": "個性化設定", "dj-工作桌面": "工作桌面", - "dj-搜索结果": "搜索結果", + "dj-搜索结果": "搜尋結果", "dj-进度查询": "進度查詢", - "dj-发起项目": "發起項目", - "dj-项目任务": "項目任務", + "dj-发起项目": "發起專案", + "dj-项目任务": "專案任務", "dj-当责者": "當責者", - "dj-项目名称": "項目名稱", + "dj-项目名称": "專案名稱", "dj-状态": "狀態", - "dj-task-report-项目状况查询": "項目狀況查詢", - "dj-task-report-历史项目查询": "歷史項目查詢", + "dj-task-report-项目状况查询": "專案狀況查詢", + "dj-task-report-历史项目查询": "歷史專案查詢", "dj-task-report-区间": "區間", "dj-task-report-天": "天", - "dj-task-report-周": "周", + "dj-task-report-周": "週", "dj-task-report-月": "月", "dj-task-report-季度": "季度", - "dj-task-report-项目名称": "項目名稱", + "dj-task-report-项目名称": "專案名稱", "dj-task-report-当责者": "當責者", "dj-task-report-筛查": "篩查", "dj-task-report-重置": "重置", "dj-task-report-目标": "目標", - "dj-task-report-子项目": "子項目", - "dj-task-report-子项目数": "子項目數", - "dj-task-report-子项目数单位": "个", - "dj-task-report-请选择项目名称": "請選擇項目名稱", + "dj-task-report-子项目": "子專案", + "dj-task-report-子项目数": "子專案數", + "dj-task-report-子项目数单位": "個", + "dj-task-report-请选择项目名称": "請選擇專案名稱", "dj-task-report-请选择当责者": "請選擇當責者", - "dj-task-report-没有结果": "沒有找到相關項目,請重新篩查", + "dj-task-report-没有结果": "沒有找到相關專案,請重新篩查", "dj-task-report-项": "項", "dj-set-用户ID": "用戶ID", "dj-set-用户名称": "用戶名稱", @@ -72,29 +72,29 @@ "dj-set-时区选择": "時區選擇", "dj-set-变更密码": "變更密碼", "dj-set-点此修改": "點此修改", - "dj-set-代理人设置": "代理人設置", + "dj-set-代理人设置": "代理人設定", "dj-set-代理人": "代理人", "dj-set-代理区间": "代理區間", "dj-set-勿扰模式": "勿擾模式", "dj-set-开始时间": "開始時間", "dj-set-结束时间": "結束時間", - "dj-set-设置代理区间成功": "設置代理區間成功", - "dj-set-设置代理区间失败": "设置代理区间失敗", + "dj-set-设置代理区间成功": "設定代理區間成功", + "dj-set-设置代理区间失败": "設定代理區間失敗", "dj-是否确认提交": "是否確認提交", "dj-取消": "取消", "dj-确认": "確認", "dj-提交": "提交", "dj-下一步": "下一步", - "dj-拒绝时审核意见必填哦": "拒絕時稽核意見必填哦~", + "dj-拒绝时审核意见必填哦": "拒絕時審核意見必填哦~", "dj-提示": "提示", "dj-是否签核": "是否 {{title}} 簽核", "dj-操作成功": "操作成功", "dj-上传成功": "上傳成功", - "dj-加载中": "加載中", + "dj-加载中": "載入中", "dj-通知执行人": "通知執行人", "dj-去执行待办": "去執行待辦", - "dj-分享链接": "分享連結", - "dj-查看子项目详情": "查看子項目詳情", + "dj-分享链接": "分享鏈接", + "dj-查看子项目详情": "查看子專案詳情", "dj-复制成功": "複製成功", "dj-通知成功": "通知成功", "dj-消息通知": "消息通知", @@ -103,33 +103,33 @@ "dj-紧急": "緊急", "dj-重要": "特別關注", "dj-变更": "變更", - "dj-共n个任务异常": "共{{ n }}個任務异常", + "dj-共n个任务异常": "共{{ n }}個任務異常", "dj-共n个任务进行中": "共{{ n }}個任務進行中", "dj-已逾期": "已逾期", "dj-小时": "小時", "dj-天": "天", "dj-标记所有为已读": "標記所有為已讀", - "dj-删除所有已读消息": "删除所有已讀消息", + "dj-删除所有已读消息": "刪除所有已讀消息", "dj-通知设置": "通知設定", - "dj-项目通知": "項目通知", + "dj-项目通知": "專案通知", "dj-暂无消息": "暫無消息", "dj-分钟前": "分鐘前", "dj-今天": "今天", "dj-昨天": "昨天", - "dj-周一": "週一", - "dj-周二": "週二", - "dj-周三": "週三", - "dj-周四": "週四", - "dj-周五": "週五", - "dj-周六": "週六", - "dj-周日": "週日", + "dj-周一": "星期一", + "dj-周二": "星期二", + "dj-周三": "星期三", + "dj-周四": "星期四", + "dj-周五": "星期五", + "dj-周六": "星期六", + "dj-周日": "星期日", "dj-任务通知": "任務通知", "dj-刚刚": "剛剛", "dj-系统消息": "系統消息", "dj-异常排除": "異常排除", "dj-任务已关闭": "當前任務已關閉", - "dj-暂无更多项目类型": "暫無更多項目類型", - "dj-工单有变更,查看详情": "工單有變更,查看詳情", + "dj-暂无更多项目类型": "暫無更多專案類型", + "dj-工单有变更,查看详情": "製令工單有變更,查看詳情", "dj-等": "等", "dj-共": "共", "dj-个": "個", @@ -137,13 +137,13 @@ "dj-运营单元-1": "分公司", "dj-运营单元-2": "工廠", "dj-运营单元-3": "車間", - "dj-工单明细": "工單明細", + "dj-工单明细": "製令工單明細", "dj-明细": "明細", "dj-数据上传中": "數據上傳中", "dj-数据校验中": "數據校驗中", "dj-msg-ATHENA_REMIND": "ATHENA提醒", - "dj-msg-EXCEPTION_OR_OVERDUE": "項目異常/逾期提醒", - "dj-msg-INTERNAL_REMIND": "内部提醒", + "dj-msg-EXCEPTION_OR_OVERDUE": "專案異常/逾期提醒", + "dj-msg-INTERNAL_REMIND": "內部提醒", "dj-msg-PROXY_REMIND": "代理人提醒", "dj-msg-option-ALL": "全部", "dj-msg-option-EMERGENCY": "緊急", @@ -153,6 +153,15 @@ "dj-msg-option-OTHER": "其他", "dj-提醒关注": "提醒您關注", "dj-基础资料录入": "基礎資料錄入", - "dj-请输入需要录入的基础资料模板名称": "請輸入需要錄入的基礎資料模板名稱", - "dj-已通知x": "已通知{{x}}" -} + "dj-请输入需要录入的基础资料模板名称": "請輸入需要輸入的基礎資料模板名稱", + "dj-已通知x": "已通知{{x}}", + "dj-全部": "全部", + "dj-包含": "包含", + "dj-搜索关键字": "搜尋關鍵字", + "dj-重置": "重置", + "dj-搜索": "搜尋", + "dj-栏位": "欄位", + "dj-公式": "公式", + "dj-新增查询条件": "新增查詢條件", + "dj-最多同时查询3个条件": "最多同時查詢3個條件" +} \ No newline at end of file diff --git a/efm-demo-web/src/assets/i18n/zh_TW/default.json b/efm-demo-web/src/assets/i18n/zh_TW/default.json index 1797133..9e26dfe 100644 --- a/efm-demo-web/src/assets/i18n/zh_TW/default.json +++ b/efm-demo-web/src/assets/i18n/zh_TW/default.json @@ -1,3 +1 @@ -{ - -} +{} \ No newline at end of file diff --git a/efm-demo-web/src/assets/i18n/zh_TW/task.json b/efm-demo-web/src/assets/i18n/zh_TW/task.json index 6c1c8ff..b237a93 100644 --- a/efm-demo-web/src/assets/i18n/zh_TW/task.json +++ b/efm-demo-web/src/assets/i18n/zh_TW/task.json @@ -1,36 +1,36 @@ { - "dj-task-日": "日", - "dj-task-月": "月", - "dj-task-今天": "今天", - "dj-task-本月": "本月", - "dj-task-week1": "星期一", - "dj-task-week2": "星期二", - "dj-task-week3": "星期三", - "dj-task-week4": "星期四", - "dj-task-week5": "星期五", - "dj-task-week6": "星期六", - "dj-task-week0": "星期日", - "dj-task-逾期任务": "逾期任務", - "dj-task-暂无更多任务逾期": "暫無更多任務逾期", - "dj-task-任务未逾期": "工作完成良好,任務未逾期", - "dj-task-暂无异常排除": "暫無異常排除任務需跟蹤", - "dj-task-暂无项目逾期": "暫無項目逾期需跟催", - "dj-task-今日需完成n项任务": "今日需完成任務 {{ n }}", - "dj-task-需完成n项任务": "需完成{{ n }}項任務", - "dj-task-共n项任务": "共{{ n }}項任務", - "dj-task-共计n项任务": "共計{{ n }}項任務", - "dj-task-查看完整版": "進入當天任務,查看完整版", - "dj-task-项目逾期需跟催": "項目逾期需跟催", - "dj-task-异常排除需追踪": "異常排除需跟蹤", - "dj-task-今日优先处理任务": "今日優先處理任務", - "dj-task-今日一般任务": "今日一般任務", - "dj-task-可提前处理任务": "可提前處理任務", - "dj-task-暂无任务": "暫無任務", - "dj-task-暂无任务可执行": "暫無任務可執行", - "dj-task-all": "全部", - "dj-task-等n个": "…等{{ n }}個", - "dj-task-unit-1": "分公司", - "dj-task-unit-2": "工廠", - "dj-task-unit-3": "車間", - "dj-task-确定": "確定" + "dj-task-日": "日", + "dj-task-月": "月", + "dj-task-今天": "今天", + "dj-task-本月": "本月", + "dj-task-week1": "星期一", + "dj-task-week2": "星期二", + "dj-task-week3": "星期三", + "dj-task-week4": "星期四", + "dj-task-week5": "星期五", + "dj-task-week6": "星期六", + "dj-task-week0": "星期日", + "dj-task-逾期任务": "逾期任務", + "dj-task-暂无更多任务逾期": "暫無更多任務逾期", + "dj-task-任务未逾期": "工作完成良好,任務未逾期", + "dj-task-暂无异常排除": "暫無異常排除任務需跟蹤", + "dj-task-暂无项目逾期": "暫無專案逾期需跟催", + "dj-task-今日需完成n项任务": "今日需完成任務 {{ n }}", + "dj-task-需完成n项任务": "需完成{{ n }}項任務", + "dj-task-共n项任务": "共{{ n }}項任務", + "dj-task-共计n项任务": "共計{{ n }}項任務", + "dj-task-查看完整版": "進入當天任務,查看完整版", + "dj-task-项目逾期需跟催": "專案逾期需跟催", + "dj-task-异常排除需追踪": "異常排除需追蹤", + "dj-task-今日优先处理任务": "今日優先處理任務", + "dj-task-今日一般任务": "今日一般任務", + "dj-task-可提前处理任务": "可提前處理任務", + "dj-task-暂无任务": "暫無任務", + "dj-task-暂无任务可执行": "暫無任務可執行", + "dj-task-all": "全部", + "dj-task-等n个": "…等{{ n }}個", + "dj-task-unit-1": "分公司", + "dj-task-unit-2": "工廠", + "dj-task-unit-3": "車間", + "dj-task-确定": "確定" } \ No newline at end of file diff --git a/efm-demo-web/webpack.config.js b/efm-demo-web/webpack.config.js index af5bd2d..9a3aad5 100644 --- a/efm-demo-web/webpack.config.js +++ b/efm-demo-web/webpack.config.js @@ -1,46 +1,44 @@ /* eslint-env es2020 */ -const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin"); -const mf = require("@angular-architects/module-federation/webpack"); -const path = require("path"); +const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin'); +const mf = require('@angular-architects/module-federation/webpack'); +const path = require('path'); const share = mf.share; const sharedLib = require('./webpack-mf-shared'); const { shareAthenaLibs } = require('@athena/platform-devkit/lib/webpack/util'); const sharedMappings = new mf.SharedMappings(); -sharedMappings.register( - path.join(__dirname, 'tsconfig.json'), - [/* mapped paths to share */]); +sharedMappings.register(path.join(__dirname, 'tsconfig.json'), [ + /* mapped paths to share */ +]); module.exports = { output: { - uniqueName: "efm-demoAT", - publicPath: "auto" + uniqueName: 'efm-demoAT', + publicPath: 'auto', }, optimization: { - runtimeChunk: false - }, + runtimeChunk: false, + }, resolve: { alias: { ...sharedMappings.getAliases(), - } + }, }, plugins: [ new ModuleFederationPlugin({ - - name: "efmdemoAT", - filename: "EfmDemoATModule.js", + name: 'efmdemoAT', + filename: 'EfmDemoATModule.js', exposes: { - "./efm-demoAT": './src/app/implementation/athena-app.module.ts', + './efm-demoAT': './src/app/implementation/athena-app.module.ts', }, shared: share({ ...shareAthenaLibs({ - ...sharedLib.commonLibs + ...sharedLib.commonLibs, }), - ...sharedMappings.getDescriptors() - }) - + ...sharedMappings.getDescriptors(), + }), }), - sharedMappings.getPlugin() + sharedMappings.getPlugin(), ], };