diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index cc71990..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,96 +0,0 @@ -// Jenkinsfile for Project A - -pipeline { - agent any - - parameters { - // 项目特定的默认值 - string(name: 'GIT_REPO_URL', defaultValue: 'https://your-git-server.com/project-a.git', description: 'Git仓库URL') - string(name: 'GIT_BRANCH', defaultValue: 'main', description: '要拉取的Git分支') - credentials(name: 'GIT_CREDENTIALS_ID', defaultValue: 'your-git-credentials-id', description: 'Git凭证ID', required: false) - - string(name: 'BUILD_COMMAND', defaultValue: 'mvn clean package -DskipTests', description: '项目A打包命令') // project-a 的打包命令 - - string(name: 'DOCKER_REGISTRY_URL', defaultValue: 'your-docker-registry.com', description: 'Docker镜像仓库URL') - string(name: 'DOCKER_IMAGE_NAME', defaultValue: 'project-a-app', description: 'Docker镜像名称') // project-a 的镜像名 - string(name: 'IMAGE_BASE_TAG', defaultValue: '1.0', description: '基础镜像标签') - credentials(name: 'DOCKER_CREDENTIALS_ID', defaultValue: 'your-docker-registry-credentials-id', description: 'Docker镜像仓库凭证ID', required: true) - booleanParam(name: 'PUSH_LATEST_TAG', defaultValue: true, description: '是否同时推送 latest 标签?') - } - - environment { - FULL_IMAGE_NAME = "${params.DOCKER_REGISTRY_URL}/${params.DOCKER_IMAGE_NAME}" - IMAGE_TAG = "" // 将在 Checkout 后动态设置 - } - - // tools { ... } // 如果需要 - - stages { - stage('1. Checkout Code') { - steps { - echo "拉取代码从 ${params.GIT_REPO_URL}, 分支: ${params.GIT_BRANCH}" - cleanWs() - checkout([ - $class: 'GitSCM', - branches: [[name: params.GIT_BRANCH]], - userRemoteConfigs: [[ - url: params.GIT_REPO_URL, - credentialsId: params.GIT_CREDENTIALS_ID - ]], - extensions: [ - [$class: 'CloneOption', shallow: true, noTags: true, depth: 1, timeout: 20], - [$class: 'PruneStaleBranch'] - ] - ]) - script { - def shortCommit = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim() - env.IMAGE_TAG = "${params.IMAGE_BASE_TAG}-${BUILD_NUMBER}-${shortCommit}" - echo "生成的镜像TAG: ${env.IMAGE_TAG}" - } - } - } - - stage('2. Build and Package Application') { - steps { - echo "开始打包应用: ${params.BUILD_COMMAND}" - sh "${params.BUILD_COMMAND}" - echo "应用打包完成." - } - } - - stage('3. Build Docker Image') { - steps { - echo "开始构建Docker镜像: ${env.FULL_IMAGE_NAME}:${env.IMAGE_TAG}" - script { - docker.build("${env.FULL_IMAGE_NAME}:${env.IMAGE_TAG}", "-f Dockerfile .") // 假设 Dockerfile 在根目录 - } - echo "Docker镜像构建完成: ${env.FULL_IMAGE_NAME}:${env.IMAGE_TAG}" - } - } - - stage('4. Push Docker Image') { - steps { - echo "开始推送Docker镜像到 ${params.DOCKER_REGISTRY_URL}" - script { - docker.withRegistry(params.DOCKER_REGISTRY_URL, params.DOCKER_CREDENTIALS_ID) { - docker.image("${env.FULL_IMAGE_NAME}:${env.IMAGE_TAG}").push() - echo "镜像 ${env.FULL_IMAGE_NAME}:${env.IMAGE_TAG} 推送成功." - if (params.PUSH_LATEST_TAG) { - docker.image("${env.FULL_IMAGE_NAME}:${env.IMAGE_TAG}").push('latest') - echo "镜像 ${env.FULL_IMAGE_NAME}:latest 推送成功." - } - } - } - } - } - } - - post { - always { - echo 'Pipeline 结束.' - cleanWs() - } - // success { ... } - // failure { ... } - } -} diff --git a/src/assets/images/pages/icon_abnormal_personnel.png b/src/assets/images/pages/icon_abnormal_personnel.png new file mode 100644 index 0000000..5e50e6f Binary files /dev/null and b/src/assets/images/pages/icon_abnormal_personnel.png differ diff --git a/src/assets/images/pages/icon_distribution.png b/src/assets/images/pages/icon_distribution.png new file mode 100644 index 0000000..45e9f9c Binary files /dev/null and b/src/assets/images/pages/icon_distribution.png differ diff --git a/src/components/layouts/defaultLayout.vue b/src/components/layouts/defaultLayout.vue index cfeb703..d38e37e 100644 --- a/src/components/layouts/defaultLayout.vue +++ b/src/components/layouts/defaultLayout.vue @@ -31,13 +31,15 @@ import Home from '@/views/home/index.vue' import personnePostPhysicalExamination from '@/views/personnePostPhysicalExamination/index.vue' import personnelHealthMonitoring from '@/views/personnelHealthMonitoring/index.vue' import personalHealthCenter from '@/views/personalHealthCenter/index.vue' +import healthWarning from '@/views/healthWarning/index.vue' const currentComponent = shallowRef(null) const staticRoutes = { personnePostPhysicalExamination, personnelHealthMonitoring, - personalHealthCenter + personalHealthCenter, + healthWarning } const route = useRoute() diff --git a/src/views/healthWarning/index.vue b/src/views/healthWarning/index.vue new file mode 100644 index 0000000..292e2a9 --- /dev/null +++ b/src/views/healthWarning/index.vue @@ -0,0 +1,325 @@ + + + + + \ No newline at end of file diff --git a/src/views/personalHealthCenter/index.vue b/src/views/personalHealthCenter/index.vue index 16c2a19..bb2375e 100644 --- a/src/views/personalHealthCenter/index.vue +++ b/src/views/personalHealthCenter/index.vue @@ -75,16 +75,12 @@ - + diff --git a/src/views/personnePostPhysicalExamination/index.vue b/src/views/personnePostPhysicalExamination/index.vue index 3ec2ec6..a10eca7 100644 --- a/src/views/personnePostPhysicalExamination/index.vue +++ b/src/views/personnePostPhysicalExamination/index.vue @@ -149,9 +149,9 @@ const background = ref(true) const disabled = ref(false) const size = ref('default') const tableData = ref([ - { A1: '椤圭洰1', A2: '鏍囨1', A14: '鍔冲姟闃1', A3: '寮犱笁', A4: '鐢', A5: '18', A6: '鐢靛伐', A7: '2022-01-01', A8: '2022-01-01', A9: '145/95', A10: '80', A11: '101', A12: '37.5', A13: '寮傚父' }, - { A1: '椤圭洰1', A2: '鏍囨1', A14: '鍔冲姟闃2', A3: '寮犱笁', A4: '鐢', A5: '18', A6: '鐢靛伐', A7: '2022-01-01', A8: '2022-01-01', A9: '120/80', A10: '95', A11: '70', A12: '36.5', A13: '姝e父' }, - { A1: '椤圭洰1', A2: '鏍囨1', A14: '鍔冲姟闃1', A3: '寮犱笁', A4: '鐢', A5: '18', A6: '鐢靛伐', A7: '2022-01-01', A8: '2022-01-01', A9: '120/80', A10: '95', A11: '59', A12: '36.5', A13: '姝e父' }, + { A1: '椤圭洰1', A2: '鏍囨1', A14: '鍔冲姟闃1', A3: '寮犱笁', A4: '鐢', A5: '20', A6: '鐢靛伐', A7: '2025-06-01', A8: '2025-06-02', A9: '145/95', A10: '80', A11: '101', A12: '37.5', A13: '寮傚父' }, + { A1: '椤圭洰2', A2: '鏍囨2', A14: '鍔冲姟闃2', A3: '寮犱笁', A4: '鐢', A5: '20', A6: '鐢靛伐', A7: '2025-06-01', A8: '2025-06-02', A9: '120/80', A10: '95', A11: '70', A12: '36.5', A13: '姝e父' }, + { A1: '椤圭洰3', A2: '鏍囨3', A14: '鍔冲姟闃3', A3: '寮犱笁', A4: '鐢', A5: '20', A6: '鐢靛伐', A7: '2025-06-01', A8: '2025-06-02', A9: '120/80', A10: '95', A11: '59', A12: '36.5', A13: '姝e父' }, ]) const isBloodPressureNormal = (pressure) => { if (!pressure) return false; diff --git a/vite.config.js b/vite.config.js index 5b4fdec..1429992 100644 --- a/vite.config.js +++ b/vite.config.js @@ -69,6 +69,18 @@ export default defineConfig(({ mode }) => { console.log(` Path: ${proxyReq.path}`); console.log(' Request Headers:', req.headers); } + }, + '/api/jkfzjc': { + target: env.VITE_BASE_URL, + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api\/lmg/, '/api'), + secure: false, + onProxyReq: (proxyReq, req, res) => { + console.log('Proxying request:'); + console.log(` Method: ${req.method}`); + console.log(` Path: ${proxyReq.path}`); + console.log(' Request Headers:', req.headers); + } } } },