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/.env.dev b/.env.dev index d31675a5..af46599c 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-12 14:30:48 - # @LastEditTime: 2024-04-25 09:43:17 + # @LastEditTime: 2024-04-25 10:07:02 # @LastEditors: zhp # @Description: ### 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/ diff --git a/src/api/report/glass.js b/src/api/report/glass.js index 00b52fd3..2d98f242 100644 --- a/src/api/report/glass.js +++ b/src/api/report/glass.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-12-08 10:26:48 - * @LastEditTime: 2023-12-13 17:16:00 + * @LastEditTime: 2024-04-24 16:31:37 * @LastEditors: DY * @Description: */ @@ -59,3 +59,39 @@ export function exportGlasscExcel(query) { responseType: 'blob' }) } + +// 生产月报查询--冷端生产线 +export function productionMonthY(data) { + return request({ + url: '/extend/customized-reports/productionMonthY', + method: 'post', + data: data + }) +} + +// 生产月报查询--深加工生产线 +export function productionMonthD(data) { + return request({ + url: '/extend/customized-reports/productionMonthD', + method: 'post', + data: data + }) +} + +// 生产年报查询--冷端生产线 +export function productionYearY(data) { + return request({ + url: '/extend/customized-reports/productionYearY', + method: 'post', + data: data + }) +} + +// 生产年报查询--冷端生产线 +export function productionYearD(data) { + return request({ + url: '/extend/customized-reports/productionYearD', + method: 'post', + data: data + }) +} 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 || ''}
`, `
- - - - - - - 查询 - - 导出 - - - -
+
+ + + + + + 查询 + + + 导出 + + + + +
diff --git a/src/views/report/Product/weekly.vue b/src/views/report/Product/weekly.vue index 42cb7ee4..378aa55a 100644 --- a/src/views/report/Product/weekly.vue +++ b/src/views/report/Product/weekly.vue @@ -1,7 +1,7 @@ @@ -28,7 +28,9 @@ diff --git a/src/views/report/productionMonthReport/index.vue b/src/views/report/productionMonthReport/index.vue index 97d50d20..649570d0 100644 --- a/src/views/report/productionMonthReport/index.vue +++ b/src/views/report/productionMonthReport/index.vue @@ -1,7 +1,7 @@ @@ -26,7 +26,7 @@ 保存 - @@ -496,7 +496,7 @@ export default { /* 从表生成工作簿对象 */ import('xlsx').then(excel => { var wb = excel.utils.table_to_book( - document.querySelector("#exportTable"), + document.querySelector("#exportproductionTable"), xlsxParam ); /* 获取二进制字符串作为输出 */ diff --git a/src/views/report/productionWeekReport/index.vue b/src/views/report/productionWeekReport/index.vue index 90b24211..cf67175f 100644 --- a/src/views/report/productionWeekReport/index.vue +++ b/src/views/report/productionWeekReport/index.vue @@ -1,7 +1,7 @@ @@ -28,7 +28,7 @@ 保存 - @@ -517,7 +517,7 @@ export default { /* 从表生成工作簿对象 */ import('xlsx').then(excel => { var wb = excel.utils.table_to_book( - document.querySelector("#exportTable"), + document.querySelector("#exportproductionTable"), xlsxParam ); /* 获取二进制字符串作为输出 */ diff --git a/src/views/report/productionYearReport/index.vue b/src/views/report/productionYearReport/index.vue index 4740f1d8..0315c056 100644 --- a/src/views/report/productionYearReport/index.vue +++ b/src/views/report/productionYearReport/index.vue @@ -1,7 +1,7 @@ @@ -30,7 +30,7 @@ 保存 - @@ -452,7 +452,7 @@ export default { /* 从表生成工作簿对象 */ import('xlsx').then(excel => { var wb = excel.utils.table_to_book( - document.querySelector("#exportTable"), + document.querySelector("#exportproductionTable"), xlsxParam ); /* 获取二进制字符串作为输出 */