diff --git a/src/pages.json b/src/pages.json index 44f5403..0b75fb3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -686,6 +686,12 @@ "navigationStyle": "custom" } }, + { + "path": "pages/nameplateUpdate/index", + "style": { + "navigationStyle": "custom" + } + }, // 材料站 start // 首页 { diff --git a/src/pages/dateUpdate/index.vue b/src/pages/dateUpdate/index.vue index e686ef2..5d819e7 100644 --- a/src/pages/dateUpdate/index.vue +++ b/src/pages/dateUpdate/index.vue @@ -48,7 +48,7 @@ - + + diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue index bfdb8d7..1bd6312 100644 --- a/src/pages/work/index.vue +++ b/src/pages/work/index.vue @@ -158,7 +158,7 @@ const newInfoList = ref([ }, { title: '铭牌更新', - url: '', + url: '/pages/nameplateUpdate/index', iconSrc: '../../static/workbench/minPai.png', }, ]) diff --git a/src/services/information.js b/src/services/information.js new file mode 100644 index 0000000..c0d2eee --- /dev/null +++ b/src/services/information.js @@ -0,0 +1,19 @@ +import { http } from '@/utils/http' + +// 获取铭牌信息 +export const getInfoByCode = (data) => { + return http({ + method: 'GET', + url: '/material/ma_machine/getInfoByCode', + data, + }) +} + +// 更新铭牌 +export const updateInfo = (data) => { + return http({ + method: 'PUT', + url: '/material/ma_machine', + data, + }) +} \ No newline at end of file