12 changed files with 880 additions and 190 deletions
@ -0,0 +1,187 @@ |
|||
--- |
|||
kind: pipeline |
|||
type: docker |
|||
name: development |
|||
|
|||
# 挂载的主机卷,可以映射到docker容器中 |
|||
volumes: |
|||
# maven构建缓存(宿主机目录) |
|||
- name: ssh_key |
|||
host: |
|||
path: /root/.ssh/ |
|||
- name: cache |
|||
host: |
|||
path: /var/lib/cache |
|||
- name: data |
|||
host: |
|||
path: /var/lib/data |
|||
|
|||
steps: |
|||
# - name: restore-cache |
|||
# image: drillster/drone-volume-cache |
|||
# volumes: |
|||
# - name: cache |
|||
# path: /cache |
|||
# settings: |
|||
# restore: true |
|||
# mount: |
|||
# - ./node_modules |
|||
|
|||
- name: build |
|||
image: node:16 |
|||
pull: if-not-exists # default always |
|||
# volumes: |
|||
# - name: cache |
|||
# path: /root/.m2 |
|||
commands: |
|||
- npm config set registry http://registry.npm.taobao.org |
|||
- npm i |
|||
- npm run build:test |
|||
|
|||
# - name: rebuild-cache |
|||
# image: drillster/drone-volume-cache |
|||
# volumes: |
|||
# - name: cache |
|||
# path: /cache |
|||
# settings: |
|||
# rebuild: true |
|||
# mount: |
|||
# - ./node_modules |
|||
|
|||
- name: deploy-scp |
|||
image: appleboy/drone-scp |
|||
pull: if-not-exists |
|||
volumes: |
|||
- name: ssh_key |
|||
path: /root/.ssh/ |
|||
settings: |
|||
host: test.tall.wiki |
|||
port: 22 |
|||
username: root |
|||
key_path: /root/.ssh/id_rsa |
|||
rm: true # true则会删除目标目录重建 |
|||
target: /home/checkwork |
|||
source: dist/* |
|||
strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target |
|||
|
|||
- name: notify-wechatwork |
|||
image: fifsky/drone-wechat-work |
|||
pull: if-not-exists |
|||
settings: |
|||
url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 |
|||
msgtype: markdown |
|||
content: | |
|||
{{if eq .Status "success" }} |
|||
#### 🎉 ${DRONE_REPO} 构建成功 |
|||
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) |
|||
> Author: ${DRONE_COMMIT_AUTHOR} |
|||
> [点击查看](${DRONE_BUILD_LINK}) |
|||
{{else}} |
|||
#### ❌ ${DRONE_REPO} 构建失败 |
|||
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) |
|||
> Author: ${DRONE_COMMIT_AUTHOR} |
|||
> 请立即修复!!! |
|||
> [点击查看](${DRONE_BUILD_LINK}) |
|||
{{end}} |
|||
when: |
|||
status: |
|||
- failure |
|||
- success |
|||
|
|||
trigger: |
|||
branch: |
|||
- develop |
|||
|
|||
--- |
|||
kind: pipeline |
|||
type: docker |
|||
name: production |
|||
|
|||
# 挂载的主机卷,可以映射到docker容器中 |
|||
volumes: |
|||
# maven构建缓存(宿主机目录) |
|||
- name: ssh_key |
|||
host: |
|||
path: /root/.ssh/ |
|||
- name: cache |
|||
host: |
|||
path: /var/lib/cache |
|||
- name: data |
|||
host: |
|||
path: /var/lib/data |
|||
|
|||
steps: |
|||
# - name: restore-cache |
|||
# image: drillster/drone-volume-cache |
|||
# volumes: |
|||
# - name: cache |
|||
# path: /cache |
|||
# settings: |
|||
# restore: true |
|||
# mount: |
|||
# - ./node_modules |
|||
|
|||
- name: build |
|||
image: node |
|||
pull: if-not-exists # default always |
|||
# volumes: |
|||
# - name: cache |
|||
# path: /root/.m2 |
|||
commands: |
|||
- npm config set registry http://registry.npm.taobao.org |
|||
- npm i |
|||
- npm run test |
|||
|
|||
# - name: rebuild-cache |
|||
# image: drillster/drone-volume-cache |
|||
# volumes: |
|||
# - name: cache |
|||
# path: /cache |
|||
# settings: |
|||
# rebuild: true |
|||
# mount: |
|||
# - ./node_modules |
|||
|
|||
- name: deploy-scp |
|||
image: appleboy/drone-scp |
|||
pull: if-not-exists |
|||
volumes: |
|||
- name: ssh_key |
|||
path: /root/.ssh/ |
|||
settings: |
|||
host: www.tall.wiki |
|||
port: 22 |
|||
username: root |
|||
key_path: /root/.ssh/id_rsa |
|||
rm: true # true则会删除目标目录重建 |
|||
target: /home/checkwork |
|||
source: dist/* |
|||
strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target |
|||
|
|||
- name: notify-wechatwork |
|||
image: fifsky/drone-wechat-work |
|||
pull: if-not-exists |
|||
settings: |
|||
url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=428e5c5d-f992-4349-939d-9c99556e50b8 |
|||
msgtype: markdown |
|||
content: | |
|||
{{if eq .Status "success" }} |
|||
#### 🎉 ${DRONE_REPO} 构建成功 |
|||
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) |
|||
> Author: ${DRONE_COMMIT_AUTHOR} |
|||
> [点击查看](${DRONE_BUILD_LINK}) |
|||
{{else}} |
|||
#### ❌ ${DRONE_REPO} 构建失败 |
|||
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK}) |
|||
> Author: ${DRONE_COMMIT_AUTHOR} |
|||
> 请立即修复!!! |
|||
> [点击查看](${DRONE_BUILD_LINK}) |
|||
{{end}} |
|||
when: |
|||
status: |
|||
- failure |
|||
- success |
|||
|
|||
trigger: |
|||
branch: |
|||
- master |
|||
@ -1,10 +1,10 @@ |
|||
VUE_APP_MODE=production |
|||
VUE_APP_NODE_ENV=production |
|||
VUE_APP_SCENE=checkwork |
|||
VUE_APP_BASE_URL=https://test.tall.wiki/checkwork/ |
|||
VUE_APP_API_URL=https://test.tall.wiki/checkwork/gateway |
|||
VUE_APP_BASE_URL=https://www.tall.wiki/checkwork/ |
|||
VUE_APP_API_URL=https://www.tall.wiki/checkwork/gateway |
|||
VUE_APP_PROXY_URL=/gateway |
|||
VUE_APP_PUBLIC_PATH=/checkwork |
|||
VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws |
|||
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws |
|||
VUE_APP_TITLE=考勤管理 |
|||
VUE_APP_DESCRIPTION=考勤管理 |
|||
|
|||
@ -0,0 +1,99 @@ |
|||
<template> |
|||
<div class="staff-detail"> |
|||
<div class="staff-flex white"> |
|||
<div class="flex-title px-4 h-48 flex justify-between items-center border-b">个人信息</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>姓名</div> |
|||
<div>张三</div> |
|||
</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>性别</div> |
|||
<div>女</div> |
|||
</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>年龄</div> |
|||
<div>20</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="staff-flex mt-2 white"> |
|||
<div class="flex-title px-4 h-48 flex justify-between items-center border-b">岗位信息</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>部门</div> |
|||
<div>软件部</div> |
|||
</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>职务</div> |
|||
<div>项目负责人</div> |
|||
</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>入职时间</div> |
|||
<div>2021-10-20</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="staff-flex mt-2 white"> |
|||
<div class="flex-title px-4 h-48 flex justify-between items-center border-b">薪资信息</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>固定工资</div> |
|||
<div> |
|||
<a-input class="flex-input text-right" placeholder="请完善信息" type="number" v-model="fixed_salary" @change="onChange" /> |
|||
</div> |
|||
</div> |
|||
<div class="flex-con px-4 h-48 flex justify-between items-center border-b"> |
|||
<div>期权置换</div> |
|||
<div> |
|||
<a-input class="flex-input text-right" placeholder="请完善信息" type="number" v-model="option_salary" @change="onChange" /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
fixed_salary: null, // 固定工资 |
|||
option_salary: '', // 期权 |
|||
}; |
|||
}, |
|||
|
|||
methods: { |
|||
onChange(e) { |
|||
console.log(e); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
.staff-detail { |
|||
width: 100%; |
|||
min-height: 100vh; |
|||
padding-bottom: 70px; |
|||
background: #f3f3f3; |
|||
} |
|||
|
|||
.h-48 { |
|||
height: 48px; |
|||
} |
|||
|
|||
.flex-title { |
|||
color: #595959; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.flex-con { |
|||
color: #595959; |
|||
} |
|||
|
|||
.flex-input { |
|||
padding: 0; |
|||
border: none; |
|||
|
|||
&:hover { |
|||
box-shadow: none; |
|||
} |
|||
} |
|||
</style> |
|||
Loading…
Reference in new issue