diff --git a/package.json b/package.json index 846ef63..e0562d3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@vueup/vue-quill": "1.2.0", "@vueuse/core": "10.6.1", "axios": "0.27.2", - "echarts": "5.4.3", + "echarts": "^5.5.0", "element-plus": "2.4.3", "file-saver": "2.0.5", "fuse.js": "6.6.2", diff --git a/src/api/casm/quality.js b/src/api/casm/quality.js index b295447..80da85b 100644 --- a/src/api/casm/quality.js +++ b/src/api/casm/quality.js @@ -45,7 +45,7 @@ export function delQuality(id) { // 获取合格率 export function qualitystandardRate() { return request({ - url: '/casm/qualitystandardRate', + url: '/casm/quality/standardRate', method: 'get' }) } diff --git a/src/api/home.js b/src/api/home.js index 5767dad..2a974e7 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -6,4 +6,35 @@ export function getHomeDeviceInfoVO() { url: '/casm/device/getHomeDeviceInfo', method: 'get' }) +} +// 首页设备利用率 +//参数同首页其他接口 +export function homeDeviceRate() { + return request({ + url: '/casm/device/homeDeviceRate', + method: 'get' + }) +} +//实时生产监控 半小时产量 +export function halfHourOutputTotal() { + return request({ + url: '/casm/quality/halfHourOutputTotal', + method: 'get' + }) +} + + +//首页 设备 产品 人员信息 +export function getBaseInfoNew() { + return request({ + url: '/casm/quality/getBaseInfoNew', + method: 'get' + }) +} +//首页 产量堆叠图 +export function qualitynewDeviceOutputQuality() { + return request({ + url: '/casm/quality/newDeviceOutputQuality', + method: 'get' + }) } \ No newline at end of file diff --git a/src/assets/iconfont/iconfont.css b/src/assets/iconfont/iconfont.css index 4126905..655f1b5 100644 --- a/src/assets/iconfont/iconfont.css +++ b/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4503445 */ - src: url('iconfont.woff2?t=1712819070350') format('woff2'), - url('iconfont.woff?t=1712819070350') format('woff'), - url('iconfont.ttf?t=1712819070350') format('truetype'); + src: url('iconfont.woff2?t=1712901332022') format('woff2'), + url('iconfont.woff?t=1712901332022') format('woff'), + url('iconfont.ttf?t=1712901332022') format('truetype'); } .iconfont { @@ -13,6 +13,42 @@ -moz-osx-font-smoothing: grayscale; } +.icon-renyuanxinxi-copy:before { + content: "\e601"; +} + +.icon-baojing:before { + content: "\e64b"; +} + +.icon-zidongtaiyajiao:before { + content: "\e61f"; +} + +.icon-taiyajiaogaodu:before { + content: "\e623"; +} + +.icon-jizhenzhenshu:before { + content: "\e61a"; +} + +.icon-caijian:before { + content: "\e66e"; +} + +.icon-shebeixinxi:before { + content: "\ea02"; +} + +.icon-tonganrenyuanxinxi:before { + content: "\e61e"; +} + +.icon-a-zu496:before { + content: "\e600"; +} + .icon-shengchanxiaoshuai:before { content: "\e612"; } diff --git a/src/assets/iconfont/iconfont.ttf b/src/assets/iconfont/iconfont.ttf index 77182c7..0cb444d 100644 Binary files a/src/assets/iconfont/iconfont.ttf and b/src/assets/iconfont/iconfont.ttf differ diff --git a/src/assets/iconfont/iconfont.woff b/src/assets/iconfont/iconfont.woff index 0ed21eb..9f9856b 100644 Binary files a/src/assets/iconfont/iconfont.woff and b/src/assets/iconfont/iconfont.woff differ diff --git a/src/assets/iconfont/iconfont.woff2 b/src/assets/iconfont/iconfont.woff2 index 9e309de..a587ac2 100644 Binary files a/src/assets/iconfont/iconfont.woff2 and b/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/assets/icons/svg/renyuanxinxi.svg b/src/assets/icons/svg/renyuanxinxi.svg new file mode 100644 index 0000000..837dd2d --- /dev/null +++ b/src/assets/icons/svg/renyuanxinxi.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/shengchanxinxi.svg b/src/assets/icons/svg/shengchanxinxi.svg new file mode 100644 index 0000000..88379a3 --- /dev/null +++ b/src/assets/icons/svg/shengchanxinxi.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lang/i18n-en-US.js b/src/lang/i18n-en-US.js index 926b637..cb241a0 100644 --- a/src/lang/i18n-en-US.js +++ b/src/lang/i18n-en-US.js @@ -61,6 +61,9 @@ export default { "添加成功": "Add Success", "修改成功": "Edit Success", "删除成功": "Delete Success", + "合格": "Pass", + "不合格": "Fail", + "未完成": "Unfinished", }, "validate": { "不能为空": "Can not be empty ", @@ -103,6 +106,24 @@ export default { "fixedHeader": "Fixed Header", "sidebarLogo": "Sidebar Logo" }, + "home":{ + "员工总数": "Staff Total", + "设备总数": "Device Total", + "产出进度": "Output Progress", + "设备": "Device", + "使用中": "In Use", + "停机": "Down", + "总数": "Total", + "工作人员": "Staff", + "加工信息": "Process Info", + "产量": "Output", + "稼动率": "Utilization", + "设备利用率": "Device Utilization", + "设备状态": "Device Status", + "台": "Units", + "人": "Pepole", + + }, "device": { "设备信息": "Device Info", "设备名称": "Device Name", @@ -129,7 +150,9 @@ export default { "图片": "Image", "底线编码": "BottomCode", "面线编码": "UpperCode", - "表面张力": "Tension", + "表面张力": "Tension", + "最小张力": "Min Tension", + "最大张力": "Max Tension", "最小值": "Min", "最大值": "Max", "最小针数": "MinNeedle", @@ -141,7 +164,7 @@ export default { "梭芯信息": "Bobbin", "排序": "Sort", "类型": "Type", - "第几针": "Needle No.", + "第几次": "Needle No.", "步骤": "Step", }, "produce": { diff --git a/src/lang/i18n-zh-CN.js b/src/lang/i18n-zh-CN.js index a0fb2ab..b365bfc 100644 --- a/src/lang/i18n-zh-CN.js +++ b/src/lang/i18n-zh-CN.js @@ -62,6 +62,9 @@ export default { "添加成功": "添加成功", "修改成功": "修改成功", "删除成功": "删除成功", + '合格': '合格', + '不合格': '不合格', + "未完成": "未完成", }, "validate": { "不能为空": "不能为空", @@ -104,6 +107,23 @@ export default { "fixedHeader": "固定 Header", "sidebarLogo": "侧边栏 Logo" }, + "home":{ + "员工总数": "员工总数", + "设备总数": "设备总数", + "产出进度": "产出进度", + "设备": "设备", + "使用中": "使用中", + "停机": "停机", + "总数": "总数", + "工作人员": "工作人员", + "加工信息": "加工信息", + "产量": "产量", + "稼动率": "稼动率", + "设备利用率": "设备利用率", + "设备状态": "设备状态", + "台": "台", + "人": "人", + }, "device": { "设备信息": "设备信息", "设备名称": "设备名称", @@ -131,6 +151,8 @@ export default { "底线编码": "底线编码", "面线编码": "面线编码", "表面张力": "表面张力", + "最小张力": "最小张力", + "最大张力": "最大张力", "最小值": "最小值", "最大值": "最大值", "最小针数": "最小针数", diff --git a/src/main.js b/src/main.js index 29d7d99..8dd9f1a 100644 --- a/src/main.js +++ b/src/main.js @@ -51,12 +51,13 @@ import { getStoredLanguage, saveStoredLanguage } from "@/utils/languageStorage"; import VECharts from 'vue-echarts' import { use } from 'echarts/core' // 手动引入 ECharts 各模块来减小打包体积 - +//引入iconfont +import './assets/iconfont/iconfont.css' import { CanvasRenderer } from 'echarts/renderers' import { - PieChart,LineChart + PieChart,LineChart,BarChart } from 'echarts/charts' import { TitleComponent, @@ -72,6 +73,7 @@ use([ GridComponent, PieChart, LineChart, + BarChart ]); diff --git a/src/router/index.js b/src/router/index.js index 15425c6..c4a9d64 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -66,7 +66,7 @@ export const constantRoutes = [ path: '/index', component: () => import('@/views/index'), name: 'Index', - meta: { title: '实时生产监控', icon: 'dashboard', affix: true } + meta: { title: '首页', icon: 'dashboard', affix: true } } ] }, diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue new file mode 100644 index 0000000..a642989 --- /dev/null +++ b/src/views/dashboard.vue @@ -0,0 +1,316 @@ + + + + + \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index 85f9bdd..5d2b40b 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,95 +1,187 @@ - \ No newline at end of file + diff --git a/src/views/produce/info.vue b/src/views/produce/info.vue index b3621a9..59d6920 100644 --- a/src/views/produce/info.vue +++ b/src/views/produce/info.vue @@ -1,20 +1,20 @@