From 435c0bd814f954a12087616f13d77b337a59fdef Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Thu, 20 Jan 2022 23:14:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BA=A4=E4=BB=98=E7=89=A9):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=A3=80=E6=9F=A5=E4=BA=BA=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=B9=8B=E9=97=B4=E7=9B=B8=E4=BA=92=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 149 ------------------------------- CHANGELOG.md | 1 + components/Reviewer/Reviewer.vue | 38 +++++--- config/deliver.js | 2 + config/index.js | 16 ++++ pages/index/index.vue | 51 +++++++---- plugins/p-deliver/p-deliver.vue | 88 ++++++++---------- 7 files changed, 113 insertions(+), 232 deletions(-) delete mode 100644 .drone.yml create mode 100644 config/deliver.js create mode 100644 config/index.js diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 51fe1c1..0000000 --- a/.drone.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -kind: pipeline -type: docker -name: dev - -# 挂载的主机卷,可以映射到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:latest - 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: test.tall.wiki - port: 22 - username: root - key_path: /root/.ssh/id_rsa - rm: true # true则会删除目标目录重建 - target: /home/tall/v4.0.0 - source: dist/* - strip_components: 1 # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target - - # - name: run-ssh - # image: appleboy/drone-ssh - # pull: if-not-exists - # volumes: - # - name: ssh_key - # path: /root/.ssh/ - # settings: - # settings: - # host: test.tall.wiki - # port: 22 - # username: root - # key_path: /root/.ssh/id_rsa - # script_stop: true # stop script after first failure - # #command_timeout: 30s # 30seconds, the maximum amount of time for the execute commands, default is 10 minutes. - # script: - # - cd /home/iacd-platform-drone - # - ./re.sh > /dev/null 2> /dev/null & - - - name: notify-email - image: drillster/drone-email - pull: if-not-exists - settings: - host: smtp.qiye.aliyun.com #例如 smtp.qq.com - port: 465 #例如QQ邮箱端口465 - username: devops@ccsens.com #邮箱用户名 - password: #邮箱密码 - from_secret: orgsecret_password_mail_devops - from: devops@ccsens.com - recipients: weizezhao@ccsens.com #收件人,多个用,隔开 - when: #执行条件 - status: - - success - - changed - - failure - - - name: notify-wechatwork - image: fifsky/drone-wechat-work - pull: if-not-exists - settings: - url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=b2b93e9a-128b-41d4-8dce-12004e3f48b9 - 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: feat - # - name: notify-dingtalk - # image: lddsb/drone-dingtalk-message - # environment: - # PASSWORD: - # from_secret: password_mail_devops - # settings: - # token: your-dingtalk-robot-access-token - # type: markdown - # message_color: true - # message_pic: true - # sha_link: true - - # -name: notify-slack - # image: plugins/slack - # webhook: https://hooks.slack.com/ www.dijiuyy.com services/xxx/xxx/xxx - # channel: dev - # template: > - # {{#success build.status}} - # build {{build.number}} succeeded. Good job. - # {{else}} - # build {{build.number}} failed. Fix me please. - # {{/success}} diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fa46b2..ac02dab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ - | 提交交付物,查看提交记录,修改交付物标题的接口核对完成 | [7c08530](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/7c08530) - | 提取deliver store;细节调整 | [4d901ac](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/4d901ac) - | 查看提交历史记录页面数据同步更新 | [749cb10](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/749cb10) + - | 细节调整 | [7f9cf1f](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/7f9cf1f) - | 细节调整 | [3d1c463](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/3d1c463) - | 重构project init 部分 | [c7bf2df](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/c7bf2df) - | 项目列表 | [0486e98](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/0486e98) diff --git a/components/Reviewer/Reviewer.vue b/components/Reviewer/Reviewer.vue index e681186..fe3e283 100644 --- a/components/Reviewer/Reviewer.vue +++ b/components/Reviewer/Reviewer.vue @@ -2,9 +2,8 @@ 审核人 - - + {{ item.name }} @@ -20,17 +19,19 @@ {{ item.name }} + @click="handleSelectChecker(item)" + > + {{ item.name }} + diff --git a/config/deliver.js b/config/deliver.js new file mode 100644 index 0000000..fbf6c22 --- /dev/null +++ b/config/deliver.js @@ -0,0 +1,2 @@ +// 上传文件的扩展名 +export const UPLOAD_EXTENSION = ['.xls', '.xlsx', '.zip', '.exe', '.pdf', '.doc', '.docx', '.ppt', '.pptx']; diff --git a/config/index.js b/config/index.js new file mode 100644 index 0000000..b87c43b --- /dev/null +++ b/config/index.js @@ -0,0 +1,16 @@ +// 环境 (development|production) +export const SCENE = 'development'; + +// 一些特殊的API区分生产测试环境 +export const api = { + baseUrl: { + development: 'https://test.tall.wiki', + production: 'https://www.tall.wiki', + }, + upload: { + development: 'https://test.tall.wiki/filedeal/file/upload/multiple', + production: 'http://101.201.226.21/filedeal/file/upload/multiple', + }, +}; + +export const UPLOAD_URL = api.upload[SCENE]; // 多文件上传路径 diff --git a/pages/index/index.vue b/pages/index/index.vue index 7daadb6..13e05be 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,19 +1,19 @@ diff --git a/plugins/p-deliver/p-deliver.vue b/plugins/p-deliver/p-deliver.vue index 9c67694..b1d6001 100644 --- a/plugins/p-deliver/p-deliver.vue +++ b/plugins/p-deliver/p-deliver.vue @@ -1,15 +1,11 @@ - -