From 151abbb60177da72ae541e521f01e8e7e4fc6182 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 17 Oct 2023 17:51:09 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A4=87=E5=93=81=E5=A4=87=E4=BB=B6?= =?UTF-8?q?=E9=A2=86=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/sparePartsApplicationRecord.js | 44 ++ .../sparePartsApplicationRecord/index.vue | 402 ++++++++++++++++++ 2 files changed, 446 insertions(+) create mode 100644 src/api/device/sparePartsApplicationRecord.js create mode 100644 src/views/device/sparePartsApplicationRecord/index.vue diff --git a/src/api/device/sparePartsApplicationRecord.js b/src/api/device/sparePartsApplicationRecord.js new file mode 100644 index 0000000..ed6fb54 --- /dev/null +++ b/src/api/device/sparePartsApplicationRecord.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询申领记录列表 +export function listSparePartsApplicationRecord(query) { + return request({ + url: '/device/sparePartsApplicationRecord/list', + method: 'get', + params: query + }); +} + +// 查询申领记录详细 +export function getSparePartsApplicationRecord(applyId) { + return request({ + url: '/device/sparePartsApplicationRecord/' + applyId, + method: 'get' + }); +} + +// 新增申领记录 +export function addSparePartsApplicationRecord(data) { + return request({ + url: '/device/sparePartsApplicationRecord', + method: 'post', + data: data + }); +} + +// 修改申领记录 +export function updateSparePartsApplicationRecord(data) { + return request({ + url: '/device/sparePartsApplicationRecord', + method: 'put', + data: data + }); +} + +// 删除申领记录 +export function delSparePartsApplicationRecord(applyId) { + return request({ + url: '/device/sparePartsApplicationRecord/' + applyId, + method: 'delete' + }); +} diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue new file mode 100644 index 0000000..1d3646a --- /dev/null +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -0,0 +1,402 @@ + + + From ecd4962be991436fdd9a96f44bcafecceafa9805 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Wed, 18 Oct 2023 10:01:35 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=8F=91=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push-op-ui-prod.bat | 27 +++++++++++++++++++++++++++ push-op-ui-test.bat | 28 ++++++++++++++++++++++++++++ src/views/login.vue | 4 ++-- 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 push-op-ui-prod.bat create mode 100644 push-op-ui-test.bat diff --git a/push-op-ui-prod.bat b/push-op-ui-prod.bat new file mode 100644 index 0000000..89edade --- /dev/null +++ b/push-op-ui-prod.bat @@ -0,0 +1,27 @@ +@echo off +echo --------------------------------Զǰ޸-------------------------------------- +set imageURI=192.168.202.36:30002/op-lanju/op-ui +::echo ȡǰַ +for /f "tokens=1,2,3 delims=/- " %%a in ("%date%") do @set D=%%a%%b%%c +::echo ȡǰʱַ +for /f "tokens=1,2 delims=:." %%a in ("%time%") do @set T=%%a%%b +::echo 統ǰСʱС10ո滻Ϊ0 +set T=%T: =0% +::echo ʾʱַ +set imageVersion=%D%%T% +::Ϣ +echo ַ:%imageURI% +echo 汾:%imageVersion% +echo --------------------------------ִд-------------------------------- +call npm run build:prod + +dir +echo --------------------------------docker login...------------------------------- +docker login 192.168.202.36:30002 -u deploy -p Deploy@2023 +echo --------------------------------docker build...------------------------------- +docker build -t %imageURI%:%imageVersion% . +echo --------------------------------docker push...-------------------------------- +docker push %imageURI%:%imageVersion% +@pause + +::docker pull 192.168.3.157:8001/library/nginx:1.20-alpine \ No newline at end of file diff --git a/push-op-ui-test.bat b/push-op-ui-test.bat new file mode 100644 index 0000000..bae3fb2 --- /dev/null +++ b/push-op-ui-test.bat @@ -0,0 +1,28 @@ +@echo off +echo --------------------------------Զǰ޸-------------------------------------- +set imageURI=140.249.53.142:30002/op-lanju/ld-op-front +::echo ȡǰַ +for /f "tokens=1,2,3 delims=/- " %%a in ("%date%") do @set D=%%a%%b%%c +::echo ȡǰʱַ +for /f "tokens=1,2 delims=:." %%a in ("%time%") do @set T=%%a%%b +::echo 統ǰСʱС10ո滻Ϊ0 +set T=%T: =0% +::echo ʾʱַ +set imageVersion=%D%%T% +::Ϣ +echo ַ:%imageURI% +echo 汾:%imageVersion% +echo --------------------------------ִд-------------------------------- +call npm run build:prod + +dir +echo --------------------------------docker login...------------------------------- +docker logout 140.249.53.142:30002 +docker login 140.249.53.142:30002 -u deploy -p Deploy@2022 +echo --------------------------------docker build...------------------------------- +docker build -t %imageURI%:%imageVersion% . +echo --------------------------------docker push...-------------------------------- +docker push %imageURI%:%imageVersion% +@pause + +::docker pull 192.168.3.157:8001/library/nginx:1.20-alpine \ No newline at end of file diff --git a/src/views/login.vue b/src/views/login.vue index 1a7e5d8..8a26445 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -72,8 +72,8 @@ export default { return { codeUrl: "", loginForm: { - username: "admin", - password: "admin123", + username: "",//admin + password: "",//admin123 rememberMe: false, code: "", uuid: "" From 4605da788dbf08da90fb0398d6efce6c790f7317 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 18 Oct 2023 14:28:34 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=A4=87=E5=93=81=E5=A4=87=E4=BB=B6?= =?UTF-8?q?=E9=A2=86=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sparePartsApplicationRecord/index.vue | 61 +++++++++++++++---- 1 file changed, 48 insertions(+), 13 deletions(-) diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue index 1d3646a..7cdbe54 100644 --- a/src/views/device/sparePartsApplicationRecord/index.vue +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -57,14 +57,6 @@ @keyup.enter.native="handleQuery" /> - - - - + + + + 搜索 重置 @@ -140,17 +145,17 @@ - + - - + +