From 9a53391999370426b11fc471a5822d14879af856 Mon Sep 17 00:00:00 2001 From: shr Date: Wed, 24 Apr 2024 15:58:53 +0800 Subject: [PATCH 1/5] =?UTF-8?q?:construction=5Fworker:=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 2 +- .drone.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 24 +++------------------ 3 files changed, 63 insertions(+), 22 deletions(-) create mode 100644 .drone.yml diff --git a/.dockerignore b/.dockerignore index ddc40edd..2922bcb2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ .dockerignore -dist +#dist node_modules diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..9e1ba9ba --- /dev/null +++ b/.drone.yml @@ -0,0 +1,59 @@ +--- +kind: pipeline +type: docker +name: default + +steps: +- name: build + image: node:16-alpine + pull: if_not_exists + environment: + NODE_ENV: "" + commands: + #- yarn install --frozen-lockfile + - yarn install + - env ${NODE_ENV} yarn build:prod + +- name: publish + image: docker:dind + pull: if_not_exists + volumes: + - name: dockersock + path: /var/run/docker.sock + - name: dockerconfig + path: /root/.docker + commands: + - docker build -t hub.kszny.picaiba.com/kszny/xcac-ui ./ + - docker push hub.kszny.picaiba.com/kszny/xcac-ui + depends_on: + - build + +- name: deploy + image: appleboy/drone-ssh + pull: if-not-exists + settings: + host: + - 172.24.145.74 + username: root + password: Root@123 + port: 22 + command_timeout: 2m + script: + - docker pull hub.kszny.picaiba.com/kszny/xcac-ui + - docker run --rm -v /data/www/xcac:/tmp hub.kszny.picaiba.com/kszny/xcac-ui sh -c "rm -rf /tmp/* && mv -f /html /tmp" + depends_on: + - publish + +volumes: +- name: dockersock + host: + path: /var/run/docker.sock +- name: dockerconfig + host: + path: /root/.docker + +trigger: + branch: + - projects/mesxc-test + event: + - push diff --git a/Dockerfile b/Dockerfile index 4764e741..0aa70ed0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,3 @@ -FROM node:16-alpine as build-stage - -WORKDIR /admim - -COPY .npmrc package.json yarn.lock ./ -RUN --mount=type=cache,id=yarn-store,target=/root/.yarn-store \ - yarn install --frozen-lockfile - -COPY . . -ARG NODE_ENV="" -RUN env ${NODE_ENV} yarn build:prod - -## -- stage: dist => nginx -- -FROM nginx:alpine - -ENV TZ=Asia/Shanghai - -COPY ./nginx.conf /etc/nginx/conf.d/default.conf -COPY --from=build-stage /admim/dist /usr/share/nginx/html - -EXPOSE 80 +FROM busybox +LABEL maintainer thomas.hairong@gmail.com +COPY dist /html/ From ab5867c4fd94f07e03a23ee09f7ddc42bf887302 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 24 Apr 2024 17:05:19 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 3 ++- src/views/databoard/components/ISRAChart.vue | 2 +- src/views/databoard/deepProcessing/EqAlarm.vue | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env.dev b/.env.dev index 2d9cb29e..dd91d53e 100644 --- a/.env.dev +++ b/.env.dev @@ -13,7 +13,8 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 VUE_APP_BASE_API = 'http://192.168.0.33:48082' -# VUE_APP_BASE_API = 'http://192.168.4.176:48082' +# VUE_APP_BASE_API = 'http://xcac.mes.picaiba.com/' +# VUE_APP_BASE_API = 'http://10.70.2.2:8080' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://192.168.1.101:48082' diff --git a/src/views/databoard/components/ISRAChart.vue b/src/views/databoard/components/ISRAChart.vue index 0e1ee1ea..76347619 100644 --- a/src/views/databoard/components/ISRAChart.vue +++ b/src/views/databoard/components/ISRAChart.vue @@ -85,7 +85,7 @@ export default { color: this.colors, title: { text: num, - subtext: '总数', + subtext: '总数/个', top: '32%', left: '49%', textAlign: 'center', diff --git a/src/views/databoard/deepProcessing/EqAlarm.vue b/src/views/databoard/deepProcessing/EqAlarm.vue index 65c107f3..805da998 100644 --- a/src/views/databoard/deepProcessing/EqAlarm.vue +++ b/src/views/databoard/deepProcessing/EqAlarm.vue @@ -66,8 +66,10 @@ export default { `${item.name || ''}`, `${item.code || ''}`, `
${item.status || ''}
`, `
- + - + 查询 导出 - - + +
From 21f48793941f933311a0a92b78a701f7473fd8ae Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Thu, 25 Apr 2024 09:10:28 +0800 Subject: [PATCH 5/5] date --- src/views/report/Product/monthly.vue | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/views/report/Product/monthly.vue b/src/views/report/Product/monthly.vue index a6342cc7..0e9c077e 100644 --- a/src/views/report/Product/monthly.vue +++ b/src/views/report/Product/monthly.vue @@ -1,7 +1,7 @@ @@ -33,7 +33,7 @@