360 Commits

Author SHA1 Message Date
wangxiaoshuang dba4466ac2 国际化修改
continuous-integration/drone/push Build is passing
2025-01-24 16:27:39 +08:00
wangxiaoshuang 9187bbe64f 阅片人简历预览水印
continuous-integration/drone/push Build is passing
2025-01-24 13:27:47 +08:00
caiyiling a0f593a22f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-24 10:05:07 +08:00
caiyiling 89f7aee973 管理后台按钮调整及医学审核文本超长处理 2025-01-24 10:04:25 +08:00
wangxiaoshuang ced57cbfe4 logo显示有误
continuous-integration/drone/push Build is running
2025-01-24 10:01:17 +08:00
wangxiaoshuang 99d099496e 1
continuous-integration/drone/push Build is passing
2025-01-23 18:41:10 +08:00
caiyiling d3afa7b676 中心列表添加快捷跳转入口
continuous-integration/drone/push Build is passing
2025-01-23 18:18:29 +08:00
wangxiaoshuang c08d701143 重复新增角色弹框未清空
continuous-integration/drone/push Build is passing
2025-01-23 14:13:01 +08:00
caiyiling a2d06ba72f 多帧关键序列更改
continuous-integration/drone/push Build is passing
2025-01-23 10:21:51 +08:00
caiyiling 148aa4908b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-23 09:32:37 +08:00
caiyiling 53738c2da4 1 2025-01-23 09:32:15 +08:00
wangxiaoshuang 3513c08adf Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-23 09:22:28 +08:00
wangxiaoshuang 9eb3f2f322 1 2025-01-23 09:22:24 +08:00
caiyiling b16e351779 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-23 09:11:21 +08:00
caiyiling b176ab0716 关键序列渲染更改 2025-01-23 09:10:40 +08:00
wangxiaoshuang c7eb323eaa 通用培训课件添加国际化
continuous-integration/drone/push Build is passing
2025-01-22 17:29:20 +08:00
wangxiaoshuang 7b3fe42654 部分问题修复
continuous-integration/drone/push Build is passing
2025-01-22 15:27:20 +08:00
wangxiaoshuang 21c96300ad 1
continuous-integration/drone/push Build is passing
2025-01-22 10:21:32 +08:00
caiyiling 8f46819b9a Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-22 09:48:44 +08:00
caiyiling 6e66dd8bbe 导表配置更改 2025-01-22 09:48:28 +08:00
wangxiaoshuang b209c6566b 添加外部人员弹框按钮样式修改
continuous-integration/drone/push Build is running
2025-01-22 09:48:25 +08:00
wangxiaoshuang f8bd826c9c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 17:12:45 +08:00
wangxiaoshuang e3f6f9107d 角色可切换选项不足时不显示切换角色按钮 2025-01-21 17:12:33 +08:00
caiyiling f1c72c66e8 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 16:49:29 +08:00
caiyiling 79caed3fd9 1 2025-01-21 16:49:02 +08:00
wangxiaoshuang e56440634e 1
continuous-integration/drone/push Build is running
2025-01-21 16:47:19 +08:00
wangxiaoshuang ac657a162f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 16:38:56 +08:00
wangxiaoshuang 9d362e13de 用户登录只有一个角色可以选择时自动登录 2025-01-21 16:38:52 +08:00
wangxiaoshuang d04898dc28 管理员新增用户角色必填 2025-01-21 16:38:16 +08:00
caiyiling e0f42e815e 1
continuous-integration/drone/push Build is passing
2025-01-21 16:26:03 +08:00
caiyiling efe3d937b4 医学审核更改
continuous-integration/drone/push Build is passing
2025-01-21 16:16:23 +08:00
caiyiling 5cf6ab24bd Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 15:59:04 +08:00
caiyiling ff0ddeea9a 医学审核问题更改 2025-01-21 15:58:45 +08:00
wangxiaoshuang 42083afb8d 密码校验提示遮挡问题
continuous-integration/drone/push Build is passing
2025-01-21 14:01:42 +08:00
wangxiaoshuang de1b22ff48 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 11:28:37 +08:00
wangxiaoshuang 66cbbbbb75 退出至登录页国际化问题 2025-01-21 11:28:33 +08:00
caiyiling 3d89939a98 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 11:12:27 +08:00
caiyiling ade4ab3e03 项目模块下样式调整及中心调研调整 2025-01-21 11:11:47 +08:00
wangxiaoshuang a3550c44bd 后端开启限制登录后国际化问题
continuous-integration/drone/push Build is passing
2025-01-21 10:01:43 +08:00
wangxiaoshuang 9e85e9705e 后端开启限制登录后国际化问题
continuous-integration/drone/push Build is passing
2025-01-21 09:38:42 +08:00
wangxiaoshuang e1d5db8cf5 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 09:31:30 +08:00
wangxiaoshuang 6f3381c267 后端开启限制登录后国际化问题 2025-01-21 09:31:26 +08:00
caiyiling 0c52bde525 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 09:24:29 +08:00
caiyiling 102089c16f 我的项目模块下Tab样式更改 2025-01-21 09:23:40 +08:00
wangxiaoshuang 6e1d07ee95 多页签登录清楚缓存uerId和identityUserId
continuous-integration/drone/push Build is passing
2025-01-20 17:32:49 +08:00
wangxiaoshuang 55ae6bac7e lili关于页面
continuous-integration/drone/push Build is passing
2025-01-20 16:14:06 +08:00
wangxiaoshuang 823ac2f085 登陆页面国际化
continuous-integration/drone/push Build is passing
2025-01-20 15:58:19 +08:00
wangxiaoshuang 73e0a13e91 简历英文姓名展示修改
continuous-integration/drone/push Build is passing
2025-01-20 15:47:31 +08:00
caiyiling 7f179fb393 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-20 14:29:42 +08:00
caiyiling 3441793bcb 返回功能样式更改 2025-01-20 14:29:17 +08:00
wangxiaoshuang dbe651fe98 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-20 14:05:45 +08:00
wangxiaoshuang f54ff927ec 登录页国际化问题 2025-01-20 14:05:36 +08:00
caiyiling 535b37e830 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-20 13:49:40 +08:00
caiyiling 13191c914e 系统阅片标准配置页字段更改 2025-01-20 13:49:16 +08:00
wangxiaoshuang 70735f2c47 重置密码完成后国际化问题
continuous-integration/drone/push Build is passing
2025-01-20 13:19:51 +08:00
wangxiaoshuang 8ad77f1679 问题修复
continuous-integration/drone/push Build is passing
2025-01-20 11:23:09 +08:00
wangxiaoshuang 3a76a7c24d 1
continuous-integration/drone/push Build is passing
2025-01-17 13:43:31 +08:00
wangxiaoshuang 5393ca571c 邮件模板预览修改
continuous-integration/drone/push Build is passing
2025-01-17 13:30:50 +08:00
wangxiaoshuang 4cef62ccba 中心列表参与人员去除排序
continuous-integration/drone/push Build is passing
2025-01-17 10:32:06 +08:00
wangxiaoshuang 2772168c3b 1
continuous-integration/drone/push Build is passing
2025-01-17 10:23:22 +08:00
wangxiaoshuang 89be8d8a12 项目培训记录列表添加创建时间
continuous-integration/drone/push Build is passing
2025-01-17 10:00:43 +08:00
wangxiaoshuang 041266c250 admin项目用户角色权限配置、部分国际化问题解决
continuous-integration/drone/push Build is passing
2025-01-17 09:31:06 +08:00
wangxiaoshuang cbcb84a768 1
continuous-integration/drone/push Build is passing
2025-01-16 17:21:35 +08:00
wangxiaoshuang 830718c228 人员管理禁用更换字典
continuous-integration/drone/push Build is passing
2025-01-16 17:02:58 +08:00
wangxiaoshuang 6977ed3713 稽查查询下拉选择框可搜索
continuous-integration/drone/push Build is passing
2025-01-16 16:18:14 +08:00
wangxiaoshuang 28ea52797e 系统配置签名文档国际化
continuous-integration/drone/push Build is passing
2025-01-16 14:41:10 +08:00
wangxiaoshuang 1348d5f864 IP不一致登陆提示
continuous-integration/drone/push Build is passing
2025-01-16 11:29:01 +08:00
wangxiaoshuang cd34ad7ef7 登录账号同时修改密码和登录IP不一致提示
continuous-integration/drone/push Build is running
2025-01-16 11:22:51 +08:00
wangxiaoshuang 5af7e8dd3c 锁定弹窗问题
continuous-integration/drone/push Build is passing
2025-01-16 10:25:17 +08:00
caiyiling 455f808f49 导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 15:06:43 +08:00
caiyiling a0d5e58311 导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 14:53:08 +08:00
caiyiling 84dbcd49f0 导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 13:43:16 +08:00
caiyiling a4ec387814 CDISC导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 11:00:30 +08:00
caiyiling 3a6c3d451c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-14 10:42:20 +08:00
caiyiling f396901731 CDISC导表配置更改 2025-01-14 10:41:38 +08:00
wangxiaoshuang 0b00f4bc7e Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-13 16:13:32 +08:00
wangxiaoshuang e58695aeff 异地登录提示 2025-01-13 16:13:18 +08:00
caiyiling 65a9dd3cf1 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-13 15:50:18 +08:00
caiyiling 63743dbbc1 系统阅片标准配置更改及项目导出配置更改 2025-01-13 15:49:46 +08:00
wangxiaoshuang b5643d3774 1
continuous-integration/drone/push Build is passing
2025-01-13 15:22:28 +08:00
wangxiaoshuang 4c1a770969 简历采集英文环境填写工作所属医院,未保存成功
continuous-integration/drone/push Build is passing
2025-01-13 14:51:36 +08:00
wangxiaoshuang 7ff0273c29 用户评审辅助功能
continuous-integration/drone/push Build is passing
2025-01-13 13:44:30 +08:00
wangxiaoshuang 3f2a339cba 增加后台批量编辑国际化翻译功能
continuous-integration/drone/push Build is passing
2025-01-13 11:49:16 +08:00
caiyiling d3dd4ecffc ecrf配置去除导出标识属性
continuous-integration/drone/push Build is passing
2025-01-13 11:21:42 +08:00
wangxiaoshuang d636813210 账号禁用或无权限自动退出
continuous-integration/drone/push Build is passing
2025-01-10 17:38:54 +08:00
caiyiling 66d09ca284 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-10 14:25:01 +08:00
caiyiling e672e6bd18 保存验证更改 2025-01-10 14:24:39 +08:00
wangxiaoshuang 9c964f11a1 国际化批量编辑
continuous-integration/drone/push Build is passing
2025-01-10 13:54:28 +08:00
caiyiling 0a473dcae3 肝分段保存状态维护
continuous-integration/drone/push Build is passing
2025-01-10 12:31:54 +08:00
caiyiling 85b3960f97 分段是否可测量逻辑更改
continuous-integration/drone/push Build is passing
2025-01-10 11:37:49 +08:00
caiyiling b96f5b9910 表格默认折叠更改
continuous-integration/drone/push Build is passing
2025-01-10 10:19:53 +08:00
caiyiling 31196e850e 计算平均值bug修复
continuous-integration/drone/push Build is passing
2025-01-10 09:44:05 +08:00
caiyiling c309410c04 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-09 16:21:59 +08:00
caiyiling 0a671fb330 清除标注信息bug修复 2025-01-09 16:21:36 +08:00
wangxiaoshuang febdfd7b4f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-09 15:42:43 +08:00
wangxiaoshuang e1da0c9ea5 个人账号操作日志修改 2025-01-09 15:42:29 +08:00
caiyiling 54be84c300 阅片跟踪国际化更改
continuous-integration/drone/push Build is running
2025-01-09 15:42:11 +08:00
caiyiling 78c1b57770 阅片结果更改
continuous-integration/drone/push Build is passing
2025-01-09 14:52:30 +08:00
caiyiling 39ce8fd355 阅片结果导出国际化补充
continuous-integration/drone/push Build is passing
2025-01-09 14:36:49 +08:00
caiyiling 130862518f 阅片结果功能按钮添加图标
continuous-integration/drone/push Build is passing
2025-01-09 14:13:04 +08:00
caiyiling a129adbc4b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-09 11:42:27 +08:00
caiyiling 3066781ee6 ecrf系统配置更改及MRI-PDFF阅片bug修复 2025-01-09 11:41:51 +08:00
wangxiaoshuang df4880dc08 新建用户邮件初始化密码无法输入问题
continuous-integration/drone/push Build is passing
2025-01-09 10:43:12 +08:00
wangxiaoshuang 29e2a6ea65 新建用户邮件初始化取消按钮功能修改
continuous-integration/drone/push Build is passing
2025-01-09 10:19:38 +08:00
caiyiling ae12c3d517 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-08 17:40:23 +08:00
caiyiling cbe346a049 MRI-PDFF计算更改 2025-01-08 17:39:49 +08:00
wangxiaoshuang c8c5ab72bb 阅片期列表样式问题
continuous-integration/drone/push Build is passing
2025-01-08 16:08:06 +08:00
caiyiling 37dc4a960f 阅片报告页更改
continuous-integration/drone/push Build is passing
2025-01-08 16:01:50 +08:00
caiyiling 05cf250c21 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2025-01-08 15:58:56 +08:00
caiyiling b2ca803f94 肝分段状态维护 2025-01-08 15:58:30 +08:00
wangxiaoshuang 2ff2f5106e 项目课件状态
continuous-integration/drone/push Build is passing
2025-01-08 15:44:53 +08:00
wangxiaoshuang 67c2d47689 项目课件状态
continuous-integration/drone/push Build is passing
2025-01-08 15:31:02 +08:00
wangxiaoshuang 67a3c4f926 1.07部分问题修复
continuous-integration/drone/push Build is passing
2025-01-08 14:26:45 +08:00
wangxiaoshuang 9ab7afa06f 1
continuous-integration/drone/push Build is passing
2025-01-08 14:02:41 +08:00
wangxiaoshuang e5a17d20b1 1.07部分问题修复
continuous-integration/drone/push Build is running
2025-01-08 14:01:26 +08:00
wangxiaoshuang 3c664e9ba6 1.07部分问题修复
continuous-integration/drone/push Build is passing
2025-01-08 13:33:56 +08:00
caiyiling 50dd74b4ce 肝脏分段脂肪分数测量交互更改
continuous-integration/drone/push Build is passing
2025-01-08 13:26:54 +08:00
caiyiling b22b9d338e MRI-PDFF标准更改及导表配置更改
continuous-integration/drone/push Build is passing
2025-01-08 13:19:52 +08:00
wangxiaoshuang a13ef6e5d2 管理端国际化批量更新问题
continuous-integration/drone/push Build is passing
2025-01-08 09:23:15 +08:00
wangxiaoshuang 58141aaca9 中心调研已废除禁用审批
continuous-integration/drone/push Build is passing
2025-01-07 15:50:29 +08:00
wangxiaoshuang 17b868e7ed 版本记录lili版本改为非必填
continuous-integration/drone/push Build is passing
2025-01-07 13:54:10 +08:00
wangxiaoshuang bbc4da7b9e 质疑弹框用户名修改为姓名
continuous-integration/drone/push Build is passing
2025-01-07 13:12:15 +08:00
wangxiaoshuang c14079efe3 1
continuous-integration/drone/push Build is passing
2025-01-07 11:15:29 +08:00
wangxiaoshuang ecf5119269 1
continuous-integration/drone/push Build is passing
2025-01-07 10:54:05 +08:00
wangxiaoshuang b35ff2b7dc 质疑弹框用户名修改为姓名
continuous-integration/drone/push Build is running
2025-01-07 10:51:23 +08:00
wangxiaoshuang bae5b9c51c 导出更改
continuous-integration/drone/push Build is passing
2025-01-07 10:23:34 +08:00
wangxiaoshuang be5b9efa7b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-06 15:37:00 +08:00
wangxiaoshuang efab56f6bd 项目添加外部人员角色禁用提示国际化 2025-01-06 15:36:51 +08:00
caiyiling a239bccc90 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-06 15:28:02 +08:00
caiyiling 7dd15434bf 导出配置更改 2025-01-06 15:27:26 +08:00
wangxiaoshuang 437b4377ed 项目添加外部人员角色禁用提示国际化
continuous-integration/drone/push Build is running
2025-01-06 15:23:58 +08:00
wangxiaoshuang 7229bc65a9 mfa提示文字样式修改
continuous-integration/drone/push Build is passing
2025-01-06 15:00:29 +08:00
wangxiaoshuang bf95ea96e2 MFA验证重发
continuous-integration/drone/push Build is passing
2025-01-06 14:51:06 +08:00
wangxiaoshuang 013a657f78 系统文档签署后,已签署统计数未刷新
continuous-integration/drone/push Build is passing
2025-01-06 14:18:47 +08:00
wangxiaoshuang 8d4e9368c6 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-06 14:08:33 +08:00
wangxiaoshuang d71fff7393 1 2025-01-06 14:08:25 +08:00
caiyiling d243d3cd11 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-06 14:01:49 +08:00
caiyiling 221ad89fd4 保存肝分段标记逻辑更改 2025-01-06 14:01:08 +08:00
wangxiaoshuang af42a3aec0 系统文档签署后,统计数未刷新
continuous-integration/drone/push Build is passing
2025-01-06 13:49:19 +08:00
wangxiaoshuang b0529dca5f 添加项目邮件模板时,收件人过滤条件去除RC和admin
continuous-integration/drone/push Build is passing
2025-01-06 13:19:51 +08:00
caiyiling 17ee60de81 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-06 10:58:40 +08:00
caiyiling b9ef4fd3f3 阅片交互更改及阅片标准导出配置更改 2025-01-06 10:57:44 +08:00
wangxiaoshuang 252333ea5b 邮件在项目中不能配置问题
continuous-integration/drone/push Build is passing
2025-01-06 10:10:03 +08:00
caiyiling a5445804e2 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-03 17:41:27 +08:00
caiyiling 0cabf49c43 报表导出更改 2025-01-03 17:41:11 +08:00
wangxiaoshuang 5ee7ba9820 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-03 17:05:47 +08:00
wangxiaoshuang 4f2419fe03 项目添加人员账号角色禁用增加提示 2025-01-03 17:05:43 +08:00
caiyiling 28bb98099c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2025-01-03 17:02:29 +08:00
caiyiling 5963fc629d 保存标记时优化处理 2025-01-03 17:01:33 +08:00
wangxiaoshuang 44feb21f63 中心调研弹窗
continuous-integration/drone/push Build is passing
2025-01-03 13:57:25 +08:00
wangxiaoshuang 343813158f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-03 11:54:19 +08:00
wangxiaoshuang 5e80fe2c3f 1 2025-01-03 11:54:09 +08:00
caiyiling 2e8095939b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-03 10:23:42 +08:00
caiyiling b0dc5400aa Lugano脾脏测量bug修复 2025-01-03 10:23:09 +08:00
wangxiaoshuang 7f18e717b7 1
continuous-integration/drone/push Build is failing
2025-01-03 09:47:57 +08:00
wangxiaoshuang 6e66b77857 MFA验证登录逻辑修改
continuous-integration/drone/push Build is running
2025-01-03 09:42:47 +08:00
caiyiling 5328217853 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2025-01-03 09:38:14 +08:00
caiyiling 0f4819f5db 肝脏分段平均值更改 2025-01-03 09:37:45 +08:00
wangxiaoshuang 907371b693 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-03 09:19:12 +08:00
wangxiaoshuang f65042a5c2 MFA验证 2025-01-03 09:19:07 +08:00
caiyiling 518ce72fd2 阅片接口更改
continuous-integration/drone/push Build is passing
2025-01-02 16:59:29 +08:00
caiyiling ba54da2814 阅片接口更改
continuous-integration/drone/push Build is passing
2025-01-02 15:43:55 +08:00
caiyiling d381b10bcd CDISC导出配置更改
continuous-integration/drone/push Build is passing
2025-01-02 15:36:00 +08:00
caiyiling d127637922 保存肝脏分段信息接口更改
continuous-integration/drone/push Build is passing
2025-01-02 14:50:22 +08:00
caiyiling 0e0c2ca55d 肝脏分段标注保存接口更改
continuous-integration/drone/push Build is passing
2025-01-02 14:37:26 +08:00
caiyiling 98502230c3 阅片跟踪页报表导出更改
continuous-integration/drone/push Build is passing
2025-01-02 13:49:43 +08:00
caiyiling 2b987fb1ae 报表导出配置及阅片bug修复
continuous-integration/drone/push Build is passing
2025-01-02 10:57:58 +08:00
wangxiaoshuang 8799431f7a 中心调研登录问题解决
continuous-integration/drone/push Build is passing
2024-12-31 18:02:59 +08:00
wangxiaoshuang a8fe3d6073 项目添加人员角色去除已禁用角色
continuous-integration/drone/push Build is passing
2024-12-31 10:29:44 +08:00
wangxiaoshuang 3578882ec0 项目中所有pm角色禁止禁用,所有包含pm账号的禁止退出
continuous-integration/drone/push Build is passing
2024-12-31 10:11:32 +08:00
caiyiling d5c9298aab 阅片报告页更改
continuous-integration/drone/push Build is passing
2024-12-30 16:57:02 +08:00
caiyiling 59df7214d4 MRI-PDFF标准交互优化
continuous-integration/drone/push Build is passing
2024-12-30 16:21:32 +08:00
caiyiling 6c50257972 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-30 15:58:55 +08:00
caiyiling 58b8cf1391 系统标准配置及MRI-PDFF交互更改 2024-12-30 15:58:23 +08:00
wangxiaoshuang 1f6ee08a8b 用户角色编辑修改
continuous-integration/drone/push Build is passing
2024-12-30 15:42:29 +08:00
wangxiaoshuang c5fb53a05f 1
continuous-integration/drone/push Build is passing
2024-12-30 15:20:37 +08:00
wangxiaoshuang 24e05ebc3e 登录日志修改
continuous-integration/drone/push Build is passing
2024-12-30 14:18:41 +08:00
wangxiaoshuang a78d848424 管理端用户切换角色
continuous-integration/drone/push Build is passing
2024-12-30 13:30:10 +08:00
wangxiaoshuang 75f3b37c05 仲裁规则配置需要调整
continuous-integration/drone/push Build is passing
2024-12-30 13:18:19 +08:00
wangxiaoshuang ca4f2c4a8e 登录日志详情弹框样式修改 2024-12-30 13:15:50 +08:00
wangxiaoshuang 4defa157ee 临床数据上传时,匹配符未替换
continuous-integration/drone/push Build is passing
2024-12-30 09:35:10 +08:00
wangxiaoshuang 13ba919484 按钮位置调整
continuous-integration/drone/push Build is passing
2024-12-27 18:02:18 +08:00
wangxiaoshuang bf407a49fd 1
continuous-integration/drone/push Build is passing
2024-12-27 17:22:23 +08:00
wangxiaoshuang 3c50254a2d 切换角色样式调整
continuous-integration/drone/push Build is passing
2024-12-27 16:40:07 +08:00
wangxiaoshuang 41ac3d562a 用户列表时间查询默认值
continuous-integration/drone/push Build is passing
2024-12-27 16:24:43 +08:00
wangxiaoshuang d790a95952 新增、编辑角色时去除RC和Dash
continuous-integration/drone/push Build is running
2024-12-27 16:21:01 +08:00
wangxiaoshuang 328359dfde 登录ip不一致提示
continuous-integration/drone/push Build is passing
2024-12-27 14:49:58 +08:00
wangxiaoshuang 1286cd1212 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is failing
2024-12-27 11:49:00 +08:00
wangxiaoshuang f739563fe9 外部人员发送邮件接口添加UserTypeId参数 2024-12-27 11:48:49 +08:00
wangxiaoshuang 2f4ace45b8 用户列表新增最后一次修改密码字段 2024-12-27 11:48:22 +08:00
caiyiling 407f0b85d2 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-27 10:53:13 +08:00
caiyiling 3052b269e9 MRI-PDFF阅片标准添加国际化标识及报告更改 2024-12-27 10:52:18 +08:00
wangxiaoshuang a7c3bf09f8 登录日志
continuous-integration/drone/push Build is passing
2024-12-27 10:29:45 +08:00
wangxiaoshuang 65d9c7b711 管理端登录日志详情
continuous-integration/drone/push Build is passing
2024-12-26 17:55:11 +08:00
wangxiaoshuang 3ca1e9d8ed 登录存储userId
continuous-integration/drone/push Build is passing
2024-12-26 17:17:59 +08:00
caiyiling f27fda4a5f MRI-PDFF标准阅片更改
continuous-integration/drone/push Build is passing
2024-12-26 16:20:24 +08:00
caiyiling 27352f572c 1
continuous-integration/drone/push Build is passing
2024-12-26 16:10:19 +08:00
caiyiling 47c6b30d4a Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2024-12-26 16:07:52 +08:00
caiyiling 91bd50d565 MRI-PDFF标准阅片时不可测量时,系统自动清空测量值及标注 2024-12-26 16:06:53 +08:00
wangxiaoshuang d1ed8b39f0 首次登录修改密码去除调用logout接口
continuous-integration/drone/push Build is passing
2024-12-26 15:52:40 +08:00
wangxiaoshuang 3925652428 登录禁用的角色置灰
continuous-integration/drone/push Build is passing
2024-12-26 15:19:39 +08:00
wangxiaoshuang 37f8f2fff1 项目配置检查技术选择修改
continuous-integration/drone/push Build is passing
2024-12-26 15:11:38 +08:00
wangxiaoshuang 32551e3faa 项目配置检查技术选择修改
continuous-integration/drone/push Build is passing
2024-12-26 14:55:08 +08:00
wangxiaoshuang 43f99b02c4 用户角色切换刷新问题
continuous-integration/drone/push Build is passing
2024-12-26 14:37:27 +08:00
wangxiaoshuang 9c22809bae 中心调研表二维码下载名称变更
continuous-integration/drone/push Build is passing
2024-12-26 14:18:15 +08:00
wangxiaoshuang be9e78ec73 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2024-12-26 14:13:29 +08:00
wangxiaoshuang d645df58c2 管理端用户修改角色 2024-12-26 14:13:20 +08:00
caiyiling 5d9adab706 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-26 14:07:56 +08:00
caiyiling 291f9b5d66 1 2024-12-26 14:07:21 +08:00
wangxiaoshuang 5dedcbc2ef 影像上传提示
continuous-integration/drone/push Build is passing
2024-12-26 13:53:52 +08:00
wangxiaoshuang 940a860352 退出登录接口新增参数IdentityUserId
continuous-integration/drone/push Build is passing
2024-12-26 13:29:02 +08:00
wangxiaoshuang 9cd540d1ec 切换角色跳转页面问题
continuous-integration/drone/push Build is passing
2024-12-26 12:29:55 +08:00
wangxiaoshuang 9e8d537358 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2024-12-26 11:03:12 +08:00
wangxiaoshuang 7882c9b631 链接跳转新增账号修改 2024-12-26 11:02:58 +08:00
caiyiling 5dd1935997 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-26 10:00:49 +08:00
caiyiling 47d60769be 新增MRI-PDFF阅片标准 2024-12-26 09:58:42 +08:00
wangxiaoshuang 8225eacb7e 个人中心修改信息更换接口
continuous-integration/drone/push Build is passing
2024-12-25 17:50:15 +08:00
wangxiaoshuang 57a8bb4e24 中心添加AE标题修改
continuous-integration/drone/push Build is passing
2024-12-25 16:53:13 +08:00
wangxiaoshuang 36ffd8b371 中心列表字段修改
continuous-integration/drone/push Build is passing
2024-12-25 16:24:21 +08:00
wangxiaoshuang 7fc6f4494b 1
continuous-integration/drone/push Build is passing
2024-12-25 16:08:42 +08:00
wangxiaoshuang 9d3ba7eb57 1
continuous-integration/drone/push Build is passing
2024-12-25 15:55:36 +08:00
wangxiaoshuang 7ed4dd7e24 1
continuous-integration/drone/push Build is passing
2024-12-25 14:51:36 +08:00
wangxiaoshuang b233535d95 项目角色状态修改
continuous-integration/drone/push Build is running
2024-12-25 14:47:12 +08:00
wangxiaoshuang 9bdb8f64b3 1
continuous-integration/drone/push Build is passing
2024-12-25 14:10:31 +08:00
wangxiaoshuang f637f746cb 重置密码
continuous-integration/drone/push Build is passing
2024-12-25 13:27:31 +08:00
wangxiaoshuang dec01d779d 编辑用户角色
continuous-integration/drone/push Build is passing
2024-12-25 11:42:11 +08:00
wangxiaoshuang 7363b0049d 新增、编辑角色
continuous-integration/drone/push Build is passing
2024-12-25 11:23:00 +08:00
wangxiaoshuang a95a129dde 项目内切换角色
continuous-integration/drone/push Build is passing
2024-12-24 16:21:23 +08:00
wangxiaoshuang 177510643d 分角色登录
continuous-integration/drone/push Build is passing
2024-12-23 18:05:21 +08:00
wangxiaoshuang eeac5b76c4 分角色登录
continuous-integration/drone/push Build is passing
2024-12-23 17:23:51 +08:00
wangxiaoshuang a17359a56e 密码输入问题
continuous-integration/drone/push Build is passing
2024-12-23 16:12:03 +08:00
wangxiaoshuang 28c7cf7d67 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2024-12-23 13:59:40 +08:00
wangxiaoshuang d9091fbb79 SPM/CPM增加 流程审批与否的控制 2024-12-23 13:59:35 +08:00
caiyiling 7e52005dab Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-23 13:35:06 +08:00
caiyiling 5866535fb5 系统标准配置更改 2024-12-23 13:34:46 +08:00
wangxiaoshuang 862c6d64cc 简历医院信息维护
continuous-integration/drone/push Build is passing
2024-12-23 13:13:44 +08:00
wangxiaoshuang 2c0c2e8111 培训文件显示创建时间,不展示更新时间
continuous-integration/drone/push Build is passing
2024-12-20 11:03:46 +08:00
wangxiaoshuang c24c98b334 列表label名修改
continuous-integration/drone/push Build is passing
2024-12-19 11:45:21 +08:00
caiyiling 97caeae753 系统标准配置更改
continuous-integration/drone/push Build is passing
2024-12-19 11:02:34 +08:00
caiyiling 6725f6e276 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-18 18:05:54 +08:00
caiyiling 38ad4e72a2 系统标准配置更改 2024-12-18 18:05:28 +08:00
wangxiaoshuang c9c4826274 对于DICOM和非DICOM的Tab可以根据配置来控制显示
continuous-integration/drone/push Build is passing
2024-12-18 17:08:27 +08:00
wangxiaoshuang 4f1fdb185f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build encountered an error
2024-12-10 19:22:45 +08:00
wangxiaoshuang feb65ae0cd 术语配置请求页面去除白名单 2024-12-10 19:22:33 +08:00
caiyiling 6ecce41b35 1
continuous-integration/drone/push Build is passing
2024-12-06 16:35:23 +08:00
caiyiling 3a20586609 Dicom字典渲染更改
continuous-integration/drone/push Build is running
2024-12-06 16:34:40 +08:00
wangxiaoshuang b1d707a7dd 临床数据问题年龄连接符修改
continuous-integration/drone/push Build is passing
2024-12-06 11:22:57 +08:00
wangxiaoshuang 51101748b8 影像质疑临床数据取消按钮屏蔽
continuous-integration/drone/push Build is passing
2024-12-05 17:35:26 +08:00
wangxiaoshuang 5fb085b6d3 影像质疑临床数据问题
continuous-integration/drone/push Build is passing
2024-12-05 17:13:32 +08:00
caiyiling 0aaea5a325 阅片页面临床数据预览样式更改
continuous-integration/drone/push Build is passing
2024-12-05 17:01:14 +08:00
wangxiaoshuang e57d03a040 受试者级别添加访视级别的自定义
continuous-integration/drone/push Build is passing
2024-12-05 13:33:22 +08:00
wangxiaoshuang 7a07172c23 项目切换搜索增加实验名称搜索
continuous-integration/drone/push Build is passing
2024-12-04 13:28:49 +08:00
wangxiaoshuang 4e06b5ef87 简历时间选择、输入国际化、其它选项国际化
continuous-integration/drone/push Build is passing
2024-12-04 11:31:00 +08:00
wangxiaoshuang 5e520a94c1 国际化修改
continuous-integration/drone/push Build is passing
2024-12-03 16:59:19 +08:00
wangxiaoshuang c2be30632a 简历采集页国际化修改
continuous-integration/drone/push Build is passing
2024-12-03 10:41:55 +08:00
caiyiling 443ee66e33 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-12-02 16:40:02 +08:00
caiyiling 95f210a90d 非Dicom阅片临床数据展示方式更改 2024-12-02 16:39:25 +08:00
wangxiaoshuang 25336491ac spm预览简历盲化
continuous-integration/drone/push Build is passing
2024-12-02 16:06:58 +08:00
wangxiaoshuang 581cd2c9c1 简历概述更改
continuous-integration/drone/push Build is passing
2024-12-02 15:40:14 +08:00
wangxiaoshuang f0b1d8f3c9 锁定问题解决
continuous-integration/drone/push Build is passing
2024-11-29 18:01:58 +08:00
wangxiaoshuang 73f12173f5 简历进修培训医院显示国际化
continuous-integration/drone/push Build is passing
2024-11-29 09:59:46 +08:00
wangxiaoshuang 2e30461e2e 简历上传文件部分国际化
continuous-integration/drone/push Build is passing
2024-11-29 09:34:18 +08:00
wangxiaoshuang 2d91053668 1
continuous-integration/drone/push Build is passing
2024-11-29 09:02:10 +08:00
wangxiaoshuang 5b90b2d155 简历国际化添加
continuous-integration/drone/push Build is passing
2024-11-28 18:03:19 +08:00
wangxiaoshuang 33f920e7bc 用户列表删除功能屏蔽
continuous-integration/drone/push Build is passing
2024-11-28 14:03:23 +08:00
wangxiaoshuang 45aa1ba24a 简历临床试验其他阅片标准默认id修改
continuous-integration/drone/push Build is passing
2024-11-28 11:39:44 +08:00
wangxiaoshuang d47f0811cb crc上传列表提示修改
continuous-integration/drone/push Build is passing
2024-11-26 10:37:01 +08:00
wangxiaoshuang e336d90f45 简历社会兼职样式修改
continuous-integration/drone/push Build is passing
2024-11-26 10:08:13 +08:00
wangxiaoshuang e723d345d7 简历右侧菜单修改
continuous-integration/drone/push Build is passing
2024-11-26 09:04:45 +08:00
wangxiaoshuang cb40a8e880 简历样式调整
continuous-integration/drone/push Build is passing
2024-11-25 17:52:20 +08:00
wangxiaoshuang b166818131 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2024-11-25 17:42:52 +08:00
wangxiaoshuang dafc92d4b1 1 2024-11-25 17:42:42 +08:00
caiyiling 8cf047a854 临床数据显示更改
continuous-integration/drone/push Build is passing
2024-11-25 17:28:08 +08:00
caiyiling a9f8f3a1da Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-25 16:58:51 +08:00
caiyiling 48335b4c2a 获取像素信息bug修复 2024-11-25 16:58:28 +08:00
wangxiaoshuang 5784a4eb93 1
continuous-integration/drone/push Build is passing
2024-11-25 16:39:30 +08:00
wangxiaoshuang 2f875d94c7 1
continuous-integration/drone/push Build is passing
2024-11-25 16:00:08 +08:00
wangxiaoshuang 05c6a9a8fc 提交访视时,签名时的说明中的临床数据名称需要与实际配置的临床数据名称一致
continuous-integration/drone/push Build is running
2024-11-25 15:56:28 +08:00
wangxiaoshuang 9c5e3570b5 简历国际化
continuous-integration/drone/push Build is passing
2024-11-25 15:37:45 +08:00
wangxiaoshuang 1be88b66af 1
continuous-integration/drone/push Build is passing
2024-11-25 13:13:06 +08:00
wangxiaoshuang 12e93fbd15 简历设置更改为菜单、预览部分title无数据显示暂无
continuous-integration/drone/push Build is passing
2024-11-25 11:48:14 +08:00
wangxiaoshuang ac33e9268d 去除部分排序 2024-11-25 11:47:37 +08:00
wangxiaoshuang 81d9f2ea7b 简历其他相关经历项目和系统区分
continuous-integration/drone/push Build is passing
2024-11-22 17:43:05 +08:00
wangxiaoshuang 9b47ae188c 简历部分校验国际化
continuous-integration/drone/push Build is passing
2024-11-22 17:16:58 +08:00
wangxiaoshuang de400c66d8 简历科研课题样式改动
continuous-integration/drone/push Build is passing
2024-11-22 16:29:01 +08:00
wangxiaoshuang 261d1468e7 1
continuous-integration/drone/push Build is passing
2024-11-22 11:34:23 +08:00
wangxiaoshuang 080e858ae0 1
continuous-integration/drone/push Build is passing
2024-11-22 11:25:53 +08:00
wangxiaoshuang 55d8db3369 1
continuous-integration/drone/push Build is passing
2024-11-22 10:40:50 +08:00
wangxiaoshuang 056aa80097 简历部分问题修改
continuous-integration/drone/push Build is passing
2024-11-22 10:22:58 +08:00
wangxiaoshuang aeeb13d035 盲化学术成果长度校验改为4000
continuous-integration/drone/push Build is passing
2024-11-22 09:08:43 +08:00
wangxiaoshuang d82e009206 列表排序调整
continuous-integration/drone/push Build is passing
2024-11-21 17:19:41 +08:00
wangxiaoshuang 0b09bcb702 1
continuous-integration/drone/push Build is passing
2024-11-21 16:55:21 +08:00
wangxiaoshuang 30ee433de3 稽查简历预览盲化
continuous-integration/drone/push Build is passing
2024-11-21 16:50:18 +08:00
wangxiaoshuang 3783f3cea4 筛选阅片人简历修改页面变更、概述变更为模板、简历采集邮件发送支持多邮箱
continuous-integration/drone/push Build is passing
2024-11-21 16:30:38 +08:00
wangxiaoshuang 2aa98eb68b 中心调研添加排序
continuous-integration/drone/push Build is passing
2024-11-21 11:31:47 +08:00
wangxiaoshuang 486e7db9f1 阅片分配增加排序
continuous-integration/drone/push Build is passing
2024-11-21 09:47:08 +08:00
wangxiaoshuang b2f0923df2 简历填写信息国际化
continuous-integration/drone/push Build is failing
2024-11-20 15:34:17 +08:00
wangxiaoshuang b64809a4d4 简历编辑页PM可上传顾问协议、确认书,可进行设置
continuous-integration/drone/push Build is passing
2024-11-20 15:05:03 +08:00
wangxiaoshuang 3a81bad5db 论著开头空格问题
continuous-integration/drone/push Build is passing
2024-11-19 16:00:06 +08:00
wangxiaoshuang f8ddeb311c 简历输入框限制、部分样式调整
continuous-integration/drone/push Build is passing
2024-11-19 15:16:00 +08:00
wangxiaoshuang 7c9207db57 重阅弹框遮挡问题
continuous-integration/drone/push Build is passing
2024-11-19 10:55:45 +08:00
wangxiaoshuang 174f4b0c4b 超长字段输入样式调整
continuous-integration/drone/push Build is passing
2024-11-18 17:57:20 +08:00
wangxiaoshuang 53f0462108 简历项目相关修改
continuous-integration/drone/push Build is passing
2024-11-18 17:21:05 +08:00
caiyiling 6d7b991482 自定义标准标注更改
continuous-integration/drone/push Build is passing
2024-11-18 16:57:43 +08:00
caiyiling cbec90d0bf 1
continuous-integration/drone/push Build is passing
2024-11-18 16:34:24 +08:00
caiyiling bc3f475954 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2024-11-18 16:31:39 +08:00
caiyiling 4c652a91fc 修改DICOM图像像素间距的计算方法 2024-11-18 16:29:44 +08:00
wangxiaoshuang f7e8d3b4dd 简历预览样式修改
continuous-integration/drone/push Build is passing
2024-11-18 15:56:13 +08:00
wangxiaoshuang b30644ddd2 1
continuous-integration/drone/push Build is passing
2024-11-18 14:39:49 +08:00
wangxiaoshuang 181a8bddf4 简历概述超出换行问题
continuous-integration/drone/push Build is passing
2024-11-18 13:17:57 +08:00
wangxiaoshuang 4b353bab8f 阅片单元配置中,阅片平台美国应该是LiLi 2024-11-18 13:17:29 +08:00
wangxiaoshuang d9de0f22cf 简历采用页面接口报错问题
continuous-integration/drone/push Build is passing
2024-11-18 11:47:39 +08:00
wangxiaoshuang 6cb544117c 影像质控拍片日期修改
continuous-integration/drone/push Build is passing
2024-11-18 10:46:49 +08:00
wangxiaoshuang 629816217c 一致性核查检查日期改为拍片日期
continuous-integration/drone/push Build is passing
2024-11-18 09:33:47 +08:00
wangxiaoshuang ab527e2357 配置邮件管理列表去除附件
continuous-integration/drone/push Build is passing
2024-11-18 09:13:21 +08:00
wangxiaoshuang b076c1edbd 锁定问题解决
continuous-integration/drone/push Build is passing
2024-11-14 17:05:38 +08:00
wangxiaoshuang fbbcad359c 1
continuous-integration/drone/push Build is passing
2024-11-14 13:14:31 +08:00
wangxiaoshuang 24500fc1a1 术语配置为空时报错
continuous-integration/drone/push Build is passing
2024-11-13 14:05:53 +08:00
wangxiaoshuang e388ea2543 配置确认页面展示术语配置
continuous-integration/drone/push Build is passing
2024-11-13 13:30:31 +08:00
caiyiling 4b406f96fc Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-13 09:38:05 +08:00
caiyiling 4b31cf1196 稽查更改 2024-11-13 09:37:45 +08:00
wangxiaoshuang 4c1d1fb9b1 1
continuous-integration/drone/push Build is passing
2024-11-12 17:56:50 +08:00
wangxiaoshuang 2952652dbc Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2024-11-12 17:09:31 +08:00
wangxiaoshuang 485a53011d 账号列表登录提示改为90天 2024-11-12 17:09:09 +08:00
caiyiling 7d9cededbf Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-12 16:25:15 +08:00
caiyiling b691219db8 重阅跟踪更改 2024-11-12 16:24:49 +08:00
wangxiaoshuang f34faa7db3 简历问题修复
continuous-integration/drone/push Build is passing
2024-11-12 14:59:46 +08:00
wangxiaoshuang ede1455bc4 1
continuous-integration/drone/push Build is passing
2024-11-12 14:18:00 +08:00
wangxiaoshuang 1e36464182 邮件模板新增查询条件
continuous-integration/drone/push Build is passing
2024-11-12 14:02:42 +08:00
wangxiaoshuang 6a52f9571d Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is running
2024-11-12 13:59:40 +08:00
wangxiaoshuang bd85918f8d 简历预览适应症显示问题 2024-11-12 13:59:27 +08:00
caiyiling 23069c7ef7 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-12 13:19:36 +08:00
caiyiling d866153ccc 非dicom阅片更改 2024-11-12 13:19:12 +08:00
wangxiaoshuang cb4d44ef74 1
continuous-integration/drone/push Build is passing
2024-11-12 11:47:24 +08:00
wangxiaoshuang e99e69d0dd 1
continuous-integration/drone/push Build is passing
2024-11-12 11:20:15 +08:00
wangxiaoshuang 55bb2493e4 手机号校验修改
continuous-integration/drone/push Build is passing
2024-11-12 11:13:45 +08:00
caiyiling 041c23daf6 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-12 10:50:34 +08:00
caiyiling 7c01819ced 自动计算bug修复 2024-11-12 10:50:15 +08:00
wangxiaoshuang ff97099c3f 简历预览文件方式变更
continuous-integration/drone/push Build is passing
2024-11-12 10:32:58 +08:00
wangxiaoshuang bff239179f 简历列表按钮调整
continuous-integration/drone/push Build is passing
2024-11-12 10:13:01 +08:00
caiyiling 237e3eed60 1
continuous-integration/drone/push Build is passing
2024-11-11 16:34:38 +08:00
caiyiling 1bc78dffc1 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-11 15:52:01 +08:00
caiyiling e21d3b331a 自定义标准与运算更改 2024-11-11 15:51:32 +08:00
wangxiaoshuang 6992dc6a2b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2024-11-11 15:24:26 +08:00
wangxiaoshuang d53130e994 1 2024-11-11 15:24:19 +08:00
caiyiling 631c903135 1
continuous-integration/drone/push Build is running
2024-11-11 15:17:57 +08:00
caiyiling 994c97479b 自动分类补充数值类型
continuous-integration/drone/push Build is running
2024-11-11 15:16:14 +08:00
caiyiling 33b172fb66 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2024-11-11 15:11:58 +08:00
caiyiling 01f6049f21 1 2024-11-11 15:11:40 +08:00
wangxiaoshuang 07fd3ab863 项目中添加模板时,搜索条件展示的用户类型只显示与业务相关的用户类型
continuous-integration/drone/push Build is passing
2024-11-11 15:05:39 +08:00
caiyiling c51dedbd1e Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-11 14:41:38 +08:00
caiyiling 5619412556 自定义标准运算类型补充 2024-11-11 14:40:21 +08:00
wangxiaoshuang 34267bc007 附件浏览组件统一
continuous-integration/drone/push Build is passing
2024-11-11 13:24:28 +08:00
wangxiaoshuang 286ce9656c 休假数据计算
continuous-integration/drone/push Build is failing
2024-11-11 11:27:10 +08:00
wangxiaoshuang db856c6aa9 支付信息数据校验
continuous-integration/drone/push Build is passing
2024-11-11 11:08:16 +08:00
wangxiaoshuang 682d07cc6d 编辑历史人员的临床试验经历报错
continuous-integration/drone/push Build is passing
2024-11-11 10:42:44 +08:00
wangxiaoshuang af27788e4c 简历中英文管理
continuous-integration/drone/push Build is running
2024-11-11 10:40:24 +08:00
caiyiling bc6f15388d 自动分类问题更改
continuous-integration/drone/push Build is passing
2024-11-08 17:47:01 +08:00
caiyiling 6714d2a3c2 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2024-11-08 10:17:39 +08:00
caiyiling 76616e257f 自定义全局阅片更改 2024-11-08 10:17:13 +08:00
203 changed files with 15615 additions and 4375 deletions
+3
View File
@@ -5,3 +5,6 @@ npm install
# 启动服务
npm run dev
# v1.9.0修改
1. 角色修改,全局userId实际意义修改为userRoleId(用户角色id),新增identityUserId(新的用户id
-1
View File
@@ -30,7 +30,6 @@
</script>
<% } else { %>
<script>
console.log(2)
window.zzSessionStorage = {
setItem: (item, value) => {
return sessionStorage.setItem(item, value)
+101 -18
View File
@@ -23,12 +23,38 @@
>
i18n
</div>
<el-drawer title="国际化" :visible.sync="drawer" direction="rtl" size="80%">
<div style="width: 320px">
<el-form label-width="100px" @submit.native.prevent size="small">
<el-form-item label="关键字">
<el-drawer
:title="$t('il8n:title')"
:visible.sync="drawer"
direction="rtl"
size="80%"
>
<div style="width: 620px">
<el-form
label-width="100px"
@submit.native.prevent
size="small"
:inline="true"
class="demo-form-inline"
>
<el-form-item :label="$t('il8n:search:keyword')">
<el-input v-model="key" @input="keyChange" />
</el-form-item>
<el-form-item :label="$t('il8n:search:state')" v-if="il8nExternal">
<el-select
v-model="State"
clearable
filterable
@change="handleStateChange"
>
<el-option
v-for="item of $d.InternationalizationKeyState"
:key="'InternationalizationKeyState' + item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-form>
</div>
<el-table
@@ -39,7 +65,7 @@
>
<el-table-column
prop="Code"
label="标签"
:label="$t('il8n:table:label')"
width="300"
show-overflow-tooltip
>
@@ -53,7 +79,7 @@
<!-- {{scope.row.Description}}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="Value" label="英文">
<el-table-column prop="Value" :label="$t('il8n:table:en')">
<template slot-scope="scope">
<el-input
v-model="scope.row.Value"
@@ -66,7 +92,7 @@
></el-input>
</template>
</el-table-column>
<el-table-column prop="ValueCN" label="中文">
<el-table-column prop="ValueCN" :label="$t('il8n:table:cn')">
<template slot-scope="scope">
<el-input
v-model="scope.row.ValueCN"
@@ -79,6 +105,27 @@
></el-input>
</template>
</el-table-column>
<el-table-column
prop="ValueCN"
:label="$t('il8n:table:state')"
v-if="il8nExternal"
>
<template slot-scope="scope">
<el-select
v-model="scope.row.State"
clearable
filterable
size="mini"
>
<el-option
v-for="item of $d.InternationalizationKeyState"
:key="'InternationalizationKeyState' + item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
</el-table-column>
</el-table>
<div style="text-align: right; padding-top: 10px; padding-right: 10px">
<el-button size="mini" @click="drawer = false">取消 </el-button>
@@ -110,10 +157,13 @@ export default {
show: false,
key: null,
arr: [],
il8nExternal: false,
State: null,
}
},
mounted() {
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
Vue.prototype.$openI18n = this.openI18n
},
// watch: {
// '$route.query': {
@@ -145,6 +195,11 @@ export default {
// },
// },
methods: {
handleStateChange() {
this.tableData.forEach((item) => {
item.State = this.State
})
},
changeValue(target, attr, e) {
this.$set(target, attr, e)
},
@@ -154,9 +209,9 @@ export default {
[],
this.arr.filter(
(v) =>
~v.Code.indexOf(this.key) ||
~v.Value.indexOf(this.key) ||
~v.ValueCN.indexOf(this.key)
~v.Code.toLowerCase().indexOf(this.key.toLowerCase()) ||
~v.Value.toLowerCase().indexOf(this.key.toLowerCase()) ||
~v.ValueCN.toLowerCase().indexOf(this.key.toLowerCase())
)
)
} else {
@@ -181,22 +236,50 @@ export default {
i18n.mergeLocaleMessage('en', enMessages)
this.drawer = false
this.$message.success('国际化修改成功')
if (this.il8nExternal) {
this.$EventBus.$emit('il8nUpdate')
}
}
)
})
},
openI18n() {
openI18n(ARRAY) {
this.tableData = []
this.il8nExternal = false
this.key = null
this.drawer = true
let arr = []
let tableData = this.$tl.map((v) => {
let a = { ...v }
// if (!a.Description) {
// a.Description = this.$route.path
// }
return a
})
let tableData = []
if (ARRAY && Array.isArray(ARRAY)) {
this.il8nExternal = true
let data = ARRAY.map((v) => {
let a = { ...v }
return a
})
tableData = data.map((item) => {
return {
Code: item.Code,
Description: item.Description,
FrontType: item.FrontType,
Module: item.Module,
Value: item.Value,
ValueCN: item.ValueCN,
State: item.State,
}
})
this.tableData = Object.assign([], tableData)
this.arr = Object.assign([], tableData)
return false
} else {
tableData = this.$tl.map((v) => {
let a = { ...v }
// if (!a.Description) {
// a.Description = this.$route.path
// }
return a
})
}
tableData = tableData.filter((v) => {
// return ~this.$path.indexOf(v.Description + '_' + v.Code)
return ~this.$path.indexOf(v.Code)
+29 -4
View File
@@ -44,11 +44,19 @@ export function updateUser(param) {
data: param
})
}
export function getUser(userId) {
export function updateUserBasicInfo(param) {
return request({
url: `/user/getUser/${userId}`,
method: 'get'
url: `/user/updateUserBasicInfo`,
method: 'put',
data: param
})
}
export function getUser(params) {
return request({
url: `/user/getUser`,
method: 'get',
params
})
}
@@ -317,3 +325,20 @@ export function useUserIDGetDoctorID(data) {
data
})
}
// 管理端修改用户角色
export function updateUserRoleInfo(data) {
return request({
url: `/User/updateUserRoleInfo`,
method: 'put',
data
})
}
// 管理端新增用户发送邮件
export function addNewUserSendEmail(data) {
return request({
url: `/User/addNewUserSendEmail`,
method: 'post',
data
})
}
+34
View File
@@ -251,3 +251,37 @@ export function uploadOCTLipidAngleTemplate(param) {
data: param
})
}
export function saveTableQuestionMark(param, type) {
return request({
url: `/saveTableQuestionMark/${type}`,
method: 'post',
data: param
})
}
export function deleteTableQuestionMark(param, type) {
return request({
url: `/deleteTableQuestionMark/${type}`,
method: 'post',
data: param
})
}
export function submitTaskRowInfo(param, type) {
return request({
url: `/SubmitTaskRowInfo/${type}`,
method: 'post',
data: param
})
}
export function deleteSingleTableQuestionMark(param, type) {
return request({
url: `/DeleteSingleTableQuestionMark/${type}`,
method: 'post',
data: param
})
}
+34 -2
View File
@@ -304,9 +304,9 @@ export function addOrUpdateDoctorBasicInfoAndEmployment(param) {
})
}
// 新增或编辑概述
export function updateGneralSituation(param) {
export function addOrUpdateGneralSituation(param) {
return request({
url: `/Doctor/updateGneralSituation`,
url: `/Doctor/addOrUpdateGneralSituation`,
method: 'post',
data: param
})
@@ -334,4 +334,36 @@ export function doctorSendEmail(param) {
method: 'post',
data: param
})
}
// 获取医生是否休假
export function getIsVacation(param) {
return request({
url: `/Vacation/getIsVacation`,
method: 'post',
data: param
})
}
// 获取概述
export function getSummarizeInfo(param) {
return request({
url: `/Doctor/getSummarizeInfo`,
method: 'post',
data: param
})
}
// 删除概述
export function deleteSummarizeInfo(param) {
return request({
url: `/Doctor/deleteSummarizeInfo`,
method: 'post',
data: param
})
}
// pm通过邮箱新建或查询简历
export function useEmialGetDoctorInfo(param) {
return request({
url: `/TrialSiteSurvey/useEmialGetDoctorInfo`,
method: 'post',
data: param
})
}
+56 -3
View File
@@ -286,10 +286,11 @@ export function trialSiteUserSummaryListExport(param) {
})
}
export function getVisitStageList(trialId) {
export function getVisitStageList(data) {
return request({
url: `/visitPlan/getVisitStageList/${trialId}`,
method: 'get'
url: `/visitPlan/getVisitStageList`,
method: 'post',
data
})
}
@@ -3905,4 +3906,56 @@ export function setTaskValid(data) {
method: 'post',
data
})
}
// 一致性分析临床数据设置任务为有效
export function getVisitClinicalDataName(data) {
return request({
url: `/ReadingClinicalData/getVisitClinicalDataName`,
method: 'post',
data
})
}
// 修改外部人员权限配置
export function configTrialSPMInfo(data) {
return request({
url: `/TrialConfig/configTrialSPMInfo`,
method: 'post',
data
})
}
// 项目添加角色修改权限
export function updateTrialUserRole(data) {
return request({
url: `/TrialMaintenance/updateTrialUserRole`,
method: 'put',
data
})
}
// 获取报表配置
export function getTrialQuestionExportResult(data) {
return request({
url: `/ReadingQuestion/getTrialQuestionExportResult`,
method: 'post',
data
})
}
// 修改报表配置
export function setTrialQuestionExportResult(data) {
return request({
url: `/ReadingQuestion/SetTrialQuestionExportResult`,
method: 'post',
data
})
}
// 项目加入人员发送邮件
export function trialUserSendJoinEmail(data) {
return request({
url: `/TrialMaintenance/trialUserSendJoinEmail`,
method: 'post',
data
})
}
+18 -2
View File
@@ -179,11 +179,11 @@ export function verifyMFACode(params) {
}
// 发送MFA邮件
export function sendMFAEmail(params) {
export function sendMFAEmail(data) {
return request({
url: `/User/sendMFAEmail`,
method: 'post',
params
data
})
}
// 获取公钥
@@ -193,3 +193,19 @@ export function getPublicKey() {
method: 'get',
})
}
// 登陆获取角色
export function getUserLoginRoleList(data) {
return request({
url: `/User/getUserLoginRoleList`,
method: 'post',
data,
})
}
// 登陆角色id获取token
export function loginSelectUserRole(params) {
return request({
url: `/User/loginSelectUserRole`,
method: 'get',
params,
})
}
+7
View File
@@ -13,6 +13,7 @@
v-model="searchData[item.prop]"
:placeholder="item.placeholder"
size="mini"
clearable
:style="{ width: item.width }"
:readonly="item.readonly"
/>
@@ -22,6 +23,7 @@
v-model="searchData[item.prop]"
:placeholder="item.placeholder"
size="mini"
clearable
:style="{ width: item.width }"
@change="item.change && item.change(that, searchData[item.prop])"
>
@@ -37,6 +39,7 @@
v-model="searchData[item.prop]"
:placeholder="item.placeholder"
size="mini"
clearable
:style="{ width: item.width }"
@change="item.change && item.change(that, searchData[item.prop])"
>
@@ -96,6 +99,7 @@
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
:picker-options="item.pickerOption"
clearable
/>
<!-- 时间 -->
<el-time-select
@@ -104,6 +108,7 @@
:placeholder="item.placeholder"
type=""
:style="{ width: item.width }"
clearable
/>
<!-- 日期时间 -->
<el-date-picker
@@ -114,12 +119,14 @@
value-format="yyyy-MM-dd HH:mm:ss"
:disabled="item.disable && item.disable(searchData[item.prop])"
:style="{ width: item.width }"
clearable
/>
<!-- 日期时间段 -->
<el-date-picker
v-if="item.type === 'Daterange'"
v-model="searchData[item.prop]"
type="datetimerange"
:default-time="['00:00:00', '23:59:59']"
:range-separator="$t('baseForm:daterange:rangeSeparator')"
:start-placeholder="$t('baseForm:daterange:startPlaceholder')"
:end-placeholder="$t('baseForm:daterange:startendPlaceholder')"
+9 -6
View File
@@ -8,10 +8,11 @@
:visible.sync="config.visible"
:close-on-click-modal="false"
:show-close="config.showClose"
:top="config.top"
:width="config.width"
:fullscreen="config.fullscreen"
>
<div class="base-modal-body">
<div class="base-modal-body" :style="config.bodyStyle">
<slot name="dialog-body" />
</div>
<div slot="footer" class="base-modal-footer">
@@ -22,24 +23,26 @@
</template>
<script>
export default {
name: "BaseDialog",
name: 'BaseDialog',
props: {
config: {
type: Object,
default: () => {
return {
visible: false,
title: "",
title: '',
closeOnClickModal: false,
showClose: true,
appendToBody: false,
width: "100px",
width: '100px',
fullscreen: false,
};
top: '15vh',
bodyStyle: '',
}
},
},
},
};
}
</script>
<style lang="scss">
.base-model-wrapper {
+5
View File
@@ -48,6 +48,7 @@
:show-overflow-tooltip="column.showOverflowTooltip || false"
:sortable="column.sortable || false"
:prop="column.prop"
:fixed="column.fixed"
>
<template slot-scope="scope">
<!-- 仅仅显示文字 -->
@@ -63,6 +64,10 @@
<el-button
:size="operate.size || 'mini'"
:type="operate.type || 'primary'"
v-if="
(operate.show && scope.row[operate.show]) ||
!operate.show
"
style="margin-right: 5px"
@click="handleClick(operate, scope.row)"
>{{ operate.name }}</el-button
+5 -4
View File
@@ -108,7 +108,7 @@ export default {
dumpDataSet(dataSet, output) {
try {
for (const propertyName in dataSet.elements) {
const elementObject = {}
const elementObject = {}
const element = dataSet.elements[propertyName]
const tag = this.getTag(element.tag)
elementObject.id = `${this.idx++}${new Date().getTime()}`
@@ -181,9 +181,10 @@ export default {
elementObject.value = str
}
} else {
if (element.length !== 2 && element.length !== 4) {
// elementObject.value = 'binary data'
}
elementObject.value = dataSet.string(propertyName)
// if (element.length !== 2 && element.length !== 4) {
// // elementObject.value = 'binary data'
// }
}
} else if (vr === 'US') {
let text = dataSet.uint16(propertyName)
+9 -9
View File
@@ -21,7 +21,7 @@
label-width="100px"
>
<!-- 邮箱 -->
<p class="tip">
<p class="tip_mfa">
<i class="el-icon-warning" style="color: #409eff"></i>
<span>{{ tip }}</span>
</p>
@@ -83,7 +83,7 @@ export default {
second: 60,
form: {
Code: null,
UserId: null,
IdentityUserId: null,
EMail: null,
username: null,
},
@@ -115,7 +115,7 @@ export default {
methods: {
open(data) {
let { UserId, status, username, EMail } = data;
this.form.UserId = UserId;
this.form.IdentityUserId = UserId;
this.status = status ? status : "login";
this.form.username = username;
this.form.EMail = EMail;
@@ -134,10 +134,10 @@ export default {
let res = await verifyMFACode(this.form);
this.loading = false;
if (res.IsSuccess) {
if (this.status === "login") {
this.$message.success(this.$t("mfa:message:verifySuccess"));
}
this.$emit("success", this.form.UserId);
// if (this.status === "login") {
// this.$message.success(this.$t("mfa:message:verifySuccess"));
// }
this.$emit("success", this.form.IdentityUserId);
this.cancel();
}
} catch (err) {
@@ -154,7 +154,7 @@ export default {
this.timer = null;
}
let data = {
UserId: this.form.UserId,
IdentityUserId: this.form.IdentityUserId,
};
if (this.status === "lock") {
data.MfaType = 1;
@@ -189,7 +189,7 @@ export default {
};
</script>
<style lang="scss" scoped>
.tip {
.tip_mfa {
width: 86%;
margin: auto;
margin-bottom: 20px;
+1 -1
View File
@@ -124,7 +124,7 @@ export default {
inputChange(v) {
this.resultFilter = this.options.filter((o) => {
var reg = new RegExp(v, 'ig')
return reg.test(o.ResearchProgramNo) || reg.test(o.Indication)
return reg.test(o.ResearchProgramNo) || reg.test(o.Indication) || reg.test(o.ExperimentName)
})
},
getTrialList() {
+10 -4
View File
@@ -3,7 +3,7 @@
<div class="trialsTab">
<el-tabs v-model="trialsTab" @tab-click="clickTab">
<el-tab-pane v-for="item of trialsRouter.children.find(v => {return v.name == 'TrialsPanel'}).children" :key="`tab${item.path}`" :disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'" :label="$t(item.LanguageMark)" :name="item.path">
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab">
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab" style="background-color: #f5f7fa;">
<template v-for="item1 of item.children">
<el-tab-pane
v-if="TrialConfig && isShow(item1.path)"
@@ -22,11 +22,14 @@
<i class="iconfont" style="font-size: 30px;color:#ccc">&#xe680;</i>
</div>
<!-- 返回项目列表 -->
<div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
<el-button type="primary" size="small" @click="goBack">
<i class="iconfont">&#xe670;</i>
<!-- 返回 -->
<span>{{ $t('trials:trials:title:back') }}</span>
</div>
</el-button>
<!-- <div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
<i class="iconfont">&#xe670;</i>
<span>{{ $t('trials:trials:title:back') }}</span>
</div> -->
</div>
</div>
</template>
@@ -221,6 +224,9 @@ export default {
.el-tabs__header{
margin-bottom: 3px;
}
.el-tabs__item.is-active{
font-weight: bold;
}
position: relative;
.el-input--medium .el-input__inner{
height: 44px;line-height: 44px;width: 280px;
+4 -4
View File
@@ -99,7 +99,7 @@ export default {
this.btnDisabled = false
if (res.IsSuccess) {
this.fileList[0].id = res.Result[0].Id
this.$message.success('Uploaded successfully')
this.$message.success(this.$t('trials:uploadDicomList:table:Uploaded'))
this.$emit('getFileList', res.Result[0].Id, res.Result[0].Path)
}
})
@@ -113,13 +113,13 @@ export default {
if (isValidFile) {
this.fileList = []
} else {
this.$alert('must be in pdf format')
this.$alert(this.$t('upload:rule:MUSTPDF'))
return false
}
},
beforeRemove(file, fileList) {
if (file && file.status === 'success') {
return this.$confirm(`Sure to remove ${file.name}?`)
return this.$confirm(this.$t('system:reviewer:confirm:delete'))
}
},
handleRemoveFile(file, fileList) {
@@ -146,7 +146,7 @@ export default {
}
},
handleExceed(files, fileList) {
this.$message.warning(`Upload is currently limited to 1 file`)
this.$message.warning(this.$t('upload:rule:maxFile1'))
},
fileValid(fileName, typeArr) {
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
+89 -53
View File
@@ -9,37 +9,51 @@
:file-list="fileList"
:accept="accept"
>
<el-button size="small" type="primary" :disabled="isDisabled">{{ $t('common:button:upload') }}</el-button>
<el-button size="small" type="primary" :disabled="isDisabled">{{
$t('common:button:upload')
}}</el-button>
</el-upload>
</div>
</template>
<script>
import { getAttachmentByType, uploadFile, saveAttachments, deleteAttachment } from '@/api/attachment'
import {
getAttachmentByType,
uploadFile,
saveAttachments,
deleteAttachment,
} from '@/api/attachment'
export default {
name: 'UploadFiles',
props: {
type: {
type: String,
required: true
required: true,
},
doctorId: {
type: String,
required: true
required: true,
},
accept: {
type: String,
required: true
}
required: true,
},
},
data() {
return {
fileList: [],
repeat: false,
isDisabled: false
isDisabled: false,
}
},
watch: {
doctorId() {
if (this.doctorId) {
this.initFileList()
}
},
},
mounted() {
if(!this.doctorId) return
if (!this.doctorId) return
this.initFileList()
},
methods: {
@@ -49,24 +63,28 @@ export default {
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.07)'
background: 'rgba(0, 0, 0, 0.07)',
})
getAttachmentByType(this.doctorId, this.type).then(res => {
loading.close()
if (res.IsSuccess) {
if (res.Result.length > 0) {
this.fileList = this.formatterFileList(res.Result)
this.$emit('getFileList', this.fileList)
} else {
this.fileList = []
getAttachmentByType(this.doctorId, this.type)
.then((res) => {
loading.close()
if (res.IsSuccess) {
if (res.Result.length > 0) {
this.fileList = this.formatterFileList(res.Result)
this.$emit('getFileList', this.fileList)
} else {
this.fileList = []
}
}
}
}).catch(() => { loading.close() })
})
.catch(() => {
loading.close()
})
},
formatterFileList(list) {
var arr = []
list.forEach(item => {
list.forEach((item) => {
const data = {
DoctorId: item.DoctorId,
Type: item.Type,
@@ -74,7 +92,7 @@ export default {
FullPath: item.FullPath,
FileName: item.FileName,
CreateTime: item.CreateTime,
Id: item.Id
Id: item.Id,
}
arr.push(data)
})
@@ -85,32 +103,42 @@ export default {
//
if (this.checkFileSuffix(param.file.name)) {
//
const isRepeat = this.fileList.some(item => item.FileName === param.file.name)
const isRepeat = this.fileList.some(
(item) => item.FileName === param.file.name
)
if (isRepeat) {
this.$confirm('Override the existing resume?', {
type: 'warning',
distinguishCancelAndClose: true,
confirmButtonText: 'OK',
cancelButtonText: 'Cancel'
})
this.$confirm(
this.$t('curriculumVitae:resume:message:existingResume'),
{
type: 'warning',
distinguishCancelAndClose: true,
}
)
.then(() => {
//
this.repeat = true
this.uploadFile(param.file)
})
.catch(action => {})
.catch((action) => {})
} else {
this.uploadFile(param.file)
}
} else {
this.$alert(`Must be in ${this.accept} format`)
let str = this.accept.join(', ')
let message = this.$t(
'trials:readingUnit:qsList:message:imageFormat'
).replace('xxx', str)
this.$alert(message)
}
},
async uploadFile(file) {
this.isDisabled = true
var fileName = file.name
file = await this.fileToBlob(file)
let res = await this.OSSclient.put(`/SystemData/reviewer/Agreements/${this.doctorId}/${fileName}`, file)
let res = await this.OSSclient.put(
`/SystemData/reviewer/Agreements/${this.doctorId}/${fileName}`,
file
)
if (this.repeat) {
const index = this.fileList.findIndex((item, index) => {
return item.FileName === fileName
@@ -124,52 +152,60 @@ export default {
Type: this.type,
Path: this.$getObjectName(res.url),
FullPath: this.$getObjectName(res.url),
FileName: fileName
FileName: fileName,
}
this.fileList.push(fileData)
}
this.saveUploadFiles()
},
saveUploadFiles() {
saveAttachments(this.fileList).then(res => {
this.fileList = this.formatterFileList(res.Result)
this.isDisabled = false
this.$message.success('Uploaded successfully')
this.$emit('getFileList', this.fileList)
}).catch(() => {
this.isDisabled = false
})
saveAttachments(this.fileList)
.then((res) => {
this.fileList = this.formatterFileList(res.Result)
this.isDisabled = false
this.$message.success(
this.$t('trials:uploadDicomList:table:Uploaded')
)
this.$emit('getFileList', this.fileList)
})
.catch(() => {
this.isDisabled = false
})
},
handleDeleteFile(file) {
this.$confirm('Sure to remove?', {
this.$confirm(this.$t('system:reviewer:confirm:delete'), {
type: 'warning',
distinguishCancelAndClose: true,
}).then(() => {
deleteAttachment(file.Id, file.Path)
.then(res => {
})
.then(() => {
deleteAttachment(file.Id, file.Path).then((res) => {
if (res.IsSuccess) {
this.fileList.splice(this.fileList.findIndex(item => item.Id === file.Id), 1)
this.fileList.splice(
this.fileList.findIndex((item) => item.Id === file.Id),
1
)
this.$emit('getFileList', this.fileList)
this.$message({
message: this.$t('common:message:deletedSuccessfully'),
type: 'success'
type: 'success',
})
}
})
})
.catch(action => {})
})
.catch((action) => {})
},
checkFileSuffix(fileName) {
var index = fileName.lastIndexOf('.')
var suffix = fileName.substring(index + 1, fileName.length)
return this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === 1
}
}
return (
this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === 1
)
},
},
}
</script>
<style>
.uploadFiles-container{
.uploadFiles-container {
margin: 0 5px;
}
.uploadFiles-container .el-upload--text {
@@ -180,10 +180,10 @@
<template v-if="question.Unit" slot="append">{{ question.Unit }}</template>
</el-input>
<span v-if="question.CustomCalculateMark === 11 && question.ClinicalQuestionType === 'number'" v-show="questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] <= questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId]" style="margin-left: 10px">
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}-{{ questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId] }}
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId] }}
</span>
<span v-if="question.CustomCalculateMark === 10 && question.ClinicalQuestionType === 'number' && questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId]" style="margin-left: 10px">
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}-{{ questionForm.CreateTime ? questionForm.CreateTime : parseTime(new Date(), '{y}-{m}-{d}') }}
{{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm.CreateTime ? questionForm.CreateTime : parseTime(new Date(), '{y}-{m}-{d}') }}
</span>
<!-- 生日不能大于截止日期 -->
<span v-if="question.CustomCalculateMark === 11 && question.ClinicalQuestionType === 'number'" v-show="questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] > questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId]" style="margin-left: 10px;font-size: 12px;color:#f66">
@@ -27,7 +27,7 @@
size="small"
type="primary"
@click="close"
v-show="$route.path !== '/trials/trials-panel/visit/crc-upload'"
v-show="$route.path !== '/trials/trials-panel/visit/crc-upload'&&$route.path!=='/trials/trials-panel/visit/crc-question'"
>
{{ $t('common:button:cancel') }}
</el-button>
+125
View File
@@ -0,0 +1,125 @@
<template>
<el-dialog
v-if="visible"
:visible.sync="visible"
v-dialogDrag
width="540px"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body
:title="$t('toggleRole:tip:title')"
center
top="30vh"
:show-close="false"
:before-close="cancel"
>
<template v-if="hasRole">
<el-radio-group v-model="form.userRoleId" class="roles">
<el-radio
v-for="item in roles"
:key="item.Id"
:label="item.Id"
:disabled="item.IsUserRoleDisabled"
style="margin-bottom: 10px"
>
{{ item.UserTypeShortName }}
</el-radio>
</el-radio-group>
</template>
<div v-else style="text-align: center">
{{ $t('toggleRole:tip:noRole') }}
</div>
<div slot="footer">
<!-- 取消 -->
<el-button size="small" @click="cancel()">
{{ $t('common:button:cancel') }}
</el-button>
<!-- 保存 -->
<el-button
type="primary"
size="small"
@click="save"
:disabled="saveDisabled"
:loading="loading"
v-if="hasRole"
>
{{ $t('common:button:confirm') }}
</el-button>
</div>
</el-dialog>
</template>
<script>
export default {
name: 'toggleRole',
props: {
visible: {
type: Boolean,
default: false,
},
loading: {
type: Boolean,
default: false,
},
},
data() {
return {
form: {
userRoleId: null,
},
}
},
created() {
this.form.userRoleId = zzSessionStorage.getItem('userId')
},
computed: {
roles() {
return this.$store.state.user.roles
},
hasRole() {
return this.roles && this.roles.length > 0
},
saveDisabled() {
return this.form.userRoleId === zzSessionStorage.getItem('userId')
},
},
methods: {
cancel() {
this.$emit('update:visible', false)
this.$emit('cancel')
},
async save() {
try {
if (!this.form.userRoleId)
return this.$message.warning(this.$t('toggleRole:ruleMessage:select'))
this.$emit('save', this.form.userRoleId)
} catch (err) {
console.log(err)
}
},
},
}
</script>
<style lang="scss" scoped>
.roles {
max-width: 365px;
width: fit-content;
display: flex;
align-content: center;
// justify-content: center;
flex-wrap: wrap;
margin: auto;
}
/deep/ .el-radio__original {
display: none !important; /* 隐藏原生 radio 输入,但仍然允许交互 */
}
/deep/.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled)
.el-radio__inner {
box-shadow: none !important;
}
.el-radio {
width: 60px;
}
</style>
-1
View File
@@ -1,6 +1,5 @@
import { SubjectCheckConfig } from './module/Subject'
console.log(SubjectCheckConfig.moduleType)
export const checkConfig = {
ModuleType: {
...SubjectCheckConfig.ModuleType
+6 -4
View File
@@ -10,7 +10,7 @@ const dialogDrag = Vue.directive('dialogDrag', {
dragDom.style.cssText += ';top:0px;'
// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
const sty = (function() {
const sty = (function () {
if (window.document.currentStyle) {
return (dom, attr) => dom.currentStyle[attr]
} else {
@@ -47,8 +47,10 @@ const dialogDrag = Vue.directive('dialogDrag', {
styL = +styL.replace(/\px/g, '')
styT = +styT.replace(/\px/g, '')
}
const oldMousemove = document.onmousemove
document.onmousemove = function(e) {
document.onmousemove = function (e) {
oldMousemove(e)
// 通过事件委托,计算移动的距离
let left = e.clientX - disX
const top = e.clientY - disY
@@ -70,8 +72,8 @@ const dialogDrag = Vue.directive('dialogDrag', {
dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;`
}
document.onmouseup = function(e) {
document.onmousemove = null
document.onmouseup = function (e) {
document.onmousemove = oldMousemove
document.onmouseup = null
}
}
+110 -19
View File
@@ -14,13 +14,13 @@
<div class="right-menu">
<div class="navbar-flex-wrapper">
<template v-if="device!=='mobile'">
<template v-if="device !== 'mobile'">
<screenfull id="screenfull" class="right-menu-item hover-effect" />
</template>
<!-- <div class="avatar-container">
<img src="@/assets/avatar.png" class="user-avatar">
</div> -->
<div style="margin-left:20px;">
<div style="margin-left: 20px">
<el-dropdown class="dropdown-container" trigger="click">
<span class="el-dropdown-link">
{{ `${name} (${userTypeShortName})` }}
@@ -30,10 +30,20 @@
</span>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item v-if="!isReviewer">
<span style="display:block;" @click="editInfo">{{$t('system:navbar:button:Profile')}}</span>
<span style="display: block" @click="editInfo">{{
$t('system:navbar:button:Profile')
}}</span>
</el-dropdown-item>
<!-- 切换角色 -->
<el-dropdown-item divided v-if="hasRole">
<span style="display: block" @click="openToggleRole">{{
$t('system:navbar:button:toggleRole')
}}</span>
</el-dropdown-item>
<el-dropdown-item divided>
<span style="display:block;" @click="logout">{{$t('system:navbar:button:Log Out')}}</span>
<span style="display: block" @click="logout">{{
$t('system:navbar:button:Log Out')
}}</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@@ -41,38 +51,119 @@
<TopLang></TopLang>
</div>
</div>
<toggleRole
v-if="toggleRoleVisible"
:visible.sync="toggleRoleVisible"
:loading="toggleRoleLoading"
@save="loginByRole"
/>
</div>
</template>
<script>
import {mapGetters, mapMutations} from 'vuex'
import { mapGetters, mapMutations } from 'vuex'
import Breadcrumb from '@/components/Breadcrumb'
import Hamburger from '@/components/Hamburger'
import Screenfull from '@/components/Screenfull'
import TopLang from './topLang'
import toggleRole from '@/components/toggleRole'
import { resetRouter } from '@/router'
export default {
components: {
Breadcrumb,
Hamburger,
Screenfull,
TopLang
TopLang,
toggleRole,
},
data() {
return {
isReviewer: false,
userTypeShortName: zzSessionStorage.getItem('userTypeShortName')
toggleRoleVisible: false,
toggleRoleLoading: false,
}
},
computed: {
...mapGetters(['sidebar', 'name', 'device'])
...mapGetters(['sidebar', 'name', 'device', 'userTypeShortName']),
roles() {
return this.$store.state.user.roles
},
hasRole() {
return this.roles && this.roles.length > 1
},
},
created() {
this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
// this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
openToggleRole() {
this.$store.dispatch('user/getUserInfo').then((res) => {
this.toggleRoleVisible = true
})
},
loginByRole(userRoleId) {
if (this.$store.state.user.userId === userRoleId) {
this.toggleRoleVisible = false
this.toggleRoleLoading = false
return false
}
this.toggleRoleLoading = true
this.$store
.dispatch('user/loginByRole', { userRoleId })
.then((res) => {
if (res) {
this.$store
.dispatch('permission/generateRoutes')
.then(async (res) => {
if (res && res.length > 0) {
resetRouter()
await this.$store.dispatch('global/getNoticeList')
this.$router.addRoutes(res)
this.toggleRoleLoading = false
if (this.loginType === 'DevOps') {
this.$router.replace({ path: res[0].path })
return
}
if (this.hasPermi(['role:radmin'])) {
this.$router.replace({ path: res[0].path })
return
}
if (
this.hasPermi([
'role:air',
'role:rpm',
'role:rcrc',
'role:rir',
])
) {
history.replaceState(null, null, '/trials/trials-list')
history.go(0)
} else {
history.replaceState(null, null, '/trials/trials-workbench')
history.go(0)
}
this.toggleRoleVisible = false
this.toggleRoleLoading = false
this.$EventBus.$emit('reload')
} else {
//
this.toggleRoleLoading = false
this.$message.warning(this.$t('login:message:login2'))
}
})
.catch((err) => {
console.log(err)
this.toggleRoleLoading = false
})
} else {
this.toggleRoleLoading = false
}
})
.catch(() => {
this.toggleRoleLoading = false
})
},
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')
},
@@ -84,23 +175,23 @@ export default {
} else {
this.$router.push(`/login`)
}
this.$i18n.locale = 'zh'
this.setLanguage('zh')
// //this.$i18n.locale = 'zh'
// //this.setLanguage('zh')
this.$updateDictionary()
},
editInfo() {
this.$router.push({ name: 'BaiscInfo' })
},
}
},
}
</script>
<style lang="scss" scoped>
.navbar-flex-wrapper{
display: flex;
flex-direction: row;
justify-content: space-between;
}
.navbar-flex-wrapper {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.navbar {
height: 50px;
overflow: hidden;
+10 -4
View File
@@ -293,6 +293,7 @@ async function VueInit() {
}()
_vm.$forceUpdate()
}
Vue.prototype.$EventBus = new Vue()
Vue.prototype.$path = []
var t = function (key) {
if (!~Vue.prototype.$path.indexOf(key)) {
@@ -402,8 +403,12 @@ async function VueInit() {
}
_vm.$store.dispatch('user/logout').then(res => {
// window.location.href = `/login`
if (_vm.$msgbox) {
_vm.$msgbox.close();
try {
if (_vm.$msgbox && _vm.$msgbox.close) {
_vm.$msgbox.close();
}
} catch (err) {
console.log(err)
}
_vm.$FB.close();
_vm.$FBT.close();
@@ -446,11 +451,11 @@ async function VueInit() {
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
if (!_vm.unlock.my_username) {
_vm.$alert(_vm.$t("env:lock:msgBox:iupUser"))
_vm.$message.warning(_vm.$t("env:lock:msgBox:iupUser"))
return
}
if (!_vm.unlock.my_password) {
_vm.$alert(_vm.$t("env:lock:msgBox:inpPassword"))
_vm.$message.warning(_vm.$t("env:lock:msgBox:inpPassword"))
return
}
var my_username = zzSessionStorage.getItem('my_username')
@@ -596,3 +601,4 @@ VueInit()
// });
export default _vm
+27 -13
View File
@@ -1,9 +1,10 @@
import router from './router'
import { resetRouter } from '@/router'
import store from './store'
// import { Message } from 'element-ui'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth'
import { getToken, removeToken } from '@/utils/auth'
import Vue from 'vue'
import { OSSclient } from './utils/oss'
import WHITELIST from "./utils/whiteList"
@@ -17,17 +18,15 @@ store.state.trials.whiteList = whiteList;
router.beforeEach(async (to, from, next) => {
NProgress.start()
// 设置页面标题
// document.title = getPageTitle(to.meta.title)
// document.title = getPageTitle(to.meta.title) store.state.trials.whiteList.indexOf(to.path) === -1
if (!to.query.trialId) {
store.dispatch('trials/setConfig', {})
}
if (
to.query.trialId &&
to.query.trialId !==
store.state.trials.config.trialId &&
store.state.trials.whiteList.indexOf(to.path) === -1
store.state.trials.config.trialId
) {
console.log(to.query.path)
let res = await getTrialExtralConfig({
TrialId: to.query.trialId,
})
@@ -37,14 +36,14 @@ router.beforeEach(async (to, from, next) => {
...res.Result,
})
}
} if (!to.query.trialId) {
}
if (!to.query.trialId) {
store.dispatch('trials/setConfig', {})
}
if (
to.query.trialId &&
to.query.trialId !==
store.state.trials.config.trialId &&
store.state.trials.whiteList.indexOf(to.path) === -1
store.state.trials.config.trialId
) {
let res = await getTrialExtralConfig({
TrialId: to.query.trialId,
@@ -63,14 +62,24 @@ router.beforeEach(async (to, from, next) => {
if (hasToken) {
if (to.path === '/login' || to.path === '/recompose' || to.path === '/email-recompose' || to.path === '/error' || to.path === '/ReviewersResearchForm' || to.path === '/ReviewersResearch') {
if (to.path === '/ReviewersResearch') {
await store.dispatch('user/logout')
await OSSclient()
await store.dispatch('user/logout')
}
if (to.path === '/ReviewersResearchForm') {
await OSSclient()
}
next()
NProgress.done()
} else if (from.path === '/researchForm') {
removeToken()
let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done()
} else if (from.path === '/researchDetail_m') {
removeToken()
let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done()
} else {
await OSSclient()
const hasGetUserInfo = store.getters.userId
@@ -80,10 +89,13 @@ router.beforeEach(async (to, from, next) => {
try {
// 获取用户信息
await store.dispatch('user/getInfo')
await store.dispatch('user/getUserInfo')
const accessRoutes = await store.dispatch('permission/generateRoutes')
resetRouter()
router.addRoutes(accessRoutes)
next({ ...to, replace: true })
} catch (error) {
console.log(error)
// 删除token并进入登录页面以重新登录
await store.dispatch('user/resetToken')
next(`/login?redirect=${to.path}`)
@@ -95,10 +107,10 @@ router.beforeEach(async (to, from, next) => {
/* has no token*/
if (whiteList.indexOf(to.path) !== -1) {
if (to.path === '/researchLogin') {
console.log(to)
let lang = to.query.lang || zzSessionStorage.getItem('lang')
const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
if (flag) {
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${to.query.lang}`)
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
} else {
next()
}
@@ -111,10 +123,12 @@ router.beforeEach(async (to, from, next) => {
}
} else {
if (to.path === '/researchForm') {
next(`/researchLogin?`)
let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done()
} else if (to.path === '/researchDetail_m') {
next(`/researchLogin_m?`)
let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done()
} else if (to.path === '/ReviewersResearchForm') {
next(`/ReviewersResearch?`)
+3
View File
@@ -3,10 +3,12 @@ const getters = {
device: state => state.app.device,
token: state => state.user.token,
name: state => state.user.name,
userTypeShortName: state => state.user.userTypeShortName,
permissions: state => state.user.permissions,
tree: state => state.user.tree,
userName: state => state.user.userName,
userId: state => state.user.userId,
identityUserId: state => state.user.identityUserId,
routes: state => state.permission.routes,
asyncRoutes: state => state.permission.addRoutes,
visitedViews: state => state.tagsView.visitedViews,
@@ -45,6 +47,7 @@ const getters = {
language: state => state.lang.language,
TotalNeedSignSystemDocCount: state => state.user.TotalNeedSignSystemDocCount,
TotalNeedSignTrialDocCount: state => state.user.TotalNeedSignTrialDocCount,
IsFirstSysDocNeedSign: state => state.user.IsFirstSysDocNeedSign,
TrialStatusStr: state => state.user.TrialStatusStr
}
export default getters
+88 -35
View File
@@ -70,6 +70,12 @@ function getQuestions(questions) {
answerObj.angle = angle
answerObj.saveTypeEnum = isNaN(parseFloat(angle)) ? 1 : 2
}
} else if (criterionType === 21) {
// MRI-PDFF
let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj)
answerObj.isMeasurable = isMeasurable
answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj)
answerObj.saveTypeEnum = parseInt(isMeasurable) === 1 && isNaN(parseFloat(answerObj.mean)) ? 1 : 2
} else {
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
@@ -507,6 +513,7 @@ const actions = {
})
},
getMeasuredData({ state }, visitTaskId) {
console.log('getMeasuredData')
return new Promise(resolve => {
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
if (state.visitTaskList[index].measureDataInit) {
@@ -523,6 +530,13 @@ const actions = {
el.OtherMeasureData = JSON.parse(el.OtherMeasureData)
el.OtherMeasureData.data.remark = el.OrderMarkName
}
// if (el.TableQuestionMarkList.length > 0) {
// let list = el.TableQuestionMarkList.map(i=>{
// i.MeasureData = i.MeasureData ? JSON.parse(i.MeasureData) : ''
// return i
// })
// el.TableQuestionMarkList = list
// }
arr.push(el)
})
state.visitTaskList[index].MeasureData = arr
@@ -606,6 +620,13 @@ const actions = {
el.MeasureData = JSON.parse(el.MeasureData)
el.MeasureData.data.remark = el.OrderMarkName
}
// if (el.TableQuestionMarkList.length > 0) {
// let list = el.TableQuestionMarkList.map(i=>{
// i.MeasureData = i.MeasureData ? JSON.parse(i.MeasureData) : ''
// return i
// })
// el.TableQuestionMarkList = list
// }
arr.push(el)
})
state.visitTaskList[index].MeasureData = arr
@@ -623,27 +644,40 @@ const actions = {
resolve(noneDicomMeasureData)
})
},
addMeasuredData({ state }, obj) {
addMeasuredData({ state }, obj) {
return new Promise(resolve => {
const criterionType = parseInt(localStorage.getItem('CriterionType'))
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
var measureData = state.visitTaskList[index].MeasureData
// var idx = measureData.findIndex(item => item.MeasureData.uuid === obj.data.MeasureData.data.uuid)
var idx = measureData.findIndex(item => item.QuestionId === obj.data.QuestionId && item.RowIndex === obj.data.RowIndex)
if (idx > -1) {
for (const k in state.visitTaskList[index].MeasureData[idx]) {
if (k !== 'Id' && obj.data[k]) {
state.visitTaskList[index].MeasureData[idx][k] = obj.data[k]
if (criterionType === 21) {
let i = measureData.findIndex(i=>i.TableQuestionId === obj.data.TableQuestionId)
if (i > -1) {
for (const k in state.visitTaskList[index].MeasureData[i]) {
if (k !== 'Id' && obj.data[k]) {
state.visitTaskList[index].MeasureData[i][k] = obj.data[k]
}
}
} else {
state.visitTaskList[index].MeasureData.push(obj.data)
}
// state.visitTaskList[index].MeasureData[idx].MeasureData = obj.data.MeasureData
console.log('更新标记成功', idx)
} else {
state.visitTaskList[index].MeasureData.push(obj.data)
console.log('新增标记成功')
var idx = measureData.findIndex(item => item.QuestionId === obj.data.QuestionId && item.RowIndex === obj.data.RowIndex)
if (idx > -1) {
for (const k in state.visitTaskList[index].MeasureData[idx]) {
if (k !== 'Id' && obj.data[k]) {
state.visitTaskList[index].MeasureData[idx][k] = obj.data[k]
}
}
console.log('更新标记成功', idx)
} else {
state.visitTaskList[index].MeasureData.push(obj.data)
console.log('新增标记成功')
}
}
// sessionStorage.setItem('visitTaskList', state.visitTaskList.length > 0 ? JSON.stringify(state.visitTaskList) : '')
console.log(state.visitTaskList)
resolve()
})
},
@@ -738,32 +772,45 @@ const actions = {
return new Promise(resolve => {
var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
var measureData = state.visitTaskList[index].MeasureData
// var uuid = obj.measureData.data.uuid
// var idx = measureData.findIndex(item => item.MeasureData && item.MeasureData.data && item.MeasureData.data.uuid === uuid)
var idx = measureData.findIndex(item => item.QuestionId === obj.questionId && item.RowIndex === obj.rowIndex)
if (idx > -1) {
if (measureData[idx].FristAddTaskId) {
measureData[idx].MeasureData = ''
console.log('清除标记成功', idx)
} else {
measureData.splice(idx, 1)
console.log('移除标记成功', idx)
}
state.visitTaskList[index].MeasureData = measureData
} else if (obj.orderMarkName) {
const criterionType = parseInt(localStorage.getItem('CriterionType'))
if (criterionType === 21) {
const i = measureData.findIndex(item => item.QuestionId === obj.questionId && item.OrderMarkName === obj.orderMarkName)
if (i > -1) {
if (measureData[i].FristAddTaskId) {
measureData[i].MeasureData = ''
console.log('清除标记成功', i)
} else {
measureData.splice(i, 1)
console.log('移除标记成功', i)
if (i > -1) {
if (measureData[i].FristAddTaskId) {
measureData[i].MeasureData = ''
console.log('清除标记成功', i)
} else {
measureData.splice(i, 1)
console.log('移除标记成功', i)
}
}
}
state.visitTaskList[index].MeasureData = measureData
} else {
var idx = measureData.findIndex(item => item.QuestionId === obj.questionId && item.RowIndex === obj.rowIndex)
if (idx > -1) {
if (measureData[idx].FristAddTaskId) {
measureData[idx].MeasureData = ''
console.log('清除标记成功', idx)
} else {
measureData.splice(idx, 1)
console.log('移除标记成功', idx)
}
state.visitTaskList[index].MeasureData = measureData
} else if (obj.orderMarkName) {
const i = measureData.findIndex(item => item.QuestionId === obj.questionId && item.OrderMarkName === obj.orderMarkName)
if (i > -1) {
if (measureData[i].FristAddTaskId) {
measureData[i].MeasureData = ''
console.log('清除标记成功', i)
} else {
measureData.splice(i, 1)
console.log('移除标记成功', i)
}
}
state.visitTaskList[index].MeasureData = measureData
}
}
// if (idx > -1) {
// measureData.splice(idx, 1)
@@ -840,6 +887,12 @@ const actions = {
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
imageIds.push(imageId)
})
} else if (study.IsCriticalSequence && instance.KeyFramesList.length === 0) {
// 兼容保存标记数据未存NumberOfFrames的情况,按序列展示
for (let i = 0; i < instance.NumberOfFrames; i++) {
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
imageIds.push(imageId)
}
} else {
for (let i = 0; i < instance.NumberOfFrames; i++) {
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
@@ -1034,7 +1087,7 @@ const actions = {
}
},
setImageloadedInfo({ state }, obj) {
console.log('setImageloadedInfo', obj)
// console.log('setImageloadedInfo', obj)
// if(obj.instance === '20dd8fc9-51b0-ec63-942b-cb3006c72650')
// var index = state.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
// // const prefetchInstanceCount = state.visitTaskList[index].StudyList[obj.studyIndex].SeriesList[obj.seriesIndex].prefetchInstanceCount
+131 -25
View File
@@ -1,5 +1,6 @@
import { getToken, setToken, removeToken, setName, removeName } from '@/utils/auth'
import { login, loginOut, getUserMenuTree, getUserPermissions } from '@/api/user'
import { login, loginOut, getUserMenuTree, getUserPermissions, getUserLoginRoleList, loginSelectUserRole } from '@/api/user'
import { getUser } from '@/api/admin'
import { resetRouter } from '@/router'
import md5 from 'js-md5'
@@ -7,22 +8,29 @@ const getDefaultState = () => {
return {
token: getToken(),
name: '',
userTypeShortName: "",
userName: '',
userId: '',
identityUserId: '',
avatar: '',
permissions: [],
tree: [],
/* eslint-disable */
TotalNeedSignSystemDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
TotalNeedSignTrialDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
IsFirstSysDocNeedSign: false,
TrialStatusStr: null,
isTestUser: false
isTestUser: false,
roles: []
}
}
const state = getDefaultState()
const mutations = {
SET_ROLES: (state, roles) => {
state.roles = roles
},
RESET_STATE: (state) => {
Object.assign(state, getDefaultState())
},
@@ -34,6 +42,9 @@ const mutations = {
SET_NAME: (state, name) => {
state.name = name
},
SET_USERTYPESHORTNAME: (state, userTypeShortName) => {
state.userTypeShortName = userTypeShortName
},
SET_USERNAME: (state, name) => {
state.userName = name
},
@@ -49,9 +60,16 @@ const mutations = {
SET_USERID: (state, id) => {
state.userId = id
},
SET_IDENTITYUSERID: (state, id) => {
state.identityUserId = id
},
SET_ISTESTUSER: (state, isTestUser) => {
state.isTestUser = eval(isTestUser)
},
SET_IS_FIRST_SYSTEM_DOC_SIGN: (state, IsFirstSysDocNeedSign) => {
zzSessionStorage.setItem('IsFirstSysDocNeedSign', IsFirstSysDocNeedSign)
state.IsFirstSysDocNeedSign = IsFirstSysDocNeedSign
},
SET_NEED_SIGN_SYSTEM_DOC_COUNT: (state, TotalNeedSignSystemDocCount) => {
/* eslint-disable */
if (eval(process.env.VUE_APP_WORD_FOR_PERMISSION) && !state.isTestUser) {
@@ -78,6 +96,9 @@ const mutations = {
}
const actions = {
setRoles({ commit }, roles) {
commit('SET_ROLES', roles)
},
changeUserName({ commit }, userName) {
commit('SET_USERNAME', userName)
},
@@ -91,7 +112,7 @@ const actions = {
if (UserId) {
data.UserId = UserId;
}
login(data).then(async response => {
getUserLoginRoleList(data).then(async response => {
if (response.IsSuccess) {
zzSessionStorage.removeItem('lastWorkbench')
zzSessionStorage.setItem('my_username', username.trim())
@@ -99,6 +120,7 @@ const actions = {
zzSessionStorage.setItem('my_EMail', response.Result.BasicInfo.EMail)
localStorage.setItem('CompanyInfo', JSON.stringify(response.Result.CompanyInfo))
const data = response.Result
commit('SET_ROLES', data.BasicInfo.AccountList)
if (data.BasicInfo.IsFirstAdd || data.BasicInfo.LoginState === 1) {
try {
zzSessionStorage.setItem('userId', data.BasicInfo.Id)
@@ -114,25 +136,24 @@ const actions = {
zzSessionStorage.setItem('IsReviewer', data.BasicInfo.IsReviewer)
zzSessionStorage.setItem('userName', data.BasicInfo.UserName)
commit('SET_TOKEN', data.JWTStr)
commit('SET_NAME', data.BasicInfo.RealName)
zzSessionStorage.setItem('realName', data.BasicInfo.RealName)
// commit('SET_NAME', data.BasicInfo.UserName)
zzSessionStorage.setItem('isTestUser', data.BasicInfo.IsTestUser)
commit('SET_ISTESTUSER', data.BasicInfo.IsTestUser)
commit('SET_USERNAME', data.BasicInfo.UserName)
commit('SET_USERID', data.BasicInfo.Id)
setToken(data.JWTStr)
setName(data.BasicInfo.RealName)
const userString = decodeURIComponent(escape(window.atob(data.JWTStr.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
const user = JSON.parse(userString)
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
zzSessionStorage.setItem('userId', user.id)
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
var permissions = await getUserPermissions()
var menuTree = await getUserMenuTree()
commit('SET_TREE', menuTree.Result)
commit('SET_PERMISSIONS', permissions.Result)
zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
// setName(data.BasicInfo.RealName)
// const userString = decodeURIComponent(escape(window.atob(data.JWTStr.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
// const user = JSON.parse(userString)
// zzSessionStorage.setItem('userId', user.identityUserId)
// commit('SET_IDENTITYUSERID', user.identityUserId)
// zzSessionStorage.setItem('identityUserId', user.identityUserId)
// zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
// var permissions = await getUserPermissions()
// var menuTree = await getUserMenuTree()
// commit('SET_TREE', menuTree.Result)
// commit('SET_PERMISSIONS', permissions.Result)
// zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
// zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
} catch (e) {
console.log(e)
}
@@ -146,6 +167,51 @@ const actions = {
})
})
},
loginByRole({ commit }, userInfo) {
const { userRoleId } = userInfo
let params = {
userRoleId
}
return new Promise((resolve, reject) => {
loginSelectUserRole(params).then(async response => {
if (response.IsSuccess) {
const data = response.Result
try {
commit('SET_TOKEN', data)
setToken(data)
commit('SET_USERID', userRoleId)
zzSessionStorage.setItem('userId', userRoleId)
const userString = decodeURIComponent(escape(window.atob(data.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
const user = JSON.parse(userString)
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
commit('SET_USERTYPESHORTNAME', user.userTypeShortName)
commit('SET_NAME', user.fullName)
setName(user.fullName)
commit('SET_IDENTITYUSERID', user.identityUserId)
zzSessionStorage.setItem('identityUserId', user.identityUserId)
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
var permissions = await getUserPermissions()
var menuTree = await getUserMenuTree()
commit('SET_TREE', menuTree.Result)
commit('SET_PERMISSIONS', permissions.Result)
zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
zzSessionStorage.removeItem('lastWorkbench')
} catch (e) {
console.log(e)
}
resolve(response.Result)
} else {
reject(response.ErrorMessage)
}
}).catch(() => {
reject()
})
})
},
setTree({ commit }, tree) {
commit('SET_TREE', tree)
},
@@ -155,6 +221,9 @@ const actions = {
setTotalNeedSignSystemDocCount({ commit }, TotalNeedSignSystemDocCount) {
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', TotalNeedSignSystemDocCount)
},
setIsFirstSysDocNeedSign({ commit }, IsFirstSysDocNeedSign) {
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', IsFirstSysDocNeedSign)
},
setTotalNeedSignTrialDocCount({ commit }, TotalNeedSignTrialDocCount) {
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', TotalNeedSignTrialDocCount)
},
@@ -170,32 +239,69 @@ const actions = {
commit('SET_PERMISSIONS', JSON.parse(zzSessionStorage.getItem('permissions')))
commit('SET_ISTESTUSER', zzSessionStorage.getItem('isTestUser'))
const user = JSON.parse(userString)
commit('SET_NAME', zzSessionStorage.getItem('realName'))
commit('SET_USERID', user.id)
commit('SET_NAME', zzSessionStorage.getItem('Name'))
commit('SET_USERTYPESHORTNAME', user.userTypeShortName)
commit('SET_IDENTITYUSERID', user.identityUserId)
commit('SET_USERID', user.userRoleId)
commit('SET_USERNAME', zzSessionStorage.getItem('userName'))
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignSystemDocCount')))
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignTrialDocCount')))
console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))
console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', zzSessionStorage.getItem('IsFirstSysDocNeedSign'))
// console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))
// console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))
zzSessionStorage.setItem('userName', user.name)
zzSessionStorage.setItem('userId', user.id)
zzSessionStorage.setItem('userId', user.userRoleId)
zzSessionStorage.setItem('identityUserId', user.identityUserId)
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
return user
},
updateInfo({ commit, state }) {
commit('SET_NAME', zzSessionStorage.getItem('realName'))
commit('SET_NAME', zzSessionStorage.getItem('Name'))
},
// 获取用户信息
getUserInfo({ commit, state }) {
return new Promise((resolve, reject) => {
getUser().then(res => {
if (res.Result) {
commit('SET_ROLES', res.Result.AccountList)
}
resolve(res.Result)
}).catch(err => {
reject(err)
})
})
},
// user logout
async logout({ commit, state }) {
try {
removeToken() // must remove token first
await loginOut({
Userd: zzSessionStorage.getItem('userId')
UserRoleId: zzSessionStorage.getItem('userId'),
IdentityUserId: zzSessionStorage.getItem('identityUserId'),
})
resetRouter()
removeName()
let lang = zzSessionStorage.getItem('lang')
zzSessionStorage.clear()
zzSessionStorage.setItem('lang', lang)
commit('RESET_STATE')
} catch (e) {
console.log(e)
}
},
async resetData({ commit, state }) {
try {
removeToken() // must remove token first
// await loginOut({
// UserRoleId: zzSessionStorage.getItem('userId'),
// IdentityUserId: zzSessionStorage.getItem('identityUserId'),
// })
resetRouter()
removeName()
let lang = zzSessionStorage.getItem('lang')
zzSessionStorage.clear()
zzSessionStorage.setItem('lang', lang)
commit('RESET_STATE')
} catch (e) {
console.log(e)
+3
View File
@@ -47,3 +47,6 @@
.el-range-separator {
box-sizing: content-box;
}
.el-select-dropdown__wrap{
max-height: 350px;
}
+3 -2
View File
@@ -40,8 +40,9 @@ Vue.directive('dialogDrag', {
styL = +styL.replace(/\px/g, '')
styT = +styT.replace(/\px/g, '')
}
const oldMousemove = document.onmousemove
document.onmousemove = function(e) {
oldMousemove(e)
// 通过事件委托,计算移动的距离
let left = e.clientX - disX
let top = e.clientY - disY
@@ -63,7 +64,7 @@ Vue.directive('dialogDrag', {
}
document.onmouseup = function(e) {
document.onmousemove = null
document.onmousemove = oldMousemove
document.onmouseup = null
}
return false
+103
View File
@@ -0,0 +1,103 @@
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
function parseImageId(imageId) {
// build a url by parsing out the url scheme and frame index from the imageId
const firstColonIndex = imageId.indexOf(':');
let url = imageId.substring(firstColonIndex + 1);
const frameIndex = url.indexOf('frame=');
let frame;
if (frameIndex !== -1) {
const frameStr = url.substr(frameIndex + 6);
frame = parseInt(frameStr, 10);
url = url.substr(0, frameIndex - 1);
}
return {
scheme: imageId.substr(0, firstColonIndex),
url,
frame,
};
}
function getNumberValues(dataSet, tag, minimumLength) {
const values = [];
const valueAsString = dataSet.string(tag);
if (!valueAsString) {
return;
}
const split = valueAsString.split('\\');
if (minimumLength && split.length < minimumLength) {
return;
}
for (let i = 0; i < split.length; i++) {
values.push(parseFloat(split[i]));
}
return values;
}
function metaDataProvider(type, imageId) {
const parsedImageId = parseImageId(imageId);
const dataSet = cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.get(parsedImageId.url);
if (!dataSet) {
return;
}
if (type === 'imagePlaneModule') {
const imageOrientationPatient = getNumberValues(dataSet, 'x00200037', 6);
const imagePositionPatient = getNumberValues(dataSet, 'x00200032', 3);
const pixelSpacing = getNumberValues(dataSet, 'x00280030', 2);
const imagePixelSpacing = getNumberValues(dataSet, 'x00181164', 2);
const estimatedRadiographicMagnificationFactor = getNumberValues(dataSet, 'x00181114', 2);
let columnPixelSpacing = null;
let rowPixelSpacing = null;
if (pixelSpacing) {
rowPixelSpacing = pixelSpacing[0];
columnPixelSpacing = pixelSpacing[1];
} else if (imagePixelSpacing && estimatedRadiographicMagnificationFactor) {
rowPixelSpacing = imagePixelSpacing[0] / estimatedRadiographicMagnificationFactor[0];
columnPixelSpacing = imagePixelSpacing[1] / estimatedRadiographicMagnificationFactor[1];
} else if (imagePixelSpacing && !estimatedRadiographicMagnificationFactor) {
rowPixelSpacing = imagePixelSpacing[0];
columnPixelSpacing = imagePixelSpacing[1];
}
let rowCosines = null;
let columnCosines = null;
if (imageOrientationPatient) {
rowCosines = [
parseFloat(imageOrientationPatient[0]),
parseFloat(imageOrientationPatient[1]),
parseFloat(imageOrientationPatient[2]),
];
columnCosines = [
parseFloat(imageOrientationPatient[3]),
parseFloat(imageOrientationPatient[4]),
parseFloat(imageOrientationPatient[5]),
];
}
return {
frameOfReferenceUID: dataSet.string('x00200052'),
rows: dataSet.uint16('x00280010'),
columns: dataSet.uint16('x00280011'),
imageOrientationPatient,
rowCosines,
columnCosines,
imagePositionPatient,
sliceThickness: dataSet.floatString('x00180050'),
sliceLocation: dataSet.floatString('x00201041'),
pixelSpacing,
rowPixelSpacing,
columnPixelSpacing,
};
}
}
export default metaDataProvider;
+3 -3
View File
@@ -89,9 +89,9 @@ service.interceptors.response.use(
})
store.dispatch('user/logout').then(() => {
router.push(`/login`)
this.$i18n.locale = 'zh'
this.setLanguage('zh')
this.$updateDictionary()
//this.$i18n.locale = 'zh'
//this.setLanguage('zh')
// this.$updateDictionary()
})
}
} else {
+21 -6
View File
@@ -5,6 +5,7 @@ import router from '@/router'
import WHITELIST from "./whiteList"
import moment from 'moment-timezone';
import { encryptConfig } from "@/utils/encrypt"
const ROUTER = require('@/router');
axios.defaults.withCredentials = false
const service = axios.create({
baseURL: '/api',
@@ -90,10 +91,20 @@ service.interceptors.response.use(
const status = error.response.status
if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) {
store.dispatch('user/logout').then(() => {
let _vm = ROUTER.default.app
try {
if (_vm.$msgbox && _vm.$msgbox.close) {
_vm.$msgbox.close();
}
} catch (err) {
console.log(err)
}
router.push(`/login`)
this.$i18n.locale = 'zh'
this.setLanguage('zh')
this.$updateDictionary()
// if (!this.$i18n.locale) {
// //this.$i18n.locale = 'zh'
// //this.setLanguage('zh')
// }
// this.$updateDictionary()
})
}
switch (status) {
@@ -123,9 +134,9 @@ service.interceptors.response.use(
}
store.dispatch('user/logout').then(() => {
router.push(`/login`)
this.$i18n.locale = 'zh'
this.setLanguage('zh')
this.$updateDictionary()
// //this.$i18n.locale = 'zh'
// //this.setLanguage('zh')
// this.$updateDictionary()
})
} else {
setTimer({
@@ -139,6 +150,7 @@ service.interceptors.response.use(
setTimer([message, store.state.lang.language === 'en' ? 'Warning' : '警告', {
type: 'warning',
showCancelButton: false,
confirmButtonText: store.state.lang.language === 'en' ? 'ok' : "确定",
callback: action => { }
}], 'confirm')
}
@@ -149,6 +161,7 @@ service.interceptors.response.use(
[store.state.lang.language === 'en' ? 'Please check your networkand try again later' : '请检查网络,稍后重试!', store.state.lang.language === 'en' ? 'Warning' : '警告', {
type: 'warning',
showCancelButton: false,
confirmButtonText: store.state.lang.language === 'en' ? 'ok' : "确定",
callback: action => { }
}], "confirm"
)
@@ -167,6 +180,8 @@ const setTimer = (obj, type) => {
Message(obj)
}
if (type === 'confirm') {
obj[2].closeOnClickModal = false
obj[2].closeOnPressEscape = false
MessageBox.confirm(...obj)
}
clearTimeout(timer);
+100 -52
View File
@@ -5,7 +5,7 @@
:model="user"
:rules="userFormRules"
label-width="150px"
style="width:800px;"
style="width: 800px"
>
<el-card class="Basic" shadow="never" size="small">
<div slot="header" class="clearfix">
@@ -25,7 +25,7 @@
<el-form-item label="Given Name: " prop="FirstName">
<el-input v-model="user.FirstName" />
</el-form-item>
<el-form-item label="Gender: " prop="Sex" style="margin-right:40px;">
<el-form-item label="Gender: " prop="Sex" style="margin-right: 40px">
<el-radio-group v-model="user.Sex">
<el-radio :label="1">Male</el-radio>
<el-radio :label="0">Female</el-radio>
@@ -37,13 +37,24 @@
<el-form-item label="Phone: " prop="Phone">
<el-input v-model="user.Phone" />
</el-form-item>
<el-form-item v-if="type==1" label="Disable:">
<el-switch v-model="user.Status" :active-value="0" :inactive-value="1" />
<el-form-item v-if="type == 1" label="Disable:">
<el-switch
v-model="user.Status"
:active-value="0"
:inactive-value="1"
/>
</el-form-item>
<el-form-item label="User Type: " prop="UserTypeId">
<el-select ref="userType" v-model="user.UserTypeId" size="small" placeholder="Please select" style="width:100%;" :disabled="user.CanEditUserType === false">
<el-select
ref="userType"
v-model="user.UserTypeId"
size="small"
placeholder="Please select"
style="width: 100%"
:disabled="user.CanEditUserType === false"
>
<el-option
v-for="(userType,key) of userTypeOptions"
v-for="(userType, key) of userTypeOptions"
:key="key"
:label="userType.UserType"
:value="userType.Id"
@@ -52,17 +63,28 @@
</el-form-item>
</el-card>
<el-card class="Affiliation" shadow="never" style="margin-top:10px;" size="small">
<el-card
class="Affiliation"
shadow="never"
style="margin-top: 10px"
size="small"
>
<div slot="header" class="clearfix">
<span>Affiliation</span>
</div>
<el-form-item prop="IsZhiZhun">
<el-radio-group v-model="user.IsZhiZhun" @change="OrgnizationTypeChanged">
<el-radio-group
v-model="user.IsZhiZhun"
@change="OrgnizationTypeChanged"
>
<el-radio :label="true">Internal</el-radio>
<el-radio :label="false">External</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item v-show="user.IsZhiZhun === false" label="Organization Name: ">
<el-form-item
v-show="user.IsZhiZhun === false"
label="Organization Name: "
>
<el-input v-model="user.OrganizationName" />
</el-form-item>
@@ -78,19 +100,24 @@
type="primary"
size="small"
:disabled="isDisabled"
style="margin:10px 15px"
style="margin: 10px 15px"
@click="handleSave"
>Save</el-button>
>Save</el-button
>
</el-form-item>
</el-form>
</template>
<script>
import { getUser, addUser, updateUser, getUserTypeListByUserType } from '@/api/admin.js'
import {
getUser,
addUser,
updateUser,
getUserTypeListByUserType,
} from '@/api/admin.js'
export default {
name: 'UserInfo',
props: {
userId: { type: String, default: '' }
userId: { type: String, default: '' },
},
data() {
return {
@@ -105,60 +132,69 @@ export default {
IsZhiZhun: '',
OrganizationName: '',
DepartmentName: '',
PositionName: ''
PositionName: '',
},
userFormRules: {
UserName: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }
{ max: 50, message: 'The maximum length is 50' },
],
UserTypeId: [
{ required: true, message: 'Please Select', trigger: ['blur', 'change'] }
{
required: true,
message: 'Please Select',
trigger: ['blur', 'change'],
},
],
IsZhiZhun: [
{ required: true, message: 'Please Select', trigger: ['blur', 'change'] }
{
required: true,
message: 'Please Select',
trigger: ['blur', 'change'],
},
],
OrganizationName: [
{ required: true, message: 'Please specify', trigger: 'blur' }
{ required: true, message: 'Please specify', trigger: 'blur' },
],
LastName: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }
{ max: 50, message: 'The maximum length is 50' },
],
FirstName: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }
{ max: 50, message: 'The maximum length is 50' },
],
Phone: [
{ max: 20, min: 7, message: 'The length is 7 to 20', trigger: ['blur'] }
{
max: 20,
min: 7,
message: 'The length is 7 to 20',
trigger: ['blur'],
},
],
EMail: [
{
required: true,
message: 'Please input the email address',
trigger: 'blur'
trigger: 'blur',
},
{
type: 'email',
message: 'Please input the correct email address',
trigger: ['blur']
trigger: ['blur'],
},
{ max: 50, message: 'The maximum length is 50' }
],
Sex: [
{ required: true, message: 'Please specify', trigger: 'blur' }
{ max: 50, message: 'The maximum length is 50' },
],
Sex: [{ required: true, message: 'Please specify', trigger: 'blur' }],
Status: [
{ required: true, message: 'Please specify', trigger: 'blur' }
{ required: true, message: 'Please specify', trigger: 'blur' },
],
DepartmentName: [
{ max: 50, message: 'The maximum length is 50' }],
PositionName: [{ max: 50, message: 'The maximum length is 50' }
]
DepartmentName: [{ max: 50, message: 'The maximum length is 50' }],
PositionName: [{ max: 50, message: 'The maximum length is 50' }],
},
userTypeOptions: [],
isDisabled: false,
type: 0 // 10
type: 0, // 10
}
},
created() {
@@ -172,46 +208,58 @@ export default {
},
methods: {
handleSave() {
this.$refs.userForm.validate(valid => {
this.$refs.userForm.validate((valid) => {
if (valid) {
this.isDisabled = true
const selectedUserType = this.userTypeOptions.filter(item => item.Id === this.user.UserTypeId)
const selectedUserType = this.userTypeOptions.filter(
(item) => item.Id === this.user.UserTypeId
)
if (selectedUserType.length > 0) {
this.user.UserTypeEnum = selectedUserType[0].UserTypeEnum
}
if (this.user.Id) {
updateUser(this.user).then(res => {
this.isDisabled = false
this.$message.success('Updated successfully')
}).catch(() => { this.isDisabled = false })
updateUser(this.user)
.then((res) => {
this.isDisabled = false
this.$message.success('Updated successfully')
})
.catch(() => {
this.isDisabled = false
})
} else {
addUser(this.user).then(res => {
this.isDisabled = false
this.user.Id = res.Result.Id
this.user.UserCode = res.Result.UserCode
this.$emit('getUserId', res.Result.Id)
this.$message.success('Added successfully')
this.$router.push({ path: '/system/user/list' })
}).catch(() => { this.isDisabled = false })
addUser(this.user)
.then((res) => {
this.isDisabled = false
this.user.Id = res.Result.Id
this.user.UserCode = res.Result.UserCode
this.$emit('getUserId', res.Result.Id)
this.$message.success('Added successfully')
this.$router.push({ path: '/system/user/list' })
})
.catch(() => {
this.isDisabled = false
})
}
}
})
},
getUserTypeList() {
getUserTypeListByUserType(0).then(res => {
getUserTypeListByUserType(0).then((res) => {
if (res.IsSuccess) {
this.userTypeOptions = res.Result
}
})
},
getUserInfo() {
getUser(this.userId).then(res => {
getUser({
IdentityUserId: this.userId,
}).then((res) => {
this.user = res.Result
})
},
OrgnizationTypeChanged(val) {
this.user.OrganizationName = ''
}
}
},
},
}
</script>
+2 -2
View File
@@ -131,8 +131,8 @@ export default {
.then(() => {
this.$store.dispatch('user/logout').then(res => {
this.$router.push(`/login`)
this.$i18n.locale = 'zh'
this.setLanguage('zh')
//this.$i18n.locale = 'zh'
//this.setLanguage('zh')
this.$updateDictionary()
})
})
+2
View File
@@ -67,6 +67,8 @@ import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
// import dicomStore from '@/utils/dicom-store'
import dicomViewer from '@/components/Dicom/DicomViewer'
import dicomPreview from '@/components/Dicom/DicomPreview'
import metaDataProvider from '@/utils/metaDataProvider'
cornerstone.metaData.addProvider(metaDataProvider, { priority: 10 });
var config = {
maxWebWorkers: 4,
startWebWorkersOnDemand: true,
+2
View File
@@ -143,6 +143,8 @@ import { getInstanceList, getPatientSeriesList, setSeriesStatus } from '@/api/tr
import requestPoolManager from '@/utils/request-pool'
import store from '@/store'
import { changeURLStatic } from '@/utils/history.js'
import metaDataProvider from '@/utils/metaDataProvider'
cornerstone.metaData.addProvider(metaDataProvider, { priority: 10 });
var config = {
maxWebWorkers: 4,
startWebWorkersOnDemand: true,
+2
View File
@@ -265,6 +265,8 @@ import { getTaskUploadedDicomStudyList } from '@/api/reading'
import requestPoolManager from '@/utils/request-pool'
import store from '@/store'
import { changeURLStatic } from '@/utils/history.js'
import metaDataProvider from '@/utils/metaDataProvider'
cornerstone.metaData.addProvider(metaDataProvider, { priority: 10 });
// import * as cornerstoneTools from 'cornerstone-tools'
var config = {
maxWebWorkers: 4,
@@ -98,7 +98,7 @@
</el-table-column>
<el-table-column
prop="UpdateTime"
label="更新时间"
label="上传时间"
show-overflow-tooltip
sortable="custom"
/>
@@ -108,7 +108,7 @@
</el-table-column>
<el-table-column
prop="UpdateTime"
label="更新时间"
label="上传时间"
show-overflow-tooltip
sortable="custom"
/>
@@ -3,13 +3,16 @@
ref="sysAttachmentFrom"
v-loading="loading"
:model="form"
label-width="170px"
label-width="190px"
size="small"
:rules="rules"
class="upload-temporary-file"
>
<div class="base-dialog-body">
<el-form-item label="文件类型: " prop="FileTypeId">
<el-form-item
:label="$t('dictionary:signature:form:FileTypeId')"
prop="FileTypeId"
>
<el-select
v-model="form.FileTypeId"
style="width: 100%"
@@ -25,7 +28,7 @@
</el-select>
</el-form-item>
<el-form-item label="文件: ">
<el-form-item :label="$t('dictionary:signature:form:File')">
<div class="upload-container">
<el-upload
class="upload-demo"
@@ -46,16 +49,16 @@
type="primary"
:disabled="form.FileTypeId === ''"
:loading="btnLoading"
>Select</el-button
>{{ $t('common:button:check') }}</el-button
>
<span slot="tip" style="margin-left: 10px" class="el-upload__tip">
(must be in pdf format)
({{ $t('trials:signature:label:mustBepdf') }})
</span>
</el-upload>
</div>
</el-form-item>
<el-form-item
label="需要签署的用户类型: "
:label="$t('dictionary:signature:form:NeedConfirmedUserTypeIdList')"
prop="NeedConfirmedUserTypeIdList"
>
<el-select
@@ -71,7 +74,10 @@
/>
</el-select>
</el-form-item>
<el-form-item label="是否仅内部签署: " prop="DocUserSignType">
<el-form-item
:label="$t('dictionary:signature:form:DocUserSignType')"
prop="DocUserSignType"
>
<el-switch
v-model="form.DocUserSignType"
:active-value="1"
@@ -80,7 +86,7 @@
</el-switch>
</el-form-item>
<el-form-item
label="查看最短时间(分钟): "
:label="$t('dictionary:signature:form:SignViewMinimumMinutes')"
prop="SignViewMinimumMinutes"
>
<el-input-number
@@ -105,7 +111,7 @@
:disabled="form.FileTypeId === '' || form.Name === ''"
:loading="saveBtnLoading"
@click="handleSave"
>Save</el-button
>{{ $t('common:button:save') }}</el-button
>
</el-form-item>
</div>
@@ -138,13 +144,25 @@ export default {
},
rules: {
FileTypeId: [
{ required: true, message: 'Please select', trigger: ['blur'] },
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: ['blur'],
},
],
SignViewMinimumMinutes: [
{ required: true, message: 'Please specify', trigger: ['change'] },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: ['change'],
},
],
NeedConfirmedUserTypeIdList: [
{ required: true, message: 'Please select', trigger: ['blur'] },
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: ['blur'],
},
],
},
fileList: [],
@@ -211,7 +229,7 @@ export default {
this.fileList = []
return true
} else {
this.$alert('must be in pdf format')
this.$alert(this.$t('trials:signature:label:mustBepdf'))
return false
}
@@ -236,7 +254,7 @@ export default {
this.$refs.sysAttachmentFrom.validate((valid) => {
if (!valid) return
if (!this.form.Name) {
this.$alert('Please select file.')
this.$alert(this.$t('trials:signature:message:selectFile'))
return
}
this.saveBtnLoading = true
@@ -245,7 +263,7 @@ export default {
this.saveBtnLoading = false
this.$emit('closeDialog')
this.$emit('getList')
this.$message.success('Uploaded successfully')
this.$message.success(this.$t('common:message:updatedSuccessfully'))
})
.catch(() => {
this.saveBtnLoading = false
@@ -263,7 +281,7 @@ export default {
}
},
handleExceed(files, fileList) {
this.$message.warning(`Upload is currently limited to 1 file`)
this.$message.warning(this.$t('upload:rule:maxFile1'))
},
checkFileSuffix(fileName) {
var typeArr = ['pdf']
@@ -2,7 +2,7 @@
<BaseContainer>
<template slot="search-container">
<el-form :inline="true" size="small">
<el-form-item label="文件类型:">
<el-form-item :label="$t('dictionary:signature:search:FileTypeId')">
<el-select v-model="searchData.FileTypeId" style="width: 150px">
<el-option
v-for="item of dict.type.Sys_Document"
@@ -12,7 +12,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="文件名称">
<el-form-item :label="$t('dictionary:signature:search:Name')">
<el-input v-model="searchData.Name" style="width: 130px" clearable />
</el-form-item>
@@ -34,7 +34,7 @@
<el-button
type="primary"
icon="el-icon-plus"
style="margin-left: auto"
style="margin-left: auto; margin-bottom: 10px"
size="small"
@click="handleAdd"
>
@@ -53,26 +53,27 @@
<el-table-column type="index" width="40" />
<el-table-column
prop="FileType"
label="文件类型"
:label="$t('dictionary:signature:table:FileType')"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
prop="Name"
label="文件名称"
:label="$t('dictionary:signature:table:Name')"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
prop="SignViewMinimumMinutes"
label="查看最短时间(分钟)"
:label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
show-overflow-tooltip
sortable="custom"
min-width="110"
/>
<el-table-column
prop="NeedConfirmedUserTypes"
label="需要签署的用户类型"
:label="$t('dictionary:signature:table:NeedConfirmedUserTypes')"
show-overflow-tooltip
>
<template slot-scope="scope">
@@ -85,48 +86,54 @@
</el-table-column>
<el-table-column
prop="IsDeleted"
label="是否废除"
:label="$t('dictionary:signature:table:IsDeleted')"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
{{ scope.row.IsDeleted ? 'Yes' : 'No' }}
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
$fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag>
<el-tag v-else type="primary">{{
$fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag>
</template>
</el-table-column>
<el-table-column
prop="DocUserSignType"
label="是否仅内部签署"
:label="$t('dictionary:signature:table:DocUserSignType')"
show-overflow-tooltip
sortable="custom"
min-width="90"
>
<template slot-scope="scope">
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
</template>
</el-table-column>
<el-table-column
prop="UpdateTime"
label="更新时间"
prop="CreateTime"
:label="$t('dictionary:signature:table:CreateTime')"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column label="Action">
<el-table-column :label="$t('common:action:action')" min-width="100">
<template slot-scope="scope">
<el-button type="text" @click="handlePreview(scope.row)">
预览
{{ $t('common:button:preview') }}
</el-button>
<el-button type="text" @click="handleEdit(scope.row)">
编辑
{{ $t('common:button:edit') }}
</el-button>
<el-button
:disabled="scope.row.IsDeleted"
type="text"
@click="handleRepeal(scope.row)"
>
废除
{{ $t('common:button:revoke') }}
</el-button>
<el-button type="text" @click="handleDelete(scope.row)">
删除
{{ $t('common:button:delete') }}
</el-button>
</template>
</el-table-column>
@@ -261,7 +268,7 @@ export default {
},
//
handleRepeal(row) {
this.$confirm('是否确认废除此文件?', {
this.$confirm(this.$t('dictionary:signature:confirm:delFile'), {
type: 'warning',
distinguishCancelAndClose: true,
})
@@ -298,7 +305,9 @@ export default {
this.list.findIndex((item) => item.Id === row.Id),
1
)
this.$message.success('删除成功!')
this.$message.success(
this.$t('common:message:deletedSuccessfully')
)
}
})
.catch(() => {
@@ -111,7 +111,7 @@
</el-table-column>
<el-table-column
prop="UpdateTime"
label="更新时间"
label="上传时间"
show-overflow-tooltip
sortable="custom"
/>
@@ -9,8 +9,19 @@
>
<div class="base-dialog-body">
<el-form-item label="Site: ">
<el-select v-model="form.SiteId" style="width: 100%" clearable filterable @change="siteChange">
<el-option v-for="item of siteList" :value="item.Id" :key="item.Id" :label="item.SiteName">
<el-select
v-model="form.SiteId"
style="width: 100%"
clearable
filterable
@change="siteChange"
>
<el-option
v-for="item of siteList"
:value="item.Id"
:key="item.Id"
:label="item.SiteName"
>
</el-option>
</el-select>
</el-form-item>
@@ -20,10 +31,16 @@
<el-form-item label="Hospital EN: " prop="HospitalName">
<el-input v-model="form.HospitalName" />
</el-form-item>
<el-form-item label="Affiliated University CN: " prop="UniversityAffiliatedCN">
<el-form-item
label="Affiliated University CN: "
prop="UniversityAffiliatedCN"
>
<el-input v-model="form.UniversityAffiliatedCN" />
</el-form-item>
<el-form-item label="Affiliated University EN: " prop="UniversityAffiliated">
<el-form-item
label="Affiliated University EN: "
prop="UniversityAffiliated"
>
<el-input v-model="form.UniversityAffiliated" />
</el-form-item>
<el-form-item label="Country CN: " prop="CountryCN">
@@ -45,10 +62,22 @@
<el-input v-model="form.City" />
</el-form-item>
</div>
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
<div class="base-dialog-footer" style="text-align: right; margin-top: 10px">
<el-form-item>
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancel">Cancel</el-button>
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button>
<el-button
:disabled="btnLoading"
size="small"
type="primary"
@click="handleCancel"
>Cancel</el-button
>
<el-button
size="small"
type="primary"
:loading="btnLoading"
@click="handleSave"
>Save</el-button
>
</el-form-item>
</div>
</el-form>
@@ -63,14 +92,14 @@ export default {
type: Object,
default() {
return {}
}
},
},
model: {
type: Object,
default() {
return {}
}
}
},
},
},
data() {
return {
@@ -87,23 +116,36 @@ export default {
Province: '',
ProvinceCN: '',
City: '',
CityCN: ''
CityCN: '',
},
siteList: [],
rules: {
HospitalNameCN: [{ required: true, message: 'Please specify', trigger: 'blur' }, { max: 50, message: 'The maximum length is 50' }],
UniversityAffiliated: [{ max: 100, message: 'The maximum length is 100' }],
UniversityAffiliatedCN: [{ max: 100, message: 'The maximum length is 100' }],
Country: [{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }],
CountryCN: [{ max: 50, message: 'The maximum length is 50' }],
Province: [{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }],
ProvinceCN: [{ max: 50, message: 'The maximum length is 50' }],
City: [{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }],
CityCN: [{ max: 50, message: 'The maximum length is 50' }]
}
HospitalNameCN: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
UniversityAffiliated: [
{ max: 100, message: 'The maximum length is 100' },
],
UniversityAffiliatedCN: [
{ max: 100, message: 'The maximum length is 100' },
],
Country: [{ max: 50, message: 'The maximum length is 50' }],
CountryCN: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
Province: [{ max: 50, message: 'The maximum length is 50' }],
ProvinceCN: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
City: [{ max: 50, message: 'The maximum length is 50' }],
CityCN: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
},
}
},
mounted() {
@@ -114,7 +156,7 @@ export default {
},
methods: {
siteChange(v) {
this.siteList.forEach(o => {
this.siteList.forEach((o) => {
if (o.Id === v) {
this.form.CityCN = o.City
this.form.HospitalNameCN = o.SiteNameCN
@@ -125,34 +167,37 @@ export default {
})
},
getAllSiteList() {
getAllSiteList().then(res => {
this.siteList = res.Result
console.log(this.siteList)
}).catch(() => {
reject()
})
getAllSiteList()
.then((res) => {
this.siteList = res.Result
console.log(this.siteList)
})
.catch(() => {
reject()
})
},
handleSave() {
this.$refs.hospitalForm.validate(valid => {
this.$refs.hospitalForm.validate((valid) => {
if (!valid) return
this.btnLoading = true
addOrUpdateHospital(this.form).then(res => {
this.btnLoading = false
if (res.IsSuccess) {
this.$message.success('Saved successfully')
this.$refs['hospitalForm'].resetFields()
this.$emit('getList')
this.$emit('close')
}
}).catch(() => {
this.btnLoading = false
})
addOrUpdateHospital(this.form)
.then((res) => {
this.btnLoading = false
if (res.IsSuccess) {
this.$message.success('Saved successfully')
this.$refs['hospitalForm'].resetFields()
this.$emit('getList')
this.$emit('close')
}
})
.catch(() => {
this.btnLoading = false
})
})
},
handleCancel() {
this.$emit('close')
}
}
},
},
}
</script>
@@ -10,12 +10,16 @@
<el-input v-model="searchData.Version" style="width: 100px" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">{{
$t("dictionary:browser:button:reset")
}}</el-button>
<el-button type="primary" @click="handleSearch">{{
$t("dictionary:browser:button:search")
}}</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left: auto">
@@ -24,6 +24,16 @@
/>
</el-select>
</el-form-item>
<el-form-item label="标准分组" prop="CriterionGroup">
<el-select v-model="form.CriterionGroup">
<el-option
v-for="item of $d.CriterionGroup"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.Id !== ''" label="是否配置完成">
<el-switch v-model="form.IsCompleteConfig" />
@@ -40,7 +50,7 @@
<el-form-item v-if="form.Id !== ''" label="是否启用">
<el-switch v-model="form.IsEnable" />
</el-form-item>
<el-form-item v-if="form.Id !== ''" label="eCRF是否显示在影像阅片页面">
<el-form-item v-if="form.Id !== ''" label="eICRF仅展示阅片Tab">
<el-switch v-model="form.IseCRFShowInDicomReading" />
</el-form-item>
</div>
@@ -72,6 +82,7 @@ export default {
Id: '',
CriterionName: '',
CriterionType: null,
CriterionGroup: null,
IsEnable: true,
IsCompleteConfig: false,
ShowOrder: null,
@@ -80,7 +91,8 @@ export default {
},
rules: {
CriterionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
CriterionType: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }]
CriterionType: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }],
CriterionGroup: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }]
},
loading: false,
@@ -16,8 +16,16 @@
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button>
<el-button type="primary" @click="handleSearch">Search</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto">
@@ -27,8 +27,16 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto">
@@ -243,7 +243,7 @@
>
</el-radio-group>
</el-form-item>
<el-form-item label="导出标识"
<!-- <el-form-item label="导出标识"
prop="ExportIdentification"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
@@ -262,8 +262,11 @@
>{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="导出结果" v-if="form.ExportIdentification" prop="ExportResult">
</el-form-item> -->
<el-form-item
label="导出结果"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
<el-select v-model="form.ExportResult" multiple>
<el-option
v-for="item in CriterionDictionaryList.ExportResult"
@@ -446,13 +449,14 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.QuestionGenre === 3" label="默认值">
<el-select v-model="form.DefaultValue" clearable>
<el-option
v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []"
:key="item.id"
:label="item.label"
:value="item.value.toString()"
v-for="item of highlightAnswers"
:key="item.Id"
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
:value="item.Code"
/>
</el-select>
</el-form-item>
@@ -598,6 +602,27 @@
/>
</el-select>
</el-form-item>
<el-form-item
v-if="form.Type === 'table' || form.Type === 'basicTable'"
label="关联字典"
>
<el-select
v-model="form.DictionaryCode"
clearable
@change="
() => {
form.DefaultValue = null
}
"
>
<el-option
v-for="item of dicList"
:key="item.Id"
:label="item.Code"
:value="item.Code"
/>
</el-select>
</el-form-item>
<el-form-item
v-if="form.Type === 'upload'"
label="最大上传个数"
@@ -807,7 +832,7 @@ export default {
ConvertShowType: 0,
QuestionClassify: null,
HighlightAnswerList: [],
ExportIdentification: 0,
// ExportIdentification: 0,
ExportResult: [],
MaxAnswerLength: null,
FileType: [],
@@ -844,17 +869,18 @@ export default {
{ required: true, message: '请注明', trigger: 'blur' },
{ max: 50, message: '最大长度为 50' },
],
ExportIdentification: [
{ required: true, message: '请选择', trigger: 'blur' },
],
ExportResult: [
{ required: true, message: '请选择', trigger: 'blur' },
]
// ExportIdentification: [
// { required: true, message: '', trigger: 'blur' },
// ],
// ExportResult: [
// { required: true, message: '', trigger: 'blur' },
// ]
},
loading: false,
btnLoading: false,
parentOptions: [],
parentTriggerValOptions: [],
reParentTriggerValOptions: [],
groupOptions: [],
isParentExistGroup: false,
lesionTypes: [],
@@ -890,6 +916,7 @@ export default {
mounted() {
this.initForm()
this.getCalculateQuestions('number')
},
methods: {
typeValueChange(v) {
@@ -905,6 +932,14 @@ export default {
}
})
},
getBasicConfigSelect() {
getCriterionDictionaryList({
CriterionId: this.criterionId,
SystemCriterionId: this.criterionId
}).then(res => {
this.dicList = res.Result
})
},
getCalculateQuestions(type) {
getSystemCalculateQuestions({
systemCriterionId: this.criterionId,
@@ -944,6 +979,7 @@ export default {
await this.getParentQuestions()
await this.getLesionTypeDictionary()
await this.getLesionType()
await this.getBasicConfigSelect()
if (Object.keys(this.data).length > 0) {
for (const k in this.form) {
if (this.data.hasOwnProperty(k)) {
@@ -969,8 +1005,15 @@ export default {
})
if (index !== -1) {
if (this.parentOptions[index].QuestionGenre === 3) {
this.parentTriggerValOptions =
this.$d[this.parentOptions[index].DictionaryCode]
// this.parentTriggerValOptions =
// this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,DictionaryCode: dicCode})
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach(
@@ -988,8 +1031,13 @@ export default {
})
if (index !== -1) {
if (this.parentOptions[index].QuestionGenre === 3) {
this.reParentTriggerValOptions =
this.$d[this.parentOptions[index].DictionaryCode]
// this.reParentTriggerValOptions =
// this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,DictionaryCode: dicCode})
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach(
@@ -1114,7 +1162,7 @@ export default {
data.ConvertShowType = 0
data.QuestionClassify = null
data.HighlightAnswerList = []
data.ExportIdentification = 0
// data.ExportIdentification = 0
data.ExportResult = []
data.FileType = []
data.ClassifyQuestionId = null
@@ -1180,15 +1228,21 @@ export default {
}
form.ParentTriggerValue = ''
},
relevanceQuestionChange(val, form) {
async relevanceQuestionChange(val, form) {
if (val) {
var index = this.parentOptions.findIndex((item) => {
return item.QuestionId === val
})
if (index !== -1) {
if (this.parentOptions[index].QuestionGenre === 3) {
this.reParentTriggerValOptions =
this.$d[this.parentOptions[index].DictionaryCode]
// this.reParentTriggerValOptions =
// this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.data.ReadingQuestionCriterionSystemId,DictionaryCode: dicCode})
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
var options = []
this.parentOptions[index].TypeValue.split('|').forEach(
@@ -8,9 +8,16 @@
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<div>
@@ -107,7 +114,7 @@
<el-table-column
prop="IsShowInDicom"
label="是否在阅片页面显示"
width="140"
width="150"
show-overflow-tooltip
>
<template slot-scope="scope">
@@ -132,7 +139,7 @@
{{ $fd('GlobalReadingShowType', scope.row.GlobalReadingShowType) }}
</template>
</el-table-column>
<!-- 导出标识 -->
<!-- 导出标识 -->
<!-- <el-table-column
prop="ExportIdentification"
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')"
@@ -143,6 +150,17 @@
{{ $fd('ExportIdentification', scope.row.ExportIdentification) }}
</template>
</el-table-column> -->
<!-- 问题标识 -->
<el-table-column
prop="QuestionType"
label="问题标识"
width="140"
show-overflow-tooltip
>
<template slot-scope="scope">
{{ $fd('QuestionType', scope.row.QuestionType) }}
</template>
</el-table-column>
<!-- 导出目标表格 -->
<el-table-column
prop="ExportResult"
@@ -8,9 +8,65 @@
>
<el-input v-model="searchData.CriterionName" clearable style="width:120px;" />
</el-form-item>
<el-form-item
label="标准类型"
>
<el-select v-model="searchData.CriterionType" clearable style="width:120px;">
<el-option
v-for="item of $d.CriterionType"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item
label="标准分组"
>
<el-select v-model="searchData.CriterionGroup" clearable style="width:120px;">
<el-option
v-for="item of $d.CriterionGroup"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item
label="是否配置完成"
>
<el-select v-model="searchData.IsCompleteConfig" clearable style="width:120px;">
<el-option
v-for="item of $d.YesOrNo"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item
label="是否启用"
>
<el-select v-model="searchData.IsEnable" clearable style="width:120px;">
<el-option
v-for="item of $d.YesOrNo"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto">
@@ -25,6 +81,8 @@
stripe
size="small"
height="100"
@sort-change="handleSortByColumn"
ref="criterionsTbl"
>
<el-table-column type="index" width="60" />
@@ -32,20 +90,33 @@
prop="CriterionName"
label="标准名称"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
prop="CriterionType"
label="标准类型"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
{{ $fd('CriterionType',scope.row.CriterionType) }}
</template>
</el-table-column>
<el-table-column
prop="CriterionGroup"
label="标准分组"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
{{ $fd('CriterionGroup',scope.row.CriterionGroup) }}
</template>
</el-table-column>
<el-table-column
prop="IsCompleteConfig"
label="是否配置完成"
sortable="custom"
>
<template slot-scope="scope">
@@ -62,22 +133,32 @@
label="描述"
show-overflow-tooltip
/>
<el-table-column
prop="ShowOrder"
label="显示序号"
show-overflow-tooltip
/>
<el-table-column
prop="IsEnable"
label="是否启用"
sortable="custom"
>
<template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IsEnable) }}
</template>
</el-table-column>
<el-table-column
prop="ShowOrder"
label="显示序号"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
prop="IseCRFShowInDicomReading"
label="eICRF仅展示阅片Tab"
show-overflow-tooltip
sortable="custom"
width="210"
>
<template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IseCRFShowInDicomReading) }}
</template>
</el-table-column>
<el-table-column label="Action" min-width="200px">
<template slot-scope="scope">
<el-button
@@ -172,8 +253,14 @@ import AddCriterion from './AddCriterion'
const searchDataDefault = () => {
return {
CriterionName: '',
CriterionType: null,
CriterionGroup: null,
IsCompleteConfig: null,
IsEnable: null,
PageIndex: 1,
PageSize: 20
PageSize: 20,
Asc: true,
SortField: ''
}
}
export default {
@@ -271,6 +358,18 @@ export default {
//
handleReset() {
this.searchData = searchDataDefault()
this.$refs['criterionsTbl'].clearSort()
this.getList()
},
//
handleSortByColumn(column) {
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false
}
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
}
}
@@ -16,8 +16,16 @@
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button>
<el-button type="primary" @click="handleSearch">Search</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto">
@@ -38,8 +38,16 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto">
@@ -26,8 +26,16 @@
<el-input v-model="searchData.Type" clearable style="width:120px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button>
<el-button type="primary" @click="handleSearch">Search</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto">
@@ -147,7 +147,7 @@
</el-select>
</el-form-item>
<!-- 导出标识 -->
<el-form-item
<!-- <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
@@ -166,9 +166,12 @@
>{{ item.label }}
</el-radio>
</el-radio-group>
</el-form-item>
</el-form-item> -->
<!-- 导出结果 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')" v-if="form.ExportIdentification" prop="ExportResult">
<el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
<el-select v-model="form.ExportResult" multiple>
<el-option
v-for="item in CriterionDictionaryList.ExportResult"
@@ -327,6 +330,32 @@
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.TableQuestionType === 3" label="默认值">
<el-select v-model="form.DefaultValue" clearable>
<!-- <el-option
v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []"
:key="item.id"
:label="item.label"
:value="item.value.toString()"
/> -->
<el-option
v-for="item of highlightAnswers"
:key="item.Id"
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
:value="item.Code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.TableQuestionType === 0" label="默认值">
<el-select v-model="form.DefaultValue" clearable>
<el-option
v-for="item of form.TypeValue ? form.TypeValue.split('|') : []"
:key="item"
:label="item"
:value="item"
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.Type === 'select' || form.Type === 'radio'" label="高亮标记值" prop="HighlightAnswerList">
<el-select v-model="form.HighlightAnswerList" clearable multiple>
<template v-if="form.TypeValue">
@@ -338,11 +367,17 @@
/>
</template>
<template v-else-if="form.DictionaryCode">
<el-option
<!-- <el-option
v-for="item of $d[form.DictionaryCode]"
:key="item.id"
:label="item.label"
:value="item.value.toString()"
/> -->
<el-option
v-for="item of highlightAnswers"
:key="item.Id"
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
:value="item.Code"
/>
</template>
</el-select>
@@ -607,8 +642,9 @@ export default {
ImageCount: 0,
ClassifyTableQuestionId: null,
ClassifyAlgorithms: null,
ExportIdentification: 0,
ExportResult: []
// ExportIdentification: 0,
ExportResult: [],
DefaultValue:null
// IsEnable: true
},
rules: {
@@ -633,12 +669,12 @@ export default {
DataTableColumn: [{ required: true, message: '请选择', trigger: 'blur' }],
// DictionaryCode: [{ required: true, message: '', trigger: 'blur' }],
DependParentId: [{ required: true, message: '请选择', trigger: 'blur' }],
ExportIdentification: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
],
ExportResult: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
]
// ExportIdentification: [
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
// ],
// ExportResult: [
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
// ]
},
loading: false,
parentOptions: [],
@@ -648,9 +684,31 @@ export default {
colOptions: [],
dicList: [],
CriterionDictionaryList: [],
Questions: []
Questions: [],
highlightAnswers: []
}
},
watch: {
'form.DictionaryCode': {
deep: true,
immediate: true,
async handler(v, oldv) {
try {
if (!v) {
this.highlightAnswers = []
return
}
let res = await getCriterionDictionary({
ReadingCriterionId: this.criterionId,
DictionaryCode: this.form.DictionaryCode,
})
this.highlightAnswers = res.Result[this.form.DictionaryCode]
} catch (e) {
console.log(e)
}
},
},
},
mounted() {
this.initForm()
this.getCriterionDictionary()
@@ -710,7 +768,13 @@ export default {
})
if (index !== -1) {
if (this.parentOptions[index].QuestionGenre === 3) {
this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
@@ -726,8 +790,12 @@ export default {
})
if (i !== -1) {
if (this.parentOptions[i].QuestionGenre === 3) {
console.log(this.$d[this.parentOptions[i].DictionaryCode])
this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
// this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
let dicCode = this.parentOptions[i].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[i].TypeValue.split('|').forEach((item, index) => {
@@ -805,14 +873,20 @@ export default {
form.RelevanceValue = ''
}
},
parentQuestionChange(val, form) {
async parentQuestionChange(val, form) {
if (val) {
var index = this.parentOptions.findIndex(item => {
return item.QuestionId === val
})
if (index !== -1) {
if (this.parentOptions[index].QuestionGenre === 3) {
this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
@@ -824,16 +898,20 @@ export default {
}
form.ParentTriggerValue = ''
},
relevanceQuestionChange(val, form) {
async relevanceQuestionChange(val, form) {
if (val) {
var index = this.parentOptions.findIndex(item => {
return item.QuestionId === val
})
console.log(this.$d[this.parentOptions[index].DictionaryCode], this.parentOptions[index].QuestionGenre)
if (index !== -1) {
if (this.parentOptions[index].QuestionGenre === 3) {
console.log(this.$d[this.parentOptions[index].DictionaryCode])
this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
// this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
@@ -890,8 +968,9 @@ export default {
form.ImageCount = null
form.ClassifyTableQuestionId = null
form.ClassifyAlgorithms = null
form.ExportIdentification = 0
// form.ExportIdentification = 0
form.ExportResult = []
form.DefaultValue = null
},
close() {
this.$emit('close')
@@ -122,6 +122,17 @@
{{ $fd('ExportIdentification', scope.row.ExportIdentification) }}
</template>
</el-table-column> -->
<!-- 问题标识 -->
<el-table-column
prop="QuestionMark"
label="问题标识"
width="140"
show-overflow-tooltip
>
<template slot-scope="scope">
{{ $fd('QuestionMark', scope.row.QuestionMark) }}
</template>
</el-table-column>
<!-- 导出目标表格 -->
<el-table-column
prop="ExportResult"
@@ -151,7 +151,7 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="12" v-if="systemLevel">
<el-form-item label="是否区分标准" prop="IsDistinguishCriteria">
<el-radio-group
v-model="form.IsDistinguishCriteria"
@@ -246,9 +246,9 @@
:autosize="{ minRows: 8, maxRows: 8 }"
/>
<el-button
:disabled="!form.EmailHtmlContentCN"
:disabled="!form.EmailHtmlContentCN && form.EmailHtmlContent"
type="text"
@click="PreviewHTML(form.EmailHtmlContentCN)"
@click="PreviewHTML(form.EmailHtmlContentCN, form.EmailHtmlContent)"
style="position: absolute; left: -50px; top: 30px"
>
{{ $t('common:button:preview') }}
@@ -265,9 +265,9 @@
:autosize="{ minRows: 8, maxRows: 8 }"
/>
<el-button
:disabled="!form.EmailHtmlContent"
:disabled="!form.EmailHtmlContentCN && form.EmailHtmlContent"
type="text"
@click="PreviewHTML(form.EmailHtmlContent)"
@click="PreviewHTML(form.EmailHtmlContentCN, form.EmailHtmlContent)"
style="position: absolute; left: -50px; top: 30px"
>
{{ $t('common:button:preview') }}
@@ -310,6 +310,12 @@ export default {
return 0
},
},
isDistinguishCriteria: {
type: Boolean,
default() {
return false
},
},
},
components: { vcrontab },
data() {
@@ -356,12 +362,12 @@ export default {
BusinessLevelEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] },
],
ToUserTypeList: [
{ required: true, message: 'Please select', trigger: ['blur'] },
],
EmailCron: [
{ required: true, message: 'Please select', trigger: ['blur'] },
],
// ToUserTypeList: [
// { required: true, message: 'Please select', trigger: ['blur'] },
// ],
// EmailCron: [
// { required: true, message: 'Please select', trigger: ['blur'] },
// ],
EmailUrgentEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] },
],
@@ -391,6 +397,8 @@ export default {
this.form.EmailUrgentEnum = 3
this.form.IsReturnRequired = false
this.form.IsDistinguishCriteria = false
} else {
this.form.IsDistinguishCriteria = this.isDistinguishCriteria
}
},
methods: {
@@ -511,8 +519,8 @@ export default {
})
},
//
PreviewHTML(html) {
this.$emit('PreviewHTML', html)
PreviewHTML(html, htmlEn) {
this.$emit('PreviewHTML', html, htmlEn)
},
},
}
@@ -1,13 +1,8 @@
<template>
<box-content>
<div class="search">
<el-form
v-if="!systemLevel"
:inline="true"
size="mini"
class="base-search-form"
>
<el-form-item label="是否需要回执:">
<el-form :inline="true" size="mini" class="base-search-form">
<el-form-item label="是否需要回执:" v-if="!systemLevel">
<el-select
v-model="searchData.IsReturnRequired"
clearable
@@ -21,7 +16,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="是否加急:">
<el-form-item label="是否加急:" v-if="!systemLevel">
<el-select
v-model="searchData.IsUrgent"
clearable
@@ -35,7 +30,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="是否启用:">
<el-form-item label="是否启用:" v-if="!systemLevel">
<el-select
v-model="searchData.IsEnable"
clearable
@@ -51,7 +46,7 @@
</el-form-item>
<el-form-item
:label="$t('trials:auditRecord:table:criterion')"
v-if="isDistinguishCriteria"
v-if="isDistinguishCriteria && !systemLevel"
>
<el-select
v-model="searchData.CriterionTypeEnum"
@@ -66,9 +61,78 @@
/>
</el-select>
</el-form-item>
<el-form-item :label="$t('trials:emailManageCfg:form:BusinessModule')">
<el-select
v-model="searchData.BusinessModuleEnum"
clearable
style="width: 100px"
>
<el-option
v-for="item of $d.BusinessModule"
:value="item.value"
:label="item.label"
:key="item.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label="$t('trials:emailManageCfg:form:BusinessScenario')"
>
<el-select
v-model="searchData.BusinessScenarioEnum"
clearable
style="width: 100px"
>
<el-option
v-for="item of $d.Email_BusinessScenario"
:value="item.value"
:label="item.label"
:key="item.id"
/>
</el-select>
</el-form-item>
<el-form-item :label="$t('trials:emailManageCfg:form:ToUserType')">
<el-select
v-model="searchData.ToUserType"
clearable
style="width: 100px"
>
<el-option
v-for="item of UserTypeList"
:value="item.value"
:label="item.label"
:key="item.id"
/>
</el-select>
</el-form-item>
<el-form-item
:label="$t('trials:emailManageCfg:form:EmailUrgent')"
v-if="systemLevel === 1"
>
<el-select
v-model="searchData.EmailUrgentEnum"
clearable
style="width: 100px"
>
<el-option
v-for="item of $d.EmailUrgent"
:value="item.value"
:label="item.label"
:key="item.id"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left: auto">
@@ -164,13 +228,12 @@
{{ $fd('Email_BusinessScenario', scope.row.BusinessScenarioEnum) }}
</template>
</el-table-column>
<!-- 收件人 -->
<!-- 收件人v-if="systemLevel !== 1" -->
<el-table-column
prop="ToUserTypeList"
:label="$t('trials:emailManageCfg:title:toUserTypeList')"
show-overflow-tooltip
min-width="100"
v-if="systemLevel !== 1"
>
<template slot-scope="scope">
{{
@@ -182,13 +245,12 @@
}}
</template>
</el-table-column>
<!-- 抄送人 -->
<!-- 抄送人v-if="!systemLevel" -->
<el-table-column
prop="CopyUserTypeList"
:label="$t('trials:emailManageCfg:title:copyUserTypeList')"
show-overflow-tooltip
min-width="100"
v-if="!systemLevel"
>
<template slot-scope="scope">
{{
@@ -200,25 +262,25 @@
}}
</template>
</el-table-column>
<!---v-if="!systemLevel"-->
<el-table-column
prop="EmailUrgentEnum"
label="加急状态"
sortable="custom"
show-overflow-tooltip
min-width="100"
v-if="!systemLevel"
>
<template slot-scope="scope">
{{ $fd('EmailUrgent', scope.row.EmailUrgentEnum) }}
</template>
</el-table-column>
<!---v-if="!systemLevel"-->
<el-table-column
prop="EmailCron"
label="发送周期和时间"
sortable="custom"
show-overflow-tooltip
min-width="160"
v-if="!systemLevel"
/>
<!-- 附件 -->
<el-table-column
@@ -316,6 +378,13 @@
<el-button type="text" @click="handleDelete(scope.row)"
>删除</el-button
>
<el-button
type="text"
@click="
preview(scope.row.EmailHtmlContentCN, scope.row.EmailHtmlContent)
"
>{{ $t('common:button:preview') }}</el-button
>
</template>
</el-table-column>
</el-table>
@@ -341,6 +410,7 @@
<EmailForm
:data="rowData"
:system-level="systemLevel"
:isDistinguishCriteria="isDistinguishCriteria"
@closeDialog="closeDialog"
@getList="getList"
@PreviewHTML="preview"
@@ -372,7 +442,23 @@
fullscreen
custom-class="base-dialog-wrapper"
>
<div v-html="previewHTML"></div>
<div
style="
display: flex;
align-items: flex-start;
justify-content: space-around;
flex-wrap: wrap;
"
>
<div>
<h3>邮件内容模版CN</h3>
<div v-html="previewHTML"></div>
</div>
<div>
<h3>邮件内容模版EN</h3>
<div v-html="previewHTMLEN"></div>
</div>
</div>
</el-dialog>
</box-content>
</template>
@@ -392,6 +478,10 @@ const searchDataDefault = () => {
IsUrgent: '',
IsEnable: '',
CriterionTypeEnum: null,
BusinessModuleEnum: null,
BusinessScenarioEnum: null,
EmailUrgentEnum: null,
ToUserType: null,
PageIndex: 1,
PageSize: 20,
SortField: 'Code',
@@ -428,8 +518,20 @@ export default {
attachmentVisible: false,
previewVisible: false,
previewHTML: null,
previewHTMLEN: null,
}
},
computed: {
UserTypeList() {
if (this.systemLevel === 1) {
return this.$d.UserType
} else {
return this.$d.UserType.filter(
(item) => ![7, 31, 32, 21, 26, 27].includes(item.value)
)
}
},
},
mounted() {
this.getList()
},
@@ -504,8 +606,9 @@ export default {
closeDialog() {
this.editVisible = false
},
preview(html) {
preview(html, htmlEN) {
this.previewHTML = html
this.previewHTMLEN = htmlEN
this.previewVisible = true
},
//
+11 -3
View File
@@ -3,15 +3,23 @@
<!-- 搜索框 -->
<div class="search">
<el-form :inline="true" size="mini" class="base-search-form">
<el-form-item label="编号:">
<el-form-item label="Code:">
<el-input v-model="searchData.Code" style="width:100px;" />
</el-form-item>
<el-form-item label="模板:">
<el-input v-model="searchData.Name" style="width:100px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button>
<el-button type="primary" @click="handleSearch">Search</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
<span style="margin-left:auto;">
+21 -11
View File
@@ -29,15 +29,16 @@
<el-input v-model="password.Email" disabled />
</el-form-item>
<!-- 用户名 -->
<el-form-item :label="$t('recompose:form:role')" prop="UserType">
<!-- <el-form-item :label="$t('recompose:form:role')" prop="UserType">
<el-input v-model="password.UserType" disabled />
</el-form-item>
</el-form-item> -->
<!-- 用户名 -->
<el-form-item :label="$t('recompose:form:userName')" prop="NewUserName">
<el-input v-model="password.NewUserName" />
</el-form-item>
<!-- 新密码 -->
<el-form-item
class="my_new_pwd"
:label="$t('recompose:form:newPassword')"
prop="NewPassWord"
>
@@ -84,6 +85,11 @@ export default {
password: {
NewUserName: null,
UserId: null,
ConfirmPassWord: null,
NewPassWord: null,
Email: null,
UserType: null,
access_token: null,
},
passwordFormRules: {
NewUserName: [
@@ -95,7 +101,6 @@ export default {
: 'zh'
/* eslint-disable */
var reg1 = /^[a-zA-Z0-9_]{4,16}$/ //8
console.log(!reg1.test(value))
if (!reg1.test(value)) {
callback(
lang === 'zh'
@@ -176,9 +181,9 @@ export default {
this.$i18n.locale = this.$route.query.lang
this.setLanguage(this.$route.query.lang)
this.$updateDictionary()
if (!this.password.NewUserName) {
this.$alert(this.$t('recompose:message:warning'))
}
// if (!this.password.NewUserName) {
// this.$alert(this.$t('recompose:message:warning'))
// }
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
@@ -190,8 +195,10 @@ export default {
} else {
this.$router.push(`/login`)
}
this.$i18n.locale = 'zh'
this.setLanguage('zh')
if (!this.$i18n.locale) {
//this.$i18n.locale = 'zh'
//this.setLanguage('zh')
}
this.$updateDictionary()
},
save() {
@@ -229,7 +236,10 @@ export default {
})
},
cancel() {
this.$refs['passwordForm'].resetFields()
// this.$refs['passwordForm'].resetFields()
this.password.NewPassWord = null
this.password.NewUserName = null
this.password.ConfirmPassWord = null
},
},
}
@@ -263,7 +273,7 @@ input {
background-color: transparent;
caret-color: #fff;
}
.el-form-item {
margin-bottom: 30px;
::v-deep .is-error.my_new_pwd {
margin-bottom: 45px;
}
</style>
+5 -2
View File
@@ -2,7 +2,8 @@
<div class="wscn-http404-container">
<div class="wscn-http404" style="display: flex;align-items: center">
<div class="pic-404">
<img class="pic-404__parent" src="@/assets/login-bg.png" alt="404">
<!-- <img class="pic-404__parent" src="@/assets/login-bg.png" alt="404"> -->
<svg-icon icon-class="login-bg" style="width: 100%; height: 100%" />
<img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
@@ -56,8 +57,10 @@ export default {
.pic-404 {
position: relative;
float: left;
width: 400px;
width: 500px;
height: 300px;
overflow: hidden;
margin-right: 10px;
&__parent {
width: 100%;
}
+13 -10
View File
@@ -76,7 +76,8 @@
>
<!-- 用户名 -->
<el-form-item :label="$t('passwordReset:form:userName')" prop="UserId">
<el-select
<el-input v-model="form.UserName" disabled />
<!-- <el-select
v-model="form.UserId"
clearable
filterable
@@ -94,15 +95,15 @@
item.UserType
}}</span>
</el-option>
</el-select>
</el-select> -->
</el-form-item>
<!-- 用户类型 -->
<el-form-item
<!-- <el-form-item
v-if="form.UserId"
:label="$t('passwordReset:form:userType')"
>
<el-input v-model="form.UserType" disabled />
</el-form-item>
</el-form-item> -->
<!-- 新密码 -->
<el-form-item
class="my_new_pwd"
@@ -338,11 +339,13 @@ export default {
)
.then((res) => {
this.formLoading = false
this.users = res.Result
if (this.users.length === 1) {
this.form.UserId = this.users[0].UserId
this.form.UserType = this.users[0].UserType
}
this.form.UserId = res.Result.Id
this.form.UserName = res.Result.UserName
// this.users = res.Result
// if (this.users.length === 1) {
// this.form.UserId = this.users[0].UserId
// this.form.UserType = this.users[0].UserType
// }
//
this.$message.success(
this.$t('passwordReset:message:verifiedSuccessfully')
@@ -420,7 +423,7 @@ export default {
/* margin-bottom: 40px;*/
/*}*/
.is-error.my_new_pwd {
margin-bottom: 40px;
margin-bottom: 45px;
}
.flexBox {
display: flex;
+132 -48
View File
@@ -83,7 +83,7 @@
<svg-icon icon-class="password" />
</span>
<!-- password -->
<!-- <el-input
<el-input
:key="passwordType"
ref="password"
v-model="loginForm.password"
@@ -100,8 +100,8 @@
<svg-icon
:icon-class="passwordType === 'password' ? 'eye' : 'eye-open'"
/>
</span> -->
<el-input
</span>
<!-- <el-input
:key="passwordType"
ref="password"
v-model="pwdCover"
@@ -115,7 +115,7 @@
/>
<span class="show-pwd" @click="hidePassword">
<svg-icon :icon-class="!isShowPassword ? 'eye' : 'eye-open'" />
</span>
</span> -->
</el-form-item>
<!-- Login -->
<el-button
@@ -205,17 +205,21 @@
"
>
<h1
style="text-align: center; margin-bottom: 20px"
style="text-align: center; margin-bottom: 30px"
v-if="NODE_ENV === 'usa'"
>
About
</h1>
<h1 style="text-align: center; margin-bottom: 20px" v-else>关于</h1>
<p style="margin-bottom: 20px" v-if="NODE_ENV === 'usa'">
{{ $t('login:title:system_title_about') }}
<h1 style="text-align: center; margin-bottom: 30px" v-else>关于</h1>
<p style="margin-bottom: 0px" v-if="NODE_ENV === 'usa'">
<!-- {{ $t('login:title:system_title_about') }} -->
<svg-icon
icon-class="login-logo"
style="width: 250px; height: 71px"
/>
</p>
<p style="margin-bottom: 20px" v-else>{{ $t('login:title:system') }}</p>
<p style="margin-bottom: 20px">
<p style="margin-bottom: 0px" v-else>{{ $t('login:title:system') }}</p>
<p style="margin-bottom: 20px; margin-top: 0">
V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }}
</p>
<p style="margin-bottom: 20px" v-if="language === 'zh'">
@@ -243,6 +247,13 @@
</div>
</el-dialog>
<browserTip ref="browserTip" />
<toggleRole
v-if="toggleRoleVisible"
:visible.sync="toggleRoleVisible"
:loading="toggleRoleLoading"
@save="loginByRole"
@cancel="cancel"
/>
</div>
</template>
@@ -253,9 +264,10 @@ import TopLang from './topLang'
import Vcode from 'vue-puzzle-vcode'
import browserTip from '@/views/dictionary/template/browser/tip.vue'
import Img1 from '@/assets/pic-2.png'
import toggleRole from '@/components/toggleRole'
export default {
name: 'Login',
components: { TopLang, Vcode, browserTip },
components: { TopLang, Vcode, browserTip, toggleRole },
data() {
return {
NODE_ENV: process.env.NODE_ENV, // process.env.NODE_ENV
@@ -298,12 +310,15 @@ export default {
isShow: false,
showCode: false,
Img1,
toggleRoleVisible: false,
toggleRoleLoading: false,
}
},
computed: {
...mapGetters(['asyncRoutes', 'routes', 'language']),
host() {
return window.location.host
// return window.location.host
return 'elevateimaging.ai '
},
},
watch: {
@@ -318,6 +333,8 @@ export default {
},
},
mounted() {
let lang = zzSessionStorage.getItem('lang') || 'zh'
// zzSessionStorage.clear()
this.loginType = this.$route.query.loginType
this.location = this.$route.query.location
zzSessionStorage.setItem('loginType', this.loginType)
@@ -332,9 +349,9 @@ export default {
this.setLanguage('en')
this.$updateDictionary()
} else {
// this.$i18n.locale = 'zh'
// this.setLanguage('zh')
// this.$updateDictionary()
this.$i18n.locale = lang
this.setLanguage(lang)
this.$updateDictionary()
}
}
this.$refs.browserTip.open()
@@ -376,6 +393,9 @@ export default {
this.$store
.dispatch('user/login', this.loginForm)
.then((res) => {
if (res.BasicInfo.LoginState === 2) {
this.$message.warning(this.$t('login:message:login4'))
}
if (res.BasicInfo.IsFirstAdd) {
// ,
this.$message.success(this.$t('login:message:login1'))
@@ -385,7 +405,7 @@ export default {
})
}, 500)
return
} else if (res.BasicInfo.LoginState === 1) {
} else if (res.BasicInfo.NeedChangePassWord) {
//
this.$alert(
this.$t('login:message:login3'),
@@ -401,52 +421,117 @@ export default {
)
return
} else if (res.IsMFA) {
zzSessionStorage.removeItem('userId')
zzSessionStorage.removeItem('identityUserId')
this.$MFA({
UserId: res.BasicInfo.Id,
UserId: res.BasicInfo.IdentityUserId,
EMail: res.BasicInfo.EMail,
username: this.loginForm.username,
callBack: this.loginIn,
callBack: this.changeRoleLogin,
cancelBack: () => {
this.loading = false
},
})
return
} else if (res.BasicInfo.LoginState === 2) {
// IP'
// this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
this.$message.warning(this.$t('login:message:login4'))
}
this.$store.dispatch('permission/generateRoutes').then((res) => {
this.loading = false
if (res && res.length > 0) {
this.$store.dispatch('global/getNoticeList')
this.$router.addRoutes(res)
if (this.loginType === 'DevOps') {
this.$router.replace({ path: res[0].path })
return
}
if (this.hasPermi(['role:radmin'])) {
this.$router.replace({ path: res[0].path })
return
}
if (
this.hasPermi(['role:air', 'role:rpm', 'role:rcrc', 'role:rir'])
) {
this.$router.replace({ path: '/trials/trials-list' })
} else {
this.$router.replace({ path: '/trials' })
}
} else {
//
this.$message.warning(this.$t('login:message:login2'))
}
})
// else if (res.BasicInfo.LoginState === 2) {
// // IP'
// // this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
// this.$message.warning(this.$t('login:message:login4'))
// }
zzSessionStorage.removeItem('userId')
zzSessionStorage.removeItem('identityUserId')
this.changeRoleLogin()
})
.catch(() => {
this.showCode = true
this.loading = false
})
},
loginByRole(userRoleId) {
this.toggleRoleLoading = true
this.$store
.dispatch('user/loginByRole', { userRoleId })
.then((res) => {
this.toggleRoleLoading = false
if (res) {
this.$store
.dispatch('permission/generateRoutes')
.then((res) => {
this.loading = false
if (res && res.length > 0) {
this.$store.dispatch('global/getNoticeList')
this.$router.addRoutes(res)
// if (this.LoginState === 2) {
// this.$message.warning(this.$t('login:message:login4'))
// }
if (this.loginType === 'DevOps') {
this.$router.replace({ path: res[0].path })
return
}
if (this.hasPermi(['role:radmin'])) {
this.$router.replace({ path: res[0].path })
return
}
if (
this.hasPermi([
'role:air',
'role:rpm',
'role:rcrc',
'role:rir',
])
) {
this.$router.replace({ path: '/trials/trials-list' })
} else {
this.$router.replace({ path: '/trials' })
}
} else {
this.toggleRoleLoading = false
//
this.$message.warning(this.$t('login:message:login2'))
}
})
.catch((err) => {
this.toggleRoleLoading = false
})
} else {
this.toggleRoleLoading = false
}
})
.catch(() => {
this.showCode = true
this.loading = false
this.toggleRoleLoading = false
})
},
changeRoleLogin() {
if (
Array.isArray(this.$store.state.user.roles) &&
this.$store.state.user.roles.length === 1
) {
this.loginByRole(this.$store.state.user.roles[0].Id)
return
}
if (
Array.isArray(this.$store.state.user.roles) &&
this.$store.state.user.roles.filter((item) => item.IsUserRoleDisabled)
.length ===
this.$store.state.user.roles.length - 1
) {
let role = this.$store.state.user.roles.find(
(item) => !item.IsUserRoleDisabled
)
this.loginByRole(role.Id)
return
}
return (this.toggleRoleVisible = true)
},
cancel() {
this.showCode = true
this.loading = false
this.toggleRoleLoading = false
// this.toggleRoleVisible = false
},
onSuccess() {
this.isShow = false
this.loginIn()
@@ -456,7 +541,6 @@ export default {
},
//
setPassword(val) {
console.log(val)
if (this.isShowPassword) {
this.loginForm.password = val
} else {
+9 -3
View File
@@ -42,6 +42,7 @@
</el-form-item>
<!-- 新密码 -->
<el-form-item
class="my_new_pwd"
:label="$t('recompose:form:newPassword')"
prop="NewPassWord"
>
@@ -138,14 +139,16 @@ export default {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
async logout() {
var loginType = zzSessionStorage.getItem('loginType')
await this.$store.dispatch('user/logout')
await this.$store.dispatch('user/resetData')
if (loginType) {
this.$router.push(`/login?loginType=${loginType}`)
} else {
this.$router.push(`/login`)
}
this.$i18n.locale = 'zh'
this.setLanguage('zh')
if (!this.$i18n.locale) {
//this.$i18n.locale = 'zh'
//this.setLanguage('zh')
}
this.$updateDictionary()
},
save() {
@@ -219,4 +222,7 @@ input {
background-color: transparent;
caret-color: #fff;
}
::v-deep .is-error.my_new_pwd {
margin-bottom: 45px;
}
</style>
+1 -1
View File
@@ -117,7 +117,7 @@
:title="$t('trials:researchForm:dialogTitle:reject')"
width="600px"
custom-class="base-dialog-wrapper"
:append-to-body="userTypeEnumInt !== 0"
append-to-body
>
<el-form ref="rejectForm" :model="rejectForm" label-width="100px">
<div class="base-dialog-body">
+25 -8
View File
@@ -48,7 +48,8 @@
style="width: 100%"
:disabled="sendDisabled"
@click="handleSendCode"
>{{ sendTitle }}</el-button
>{{ this.$t('trials:researchForm:button:send')
}}{{ count || count === 0 ? `(${count}s)` : '' }}</el-button
>
</el-col>
</el-form-item>
@@ -226,6 +227,9 @@ export default {
emailOrPhone: this.form.EmailOrPhone,
verificationCode: this.form.VerificationCode,
}
if (this.$route.query.trialId) {
param.TrialId = this.$route.query.trialId
}
verifyEmialGetDoctorInfo(param)
.then(async (res) => {
this.btnLoading = false
@@ -237,13 +241,25 @@ export default {
store.dispatch('user/setTree', menuTree.Result)
store.dispatch('user/setPermissions', permissions.Result)
// this.$router.push({ path: `/researchForm?trialId=${this.trialId}&trialSiteSurveyId=${res.Result.TrialSiteSurveyId}` })
this.$router.push({
path: `/curriculumVitae?Id=${
res.Result.DoctorId ? res.Result.DoctorId : ''
}&tabActive=BasicInfo&ReviewStatus=${
res.Result.ReviewStatus
}&lang=${this.$route.query.lang}`,
})
if (this.$route.query.trialId) {
this.$router.push({
path: `/curriculumVitae?Id=${
res.Result.DoctorId ? res.Result.DoctorId : ''
}&tabActive=BasicInfo&ReviewStatus=${
res.Result.ReviewStatus
}&trialId=${this.$route.query.trialId}&lang=${
this.$route.query.lang
}`,
})
} else {
this.$router.push({
path: `/curriculumVitae?Id=${
res.Result.DoctorId ? res.Result.DoctorId : ''
}&tabActive=BasicInfo&ReviewStatus=${
res.Result.ReviewStatus
}&lang=${this.$route.query.lang}`,
})
}
})
.catch(() => {
this.btnLoading = false
@@ -299,6 +315,7 @@ export default {
this.sendTitle = this.$t('trials:researchForm:button:send')
clearInterval(this.timer)
this.timer = null
this.count = null
}
}, 1000)
}
+60 -18
View File
@@ -257,6 +257,7 @@
:on-remove="handleRemoveFile2"
:show-file-list="true"
:limit="1"
accept=".pdf"
:file-list="fileList"
>
<el-button
@@ -265,6 +266,7 @@
:disabled="fileList.length > 0"
>{{ $t('common:button:upload') }}</el-button
>
<span>{{ $t('system:tip:file:pdf') }}</span>
</el-upload>
</el-form-item>
<el-form-item :label="$t('system:Agreements:label:Remark')">
@@ -272,6 +274,7 @@
v-model="form.Remark"
type="textarea"
:autosize="{ minRows: 2, maxRows: 4 }"
:maxlength="4000"
></el-input>
</el-form-item>
<el-form-item :label="$t('system:Agreements:label:Is Enable')">
@@ -352,6 +355,13 @@ export default {
IsEnable: false,
},
rules: {
Remark: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
CriterionType: [
{
required: true,
@@ -368,6 +378,7 @@ export default {
],
},
fileList: [],
accept: '.pdf',
}
},
watch: {
@@ -414,41 +425,66 @@ export default {
this.form.FilePath = null
this.fileList = []
},
beforeUpload() {
beforeUpload(row) {
if (this.fileList.length > 0) {
this.$alert('最多只能传一个附件')
return
}
if (!this.checkFileSuffix(row.name)) {
this.$message.warning(`Must be in .pdf format`)
return false
}
},
handlePreview3(row) {
return this.$preview({
path: row.Path || row.FilePath,
type: 'pdf',
title: row.FileName,
})
if (row.FilePath) {
window.open(this.OSSclientConfig.basePath + row.FilePath, '_blank')
}
},
handlePreview2(row, r2) {
return this.$preview({
path: row.Path || row.fullPath,
type: 'pdf',
title: row.FileName,
})
if (row.fullPath) {
window.open(this.OSSclientConfig.basePath + row.fullPath, '_blank')
}
},
async handleUploadFile(param) {
this.btnLoading = true
var fileName = param.file.name
let file = await this.fileToBlob(param.file)
let res = await this.OSSclient.put(
`/SystemData/reviewer/${
this.form.FileType === 0 ? '既往阅片情况声明' : '入项资格确认书'
}/${this.doctorId}/${fileName}`,
file
checkFileSuffix(fileName) {
var index = fileName.lastIndexOf('.')
var suffix = fileName.substring(index + 1, fileName.length)
return (
this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === 1
)
this.form.FileName = param.file.name
this.form.FilePath = this.$getObjectName(res.url)
this.fileList[0] = {
name: this.$getObjectName(res.url),
path: this.$getObjectName(res.url),
fullPath: this.$getObjectName(res.url),
url: res.url,
},
async handleUploadFile(param) {
try {
this.btnLoading = true
var fileName = param.file.name
let file = await this.fileToBlob(param.file)
let res = await this.OSSclient.put(
`/SystemData/reviewer/${
this.form.FileType === 0 ? '既往阅片情况声明' : '入项资格确认书'
}/${this.doctorId}/${fileName}`,
file
)
this.form.FileName = param.file.name
this.form.FilePath = this.$getObjectName(res.url)
this.fileList[0] = {
name: this.$getObjectName(res.url),
path: this.$getObjectName(res.url),
fullPath: this.$getObjectName(res.url),
url: res.url,
}
this.btnLoading = false
} catch (err) {
console.log(err)
}
this.btnLoading = false
},
handleCancle() {
this.model_cfg.visible = false
@@ -499,6 +535,12 @@ export default {
})
},
handlePreview(row) {
console.log(row)
return this.$preview({
path: row.Path || row.FullPath,
type: 'pdf',
title: row.FileName,
})
if (row.FullPath) {
window.open(this.OSSclientConfig.basePath + row.FullPath, '_blank')
}
+39 -6
View File
@@ -37,6 +37,7 @@
v-model="basicInfo.LastName"
:disabled="$route.query.ReviewStatus === '1'"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -49,6 +50,7 @@
v-model="basicInfo.FirstName"
:disabled="$route.query.ReviewStatus === '1'"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -63,6 +65,7 @@
v-model="basicInfo.ChineseName"
:disabled="$route.query.ReviewStatus === '1'"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -98,6 +101,7 @@
:disabled="$route.query.ReviewStatus === '1'"
v-model="basicInfo.Phone"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -138,6 +142,7 @@
v-model="basicInfo.EMail"
:disabled="$route.query.ReviewStatus === '1'"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -232,13 +237,27 @@ export default {
message: 'Please enter FirstName',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
LastName: [
{ required: true, message: 'Please enter LastName', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ChineseName: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ChineseName: [{ max: 50, message: 'The maximum length is 50' }],
Sex: [
{ required: true, message: 'Please select gender', trigger: 'blur' },
],
@@ -251,7 +270,11 @@ export default {
message: 'Please enter phone number',
trigger: 'blur',
},
{ max: 20, min: 7, message: 'The length is 7 to 20' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
EMail: [
{
@@ -264,9 +287,19 @@ export default {
message: 'Please input the correct email address',
trigger: 'blur,change',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
WeChat: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
WeChat: [{ max: 50, message: 'The maximum length is 50' }],
},
isDisabled: false,
loading: false,
@@ -59,7 +59,7 @@
>
<template slot-scope="scope">
{{
scope.row.MajorCN
!isEN
? `${scope.row.Major} / ${scope.row.MajorCN}`
: scope.row.Major
}}
@@ -73,7 +73,7 @@
>
<template slot-scope="scope">
{{
scope.row.OrganizationCN
!isEN
? `${scope.row.Organization} / ${scope.row.OrganizationCN}`
: scope.row.Organization
}}
@@ -87,9 +87,7 @@
>
<template slot-scope="scope">
{{
scope.row.CityCN
? `${scope.row.City} / ${scope.row.CityCN}`
: scope.row.City
!isEN ? `${scope.row.City} / ${scope.row.CityCN}` : scope.row.City
}}
</template>
</el-table-column>
@@ -101,7 +99,7 @@
>
<template slot-scope="scope">
{{
scope.row.ProvinceCN
!isEN
? `${scope.row.Province} / ${scope.row.ProvinceCN}`
: scope.row.Province
}}
@@ -115,7 +113,7 @@
>
<template slot-scope="scope">
{{
scope.row.CountryCN
!isEN
? `${scope.row.Country} / ${scope.row.CountryCN}`
: scope.row.Country
}}
@@ -191,7 +189,7 @@
</template>
<template slot-scope="scope" v-else>
{{
scope.row.TrainingCN
!isEN
? `${scope.row.Training} / ${scope.row.TrainingCN}`
: scope.row.Training
}}
@@ -205,7 +203,7 @@
>
<template slot-scope="scope">
{{
scope.row.MajorCN
!isEN
? `${scope.row.Major} / ${scope.row.MajorCN}`
: scope.row.Major
}}
@@ -218,11 +216,7 @@
show-overflow-tooltip
>
<template slot-scope="scope">
{{
scope.row.HospitalCN
? `${scope.row.Hospital} / ${scope.row.HospitalCN}`
: scope.row.Hospital
}}
{{ !isEN ? scope.row.HospitalCN : scope.row.Hospital }}
</template>
</el-table-column>
<el-table-column
@@ -233,7 +227,7 @@
>
<template slot-scope="scope">
{{
scope.row.SchoolCN
!isEN
? `${scope.row.School} / ${scope.row.SchoolCN}`
: scope.row.School
}}
@@ -247,9 +241,7 @@
>
<template slot-scope="scope">
{{
scope.row.CityCN
? `${scope.row.City} / ${scope.row.CityCN}`
: scope.row.City
!isEN ? `${scope.row.City} / ${scope.row.CityCN}` : scope.row.City
}}
</template>
</el-table-column>
@@ -261,7 +253,7 @@
>
<template slot-scope="scope">
{{
scope.row.ProvinceCN
!isEN
? `${scope.row.Province} / ${scope.row.ProvinceCN}`
: scope.row.Province
}}
@@ -275,7 +267,7 @@
>
<template slot-scope="scope">
{{
scope.row.CountryCN
!isEN
? `${scope.row.Country} / ${scope.row.CountryCN}`
: scope.row.Country
}}
@@ -372,6 +364,7 @@
v-model="educationForm.Major"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -379,6 +372,7 @@
v-model="educationForm.MajorCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -393,6 +387,7 @@
v-model="educationForm.Organization"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -400,6 +395,7 @@
v-model="educationForm.OrganizationCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -414,6 +410,7 @@
v-model="educationForm.City"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -421,6 +418,7 @@
v-model="educationForm.CityCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -435,6 +433,7 @@
v-model="educationForm.Province"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -442,6 +441,7 @@
v-model="educationForm.ProvinceCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -456,6 +456,7 @@
v-model="educationForm.Country"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -463,6 +464,7 @@
v-model="educationForm.CountryCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -550,6 +552,7 @@
v-model="postgraduateForm.Major"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -557,6 +560,7 @@
v-model="postgraduateForm.MajorCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -565,22 +569,30 @@
:label="$t('system:EducationTraining:table:Hospital')"
prop="Hospital"
>
<el-select
v-model="postgraduateForm.HospitalId"
filterable
placeholder=""
>
<el-option
v-for="(item, index) in hospitalList"
:key="index"
:label="item.HospitalName"
:value="item.Id"
>
<span>
{{ item.HospitalName }}
</span>
</el-option>
</el-select>
<el-row type="flex" justify="space-between">
<el-col :span="11">
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="postgraduateForm.Hospital"
:fetch-suggestions="querySearch"
@select="handleSelect"
placeholder="Please specify in English"
></el-autocomplete>
</el-col>
<el-col :span="11">
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="postgraduateForm.HospitalCN"
:fetch-suggestions="querySearchCN"
@select="handleSelect"
placeholder="请用中文注明"
></el-autocomplete>
</el-col>
</el-row>
</el-form-item>
<el-form-item
:label="$t('system:EducationTraining:table:University')"
@@ -592,6 +604,7 @@
v-model="postgraduateForm.School"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -599,6 +612,7 @@
v-model="postgraduateForm.SchoolCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -614,6 +628,7 @@
v-model="postgraduateForm.City"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -621,6 +636,7 @@
v-model="postgraduateForm.CityCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -635,6 +651,7 @@
v-model="postgraduateForm.Province"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -642,6 +659,7 @@
v-model="postgraduateForm.ProvinceCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -656,6 +674,7 @@
v-model="postgraduateForm.Country"
placeholder="Please specify in English"
size="small"
:maxlength="400"
/>
</el-col>
<el-col :span="11">
@@ -663,6 +682,7 @@
v-model="postgraduateForm.CountryCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-col>
</el-row>
@@ -772,7 +792,18 @@ export default {
message: 'Please enter the major',
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
MajorCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Organization: [
{
@@ -780,11 +811,33 @@ export default {
message: 'Please enter the institution',
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
OrganizationCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
City: [
{ required: true, message: 'Please enter the city', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
CityCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Province: [
{
@@ -792,7 +845,18 @@ export default {
message: 'Please enter the state/province',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ProvinceCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Country: [
{
@@ -800,7 +864,18 @@ export default {
message: 'Please enter the country',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
CountryCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
educationDialogVisible: false,
@@ -869,11 +944,47 @@ export default {
message: 'Please enter the major',
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
MajorCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
School: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SchoolCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
City: [
{ required: true, message: 'Please enter the city', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
CityCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Province: [
{
@@ -881,7 +992,18 @@ export default {
message: 'Please enter the state/province',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ProvinceCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Country: [
{
@@ -889,7 +1011,18 @@ export default {
message: 'Please enter the country',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
CountryCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
postgraduateBeginPickerOption: {
@@ -918,16 +1051,81 @@ export default {
},
isDisabled: false,
loading: false,
hospitalSelectList: [],
hospitalSelectListCN: [],
}
},
computed: {
...mapGetters(['hospitalList']),
isEN() {
return this.$i18n.locale !== 'zh'
},
},
watch: {
hospitalList: {
handler() {
if (!Array.isArray(this.hospitalList) || this.hospitalList.length <= 0)
return false
this.hospitalSelectList = []
this.hospitalList.forEach((item) => {
this.hospitalSelectList.push({
value: item.HospitalName,
...item,
})
this.hospitalSelectListCN.push({
value: item.HospitalNameCN,
...item,
})
})
},
deep: true,
},
},
mounted() {
this.initPage()
store.dispatch('global/getHospital')
},
methods: {
handleSelect(value) {
const item = value
if (item) {
this.postgraduateForm.Hospital = item.HospitalName
this.postgraduateForm.HospitalCN = item.HospitalNameCN
}
},
querySearch(queryString, cb) {
var hospitalList = this.hospitalSelectList
var results = queryString
? hospitalList.filter(this.createFilter(queryString))
: hospitalList
// callback
cb(results)
},
querySearchCN(queryString, cb) {
var hospitalList = this.hospitalSelectListCN
var results = queryString
? hospitalList.filter(this.createFilter(queryString, false))
: hospitalList
// callback
cb(results)
},
createFilter(queryString, isEN = true) {
return (hospitalList) => {
if (isEN) {
return (
hospitalList.HospitalName.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
} else {
return (
hospitalList.HospitalNameCN.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
}
}
},
initPage() {
const id = this.$route.query.Id || this.reviewerId
if (id) {
+249 -48
View File
@@ -14,27 +14,32 @@
<el-col :span="14">
<el-form-item
:label="$t('system:reviewer:label:Hospital')"
prop="HospitalId"
prop="HospitalName"
>
<el-select
v-model="employmentForm.HospitalId"
placeholder="select"
:disabled="$route.query.ReviewStatus === '1'"
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
size="small"
@change="handleHospitalChange"
>
<el-option
v-for="(item, index) in hospitalList"
:key="index"
:label="item.HospitalName"
:value="item.Id"
>
<span>
{{ item.HospitalName }}
</span>
</el-option>
</el-select>
v-model="employmentForm.HospitalName"
:fetch-suggestions="querySearch"
@select="handleSelect"
placeholder="Please specify in English"
@change="handleChange"
></el-autocomplete>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item prop="HospitalNameCN">
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="employmentForm.HospitalNameCN"
:fetch-suggestions="querySearchCN"
@select="handleSelect"
placeholder="请用中文注明"
@change="handleChange"
></el-autocomplete>
</el-form-item>
</el-col>
</el-row>
@@ -43,13 +48,27 @@
<el-col :span="14">
<el-form-item
:label="$t('system:reviewer:label:AffiliatedUniversity')"
prop="UniversityAffiliated"
>
<el-input
:disabled="$route.query.ReviewStatus === '1'"
v-model="UniversityAffiliated"
v-model="employmentForm.UniversityAffiliated"
type="textarea"
autosize
placeholder="Please specify in English"
size="small"
:maxlength="4000"
/>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item prop="UniversityAffiliated">
<el-input
v-model="employmentForm.UniversityAffiliatedCN"
type="textarea"
autosize
placeholder="请用中文注明"
size="small"
:maxlength="4000"
/>
</el-form-item>
</el-col>
@@ -58,20 +77,30 @@
<el-col :span="14">
<el-form-item :label="$t('system:reviewer:label:City')">
<el-input
:disabled="$route.query.ReviewStatus === '1'"
v-model="City"
v-model="employmentForm.City"
size="small"
placeholder="Please specify in English"
/>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item>
<el-input
v-model="employmentForm.CityCN"
size="small"
placeholder="请用中文注明"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-row>
<el-col :span="14">
<el-form-item :label="$t('system:reviewer:label:State/Province')">
<el-input
:disabled="$route.query.ReviewStatus === '1'"
disabled
v-model="Province"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -80,13 +109,14 @@
<el-col :span="14">
<el-form-item :label="$t('system:reviewer:label:Country')">
<el-input
:disabled="$route.query.ReviewStatus === '1'"
disabled
v-model="Country"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
<el-row>
<el-col :span="14">
@@ -113,7 +143,10 @@
:label="item.Value"
:value="item.Id"
/>
<el-option label="Other" :value="otherId" />
<el-option
:label="$t('curriculumVitae:selectLabel:Other')"
:value="otherId"
/>
</el-select>
</el-form-item>
</el-col>
@@ -128,6 +161,7 @@
v-model="employmentForm.DepartmentOther"
placeholder="Please specify (required)"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -142,6 +176,7 @@
v-model="employmentForm.DepartmentOtherCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -180,8 +215,8 @@
<el-col :span="5">
<el-form-item
v-if="
$fd('Rank', employmentForm.RankId, 'id') === '其它' ||
$fd('Rank', employmentForm.RankId, 'id') === 'Other'
$fd('Rank', employmentForm.RankId, 'id') ===
$t('curriculumVitae:selectLabel:Other')
"
class="other-item"
prop="RankOther"
@@ -191,14 +226,15 @@
v-model="employmentForm.RankOther"
placeholder="Please specify"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item
v-if="
$fd('Rank', employmentForm.RankId, 'id') === '其它' ||
$fd('Rank', employmentForm.RankId, 'id') === 'Other'
$fd('Rank', employmentForm.RankId, 'id') ===
$t('curriculumVitae:selectLabel:Other')
"
class="other-item"
prop="RankOtherCN"
@@ -208,6 +244,7 @@
v-model="employmentForm.RankOtherCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -227,6 +264,7 @@
$t('curriculumVitae:info:form:placeholder:partTimeJob')
"
size="small"
:maxlength="4000"
/>
</el-form-item>
</el-col>
@@ -243,6 +281,7 @@
$t('curriculumVitae:info:form:placeholder:partTimeJobEN')
"
size="small"
:maxlength="4000"
/>
</el-form-item>
</el-col>
@@ -276,7 +315,7 @@ export default {
},
data() {
const RankIndication = (rule, value, callback) => {
if (value === '其它' || value === 'Other') {
if (value === this.$t('curriculumVitae:selectLabel:Other')) {
if (!this.trialForm.IndicationOther) {
return callback(new Error('请输入适应症'))
}
@@ -284,7 +323,7 @@ export default {
callback()
}
const PhysicianIndication = (rule, value, callback) => {
if (value === '其它' || value === 'Other') {
if (value === this.$t('curriculumVitae:selectLabel:Other')) {
if (!this.trialForm.IndicationOther) {
return callback(new Error('请输入适应症'))
}
@@ -308,14 +347,34 @@ export default {
Physician: '',
PhysicianCN: '',
PhysicianOriginal: null,
HospitalName: '',
HospitalNameCN: '',
WorkPartTime: null,
WorkPartTimeEn: null,
UniversityAffiliated: null,
UniversityAffiliatedCN: null,
City: null,
CityCN: null,
},
UniversityAffiliated: '',
City: '',
Province: '',
Country: '',
employmentRules: {
HospitalName: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: ['blur', 'change'],
},
],
HospitalNameCN: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: ['blur', 'change'],
},
],
DepartmentId: [
{
required: true,
@@ -325,19 +384,37 @@ export default {
],
DepartmentOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
DepartmentOtherCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
DepartmentOtherCN: [{ max: 50, message: 'The maximum length is 50' }],
RankId: [
{ required: true, message: 'Please select rank', trigger: 'blur' },
],
RankOther: [
{ required: true, message: 'Please select rank', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
RankOtherCN: [
{ required: true, message: 'Please select rank', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
PhysicianId: [
{
@@ -352,7 +429,11 @@ export default {
message: 'Please select Physician',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
PhysicianCN: [
{
@@ -360,7 +441,11 @@ export default {
message: 'Please select Physician',
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
PositionId: [
{
@@ -369,8 +454,20 @@ export default {
trigger: 'blur',
},
],
PositionOther: [{ max: 50, message: 'The maximum length is 50' }],
PositionOtherCN: [{ max: 50, message: 'The maximum length is 50' }],
PositionOther: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
PositionOtherCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
HospitalId: [
{
required: true,
@@ -384,20 +481,101 @@ export default {
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
loading: false,
dictionaryList: {},
hospitalSelectList: [],
hospitalSelectListCN: [],
}
},
computed: {
...mapGetters(['hospitalList']),
isEN() {
return this.$i18n.locale !== 'zh'
},
},
mounted() {
this.initEmployment()
},
watch: {
hospitalList: {
handler() {
if (!Array.isArray(this.hospitalList) || this.hospitalList.length <= 0)
return false
this.hospitalSelectList = []
this.hospitalList.forEach((item) => {
this.hospitalSelectList.push({
value: item.HospitalName,
...item,
})
this.hospitalSelectListCN.push({
value: item.HospitalNameCN,
...item,
})
})
},
deep: true,
},
},
methods: {
handleSelect(value) {
const item = value
if (item) {
this.employmentForm.HospitalName = item.HospitalName
this.employmentForm.HospitalNameCN = item.HospitalNameCN
this.employmentForm.UniversityAffiliated = item.UniversityAffiliated
this.employmentForm.City = item.City
this.employmentForm.UniversityAffiliatedCN = item.UniversityAffiliatedCN
this.employmentForm.CityCN = item.CityCN
} else {
this.employmentForm.UniversityAffiliated = null
this.employmentForm.City = null
this.employmentForm.UniversityAffiliatedCN = null
this.employmentForm.CityCN = null
}
},
handleChange(v) {
if (v) return
this.employmentForm.UniversityAffiliated = null
this.employmentForm.City = null
this.employmentForm.UniversityAffiliatedCN = null
this.employmentForm.CityCN = null
},
querySearch(queryString, cb) {
var hospitalList = this.hospitalSelectList
var results = queryString
? hospitalList.filter(this.createFilter(queryString))
: hospitalList
// callback
cb(results)
},
querySearchCN(queryString, cb) {
var hospitalList = this.hospitalSelectListCN
var results = queryString
? hospitalList.filter(this.createFilter(queryString, false))
: hospitalList
// callback
cb(results)
},
createFilter(queryString, isEN = true) {
return (hospitalList) => {
if (isEN) {
return (
hospitalList.HospitalName.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
} else {
return (
hospitalList.HospitalNameCN.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
}
}
},
RankChange(val) {
var o = this.$d.Rank.find((v) => {
return v.id === val
})
if (o.label === '其它' || o.label === 'Other') {
if (o.label === this.$t('curriculumVitae:selectLabel:Other')) {
this.employmentForm.RankOther = ''
this.employmentForm.RankOtherCN = ''
} else {
@@ -409,7 +587,7 @@ export default {
var o = this.$d.PhysicianOriginal.find((v) => {
return v.id === val
})
if (o.label === '其它' || o.label === 'Other') {
if (o.label === this.$t('curriculumVitae:selectLabel:Other')) {
this.employmentForm.Physician = ''
this.employmentForm.PhysicianCN = ''
} else {
@@ -461,6 +639,14 @@ export default {
: ''
param.HospitalId = this.employmentForm.HospitalId
param.HospitalName = this.employmentForm.HospitalName
param.HospitalNameCN = this.employmentForm.HospitalNameCN
param.UniversityAffiliated = this.employmentForm.UniversityAffiliated
param.UniversityAffiliatedCN =
this.employmentForm.UniversityAffiliatedCN
param.City = this.employmentForm.City
param.CityCN = this.employmentForm.CityCN
updateEmploymentInfo(param)
.then((res) => {
this.isDisabled = false
@@ -497,9 +683,22 @@ export default {
PositionOther,
PositionOtherCN,
HospitalId,
HospitalName,
HospitalNameCN,
WorkPartTime,
WorkPartTimeEn,
UniversityAffiliated,
UniversityAffiliatedCN,
City,
CityCN,
} = res.Result
this.employmentForm.HospitalName = HospitalName
this.employmentForm.HospitalNameCN = HospitalNameCN
this.employmentForm.UniversityAffiliated = UniversityAffiliated
this.employmentForm.UniversityAffiliatedCN = UniversityAffiliatedCN
this.employmentForm.City = City
this.employmentForm.CityCN = CityCN
this.employmentForm.WorkPartTime = WorkPartTime
this.employmentForm.WorkPartTimeEn = WorkPartTimeEn
this.employmentForm.Id = id
@@ -530,10 +729,12 @@ export default {
handleHospitalChange(value) {
const item = this.hospitalList.filter((item) => item.Id === value)
if (item.length) {
this.UniversityAffiliated = item[0].UniversityAffiliated
this.City = item[0].City
this.Province = item[0].Province
this.Country = item[0].Country
this.UniversityAffiliated = this.isEN
? item[0].UniversityAffiliated
: item[0].UniversityAffiliatedCN
this.City = this.isEN ? item[0].City : item[0].CityCN
this.Province = this.isEN ? item[0].Province : item[0].ProvinceCN
this.Country = this.isEN ? item[0].Country : item[0].CountryCN
}
},
async initEmployment() {
@@ -33,7 +33,11 @@
prop="GCPAgencies"
v-if="GCP"
>
<el-input v-model="certificateForm.GCPAgencies" clearable></el-input>
<el-input
v-model="certificateForm.GCPAgencies"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-form>
<div v-if="GCP" class="upload-container">
@@ -121,7 +125,15 @@ export default {
GCP: 0,
GCPID: '',
certificateForm: defaultCertificateForm(),
certificateRules: {},
certificateRules: {
GCPAgencies: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
}
},
watch: {
+100 -6
View File
@@ -20,7 +20,12 @@
:label="$t('system:reviewer:label:BankNum')"
prop="BankNum"
>
<el-input v-model="form.BankNum" clearable size="small" />
<el-input
v-model="form.BankNum"
clearable
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -28,7 +33,12 @@
:label="$t('system:reviewer:label:BankName')"
prop="BankName"
>
<el-input v-model="form.BankName" clearable size="small" />
<el-input
v-model="form.BankName"
clearable
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
</el-row>
@@ -38,7 +48,12 @@
:label="$t('system:reviewer:label:OpeningBank')"
prop="OpeningBank"
>
<el-input v-model="form.OpeningBank" clearable size="small" />
<el-input
v-model="form.OpeningBank"
clearable
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -46,7 +61,12 @@
:label="$t('system:reviewer:label:IdCard')"
prop="IdCard"
>
<el-input v-model="form.IdCard" clearable size="small" />
<el-input
v-model="form.IdCard"
clearable
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
</el-row>
@@ -56,7 +76,12 @@
:label="$t('system:reviewer:label:BankPhoneNum')"
prop="BankPhoneNum"
>
<el-input v-model="form.BankPhoneNum" clearable size="small" />
<el-input
v-model="form.BankPhoneNum"
clearable
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
</el-row>
@@ -96,7 +121,76 @@ export default {
IdCard: '',
BankPhoneNum: '',
},
rules: {},
rules: {
BankNum: [
{
validator: (rule, value, callback) => {
let reg = new RegExp(/^[A-Za-z0-9]+$/, 'ig')
if (value && !reg.test(value)) {
callback(new Error(this.$t('common:ruleMessage:pattern')))
} else {
callback()
}
},
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BankName: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
OpeningBank: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
IdCard: [
{
validator: (rule, value, callback) => {
let reg = new RegExp(/(^\d{15}$)|(^\d{17}([0-9]|X)$)/, 'ig')
if (value && !reg.test(value)) {
callback(new Error(this.$t('common:ruleMessage:pattern')))
} else {
callback()
}
},
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BankPhoneNum: [
{
validator: (rule, value, callback) => {
let reg = new RegExp(/^\d{11}$/, 'i')
if (value && !reg.test(value)) {
callback(new Error(this.$t('common:ruleMessage:pattern')))
} else {
callback()
}
},
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
}
},
mounted() {
@@ -5,6 +5,7 @@
v-loading="loading"
label-width="140px"
:model="researchForm"
:rules="rule"
size="small"
>
<div class="title">{{ $t('system:reviewer:title:Research') }}</div>
@@ -18,6 +19,7 @@
rows="5"
placeholder="Please specify in English"
size="small"
:maxlength="4000"
/>
</el-col>
<el-col :span="11">
@@ -28,6 +30,7 @@
rows="5"
placeholder="请用中文注明"
size="small"
:maxlength="4000"
/>
</el-col>
</el-row>
@@ -42,6 +45,7 @@
rows="5"
placeholder="Please specify in English"
size="small"
:maxlength="4000"
/>
</el-col>
<el-col :span="11">
@@ -52,6 +56,7 @@
rows="5"
placeholder="请用中文注明"
size="small"
:maxlength="4000"
/>
</el-col>
</el-row>
@@ -67,6 +72,7 @@
rows="5"
placeholder="Please specify in English"
size="small"
:maxlength="4000"
/>
</el-col>
</el-row>
@@ -82,6 +88,7 @@
rows="5"
placeholder="Please specify in English"
size="small"
:maxlength="4000"
/>
</el-col>
<el-col :span="11">
@@ -92,6 +99,7 @@
rows="5"
placeholder="请用中文注明"
size="small"
:maxlength="4000"
/>
</el-col>
</el-row>
@@ -138,6 +146,57 @@ export default {
AwardsHonors: '',
AwardsHonorsCN: '',
},
rule: {
Research: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ResearchCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Grants: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
GrantsCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Publications: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
AwardsHonors: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
AwardsHonorsCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
loading: false,
isDisabled: false,
}
+60 -5
View File
@@ -15,13 +15,21 @@
:label="$t('system:Setting:label:Blind Name')"
prop="BlindName"
>
<el-input v-model="checkForm.BlindName" style="width: 300px" />
<el-input
v-model="checkForm.BlindName"
style="width: 300px"
:maxlength="400"
/>
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Blind NameCN')"
prop="BlindNameCN"
>
<el-input v-model="checkForm.BlindNameCN" style="width: 300px" />
<el-input
v-model="checkForm.BlindNameCN"
style="width: 300px"
:maxlength="400"
/>
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Blind Publications')"
@@ -33,6 +41,7 @@
rows="8"
style="width: 60%"
size="small"
:maxlength="4000"
/>
</el-form-item>
</div>
@@ -113,7 +122,7 @@
<el-form-item :label="$t('system:Setting:label:On Vacation:')">
<span style="font-size: 12px; margin-right: 20px">{{
checkForm.InHoliday
InHoliday
}}</span>
<el-button type="text" @click="handleView">{{
$t('system:Setting:Planned Vacation')
@@ -128,6 +137,7 @@
type="textarea"
style="width: 60%"
rows="8"
:maxlength="4000"
/>
</el-form-item>
@@ -217,6 +227,7 @@ import {
getVacationList,
addOrUpdateVacation,
deleteVacation,
getIsVacation,
} from '@/api/reviewers'
import { fmtDate } from '@/utils/formatter'
export default {
@@ -244,9 +255,34 @@ export default {
BlindPublications: '',
},
rules: {
AdminComment: [{ max: 500, message: 'The maximum length is 500' }],
AdminComment: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
BlindName: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BlindNameCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BlindPublications: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
doctorId: this.$route.query.Id || this.reviewerId,
@@ -259,19 +295,38 @@ export default {
pageSize: 5,
totalItems: 0,
loading2: false,
InHoliday: '',
}
},
watch: {
reviewerId() {
if (this.reviewerId) {
this.doctorId = this.reviewerId
this.initForm()
this.getIsVacation()
}
},
},
mounted() {
this.initForm()
this.getIsVacation()
},
methods: {
//
async getIsVacation() {
if (!this.doctorId) return false
try {
let data = {
DoctorId: this.doctorId,
}
let res = await getIsVacation(data)
if (res.IsSuccess) {
this.InHoliday = res.Result.IsVacation ? 'Yes' : 'No'
}
} catch (err) {
console.log(err)
}
},
initForm() {
if (!this.doctorId) return
getAuditState(this.doctorId).then((res) => {
@@ -381,7 +436,7 @@ export default {
.catch((action) => {})
},
closeDialog() {
this.initForm()
this.getIsVacation()
},
handleChange() {
if (
+52 -9
View File
@@ -35,7 +35,10 @@
:label="item.Value"
:value="item.Id"
/>
<el-option label="Other" :value="otherId" />
<el-option
:label="$t('curriculumVitae:selectLabel:Other')"
:value="otherId"
/>
</el-select>
</el-form-item>
</el-col>
@@ -50,6 +53,7 @@
v-model="specialtyForm.SpecialityOther"
placeholder="Please specify (required)"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -64,6 +68,7 @@
v-model="specialtyForm.SpecialityOtherCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -94,7 +99,10 @@
:label="item.Value"
:value="item.Id"
/>
<el-option label="Other" :value="otherId" />
<el-option
:label="$t('curriculumVitae:selectLabel:Other')"
:value="otherId"
/>
</el-select>
</el-form-item>
</el-col>
@@ -112,6 +120,7 @@
v-model="specialtyForm.SubspecialityOther"
placeholder="Please specify (required)"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -129,6 +138,7 @@
v-model="specialtyForm.SubspecialityOtherCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -160,7 +170,10 @@
:label="item.Value"
:value="item.Id"
/>
<el-option label="Other" :value="otherId" />
<el-option
:label="$t('curriculumVitae:selectLabel:Other')"
:value="otherId"
/>
</el-select>
</el-form-item>
</el-col>
@@ -178,6 +191,7 @@
v-model="specialtyForm.ReadingTypeOther"
placeholder="Please specify (required)"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -195,6 +209,7 @@
v-model="specialtyForm.ReadingTypeOtherCN"
placeholder="请用中文注明"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-col>
@@ -247,9 +262,19 @@ export default {
],
SpecialityOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SpecialityOtherCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SpecialityOtherCN: [{ max: 50, message: 'The maximum length is 50' }],
ReadingTypeIds: [
{
required: true,
@@ -259,9 +284,19 @@ export default {
],
ReadingTypeOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ReadingTypeOtherCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ReadingTypeOtherCN: [{ max: 50, message: 'The maximum length is 50' }],
SubspecialityIds: [
{
required: true,
@@ -271,10 +306,18 @@ export default {
],
SubspecialityOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SubspecialityOtherCN: [
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
selectId: '00000000-0000-0000-0000-000000000000',
+279 -58
View File
@@ -2,82 +2,245 @@
<div class="form-container">
<el-card class="box-card">
<div style="width: 80%">
<div class="top">
<span>{{ $t('system:reviewer:tab:Summarize') }}</span>
<el-button
size="small"
type="primary"
v-if="$route.query.ReviewStatus !== '1'"
@click="handleAdd()"
>
{{ $t('common:button:add') }}
</el-button>
</div>
<el-table
ref="educationTbl"
:data="list"
border
class="table"
:loading="loading"
size="small"
>
<el-table-column type="index" width="30" />
<el-table-column
prop="Indication"
:label="$t('system:reviewer:label:Indication')"
min-width="55"
show-overflow-tooltip
/>
<el-table-column
prop="Summarize"
:label="$t('system:reviewer:label:SummarizeZH')"
min-width="55"
show-overflow-tooltip
/>
<el-table-column
prop="SummarizeEn"
:label="$t('system:reviewer:label:SummarizeEN')"
min-width="70"
show-overflow-tooltip
/>
<el-table-column
prop="IsMain"
:label="$t('system:reviewer:label:IsMain')"
show-overflow-tooltip
>
<template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IsMain) }}
</template>
</el-table-column>
<el-table-column
:label="$t('system:EducationTraining:table:Operation')"
>
<template slot-scope="scope">
<el-button
type="text"
size="small"
:disabled="$route.query.ReviewStatus === '1'"
@click="handleAdd(scope.row)"
>
{{ $t('common:button:edit') }}
</el-button>
<el-button
type="text"
size="small"
:disabled="$route.query.ReviewStatus === '1'"
@click="handleDelete(scope.row)"
>
{{ $t('common:button:delete') }}
</el-button>
</template>
</el-table-column>
</el-table>
</div>
</el-card>
<base-model :config="model_cfg">
<template slot="dialog-body">
<el-form
ref="summarizeFrom"
v-loading="loading"
:rules="rules"
:model="form"
class="demo-ruleForm"
label-width="150px"
label-width="100px"
>
<el-row>
<el-col :span="14">
<el-form-item
:label="$t('system:reviewer:label:Summarize')"
prop="Summarize"
>
<el-input
:disabled="$route.query.ReviewStatus === '1'"
v-model="form.Summarize"
type="textarea"
:rows="2"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarize')
"
size="small"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="14">
<el-form-item prop="SummarizeEn">
<el-input
:disabled="$route.query.ReviewStatus === '1'"
v-model="form.SummarizeEn"
type="textarea"
:rows="2"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarizeEN')
"
size="small"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<el-button
type="primary"
:disabled="$route.query.ReviewStatus === '1'"
<el-form-item
:label="$t('system:reviewer:label:Indication')"
prop="Indication"
>
<el-input
v-model="form.Indication"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:Indication')
"
size="small"
:loading="loading"
@click="handleSave"
:maxlength="400"
/>
</el-form-item>
<el-form-item prop="IndicationEn">
<el-input
v-model="form.IndicationEn"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:IndicationEn')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
:label="$t('system:reviewer:label:Summarize')"
prop="Summarize"
>
<el-input
v-model="form.Summarize"
type="textarea"
:rows="10"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarize')
"
size="small"
:maxlength="4000"
/>
</el-form-item>
<el-form-item prop="SummarizeEn">
<el-input
v-model="form.SummarizeEn"
type="textarea"
:rows="10"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarizeEN')
"
size="small"
:maxlength="4000"
/>
</el-form-item>
<el-form-item
prop="IsMain"
:label="$t('system:reviewer:label:IsMain')"
>
<el-switch
v-model="form.IsMain"
:disabled="list.length <= 0 || ISMAIN"
>
{{ $t('common:button:save') }}
</el-button>
</el-switch>
</el-form-item>
</el-form>
</div>
</el-card>
</template>
<template slot="dialog-footer">
<el-button size="small" type="primary" @click="handleCancle">
{{ $t('common:button:cancel') }}
</el-button>
<el-button
size="small"
type="primary"
@click="handleSave"
:loading="loading"
>
{{ $t('common:button:save') }}
</el-button>
</template>
</base-model>
</div>
</template>
<script>
import { getDetail, updateGneralSituation } from '@/api/reviewers'
import {
addOrUpdateGneralSituation,
getSummarizeInfo,
deleteSummarizeInfo,
} from '@/api/reviewers'
import BaseModel from '@/components/BaseModel'
const defaultForm = () => {
return {
Id: null,
DoctorId: null,
Summarize: null,
SummarizeEn: null,
IsMain: false,
Indication: null,
IndicationEn: null,
}
}
export default {
props: {
reviewerId: {
type: String,
},
},
components: { BaseModel },
data() {
return {
list: [],
loading: false,
form: {
Summarize: null,
SummarizeEn: null,
ISMAIN: false,
model_cfg: {
visible: false,
showClose: true,
width: '800px',
title: this.$t('system:reviewer:form:SummarizeTitle'),
appendToBody: false,
top: '8vh',
},
form: defaultForm(),
rules: {
Indication: [
{
required: true,
message: 'Please enter Indication',
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
IndicationEn: [
{
required: true,
message: 'Please enter Indication',
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Summarize: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
SummarizeEn: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
rules: {},
}
},
mounted() {
@@ -88,15 +251,20 @@ export default {
try {
let validate = await this.$refs.summarizeFrom.validate()
if (!validate) return false
this.form.Id = this.$route.query.Id || this.reviewerId
this.form.DoctorId = this.$route.query.Id || this.reviewerId
this.loading = true
if (this.$route.query.trialId) {
this.form.TrialId = this.$route.query.trialId
}
let res = await updateGneralSituation(this.form)
if (this.list.length <= 0) {
this.form.IsMain = true
}
let res = await addOrUpdateGneralSituation(this.form)
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.model_cfg.visible = false
this.getDetail()
}
} catch (err) {
this.loading = false
@@ -109,18 +277,64 @@ export default {
let id = this.$route.query.Id || this.reviewerId
if (!id) return false
this.loading = true
let res = await getDetail(id, this.$route.query.trialId)
let res = await getSummarizeInfo({
DoctorId: id,
})
this.loading = false
if (res.IsSuccess) {
Object.keys(this.form).forEach((key) => {
this.form[key] = res.Result.SummarizeInfo[key]
})
this.list = res.Result.SummarizeList
}
} catch (err) {
this.loading = false
console.log(err)
}
},
handleCancle() {
this.model_cfg.visible = false
},
handleAdd(row) {
this.form = defaultForm()
this.ISMAIN = false
if (row) {
Object.keys(this.form).forEach((key) => {
this.form[key] = row[key]
})
this.form.Id = row.Id
if (this.form.IsMain) {
this.ISMAIN = true
}
}
if (this.list.length <= 0) {
this.form.IsMain = true
}
this.model_cfg.visible = true
},
async handleDelete(row) {
try {
if (row.IsMain) {
return this.$message.warning(
this.$t('system:reviewer:message:deletedSuccessfully')
)
}
let confirm = await this.$confirm(
this.$t('system:reviewer:confirm:delete')
)
if (!confirm) return false
let data = {
Id: row.Id,
}
this.loading = true
let res = await deleteSummarizeInfo(data)
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.getDetail()
}
} catch (err) {
console.log(err)
this.loading = false
}
},
},
}
</script>
@@ -133,4 +347,11 @@ export default {
width: 220px !important;
}
}
.top {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
margin-bottom: 10px;
}
</style>
@@ -57,7 +57,8 @@
>
<template slot-scope="scope">
<span v-if="scope.row.StartTime"
>{{ scope.row.StartTime.split('-')[0] }}-{{
>{{ scope.row.StartTime.split('-')[0] }} ~
{{
scope.row.EndTime ? scope.row.EndTime.split('-')[0] : '至今'
}}</span
>
@@ -128,9 +129,10 @@
<el-input
v-model="OtherClinicalExperience"
type="textarea"
rows="5"
rows="8"
placeholder="Please specify in English"
size="small"
:maxlength="4000"
/>
</el-col>
<el-col :span="11">
@@ -138,9 +140,10 @@
v-model="OtherClinicalExperienceCN"
:disabled="$route.query.ReviewStatus === '1'"
type="textarea"
rows="5"
rows="8"
placeholder="请用中文注明"
size="small"
:maxlength="4000"
/>
</el-col>
</el-row>
@@ -194,6 +197,7 @@
:placeholder="
$t('curriculumVitae:clinicalTrials:placeholder:byStagesOther')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -220,6 +224,7 @@
:placeholder="
$t('curriculumVitae:clinicalTrials:placeholder:criterionOther')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -293,6 +298,7 @@
<el-input
v-model="clinicalTrialForm.EvaluationContent"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-form>
@@ -368,13 +374,55 @@ export default {
],
EvaluationContent: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 300, message: 'The maximum length is 300' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
IndicationEnum: [
{ required: true, message: 'Please select', trigger: 'blur' },
],
StartTime: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{
validator: (rule, value, callback) => {
if (
value &&
this.clinicalTrialForm.EndTime &&
moment(value).isAfter(moment(this.clinicalTrialForm.EndTime))
) {
callback(
new Error(
this.$t('system:TrialExperience:rule:startBeforeEnd')
)
)
} else {
callback()
}
},
trigger: 'blur',
},
],
EndTime: [
{
validator: (rule, value, callback) => {
if (
value &&
this.clinicalTrialForm.StartTime &&
moment(value).isBefore(moment(this.clinicalTrialForm.StartTime))
) {
callback(
new Error(
this.$t('system:TrialExperience:rule:endBeforeStart')
)
)
} else {
callback()
}
},
trigger: 'blur',
},
],
OtherStages: [
{
@@ -382,6 +430,11 @@ export default {
message: 'Please input',
trigger: ['blur', 'change'],
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
OtherCriterion: [
{
@@ -389,6 +442,11 @@ export default {
message: 'Please input',
trigger: ['blur', 'change'],
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
GCP: 0,
@@ -400,16 +458,28 @@ export default {
isBtnDisabled: false,
selectId: '00000000-0000-0000-0000-000000000000',
dictionaryList: {},
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
// otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
otherId: '00000000-0000-0000-0000-000000000000',
GCPData: {},
}
},
computed: {
IndicationOptions() {
console.log(
this.$d.IndicationType,
this.clinicalTrialForm.IndicationTypeId
)
if (!this.clinicalTrialForm.IndicationTypeId) return []
let indicationGrouping = this.$d.IndicationType.filter(
let indicationGroupingArr = this.$d.IndicationType.filter(
(item) => item.id === this.clinicalTrialForm.IndicationTypeId
)[0].raw.ChildGroup
)
let indicationGrouping = null
if (
Array.isArray(indicationGroupingArr) &&
indicationGroupingArr.length > 0
) {
indicationGrouping = indicationGroupingArr[0].raw.ChildGroup
}
let arr =
this.$d.Indication.filter(
(item) => indicationGrouping === item.raw.ChildGroup
@@ -421,14 +491,14 @@ export default {
let value = this.$d.Indication.find(
(item) => item.value === this.clinicalTrialForm.IndicationEnum
).label
return value === '其它' || value === 'Other'
return value === this.$t('curriculumVitae:selectLabel:Other')
},
Trial_Phase_isOther() {
if (!this.clinicalTrialForm.PhaseId) return false
let value = this.dictionaryList.Trial_Phase.find(
(item) => item.Id === this.clinicalTrialForm.PhaseId
).Value
return value === '其它' || value === 'Other'
return value === this.$t('curriculumVitae:selectLabel:Other')
},
ReadingStandard_isOther() {
if (
@@ -446,7 +516,7 @@ export default {
...this.dictionaryList.CriterionType,
{
Id: this.otherId,
Value: 'Other',
Value: this.$t('curriculumVitae:selectLabel:Other'),
},
]
},
@@ -16,14 +16,14 @@
<i
class="el-icon-edit"
:title="$t('common:button:edit')"
v-if="item.IsIRUpload"
v-if="item.IsIRUpload || isPM"
@click="
handleEditCol(item, 0, $t('trials:enrolledReviews:message:SOW'))
"
/>
<i
class="el-icon-delete"
v-if="item.IsIRUpload"
v-if="item.IsIRUpload || isPM"
:title="$t('common:button:delete')"
@click="handleRemoveFile3(item)"
/>
@@ -45,30 +45,102 @@
{{ $t('common:button:downloadTpl') }}
</el-button>
</div>
<template v-if="CounselorFiles">
<template v-if="!isPM">
<template v-if="CounselorFiles">
<div class="file_title">
{{ $t('curriculumVitae:agreement:Counselor') }}
</div>
<div class="file" v-for="item in CounselorFiles" :key="item.Id">
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="preview(item)"
/>
</div>
</template>
<template v-if="ackSowList && ackSowList.length > 0">
<div class="file_title">
{{ $t('curriculumVitae:agreement:confirmation') }}
</div>
<div class="file" v-for="item in ackSowList" :key="item.Id">
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="handlePreview3(item)"
/>
</div>
</template>
</template>
<template v-else>
<div class="file_title">
{{ $t('curriculumVitae:agreement:Counselor') }}
</div>
<div class="file" v-for="item in CounselorFiles" :key="item.Id">
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="preview(item)"
/>
<template v-if="agreementList && agreementList.length > 0">
<div class="file" v-for="item in agreementList" :key="item.Id">
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="handlePreview3(item)"
/>
<i
class="el-icon-delete"
:title="$t('common:button:delete')"
@click="handleRemoveFile(item)"
/>
</div>
</template>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<div class="btnBox" style="margin-top: 10px">
<div class="resume-content">
<div class="upload-content">
<upload-files
ref="uploadAgreement"
:doctor-id="reviewerId"
type="Consultant Agreement"
accept=".pdf"
@getFileList="getFileList"
/>
</div>
<!-- <p>{{ $t('system:tip:file:pdf') }}</p> -->
</div>
</div>
</template>
<template v-if="ackSowList && ackSowList.length > 0">
<div class="file_title">
{{ $t('curriculumVitae:agreement:confirmation') }}
</div>
<div class="file" v-for="item in ackSowList" :key="item.Id">
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="handlePreview3(item)"
/>
<template v-if="ackSowList && ackSowList.length > 0">
<div class="file" v-for="item in ackSowList" :key="item.Id">
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="handlePreview3(item)"
/>
<i
class="el-icon-edit"
:title="$t('common:button:edit')"
@click="
handleEditCol(item, 1, $t('trials:enrolledReviews:message:SOW'))
"
/>
<i
class="el-icon-delete"
:title="$t('common:button:delete')"
@click="handleRemoveFile3(item)"
/>
</div>
</template>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<div class="btnBox" style="margin-top: 10px">
<el-button
type="primary"
size="small"
@click.stop="addCol(1, $t('trials:enrolledReviews:message:SOW'))"
>
{{ $t('curriculumVitae:agreement:btn:uploadconfirmation') }}
</el-button>
</div>
</template>
</div>
@@ -107,6 +179,7 @@
:on-remove="handleRemoveFile2"
:show-file-list="true"
:limit="1"
:accept="accept"
:file-list="fileList"
>
<el-button
@@ -115,6 +188,7 @@
:disabled="fileList.length > 0"
>{{ $t('common:button:upload') }}</el-button
>
<span>{{ $t('system:tip:file:pdf') }}</span>
</el-upload>
</el-form-item>
<el-form-item :label="$t('system:Agreements:label:Remark')">
@@ -162,10 +236,12 @@ import {
getDoctorCriterionFile,
} from '@/api/reviewers'
import BaseModel from '@/components/BaseModel'
import UploadFiles from '@/components/UploadFiles'
export default {
name: 'agreement',
components: {
BaseModel,
UploadFiles,
},
props: {
DATA: {
@@ -182,6 +258,10 @@ export default {
type: Boolean,
default: false,
},
isPM: {
type: Boolean,
default: false,
},
},
data() {
return {
@@ -226,6 +306,7 @@ export default {
],
},
fileList: [],
accept: '.pdf',
}
},
watch: {
@@ -244,9 +325,15 @@ export default {
},
},
methods: {
handleRemoveFile(row) {
this.$refs.uploadAgreement.handleDeleteFile(row)
},
getFileList(fileList) {
this.agreementList = fileList
},
preview(row) {
this.$preview({
path: row.FullPath,
path: row.Path || row.FullPath,
type: 'pdf',
title: row.FileName,
})
@@ -285,19 +372,40 @@ export default {
this.form.FilePath = null
this.fileList = []
},
beforeUpload() {
beforeUpload(row) {
if (this.fileList.length > 0) {
// this.$alert('')
this.$alert(this.$t('upload:rule:maxFile1'))
return
}
if (!this.checkFileSuffix(row.name)) {
this.$message.warning(this.$t('upload:rule:MUSTPDF'))
return false
}
},
checkFileSuffix(fileName) {
var index = fileName.lastIndexOf('.')
var suffix = fileName.substring(index + 1, fileName.length)
return (
this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === 1
)
},
handlePreview3(row) {
return this.$preview({
path: row.FilePath || row.Path || row.FullPath,
type: 'pdf',
title: row.FileName,
})
if (row.FilePath) {
window.open(this.OSSclientConfig.basePath + row.FilePath, '_blank')
}
},
handlePreview2(row, r2) {
return this.$preview({
path: row.FullPath,
type: 'pdf',
title: row.FileName,
})
if (row.fullPath) {
window.open(this.OSSclientConfig.basePath + row.fullPath, '_blank')
}
@@ -333,9 +441,11 @@ export default {
'CriterionType',
this.form.CriterionType
)
this.form.IsIRUpload = true
if (!this.isPM) {
this.form.IsIRUpload = true
}
addDoctorCriterionFile(this.form).then((res) => {
this.$message.success('添加成功')
this.$message.success(this.$t('common:message:addedSuccessfully'))
this.initSowList()
this.handleCancle()
})
@@ -292,7 +292,7 @@ export default {
},
preview(row) {
this.$preview({
path: row.FullPath,
path: row.Path || row.FullPath,
type: 'pdf',
title: row.FileName,
})
@@ -173,12 +173,13 @@ export default {
(item) => item.FileName === param.file.name
)
if (isRepeat) {
this.$confirm('Override the existing resume?', {
type: 'warning',
distinguishCancelAndClose: true,
confirmButtonText: 'OK',
cancelButtonText: 'Cancel',
})
this.$confirm(
this.$t('curriculumVitae:resume:message:existingResume'),
{
type: 'warning',
distinguishCancelAndClose: true,
}
)
.then(() => {
//
this.repeat = true
@@ -189,7 +190,7 @@ export default {
this.uploadFile(param.file, param.data.language)
}
} else {
this.$alert(`Must be in ${this.accept} format`)
this.$alert(this.$t('upload:rule:MUSTPDF'))
}
},
async uploadFile(file, language) {
@@ -228,7 +229,9 @@ export default {
this.resumeList = res.Result
this.filterByLanguage()
this.isDisabled = false
this.$message.success('Uploaded successfully')
this.$message.success(
this.$t('trials:uploadDicomList:table:Uploaded')
)
})
.catch(() => {
this.isDisabled = false
@@ -286,7 +289,7 @@ export default {
if (res.IsSuccess) {
this.getResumeList()
this.$message({
message: 'Saved successfully!',
message: this.$t('common:message:savedSuccessfully'),
type: 'success',
})
}
@@ -307,7 +310,7 @@ export default {
this.dialogVisible = false
this.getResumeList()
this.$message({
message: 'Saved successfully!',
message: this.$t('common:message:savedSuccessfully'),
type: 'success',
})
}
@@ -69,7 +69,9 @@
<template slot-scope="scope">
<span v-if="scope.row.StartTime"
>{{ scope.row.StartTime.split('-')[0] }}-{{
scope.row.EndTime ? scope.row.EndTime.split('-')[0] : ''
scope.row.EndTime
? scope.row.EndTime.split('-')[0]
: $t('curriculumVitae:lineIIcon:soFar')
}}</span
>
</template>
@@ -154,11 +156,13 @@
<template
v-if="DATA.OtherClinicalExperience || DATA.OtherClinicalExperienceCN"
>
<div class="message">
{{
<div
class="message"
style="white-space: pre-wrap"
v-html="
isEN ? DATA.OtherClinicalExperience : DATA.OtherClinicalExperienceCN
}}
</div>
"
></div>
</template>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<!--临床试验-->
@@ -195,6 +199,7 @@
:placeholder="
$t('curriculumVitae:clinicalTrials:placeholder:byStagesOther')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -222,25 +227,48 @@
:placeholder="
$t('curriculumVitae:clinicalTrials:placeholder:criterionOther')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
<!-- <el-form-item
:label="$t('curriculumVitae:clinicalTrials:form:time')"
prop="BeginDate"
>
<el-date-picker
clearable
v-model="daterange"
type="daterange"
type="monthrange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
format="yyyy"
:range-separator="$t('curriculumVitae:daterange:rangeSeparator')"
:start-placeholder="$t('curriculumVitae:daterange:startTime')"
:end-placeholder="$t('curriculumVitae:daterange:endTime')"
@change="changeTimeList"
>
</el-date-picker
></el-form-item>
></el-form-item> -->
<el-form-item
:label="$t('system:TrialExperience:label:Start Time')"
prop="StartTime"
>
<el-date-picker
v-model="form.StartTime"
type="year"
value-format="yyyy-MM-DD"
>
</el-date-picker>
</el-form-item>
<el-form-item
:label="$t('system:TrialExperience:label:End Time')"
prop="EndTime"
>
<el-date-picker
v-model="form.EndTime"
type="year"
value-format="yyyy-MM-DD"
>
</el-date-picker>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:clinicalTrials:form:viewingVolumeNum')"
prop="VisitReadingCount"
@@ -287,7 +315,11 @@
</el-select>
</el-form-item>
<el-form-item prop="EvaluationContent" v-if="IndicationEnum_isOther">
<el-input v-model="form.EvaluationContent" clearable></el-input>
<el-input
v-model="form.EvaluationContent"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-form>
</template>
@@ -358,6 +390,7 @@
<el-input
v-model="certificateForm.GCPAgencies"
clearable
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -421,33 +454,40 @@
v-loading="loading"
:model="otherForm"
:rules="otherRules"
label-width="100px"
label-width="120px"
size="small"
>
<el-form-item
:label="$t('curriculumVitae:clinicalTrials:form:other')"
prop="OtherClinicalExperienceCN"
v-if="!isEN"
>
<el-input
v-model="otherForm.OtherClinicalExperienceCN"
clearable
type="textarea"
:rows="2"
:rows="5"
style="margin-bottom: 20px"
:placeholder="
$t('curriculumVitae:clinicalTrials:placeholder:other')
"
:maxlength="4000"
></el-input>
</el-form-item>
<el-form-item prop="OtherClinicalExperience">
<el-form-item
prop="OtherClinicalExperience"
:label="$t('curriculumVitae:clinicalTrials:form:other')"
v-else
>
<el-input
v-model="otherForm.OtherClinicalExperience"
clearable
type="textarea"
:rows="2"
:rows="5"
:placeholder="
$t('curriculumVitae:clinicalTrials:placeholder:otherEN')
"
:maxlength="4000"
></el-input>
</el-form-item>
</el-form>
@@ -482,6 +522,7 @@ import {
saveAttachments,
getAttachmentByType,
} from '@/api/attachment'
import moment from 'moment'
const defaultForm = () => {
return {
PhaseId: '',
@@ -523,6 +564,10 @@ export default {
}
},
},
trialId: {
type: String,
default: '',
},
reviewerId: {
type: String,
default: '',
@@ -547,43 +592,111 @@ export default {
PhaseId: [
{
required: true,
message: 'Please select',
message: this.$t('common:ruleMessage:select'),
trigger: ['blur', 'change'],
},
],
EvaluationCriteriaIdList: [
{
required: true,
message: 'Please select',
message: this.$t('common:ruleMessage:select'),
trigger: ['blur', 'change'],
},
],
VisitReadingCount: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
],
EvaluationContent: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 300, message: 'The maximum length is 300' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
IndicationEnum: [
{ required: true, message: 'Please select', trigger: 'blur' },
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
StartTime: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
validator: (rule, value, callback) => {
if (
value &&
this.form.EndTime &&
moment(value).isAfter(moment(this.form.EndTime))
) {
callback(
new Error(
this.$t('system:TrialExperience:rule:startBeforeEnd')
)
)
} else {
callback()
}
},
trigger: 'blur',
},
],
EndTime: [
{
validator: (rule, value, callback) => {
if (
value &&
this.form.StartTime &&
moment(value).isBefore(moment(this.form.StartTime))
) {
callback(
new Error(
this.$t('system:TrialExperience:rule:endBeforeStart')
)
)
} else {
callback()
}
},
trigger: 'blur',
},
],
OtherStages: [
{
required: true,
message: 'Please input',
message: this.$t('common:ruleMessage:specify'),
trigger: ['blur', 'change'],
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
OtherCriterion: [
{
required: true,
message: 'Please input',
message: this.$t('common:ruleMessage:specify'),
trigger: ['blur', 'change'],
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
loading: false,
@@ -591,17 +704,24 @@ export default {
certificateForm: defaultCertificateForm(),
certificateRules: {
GCPAgencies: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
GCP: [
{
required: true,
message: 'Please select',
message: this.$t('common:ruleMessage:select'),
trigger: ['blur', 'change'],
},
],
GCPId: [
{
required: true,
message: 'Please upload File',
message: this.$t('trials:readingPeriod:cd:message:uploadFile'),
trigger: ['blur', 'change'],
},
],
@@ -617,16 +737,32 @@ export default {
},
otherForm: defaultOtherForm(),
otherRules: {},
otherRules: {
OtherClinicalExperienceCN: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
OtherClinicalExperience: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
model_cfg_other: {
visible: false,
showClose: true,
width: '600px',
width: '800px',
title: this.$t('curriculumVitae:clinicalTrials:form:otherTitle'),
appendToBody: true,
},
dictionaryList: {},
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
// otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
otherId: '00000000-0000-0000-0000-000000000000',
}
},
watch: {
@@ -649,9 +785,16 @@ export default {
computed: {
IndicationOptions() {
if (!this.form.IndicationTypeId) return []
let indicationGrouping = this.$d.IndicationType.filter(
let indicationGroupingArr = this.$d.IndicationType.filter(
(item) => item.id === this.form.IndicationTypeId
)[0].raw.ChildGroup
)
let indicationGrouping = null
if (
Array.isArray(indicationGroupingArr) &&
indicationGroupingArr.length > 0
) {
indicationGrouping = indicationGroupingArr[0].raw.ChildGroup
}
let arr =
this.$d.Indication.filter(
(item) => indicationGrouping === item.raw.ChildGroup
@@ -679,14 +822,14 @@ export default {
let value = this.$d.Indication.find(
(item) => item.value === this.form.IndicationEnum
).label
return value === '其它' || value === 'Other'
return value === this.$t('curriculumVitae:selectLabel:Other')
},
Trial_Phase_isOther() {
if (!this.form.PhaseId) return false
let value = this.dictionaryList.Trial_Phase.find(
(item) => item.Id === this.form.PhaseId
).Value
return value === '其它' || value === 'Other'
return value === this.$t('curriculumVitae:selectLabel:Other')
},
ReadingStandard_isOther() {
if (
@@ -702,7 +845,7 @@ export default {
...this.dictionaryList.CriterionType,
{
Id: this.otherId,
Value: 'Other',
Value: this.$t('curriculumVitae:selectLabel:Other'),
},
]
},
@@ -764,6 +907,9 @@ export default {
console.log(validate, 'validate')
if (!validate) return false
this.form.DoctorId = this.reviewerId
if (this.trialId) {
this.form.TrialId = this.trialId
}
this.loading = true
let res = await addOrUpdateTrialExperience(this.form)
this.loading = false
@@ -788,6 +934,9 @@ export default {
let validate = await this.$refs.otherAboutFrom.validate()
if (!validate) return false
this.otherForm.DoctorId = this.reviewerId
if (this.trialId) {
this.otherForm.TrialId = this.trialId
}
this.loading = true
let res = await updateOtherExperience(this.otherForm)
this.loading = false
@@ -914,7 +1063,7 @@ export default {
}
},
handleExceed(files, fileList) {
this.$message.warning(`Upload is currently limited to 1 file`)
this.$message.warning(this.$t('upload:rule:maxFile1'))
},
initFileList() {
if (!this.reviewerId) return
@@ -976,6 +1125,7 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.message {
margin: auto;
@@ -983,6 +1133,7 @@ export default {
background-color: #eee;
padding: 10px;
line-height: 30px;
word-wrap: break-word;
border-radius: 5px;
}
}
@@ -22,7 +22,7 @@
:label="$t('curriculumVitae:continuingTraining:table:time')"
>
<template slot-scope="scope">
<span>{{ scope.row.BeginDateStr }}-{{ scope.row.EndDateStr }}</span>
<span>{{ scope.row.BeginDateStr }} ~ {{ scope.row.EndDateStr }}</span>
</template>
</el-table-column>
<el-table-column
@@ -93,9 +93,9 @@
<el-date-picker
clearable
v-model="daterange"
type="daterange"
type="monthrange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
format="yyyy-MM"
:range-separator="$t('curriculumVitae:daterange:rangeSeparator')"
:start-placeholder="$t('curriculumVitae:daterange:startTime')"
:end-placeholder="$t('curriculumVitae:daterange:endTime')"
@@ -119,24 +119,29 @@
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:direction')"
prop="Major"
v-if="isEN"
>
<el-input
style="width: 97%"
v-model="form.Major"
type="textarea"
:rows="2"
:maxlength="4000"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:directionEN')
"
></el-input>
</el-form-item>
<el-form-item prop="MajorCN">
<el-form-item
prop="MajorCN"
:label="$t('curriculumVitae:continuingTraining:form:direction')"
v-else
>
<el-input
style="width: 97%"
type="textarea"
:rows="2"
v-model="form.MajorCN"
:maxlength="4000"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:direction')
@@ -145,106 +150,116 @@
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:hospital')"
prop="HospitalId"
prop="Hospital"
v-if="isEN"
>
<el-select v-model="form.HospitalId" filterable placeholder="">
<el-option
v-for="(item, index) in hospitalList"
:key="index"
:label="item.HospitalName"
:value="item.Id"
>
<span>
{{ item.HospitalName }}
</span>
</el-option>
</el-select>
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="form.Hospital"
:fetch-suggestions="querySearch"
placeholder=""
></el-autocomplete>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:hospital')"
prop="Hospital"
v-else
>
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="form.HospitalCN"
:fetch-suggestions="querySearch"
placeholder=""
></el-autocomplete>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:school')"
prop="School"
v-if="isEN"
>
<el-input
v-model="form.School"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:schoolEN')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
prop="SchoolCN"
:label="$t('curriculumVitae:continuingTraining:form:school')"
v-else
>
<el-input
v-model="form.SchoolCN"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:school')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:city')"
prop="City"
v-if="isEN"
>
<el-input
v-model="form.City"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:City')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
prop="CityCN"
:label="$t('curriculumVitae:continuingTraining:form:city')"
v-else
>
<el-input
v-model="form.CityCN"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:CityCN')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:Country')"
prop="Country"
v-if="isEN"
>
<el-input
v-model="form.Country"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:Country')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
prop="CountryCN"
:label="$t('curriculumVitae:continuingTraining:form:Country')"
v-else
>
<el-input
v-model="form.CountryCN"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:CountryCN')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:school')"
prop="School"
>
<el-input
v-model="form.School"
clearable
:placeholder="
$t(
'curriculumVitae:continuingTraining:placeholder:schoolEN'
)
"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="SchoolCN" label-width="10px">
<el-input
v-model="form.SchoolCN"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:school')
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:city')"
prop="City"
>
<el-input
v-model="form.City"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:City')
"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="CityCN" label-width="10px">
<el-input
v-model="form.CityCN"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:CityCN')
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="$t('curriculumVitae:continuingTraining:form:Country')"
prop="Country"
>
<el-input
v-model="form.Country"
clearable
:placeholder="
$t('curriculumVitae:continuingTraining:placeholder:Country')
"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="CountryCN" label-width="10px">
<el-input
v-model="form.CountryCN"
clearable
:placeholder="
$t(
'curriculumVitae:continuingTraining:placeholder:CountryCN'
)
"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</template>
<template slot="dialog-footer">
@@ -279,6 +294,8 @@ const defaultForm = () => {
Major: '',
MajorCN: '',
HospitalId: null,
HospitalCN: null,
Hospital: null,
School: '',
SchoolCN: '',
City: '',
@@ -321,67 +338,100 @@ export default {
BeginDate: [
{
required: true,
message: 'Please select a start date',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
EndDate: [
{
required: true,
message: 'Please select a valid date',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
Training: [
{
required: true,
message: 'Please select degree',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
Major: [
{
required: true,
message: 'Please enter the major',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
],
MajorCN: [
{
required: true,
message: 'Please enter the major',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
],
City: [
{ required: true, message: 'Please enter the city', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
CityCN: [
{ required: true, message: 'Please enter the city', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Country: [
{
required: true,
message: 'Please enter the country',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
],
CountryCN: [
{
required: true,
message: 'Please enter the country',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
],
},
loading: false,
daterange: [],
hospitalSelectList: [],
}
},
computed: {
@@ -390,7 +440,55 @@ export default {
mounted() {
store.dispatch('global/getHospital')
},
watch: {
hospitalList: {
handler() {
if (!Array.isArray(this.hospitalList) || this.hospitalList.length <= 0)
return false
this.hospitalSelectList = []
this.hospitalList.forEach((item) => {
if (this.isEN) {
this.hospitalSelectList.push({
value: item.HospitalName,
...item,
})
} else {
this.hospitalSelectList.push({
value: item.HospitalNameCN,
...item,
})
}
})
},
deep: true,
},
},
methods: {
querySearch(queryString, cb) {
var hospitalList = this.hospitalSelectList
var results = queryString
? hospitalList.filter(this.createFilter(queryString))
: hospitalList
// callback
cb(results)
},
createFilter(queryString) {
return (hospitalList) => {
if (this.isEN) {
return (
hospitalList.HospitalName.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
} else {
return (
hospitalList.HospitalNameCN.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
}
}
},
openEdit(row) {
this.form = defaultForm()
this.daterange = []
@@ -422,6 +520,11 @@ export default {
if (this.reviewerId) {
this.form.DoctorId = this.reviewerId
}
let data = Object.assign({}, this.form)
if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) {
data.Hospital = data.HospitalId
data.HospitalId = null
}
this.loading = true
let res = await addOrUpdatePostgraduateInfo(this.form)
this.loading = false
@@ -472,10 +575,11 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
}
.el-select,
.el-date-editor {
width: 97%;
width: 100%;
}
</style>
@@ -22,7 +22,7 @@
:label="$t('curriculumVitae:EducationalExperience:table:time')"
>
<template slot-scope="scope">
<span>{{ scope.row.BeginDateStr }}-{{ scope.row.EndDateStr }}</span>
<span>{{ scope.row.BeginDateStr }} ~ {{ scope.row.EndDateStr }}</span>
</template>
</el-table-column>
<el-table-column
@@ -101,9 +101,9 @@
<el-date-picker
clearable
v-model="daterange"
type="daterange"
type="monthrange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
format="yyyy-MM"
:range-separator="$t('curriculumVitae:daterange:rangeSeparator')"
:start-placeholder="$t('curriculumVitae:daterange:startTime')"
:end-placeholder="$t('curriculumVitae:daterange:endTime')"
@@ -112,40 +112,36 @@
</el-date-picker>
</el-form-item>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="
$t('curriculumVitae:EducationalExperience:form:specialy')
"
prop="Major"
>
<el-input
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:specialyEN'
)
"
v-model="form.Major"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="MajorCN" label-width="10px">
<el-input
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:specialy'
)
"
v-model="form.MajorCN"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:specialy')"
prop="Major"
v-if="isEN"
>
<el-input
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:specialyEN'
)
"
v-model="form.Major"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:specialy')"
prop="MajorCN"
v-else
>
<el-input
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:specialy')
"
v-model="form.MajorCN"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:degree')"
@@ -161,99 +157,92 @@
</el-select>
</el-form-item>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:school')"
prop="Organization"
>
<el-input
v-model="form.Organization"
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:schoolEN'
)
"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item label-width="10px" prop="OrganizationCN">
<el-input
v-model="form.OrganizationCN"
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:school'
)
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:city')"
prop="City"
>
<el-input
v-model="form.City"
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:City')
"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="CityCN" label-width="10px">
<el-input
v-model="form.CityCN"
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:CityCN'
)
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12" style="margin-right: 5px">
<el-form-item
:label="
$t('curriculumVitae:EducationalExperience:form:Country')
"
prop="Country"
>
<el-input
v-model="form.Country"
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:Country'
)
"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="CountryCN" label-width="10px">
<el-input
v-model="form.CountryCN"
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:CountryCN'
)
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:school')"
prop="Organization"
v-if="isEN"
>
<el-input
v-model="form.Organization"
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:schoolEN')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:school')"
prop="OrganizationCN"
v-else
>
<el-input
v-model="form.OrganizationCN"
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:school')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:city')"
prop="City"
v-if="isEN"
>
<el-input
v-model="form.City"
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:City')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:city')"
prop="CityCN"
v-else
>
<el-input
v-model="form.CityCN"
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:CityCN')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:EducationalExperience:form:Country')"
prop="Country"
v-if="isEN"
>
<el-input
v-model="form.Country"
clearable
:placeholder="
$t('curriculumVitae:EducationalExperience:placeholder:Country')
"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
prop="CountryCN"
:label="$t('curriculumVitae:EducationalExperience:form:Country')"
v-else
>
<el-input
v-model="form.CountryCN"
clearable
:placeholder="
$t(
'curriculumVitae:EducationalExperience:placeholder:CountryCN'
)
"
:maxlength="400"
></el-input>
</el-form-item>
</el-form>
</template>
<template slot="dialog-footer">
@@ -324,79 +313,111 @@ export default {
BeginDate: [
{
required: true,
message: 'Please select a start date',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
EndDate: [
{
required: true,
message: 'Please select a valid date',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
Degree: [
{
required: true,
message: 'Please enter the degree',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
],
Major: [
{
required: true,
message: 'Please enter the major',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
],
MajorCN: [
{
required: true,
message: 'Please enter the major',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
],
Organization: [
{
required: true,
message: 'Please enter the institution',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
],
OrganizationCN: [
{
required: true,
message: 'Please enter the institution',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 100, message: 'The maximum length is 100' },
],
City: [
{ required: true, message: 'Please enter the city', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{ required: true, message:this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
CityCN: [
{ required: true, message: 'Please enter the city', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Country: [
{
required: true,
message: 'Please enter the country',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
],
CountryCN: [
{
required: true,
message: 'Please enter the country',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
],
},
loading: false,
@@ -485,10 +506,11 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
}
.el-select,
.el-date-editor {
width: 97%;
width: 100%;
}
</style>
@@ -71,8 +71,6 @@
</template>
<script>
import {
getAuditState,
updateAuditResume,
getVacationList,
addOrUpdateVacation,
deleteVacation,
@@ -109,11 +107,10 @@ export default {
},
methods: {
closeDialog() {
console.log(111111111)
this.$emit('update:visible', false)
},
handleAddHoliday() {
if (this.daterange) {
if (this.daterange && this.daterange.length > 0) {
const param = {
DoctorId: this.reviewerId,
StartDate: this.daterange[0],
@@ -5,7 +5,9 @@
</el-button>
<template v-if="DATA.FirstName && DATA.LastName">
<div class="userInfo">
<span>{{ DATA.FirstName }}{{ DATA.LastName }}</span>
<span>{{
isEN ? DATA.LastName + ' / ' + DATA.FirstName : DATA.ChineseName
}}</span>
<span>{{ $fd('Sex', DATA.Sex) }}</span>
<span v-if="isEN">
{{
@@ -32,17 +34,14 @@
<span v-if="isEN">{{ DATA.Department }}</span>
<span v-else>{{ DATA.DepartmentCN }}</span>
</span>
<span class="el-icon-first-aid-kit" v-else>
<span v-if="isEN">{{ DATA.DepartmentOther }}</span>
<span v-else>{{ DATA.DepartmentOtherCN }}</span>
</span>
<span class="el-icon-user" v-if="DATA.Rank || DATA.RankCN">
<span v-if="isEN">{{ DATA.Rank }}</span>
<span v-else>{{ DATA.RankCN }}</span>
</span>
<span
class="el-icon-medal"
v-if="DATA.WorkPartTimeEn || DATA.WorkPartTime"
>
<span v-if="isEN">{{ DATA.WorkPartTimeEn }}</span>
<span v-else>{{ DATA.WorkPartTime }}</span>
</span>
</div>
<div class="userTel">
<span class="el-icon-phone-outline">
@@ -53,6 +52,20 @@
DATA.WeChat
}}</span>
</div>
<div style="display: flex; font-size: 14px">
<span style="display: inline-block; width: 70px; color: #606266">{{
$t('curriculumVitae:info:meessage:partTimeJob')
}}</span>
<span
class="break-word"
style="
white-space: pre-wrap;
width: calc(100% - 80px);
word-wrap: break-word;
"
v-html="isEN ? DATA.WorkPartTimeEn : DATA.WorkPartTime"
></span>
</div>
</template>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<base-model :config="model_cfg">
@@ -62,7 +75,7 @@
v-loading="loading"
:model="form"
:rules="rules"
label-width="80px"
label-width="100px"
size="small"
>
<div class="form_title">
@@ -74,7 +87,11 @@
:label="$t('curriculumVitae:info:form:surname')"
prop="FirstName"
>
<el-input v-model="form.FirstName" clearable></el-input>
<el-input
v-model="form.FirstName"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -82,17 +99,25 @@
:label="$t('curriculumVitae:info:form:name')"
prop="LastName"
>
<el-input v-model="form.LastName" clearable></el-input>
<el-input
v-model="form.LastName"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-col :span="12" v-if="!isEN">
<el-form-item
:label="$t('curriculumVitae:info:form:userNameCN')"
prop="ChineseName"
>
<el-input v-model="form.ChineseName" clearable></el-input>
<el-input
v-model="form.ChineseName"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -132,7 +157,11 @@
:label="$t('curriculumVitae:info:form:phone')"
prop="Phone"
>
<el-input v-model="form.Phone" clearable></el-input>
<el-input
v-model="form.Phone"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
</el-row>
@@ -150,7 +179,11 @@
:label="$t('curriculumVitae:info:form:wechat')"
prop="WeChat"
>
<el-input v-model="form.WeChat" clearable></el-input>
<el-input
v-model="form.WeChat"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
</el-row>
@@ -176,39 +209,70 @@
</div>
<el-form-item
:label="$t('curriculumVitae:info:form:hospital')"
prop="HospitalId"
prop="HospitalName"
v-if="isEN"
>
<el-select
v-model="form.HospitalId"
filterable
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="form.HospitalName"
:fetch-suggestions="querySearch"
@select="handleSelect"
placeholder=""
@change="handleHospitalChange"
>
<el-option
v-for="(item, index) in hospitalList"
:key="index"
:label="item.HospitalName"
:value="item.Id"
>
<span>
{{ item.HospitalName }}
</span>
</el-option>
</el-select>
@change="handleChange"
></el-autocomplete>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:info:form:hospital')"
prop="HospitalNameCN"
v-else
>
<el-autocomplete
clearable
class="inline-input"
style="width: 100%"
v-model="form.HospitalNameCN"
:fetch-suggestions="querySearch"
@select="handleSelect"
placeholder=""
@change="handleChange"
></el-autocomplete>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:info:form:AffiliatedUniversity')"
prop="UniversityAffiliated"
v-if="isEN"
>
<el-input
disabled
v-model="form.UniversityAffiliated"
type="textarea"
autosize
size="small"
:maxlength="4000"
/>
</el-form-item>
<el-form-item :label="$t('curriculumVitae:info:form:City')">
<el-input disabled v-model="form.City" size="small" />
<el-form-item
:label="$t('curriculumVitae:info:form:AffiliatedUniversity')"
prop="UniversityAffiliated"
v-else
>
<el-input
v-model="form.UniversityAffiliatedCN"
type="textarea"
autosize
size="small"
:maxlength="4000"
/>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:info:form:City')"
v-if="isEN"
>
<el-input v-model="form.City" size="small" />
</el-form-item>
<el-form-item :label="$t('curriculumVitae:info:form:City')" v-else>
<el-input v-model="form.CityCN" size="small" />
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:info:form:department')"
@@ -221,11 +285,14 @@
:label="item.Value"
:value="item.Id"
/>
<el-option label="Other" :value="otherId" />
<el-option
:label="$t('curriculumVitae:selectLabel:Other')"
:value="otherId"
/>
</el-select>
</el-form-item>
<el-form-item
v-if="form.DepartmentId === otherId"
v-if="form.DepartmentId === otherId && isEN"
class="other-item"
prop="DepartmentOther"
>
@@ -235,10 +302,11 @@
$t('curriculumVitae:info:form:placeholder:DepartmentOther')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
v-if="form.DepartmentId === otherId"
v-if="form.DepartmentId === otherId && !isEN"
class="other-item"
prop="DepartmentOtherCN"
>
@@ -248,6 +316,7 @@
$t('curriculumVitae:info:form:placeholder:DepartmentOtherCN')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
@@ -265,8 +334,8 @@
</el-form-item>
<el-form-item
v-if="
$fd('Rank', form.RankId, 'id') === '其它' ||
$fd('Rank', form.RankId, 'id') === 'Other'
$fd('Rank', form.RankId, 'id') ===
$t('curriculumVitae:selectLabel:Other') && isEN
"
class="other-item"
prop="RankOther"
@@ -277,12 +346,13 @@
$t('curriculumVitae:info:form:placeholder:RankOther')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
v-if="
$fd('Rank', form.RankId, 'id') === '其它' ||
$fd('Rank', form.RankId, 'id') === 'Other'
$fd('Rank', form.RankId, 'id') ===
$t('curriculumVitae:selectLabel:Other') && !isEN
"
class="other-item"
prop="RankOtherCN"
@@ -293,11 +363,13 @@
$t('curriculumVitae:info:form:placeholder:RankOtherCN')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:info:form:partTimeJob')"
prop="WorkPartTime"
v-if="!isEN"
>
<el-input
:placeholder="
@@ -305,18 +377,24 @@
"
v-model="form.WorkPartTime"
type="textarea"
:rows="2"
:rows="10"
clearable
:maxlength="4000"
></el-input>
</el-form-item>
<el-form-item prop="WorkPartTimeEn">
<el-form-item
:label="$t('curriculumVitae:info:form:partTimeJob')"
prop="WorkPartTimeEn"
v-else
>
<el-input
:placeholder="
$t('curriculumVitae:info:form:placeholder:partTimeJobEN')
"
v-model="form.WorkPartTimeEn"
type="textarea"
:rows="2"
:rows="10"
:maxlength="4000"
clearable
></el-input>
</el-form-item>
@@ -363,10 +441,14 @@ const defaultForm = () => {
RankOther: '',
RankOtherCN: '',
HospitalId: '',
HospitalName: null,
HospitalNameCN: null,
WorkPartTime: null,
WorkPartTimeEn: null,
UniversityAffiliated: null,
UniversityAffiliatedCN: null,
City: null,
CityCN: null,
}
}
export default {
@@ -396,33 +478,61 @@ export default {
showClose: true,
width: '800px',
title: this.$t('curriculumVitae:info:form:title'),
appendToBody: false,
appendToBody: true,
top: '8vh',
bodyStyle: `min-height: 100px; max-height: 650px;overflow-y: auto;padding: 10px;border: 1px solid #e0e0e0;`,
},
form: defaultForm(),
rules: {
FirstName: [
{
required: true,
message: 'Please enter FirstName',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
{ max: 50, message: 'The maximum length is 50' },
],
LastName: [
{ required: true, message: 'Please enter LastName', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ChineseName: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ChineseName: [{ max: 50, message: 'The maximum length is 50' }],
Sex: [
{ required: true, message: 'Please select gender', trigger: 'blur' },
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
TitleIds: [
{ required: true, message: 'Please select Title', trigger: 'blur' },
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
Phone: [
{
required: true,
message: 'Please enter phone number',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{ max: 20, min: 7, message: 'The length is 7 to 20' },
@@ -430,51 +540,124 @@ export default {
EMail: [
{
required: true,
message: 'Please input the email address',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
type: 'email',
message: 'Please input the correct email address',
message: this.$t('rules:email'),
trigger: 'blur,change',
},
{ max: 50, message: 'The maximum length is 50' },
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
WeChat: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
WeChat: [{ max: 50, message: 'The maximum length is 50' }],
Nation: [
{
required: true,
message: 'Please select the Nation',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
DepartmentId: [
{
required: true,
message: 'Please select department',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
DepartmentOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
DepartmentOtherCN: [{ max: 50, message: 'The maximum length is 50' }],
RankId: [
{ required: true, message: 'Please select rank', trigger: 'blur' },
],
RankOther: [
{ required: true, message: 'Please select rank', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
RankOtherCN: [
{ required: true, message: 'Please select rank', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
],
HospitalId: [
{
required: true,
message: 'Please select hospital',
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
,
],
DepartmentOtherCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
RankId: [
{
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
RankOther: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
RankOtherCN: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
HospitalName: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: ['blur', 'change'],
},
],
HospitalNameCN: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: ['blur', 'change'],
},
],
UniversityAffiliated: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
WorkPartTime: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
WorkPartTimeEn: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
@@ -482,16 +665,72 @@ export default {
loading: false,
dictionaryList: {},
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
hospitalSelectList: [],
}
},
computed: {
...mapGetters(['hospitalList']),
},
watch: {
hospitalList: {
handler() {
if (!Array.isArray(this.hospitalList) || this.hospitalList.length <= 0)
return false
this.hospitalSelectList = []
this.hospitalList.forEach((item) => {
if (this.isEN) {
this.hospitalSelectList.push({
value: item.HospitalName,
...item,
})
} else {
this.hospitalSelectList.push({
value: item.HospitalNameCN,
...item,
})
}
})
},
deep: true,
},
},
mounted() {
this.getDicData()
store.dispatch('global/getHospital')
},
methods: {
handleChange(v) {
if (v) return
this.form.UniversityAffiliated = null
this.form.City = null
this.form.UniversityAffiliatedCN = null
this.form.CityCN = null
},
querySearch(queryString, cb) {
var hospitalList = this.hospitalSelectList
var results = queryString
? hospitalList.filter(this.createFilter(queryString))
: hospitalList
// callback
cb(results)
},
createFilter(queryString) {
return (hospitalList) => {
if (this.isEN) {
return (
hospitalList.HospitalName.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
} else {
return (
hospitalList.HospitalNameCN.toLowerCase().indexOf(
queryString.toLowerCase()
) >= 0
)
}
}
},
openEdit() {
this.form = defaultForm()
Object.keys(this.form).forEach((key) => {
@@ -500,8 +739,6 @@ export default {
}
})
this.model_cfg.visible = true
console.log(this.form)
console.log(this.DATA)
},
handleCancle() {
this.form = defaultForm()
@@ -514,8 +751,14 @@ export default {
if (this.reviewerId) {
this.form.Id = this.reviewerId
}
// console.log(this.form)
let data = Object.assign({}, this.form)
// if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) {
// data.HospitalName = data.HospitalId
// data.HospitalId = null
// }
this.loading = true
let res = await addOrUpdateDoctorBasicInfoAndEmployment(this.form)
let res = await addOrUpdateDoctorBasicInfoAndEmployment(data)
this.loading = false
if (res.IsSuccess) {
this.$emit('update:reviewerId', res.Result.Id)
@@ -535,11 +778,18 @@ export default {
})
.catch(() => {})
},
handleHospitalChange(value) {
const item = this.hospitalList.filter((item) => item.Id === value)
if (item.length) {
this.form.UniversityAffiliated = item[0].UniversityAffiliated
this.form.City = item[0].City
handleSelect(value) {
const item = value
if (item) {
this.form.UniversityAffiliated = item.UniversityAffiliated
this.form.City = item.City
this.form.UniversityAffiliatedCN = item.UniversityAffiliatedCN
this.form.CityCN = item.CityCN
} else {
this.form.UniversityAffiliated = null
this.form.City = null
this.form.UniversityAffiliatedCN = null
this.form.CityCN = null
}
},
},
@@ -12,8 +12,10 @@
</el-button>
</div>
<div class="message" v-if="DATA.AwardsHonors || DATA.AwardsHonorsCN">
<span v-if="isEN">{{ DATA.AwardsHonors }}</span>
<span v-else>{{ DATA.AwardsHonorsCN }}</span>
<span
style="white-space: pre-wrap"
v-html="isEN ? DATA.AwardsHonors : DATA.AwardsHonorsCN"
></span>
</div>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<base-model :config="model_cfg">
@@ -23,29 +25,36 @@
v-loading="loading"
:model="form"
:rules="rules"
label-width="80px"
label-width="100px"
size="small"
>
<el-form-item
:label="$t('curriculumVitae:other:form:AH')"
prop="AwardsHonors"
v-if="isEN"
>
<el-input
clearable
v-model="form.AwardsHonors"
style="margin-bottom: 10px"
type="textarea"
:rows="2"
:rows="10"
:maxlength="4000"
:placeholder="$t('curriculumVitae:other:placeholder:AHEN')"
></el-input>
</el-form-item>
<el-form-item prop="AwardsHonorsCN">
<el-form-item
prop="AwardsHonorsCN"
:label="$t('curriculumVitae:other:form:AH')"
v-else
>
<el-input
clearable
v-model="form.AwardsHonorsCN"
style="margin-bottom: 10px"
type="textarea"
:rows="2"
:rows="10"
:maxlength="4000"
:placeholder="$t('curriculumVitae:other:placeholder:AH')"
></el-input>
</el-form-item>
@@ -102,12 +111,27 @@ export default {
model_cfg: {
visible: false,
showClose: true,
width: '600px',
width: '800px',
title: this.$t('curriculumVitae:scientificResearchProject:form:title'),
appendToBody: true,
},
form: defaultForm(),
rules: {},
rules: {
AwardsHonors: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
AwardsHonorsCN: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
loading: false,
}
},
@@ -155,6 +179,7 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.message {
margin: auto;
@@ -163,6 +188,7 @@ export default {
padding: 10px;
line-height: 30px;
border-radius: 5px;
word-wrap: break-word;
}
}
.el-select,
@@ -66,6 +66,7 @@
clearable
placeholder=""
v-model="form.BankNum"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -77,6 +78,7 @@
clearable
placeholder=""
v-model="form.BankName"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -88,6 +90,7 @@
clearable
placeholder=""
v-model="form.OpeningBank"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
@@ -95,7 +98,12 @@
:label="$t('curriculumVitae:pay:form:idCard')"
prop="IdCard"
>
<el-input clearable placeholder="" v-model="form.IdCard"></el-input>
<el-input
clearable
placeholder=""
v-model="form.IdCard"
:maxlength="400"
></el-input>
</el-form-item>
<el-form-item
style="width: 45%"
@@ -106,6 +114,7 @@
clearable
placeholder=""
v-model="form.BankPhoneNum"
:maxlength="400"
></el-input>
</el-form-item>
</el-form>
@@ -168,7 +177,76 @@ export default {
appendToBody: true,
},
form: defaultForm(),
rules: {},
rules: {
BankNum: [
{
validator: (rule, value, callback) => {
let reg = new RegExp(/^[A-Za-z0-9]+$/, 'ig')
if (value && !reg.test(value)) {
callback(new Error(this.$t('common:ruleMessage:pattern')))
} else {
callback()
}
},
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BankName: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
OpeningBank: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
IdCard: [
{
validator: (rule, value, callback) => {
let reg = new RegExp(/(^\d{15}$)|(^\d{17}([0-9]|X)$)/, 'ig')
if (value && !reg.test(value)) {
callback(new Error(this.$t('common:ruleMessage:pattern')))
} else {
callback()
}
},
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BankPhoneNum: [
{
validator: (rule, value, callback) => {
let reg = new RegExp(/^\d{11}$/, 'i')
if (value && !reg.test(value)) {
callback(new Error(this.$t('common:ruleMessage:pattern')))
} else {
callback()
}
},
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
loading: false,
}
},
@@ -216,6 +294,7 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.message {
margin: auto;
@@ -225,5 +304,8 @@ export default {
line-height: 30px;
border-radius: 5px;
}
::v-deep .el-form-item__label {
color: #000;
}
}
</style>
@@ -16,22 +16,44 @@
v-if="DATA.Research || DATA.ResearchCN || DATA.Grants || DATA.GrantsCN"
>
<el-form class="demo-form-inline">
<el-form-item
<!-- <el-form-item
:label="$t('curriculumVitae:scientificResearchProject:direction')"
>
<div>
<span v-if="isEN">{{ DATA.Research }}</span>
<span v-else>{{ DATA.ResearchCN }}</span>
</div>
</el-form-item>
<el-form-item
</el-form-item> -->
<div style="display: flex; font-size: 14px">
<span style="display: inline-block; width: 80px; color: #606266">{{
$t('curriculumVitae:scientificResearchProject:direction')
}}</span>
<span
class="break-word"
style="white-space: pre-wrap; width: calc(100% - 80px)"
v-html="isEN ? DATA.Research : DATA.ResearchCN"
></span>
</div>
<!-- <el-form-item
:label="$t('curriculumVitae:scientificResearchProject:subject')"
>
<div>
<span v-if="isEN">{{ DATA.Grants }}</span>
<span v-else>{{ DATA.GrantsCN }}</span>
<span
style="white-space: pre-wrap"
v-html="isEN ? DATA.Grants : DATA.GrantsCN"
></span>
</div>
</el-form-item>
</el-form-item> -->
<div style="display: flex; font-size: 14px">
<span style="display: inline-block; width: 80px; color: #606266">{{
$t('curriculumVitae:scientificResearchProject:subject')
}}</span>
<span
class="break-word"
style="white-space: pre-wrap; width: calc(100% - 80px)"
v-html="isEN ? DATA.Grants : DATA.GrantsCN"
></span>
</div>
</el-form>
</div>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
@@ -50,6 +72,7 @@
$t('curriculumVitae:scientificResearchProject:form:direction')
"
prop="Research"
v-if="isEN"
>
<el-input
clearable
@@ -60,9 +83,18 @@
'curriculumVitae:scientificResearchProject:placeholder:directionEN'
)
"
type="textarea"
:rows="2"
:maxlength="4000"
></el-input>
</el-form-item>
<el-form-item prop="ResearchCN">
<el-form-item
prop="ResearchCN"
:label="
$t('curriculumVitae:scientificResearchProject:form:direction')
"
v-else
>
<el-input
v-model="form.ResearchCN"
clearable
@@ -71,6 +103,9 @@
'curriculumVitae:scientificResearchProject:placeholder:direction'
)
"
type="textarea"
:rows="2"
:maxlength="4000"
></el-input>
</el-form-item>
<el-form-item
@@ -78,13 +113,15 @@
$t('curriculumVitae:scientificResearchProject:form:subject')
"
prop="Grants"
v-if="isEN"
>
<el-input
v-model="form.Grants"
clearable
style="margin-bottom: 10px"
type="textarea"
:rows="2"
:rows="5"
:maxlength="4000"
:placeholder="
$t(
'curriculumVitae:scientificResearchProject:placeholder:subjectEN'
@@ -92,12 +129,19 @@
"
></el-input>
</el-form-item>
<el-form-item prop="GrantsCN">
<el-form-item
prop="GrantsCN"
:label="
$t('curriculumVitae:scientificResearchProject:form:subject')
"
v-else
>
<el-input
clearable
v-model="form.GrantsCN"
type="textarea"
:rows="2"
:rows="5"
:maxlength="4000"
:placeholder="
$t(
'curriculumVitae:scientificResearchProject:placeholder:subject'
@@ -165,7 +209,36 @@ export default {
appendToBody: true,
},
form: defaultForm(),
rules: {},
rules: {
Research: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
ResearchCN: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
Grants: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
GrantsCN: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
loading: false,
}
},
@@ -213,6 +286,7 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.message {
margin: auto;
@@ -221,6 +295,7 @@ export default {
padding: 10px;
line-height: 30px;
border-radius: 5px;
word-wrap: break-word;
}
}
.el-select,
@@ -0,0 +1,422 @@
<template>
<div class="setting">
<div class="title">
<span>{{ $t('curriculumVitae:setting:title') }}</span>
<el-button
type="text"
class="editBtn"
:disabled="!reviewerId"
@click.stop="openEdit"
>
{{ $t('common:button:edit') }}
</el-button>
</div>
<div class="message">
<el-form :inline="true" class="demo-form-inline">
<el-form-item
:label="$t('system:Setting:label:Blind Name')"
style="width: 45%"
>
{{ DATA.BlindName }}
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Blind NameCN')"
style="width: 45%"
>
{{ DATA.BlindNameCN }}
</el-form-item>
<div style="display: flex; font-size: 14px; margin-bottom: 22px">
<span style="display: inline-block; width: 120px; color: #000">{{
$t('system:Setting:label:Blind Publications')
}}</span>
<span
class="break-word"
style="white-space: pre-wrap; width: calc(100% - 120px)"
v-html="DATA.BlindPublications"
></span>
</div>
<el-form-item
:label="$t('system:Setting:label:Information Confirmed?')"
style="width: 24%"
>
{{
DATA.ReviewStatus === 1
? $t('system:Setting:label:Information Confirmed?:Yes')
: $t('system:Setting:label:Information Confirmed?:No')
}}
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Contractor Status?')"
style="width: 24%"
>
{{
DATA.CooperateStatus === 1
? $t('system:Setting:label:Information Confirmed?:Yes')
: $t('system:Setting:label:Information Confirmed?:No')
}}
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Accepting New Trials?')"
style="width: 24%"
>
{{
DATA.AcceptingNewTrial
? $t('system:Setting:label:Information Confirmed?:Yes')
: $t('system:Setting:label:Information Confirmed?:No')
}}
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Actively Reading?')"
style="width: 24%"
>
{{
DATA.ActivelyReading
? $t('system:Setting:label:Information Confirmed?:Yes')
: $t('system:Setting:label:Information Confirmed?:No')
}}
</el-form-item>
<div style="display: flex; font-size: 14px; margin-bottom: 22px">
<span style="display: inline-block; width: 80px; color: #000">{{
$t('system:Setting:label:Comment:')
}}</span>
<span
class="break-word"
style="white-space: pre-wrap; width: calc(100% - 80px)"
v-html="DATA.AdminComment"
></span>
</div>
</el-form>
</div>
<el-dialog
:title="$t('system:Setting:title:Blinded Setting')"
:visible.sync="visible"
width="50%"
:close-on-click-modal="false"
v-dialogDrag
:before-close="closeDialog"
top="8vh"
append-to-body
>
<div class="base-modal-body">
<el-form
ref="settingFrom"
v-loading="loading"
:model="form"
:rules="rules"
label-width="120px"
size="small"
>
<div class="form_title">
{{ $t('system:Setting:title:Blinded information') }}
</div>
<el-row>
<el-col :span="12">
<el-form-item
:label="$t('system:Setting:label:Blind Name')"
prop="BlindName"
>
<el-input
v-model="form.BlindName"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
:label="$t('system:Setting:label:Blind NameCN')"
prop="BlindNameCN"
>
<el-input
v-model="form.BlindNameCN"
clearable
:maxlength="400"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item
:label="$t('system:Setting:label:Blind Publications')"
prop="BlindPublications"
>
<el-input
v-model="form.BlindPublications"
type="textarea"
rows="8"
size="small"
:maxlength="4000"
/>
</el-form-item>
<div class="form_title">
{{ $t('system:Setting:title:Blinded Setting') }}
</div>
<el-form-item
:label="$t('system:Setting:label:Information Confirmed?')"
>
<el-radio-group v-model="form.ReviewStatus" @change="handleChange">
<el-radio :label="1">{{
$t('system:Setting:label:Information Confirmed?:Yes')
}}</el-radio>
<el-radio :label="2">{{
$t('system:Setting:label:Information Confirmed?:No')
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('system:Setting:label:Contractor Status?')">
<el-radio-group
v-model="form.CooperateStatus"
@change="handleChange"
>
<el-radio :label="1">{{
$t('system:Setting:label:Information Confirmed?:Yes')
}}</el-radio>
<el-radio :label="2">{{
$t('system:Setting:label:Information Confirmed?:No')
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Accepting New Trials?')"
>
<el-radio-group
v-model="form.AcceptingNewTrial"
:disabled="radioDisabled"
>
<el-radio :label="true">{{
$t('system:Setting:label:Information Confirmed?:Yes')
}}</el-radio>
<el-radio :label="false">{{
$t('system:Setting:label:Information Confirmed?:No')
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('system:Setting:label:Actively Reading?')">
<el-radio-group
v-model="form.ActivelyReading"
:disabled="radioDisabled"
>
<el-radio :label="true">{{
$t('system:Setting:label:Information Confirmed?:Yes')
}}</el-radio>
<el-radio :label="false">{{
$t('system:Setting:label:Information Confirmed?:No')
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label="$t('system:Setting:label:Comment:')"
prop="AdminComment"
>
<el-input
v-model="form.AdminComment"
type="textarea"
rows="8"
:maxlength="4000"
/>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="closeDialog">
{{ $t('common:button:cancel') }}
</el-button>
<el-button
size="small"
type="primary"
@click="handleSave"
:loading="loading"
>
{{ $t('common:button:save') }}
</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { getAuditState, updateAuditResume } from '@/api/reviewers'
const defaultForm = () => {
return {
CooperateStatus: 2,
ResumeStatus: 2,
ReviewStatus: 2,
AcceptingNewTrial: false,
ActivelyReading: false,
IsVirtual: false,
BlindName: '',
AdminComment: '',
InHoliday: '',
BlindNameCN: '',
BlindPublications: '',
}
}
export default {
name: 'setting',
props: {
reviewerId: {
type: String,
default: '',
},
},
data() {
return {
DATA: defaultForm(),
form: defaultForm(),
loading: false,
rules: {
AdminComment: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
BlindName: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BlindNameCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
BlindPublications: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
radioDisabled: false,
visible: false,
}
},
created() {
// this.getData()
this.handleChange()
},
watch: {
reviewerId() {
if (this.reviewerId) {
this.getData()
}
},
},
methods: {
openEdit() {
this.visible = true
},
handleChange() {
if (this.form.ReviewStatus === 2 || this.form.CooperateStatus === 2) {
this.form.ActivelyReading = false
this.form.AcceptingNewTrial = false
this.radioDisabled = true
} else {
this.radioDisabled = false
}
},
closeDialog() {
this.visible = false
},
async handleSave() {
try {
let validate = await this.$refs.settingFrom.validate()
if (!validate) return false
const param = {}
Object.assign(param, this.form)
param.ResumeStatus = param.ReviewStatus
this.loading = true
let res = await updateAuditResume(param)
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.closeDialog()
this.getData()
}
} catch (err) {
this.loading = false
console.log(err)
}
},
async getData() {
try {
let res = await getAuditState(this.reviewerId)
if (res.IsSuccess) {
Object.keys(this.form).forEach((key) => {
this.form[key] = res.Result[key]
})
Object.keys(this.DATA).forEach((key) => {
this.DATA[key] = res.Result[key]
})
if (res.Result.Id) {
this.form.Id = res.Result.Id
}
}
} catch (err) {
console.log(err)
}
},
},
}
</script>
<style lang="scss" scoped>
::v-deep .el-dialog__body {
padding: 10px 10px 10px 10px;
.base-modal-body {
min-height: 100px;
max-height: 650px;
overflow-y: auto;
padding: 10px;
border: 1px solid #e0e0e0;
}
}
::v-deep .el-dialog__footer {
padding: 10px;
}
.form_title {
margin: 10px 0;
display: flex;
align-items: center;
&::after {
margin-left: 20px;
display: block;
content: '';
border-top: 1px solid #eee;
flex: 1;
}
}
.setting {
min-height: 100px;
.title {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.message {
margin: auto;
min-height: 100px;
background-color: #eee;
padding: 10px;
line-height: 30px;
border-radius: 5px;
}
::v-deep .el-form-item__label {
color: #000;
}
}
</style>
@@ -88,11 +88,14 @@
:label="item.Value"
:value="item.Id"
/>
<el-option label="Other" :value="otherId" />
<el-option
:label="$t('curriculumVitae:selectLabel:Other')"
:value="otherId"
/>
</el-select>
</el-form-item>
<el-form-item
v-if="form.SpecialityId == otherId"
v-if="form.SpecialityId == otherId && isEN"
class="other-item"
prop="SpecialityOther"
>
@@ -102,10 +105,11 @@
$t('curriculumVitae:specialty:placeholder:SpecialityOther')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
v-if="form.SpecialityId == otherId"
v-if="form.SpecialityId == otherId && !isEN"
prop="SpecialityOtherCN"
class="other-item"
>
@@ -115,6 +119,7 @@
$t('curriculumVitae:specialty:placeholder:SpecialityOtherCN')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
@@ -138,7 +143,8 @@
<el-form-item
v-if="
form.SubspecialityIds &&
form.SubspecialityIds.indexOf(otherId) > -1
form.SubspecialityIds.indexOf(otherId) > -1 &&
isEN
"
class="other-item"
prop="SubspecialityOther"
@@ -149,12 +155,14 @@
$t('curriculumVitae:specialty:placeholder:SubspecialityOther')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
v-if="
form.SubspecialityIds &&
form.SubspecialityIds.indexOf(otherId) > -1
form.SubspecialityIds.indexOf(otherId) > -1 &&
!isEN
"
class="other-item"
prop="SubspecialityOtherCN"
@@ -165,6 +173,7 @@
$t('curriculumVitae:specialty:placeholder:SubspecialityOtherCN')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
@@ -187,7 +196,9 @@
</el-form-item>
<el-form-item
v-if="
form.ReadingTypeIds && form.ReadingTypeIds.indexOf(otherId) > -1
form.ReadingTypeIds &&
form.ReadingTypeIds.indexOf(otherId) > -1 &&
isEN
"
prop="ReadingTypeOther"
class="other-item"
@@ -198,11 +209,14 @@
$t('curriculumVitae:specialty:placeholder:ReadingTypeOther')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
v-if="
form.ReadingTypeIds && form.ReadingTypeIds.indexOf(otherId) > -1
form.ReadingTypeIds &&
form.ReadingTypeIds.indexOf(otherId) > -1 &&
!isEN
"
prop="ReadingTypeOtherCN"
class="other-item"
@@ -213,6 +227,7 @@
$t('curriculumVitae:specialty:placeholder:ReadingTypeOtherCN')
"
size="small"
:maxlength="400"
/>
</el-form-item>
</el-form>
@@ -291,44 +306,90 @@ export default {
SpecialityId: [
{
required: true,
message: 'Please select speciality',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
SpecialityOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SpecialityOtherCN: [
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SpecialityOtherCN: [{ max: 50, message: 'The maximum length is 50' }],
ReadingTypeIds: [
{
required: true,
message: 'Please select clinical reading type',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
ReadingTypeOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
ReadingTypeOtherCN: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SubspecialityIds: [
{
required: true,
message: 'Please select subspecialty',
message: this.$t('common:ruleMessage:select'),
trigger: 'blur',
},
],
SubspecialityOther: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
SubspecialityOtherCN: [
{ required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' },
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
},
loading: false,
@@ -349,7 +410,7 @@ export default {
...this.dictionaryList.Subspeciality,
{
Id: this.otherId,
Value: 'Other',
Value: this.$t('curriculumVitae:selectLabel:Other'),
},
]
},
@@ -358,7 +419,7 @@ export default {
...this.dictionaryList.ReadingType,
{
Id: this.otherId,
Value: 'Other',
Value: this.$t('curriculumVitae:selectLabel:Other'),
},
]
},
@@ -11,12 +11,96 @@
{{ $t('common:button:edit') }}
</el-button>
</div>
<div class="message" v-if="DATA.SummarizeEn || DATA.Summarize">
{{ isEN ? DATA.SummarizeEn : DATA.Summarize }}
</div>
<div
class="message"
v-if="mainSummarize.SummarizeEn || mainSummarize.Summarize"
style="white-space: pre-wrap"
v-html="isEN ? mainSummarize.SummarizeEn : mainSummarize.Summarize"
></div>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<base-model :config="model_cfg">
<template slot="dialog-body">
<div class="form_title">
{{ $t('curriculumVitae:summarize:form:tableTitle') }}
</div>
<el-button
size="small"
type="primary"
@click="handleAdd()"
style="float: right; margin-bottom: 5px"
>
{{ $t('common:button:add') }}
</el-button>
<el-table
ref="summarizeTable"
:data="list"
border
class="table"
:loading="loading"
size="small"
:row-style="tableRowClassName"
>
<el-table-column type="index" width="30" />
<el-table-column
prop="Indication"
:label="$t('system:reviewer:label:Indication')"
show-overflow-tooltip
v-if="!isEN"
/>
<el-table-column
prop="IndicationEn"
:label="$t('system:reviewer:label:Indication')"
show-overflow-tooltip
v-else
/>
<el-table-column
prop="Summarize"
:label="$t('system:reviewer:label:SummarizeZH')"
show-overflow-tooltip
v-if="!isEN"
/>
<el-table-column
prop="SummarizeEn"
:label="$t('system:reviewer:label:SummarizeEN')"
show-overflow-tooltip
v-else
/>
<el-table-column
prop="IsMain"
:label="$t('system:reviewer:label:IsMain')"
show-overflow-tooltip
width="100px"
>
<template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IsMain) }}
</template>
</el-table-column>
<el-table-column
:label="$t('system:EducationTraining:table:Operation')"
width="120px"
>
<template slot-scope="scope">
<el-button type="text" size="small" @click="handleAdd(scope.row)">
{{ $t('common:button:edit') }}
</el-button>
<el-button
type="text"
size="small"
@click="handleDelete(scope.row, scope.$index)"
>
{{ $t('common:button:delete') }}
</el-button>
<el-button
type="text"
size="small"
@click="setCurrent(scope.row)"
v-if="trialId"
>
{{ $t('common:button:check') }}
</el-button>
</template>
</el-table-column>
</el-table>
<el-form
ref="summarizeFrom"
v-loading="loading"
@@ -24,10 +108,32 @@
:rules="rules"
label-width="80px"
size="small"
v-if="trialId"
>
<div class="form_title">
{{ $t('curriculumVitae:summarize:form:formTitle') }}
</div>
<template>
<el-form-item>
<div style="float: right">
<!-- <el-button
type="text"
size="small"
@click="cover"
:disabled="!currentRow.Id"
>
{{ $t('curriculumVitae:summarize:button:cover') }}
</el-button> -->
<el-button type="text" size="small" @click="addNew">
{{ $t('curriculumVitae:summarize:button:addNew') }}
</el-button>
</div>
</el-form-item>
</template>
<el-form-item
:label="$t('curriculumVitae:summarize:form:summarize')"
prop="Summarize"
v-if="!isEN"
>
<el-input
:placeholder="
@@ -35,24 +141,30 @@
"
v-model="form.Summarize"
type="textarea"
:rows="2"
:rows="10"
clearable
:maxlength="4000"
></el-input>
</el-form-item>
<el-form-item prop="SummarizeEn">
<el-form-item
:label="$t('curriculumVitae:summarize:form:summarize')"
prop="SummarizeEn"
v-else
>
<el-input
v-model="form.SummarizeEn"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarizeEN')
"
type="textarea"
:rows="2"
:rows="10"
clearable
:maxlength="4000"
></el-input>
</el-form-item>
</el-form>
</template>
<template slot="dialog-footer">
<template slot="dialog-footer" v-if="trialId">
<el-button size="small" type="primary" @click="handleCancle">
{{ $t('common:button:cancel') }}
</el-button>
@@ -66,15 +178,121 @@
</el-button>
</template>
</base-model>
<base-model :config="model_cfg_table">
<template slot="dialog-body">
<el-form
ref="summarizeFrom2"
v-loading="loading"
:rules="rules"
:model="tableForm"
class="demo-ruleForm"
label-width="100px"
>
<el-form-item
:label="$t('system:reviewer:label:Indication')"
prop="Indication"
v-if="!isEN"
>
<el-input
v-model="tableForm.Indication"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:Indication')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
prop="IndicationEn"
:label="$t('system:reviewer:label:Indication')"
v-else
>
<el-input
v-model="tableForm.IndicationEn"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:IndicationEn')
"
size="small"
:maxlength="400"
/>
</el-form-item>
<el-form-item
:label="$t('system:reviewer:label:Summarize')"
prop="Summarize"
v-if="!isEN"
>
<el-input
v-model="tableForm.Summarize"
type="textarea"
:rows="10"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarize')
"
size="small"
:maxlength="4000"
/>
</el-form-item>
<el-form-item
prop="SummarizeEn"
:label="$t('system:reviewer:label:Summarize')"
v-else
>
<el-input
v-model="tableForm.SummarizeEn"
type="textarea"
:rows="10"
:placeholder="
$t('curriculumVitae:summarize:form:placeholder:summarizeEN')
"
size="small"
:maxlength="4000"
/>
</el-form-item>
<el-form-item
prop="IsMain"
:label="$t('system:reviewer:label:IsMain')"
>
<el-switch
v-model="tableForm.IsMain"
:disabled="list.length <= 0 || ISMAIN"
>
</el-switch>
</el-form-item>
</el-form>
</template>
<template slot="dialog-footer">
<el-button size="small" type="primary" @click="handleCancle2">
{{ $t('common:button:cancel') }}
</el-button>
<el-button
size="small"
type="primary"
@click="handleSave2"
:loading="loading"
>
{{ $t('common:button:save') }}
</el-button>
</template>
</base-model>
</div>
</template>
<script>
import BaseModel from '@/components/BaseModel'
import { updateGneralSituation } from '@/api/reviewers'
import {
addOrUpdateGneralSituation,
getSummarizeInfo,
deleteSummarizeInfo,
} from '@/api/reviewers'
const defaultForm = () => {
return {
SummarizeEn: '',
Summarize: '',
Id: null,
DoctorId: null,
Summarize: null,
SummarizeEn: null,
IsMain: false,
Indication: null,
IndicationEn: null,
TrialId: null,
}
}
export default {
@@ -92,6 +310,10 @@ export default {
type: String,
default: '',
},
trialId: {
type: String,
default: '',
},
isEN: {
type: Boolean,
default: false,
@@ -102,38 +324,189 @@ export default {
model_cfg: {
visible: false,
showClose: true,
width: '600px',
width: '800px',
title: this.$t('curriculumVitae:summarize:form:title'),
appendToBody: true,
},
model_cfg_table: {
visible: false,
showClose: true,
width: '800px',
title: this.$t('system:reviewer:form:SummarizeTitle'),
appendToBody: true,
top: '8vh',
},
tableForm: defaultForm(),
form: defaultForm(),
rules: {},
rules: {
Indication: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
IndicationEn: [
{
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
{
max: 400,
message: this.$t('form:rules:maxLength:400'),
trigger: 'blur',
},
],
Summarize: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
SummarizeEn: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
loading: false,
list: [],
currentRow: {},
ISMAIN: false,
SaveSummarizeInfoType: 0,
}
},
computed: {
mainSummarize() {
if (Array.isArray(this.DATA.SummarizeList) && this.trialId) {
return this.DATA.SummarizeList[0] || {}
}
if (Array.isArray(this.DATA.SummarizeList)) {
return this.DATA.SummarizeList.find((item) => item.IsMain) || {}
}
return {}
},
},
methods: {
openEdit() {
cover() {},
addNew() {
this.SaveSummarizeInfoType = 2
this.tableForm = defaultForm()
this.tableForm.Summarize = this.form.Summarize
this.tableForm.SummarizeEn = this.form.SummarizeEn
// this.tableForm.Indication = this.form.Indication
// this.tableForm.IndicationEn = this.form.IndicationEn
this.model_cfg_table.visible = true
},
tableRowClassName({ row, rowIndex }) {
if (row.Id === this.currentRow.Id) {
return {
background: '#d9ecff',
}
}
return {}
},
handleAdd(row) {
this.tableForm = defaultForm()
this.ISMAIN = false
this.SaveSummarizeInfoType = 0
if (row) {
Object.keys(this.tableForm).forEach((key) => {
this.tableForm[key] = row[key]
})
this.tableForm.Id = row.Id
if (this.tableForm.IsMain) {
this.ISMAIN = true
}
}
if (this.list.length <= 0) {
this.tableForm.IsMain = true
}
this.model_cfg_table.visible = true
},
async handleDelete(row, index) {
try {
if (row.IsMain) {
return this.$message.warning(
this.$t('system:reviewer:message:deletedSuccessfully')
)
}
let confirm = await this.$confirm(
this.$t('system:reviewer:confirm:delete')
)
if (!confirm) return false
let data = {
Id: row.Id,
}
this.loading = true
let res = await deleteSummarizeInfo(data)
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:deletedSuccessfully'))
// this.getDetail()
this.list.splice(index, 1)
}
} catch (err) {
console.log(err)
this.loading = false
}
},
//
async getIndicationList() {
try {
let id = this.reviewerId
if (!id) return false
let res = await getSummarizeInfo({
DoctorId: id,
})
if (res.IsSuccess) {
this.list = res.Result.SummarizeList
}
} catch (err) {
console.log(err)
}
},
async openEdit() {
this.form = defaultForm()
Object.keys(this.form).forEach((key) => {
if (this.DATA[key]) {
this.form[key] = this.DATA[key]
}
// if (!this.isPM) {
this.form[key] = this.mainSummarize[key]
// }
})
this.getIndicationList()
this.currentRow = {}
this.model_cfg.visible = true
},
handleCancle() {
this.form = defaultForm()
this.currentRow = {}
this.model_cfg.visible = false
},
handleCancle2() {
this.tableForm = defaultForm()
this.model_cfg_table.visible = false
},
async handleSave() {
try {
let validate = await this.$refs.summarizeFrom.validate()
if (!validate) return false
if (this.reviewerId) {
this.form.Id = this.reviewerId
this.form.DoctorId = this.reviewerId
}
if (this.trialId) {
this.form.TrialId = this.trialId
}
this.loading = true
let res = await updateGneralSituation(this.form)
let res = await addOrUpdateGneralSituation(this.form)
this.loading = false
if (res.IsSuccess) {
this.$emit('getInfo')
@@ -144,6 +517,48 @@ export default {
console.log(err)
}
},
async handleSave2() {
try {
let validate = await this.$refs.summarizeFrom2.validate()
if (!validate) return false
this.tableForm.DoctorId = this.reviewerId
this.loading = true
if (this.trialId && this.SaveSummarizeInfoType > 0) {
this.tableForm.TrialId = this.trialId
this.tableForm.SaveSummarizeInfoType = this.SaveSummarizeInfoType
}
if (this.list.length <= 0) {
this.tableForm.IsMain = true
}
let res = await addOrUpdateGneralSituation(this.tableForm)
this.loading = false
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.model_cfg_table.visible = false
if (this.SaveSummarizeInfoType > 0) {
this.$emit('getInfo')
this.model_cfg.visible = false
return false
}
this.getIndicationList()
// this.getDetail()
}
} catch (err) {
this.loading = false
console.log(err)
}
},
handleCurrentChange(val) {
this.currentRow = val
this.form.Summarize = this.currentRow.Summarize
this.form.SummarizeEn = this.currentRow.SummarizeEn
this.form.Indication = this.currentRow.Indication
this.form.IndicationEn = this.currentRow.IndicationEn
},
setCurrent(row) {
// this.$refs.summarizeTable.setCurrentRow(row)
this.handleCurrentChange(row)
},
},
}
</script>
@@ -155,14 +570,29 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
.message {
width: 100%;
margin: auto;
min-height: 100px;
background-color: #eee;
padding: 10px;
line-height: 30px;
border-radius: 5px;
word-wrap: break-word;
}
}
.form_title {
margin: 10px 0;
display: flex;
align-items: center;
&::after {
margin-left: 20px;
display: block;
content: '';
border-top: 1px solid #eee;
flex: 1;
}
}
</style>
@@ -11,9 +11,11 @@
{{ $t('common:button:edit') }}
</el-button>
</div>
<div class="message" v-if="DATA.Publications">
{{ DATA.Publications }}
</div>
<div
class="message"
v-if="DATA.Publications"
v-html="DATA.Publications"
></div>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
<base-model :config="model_cfg">
<template slot="dialog-body">
@@ -33,7 +35,8 @@
v-model="form.Publications"
clearable
type="textarea"
:rows="6"
:rows="10"
:maxlength="4000"
></el-input>
</el-form-item>
</el-form>
@@ -88,12 +91,20 @@ export default {
model_cfg: {
visible: false,
showClose: true,
width: '600px',
width: '800px',
title: this.$t('curriculumVitae:treatise:form:title'),
appendToBody: true,
},
form: defaultForm(),
rules: {},
rules: {
Publications: [
{
max: 4000,
message: this.$t('form:rules:maxLength:4000'),
trigger: 'blur',
},
],
},
loading: false,
daterange: [],
}
@@ -142,6 +153,7 @@ export default {
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
font-weight: bold;
}
}
.el-select,
@@ -156,5 +168,6 @@ export default {
line-height: 30px;
border-radius: 5px;
white-space: pre-wrap;
word-wrap: break-word;
}
</style>
+63 -13
View File
@@ -40,6 +40,9 @@
<el-menu-item index="pay">{{
$t('curriculumVitae:menu:pay')
}}</el-menu-item>
<el-menu-item index="setting" v-if="isPM">{{
$t('curriculumVitae:button:seeting')
}}</el-menu-item>
</el-menu>
</div>
<div class="main" id="main">
@@ -47,6 +50,9 @@
<div class="title">
<div>{{ $t('curriculumVitae:content:title') }}</div>
<div class="btnBox">
<!-- <el-button type="text" @click.stop="openSetting" v-if="isPM">
{{ $t('curriculumVitae:button:seeting') }}
</el-button> -->
<el-button type="text" @click.stop="openHoliday">
{{ $t('curriculumVitae:button:holiday') }}
</el-button>
@@ -57,7 +63,10 @@
$t('curriculumVitae:button:importResume')
}}</el-button> -->
<el-button type="text" @click.stop="openPreview">
{{ $t('common:button:preview') }}
{{ $t('curriculumVitae:button:preview') }}
</el-button>
<el-button type="text" @click.stop="openPreview(false)">
{{ $t('common:button:previewBlindState') }}
</el-button>
</div>
</div>
@@ -78,6 +87,7 @@
...reviewerData.SummarizeInfo,
}"
:reviewerId.sync="reviewerId"
:trialId="trialId"
:isEN="isEN"
@getInfo="getDetail"
/>
@@ -121,6 +131,7 @@
:DATA="{ ...reviewerData.TrialExperienceView }"
:isEN="isEN"
:reviewerId.sync="reviewerId"
:trialId="trialId"
@getInfo="getDetail"
/>
</div>
@@ -148,6 +159,9 @@
@getInfo="getDetail"
/>
</div>
<div class="box" id="setting" v-if="isPM">
<setting :isEN="isEN" :reviewerId.sync="reviewerId" />
</div>
</div>
<div class="rightFile">
<!--简历附件-->
@@ -163,14 +177,21 @@
<agreement
:DATA="reviewerData.AttachmentList"
:isEN="isEN"
:isPM="isPM"
:reviewerId.sync="reviewerId"
@getInfo="getDetail"
/>
</div>
</div>
<el-dialog :visible.sync="visible" fullscreen>
<el-dialog :visible.sync="visible" fullscreen append-to-body>
<div style="height: 100%; overflow: auto">
<preview :isEN="isEN" :reviewerId.sync="reviewerId" v-if="visible" />
<preview
:isEN="isEN"
:reviewerId.sync="reviewerId"
:trialId="trialId"
:isAll="isAll"
v-if="visible"
/>
</div>
</el-dialog>
<holiday
@@ -178,6 +199,11 @@
:reviewerId.sync="reviewerId"
:visible.sync="holidayVisible"
/>
<!-- <setting
v-if="settingVisible"
:reviewerId.sync="reviewerId"
:visible.sync="settingVisible"
/> -->
</div>
</template>
<script>
@@ -195,6 +221,7 @@ import treatise from './components/info/treatise.vue'
import other from './components/info/other.vue'
import pay from './components/info/pay.vue'
import holiday from './components/info/holiday.vue'
import setting from './components/info/setting.vue'
import preview from './preview.vue'
import { getDetail } from '@/api/reviewers'
import { mapMutations } from 'vuex'
@@ -215,6 +242,7 @@ export default {
pay,
holiday,
preview,
setting,
},
data() {
return {
@@ -222,7 +250,8 @@ export default {
isScrollAuto: true,
visible: false,
loading: false,
reviewerId: null,
reviewerId: '',
trialId: '',
reviewerData: {
BasicInfoView: {},
EmploymentView: {},
@@ -242,16 +271,27 @@ export default {
dom: null,
holidayVisible: false,
isAll: true,
// settingVisible: false,
}
},
computed: {
isEN() {
return this.$i18n.locale !== 'zh'
},
isPM() {
// return true
return this.hasPermi(['role:pm'])
},
},
async created() {
this.$i18n.locale = this.$route.query.lang
await this.setLanguage(this.$route.query.lang)
this.$i18n.locale =
this.$route.query.lang || zzSessionStorage.getItem('lang')
this.trialId =
this.$route.query.trialId || zzSessionStorage.getItem('trialId')
await this.setLanguage(this.$i18n.locale)
this.$updateDictionary()
if (sessionStorage.getItem('reviewerId')) {
this.reviewerId = sessionStorage.getItem('reviewerId')
this.getDetail()
@@ -273,12 +313,14 @@ export default {
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
//
async getDetail() {
try {
let id = this.reviewerId
let trialId = this.trialId
this.loading = true
let res = await getDetail(id)
let res = await getDetail(id, trialId)
this.loading = false
if (res.IsSuccess) {
this.reviewerData = res.Result
@@ -316,18 +358,23 @@ export default {
}
}
// vue data
if (navItem) {
if (navItem && navItem.id) {
this.activeIndex = navItem.id
}
},
//
openPreview() {
openPreview(isAll = true) {
this.isAll = isAll
this.visible = true
},
//
openHoliday() {
this.holidayVisible = true
},
//
// openSetting() {
// this.settingVisible = true
// },
},
}
</script>
@@ -340,13 +387,14 @@ export default {
line-height: 50px;
background-color: #fff;
text-align: center;
font-weight: bold;
}
.leftMenu {
position: absolute;
left: 0;
top: 0;
width: 100px;
height: 100vh;
width: 300px;
height: 100%;
background-color: #eee;
border-right: 1px solid #eee;
::v-deep .el-menu {
@@ -368,10 +416,10 @@ export default {
}
}
.main {
width: calc(100% - 100px);
width: calc(100% - 300px);
height: 100%;
overflow: auto;
margin-left: 100px;
margin-left: 300px;
display: flex;
align-items: flex-start;
}
@@ -403,6 +451,7 @@ export default {
line-height: 50px;
background-color: #fff;
text-align: left;
font-weight: bold;
}
::v-deep .fileBox {
background-color: #eee;
@@ -412,6 +461,7 @@ export default {
}
::v-deep .file_title {
line-height: 40px;
font-weight: bold;
}
::v-deep .btnBox {
display: flex;
+260 -122
View File
@@ -5,8 +5,13 @@
<div class="message">
<div class="userInfo">
<span v-if="isAll">
{{ reviewerData.BasicInfoView.FirstName
}}{{ reviewerData.BasicInfoView.LastName }}
{{
isEN
? reviewerData.BasicInfoView.LastName +
' / ' +
reviewerData.BasicInfoView.FirstName
: reviewerData.BasicInfoView.ChineseName
}}
</span>
<span v-else>{{
isEN
@@ -36,10 +41,10 @@
}}</span>
<span v-else>{{ reviewerData.BasicInfoView.HospitalNameCN }}</span>
</span>
<span>
<span v-if="isAll">
<span>
{{ $t('system:Setting:title:Vacation') }}
{{ reviewerData.AuditView.InHoliday ? 'Yes' : 'No' }}
{{ InHoliday }}
</span>
<el-button type="text" @click="handleView">
{{ $t('system:Setting:Planned Vacation') }}
@@ -47,22 +52,30 @@
</span>
</div>
<div class="userTitle">
<span class="el-icon-first-aid-kit">
<span
class="el-icon-first-aid-kit"
v-if="
reviewerData.EmploymentView.Department ||
reviewerData.EmploymentView.DepartmentCN
"
>
<span v-if="isEN">{{
reviewerData.EmploymentView.Department
}}</span>
<span v-else>{{ reviewerData.EmploymentView.DepartmentCN }}</span>
</span>
<span class="el-icon-first-aid-kit" v-else>
<span v-if="isEN">{{
reviewerData.EmploymentView.DepartmentOther
}}</span>
<span v-else>{{
reviewerData.EmploymentView.DepartmentOtherCN
}}</span>
</span>
<span class="el-icon-user"
><span v-if="isEN">{{ reviewerData.EmploymentView.Rank }}</span>
<span v-else>{{ reviewerData.EmploymentView.RankCN }}</span></span
>
<span class="el-icon-medal" v-if="isAll">
<span v-if="isEN">{{
reviewerData.EmploymentView.WorkPartTimeEn
}}</span>
<span v-else>{{ reviewerData.EmploymentView.WorkPartTime }}</span>
</span>
</div>
<div class="userTel" v-if="isAll">
<span class="el-icon-phone-outline">{{
@@ -75,22 +88,34 @@
reviewerData.BasicInfoView.WeChat
}}</span>
</div>
<div style="display: flex; font-size: 14px" v-if="isAll">
<span style="display: inline-block; width: 70px; color: #606266">{{
$t('curriculumVitae:info:meessage:partTimeJob')
}}</span>
<span
class="break-word"
style="
white-space: pre-wrap;
width: calc(100% - 80px);
word-wrap: break-word;
"
v-html="
isEN
? reviewerData.EmploymentView.WorkPartTimeEn
: reviewerData.EmploymentView.WorkPartTime
"
></span>
</div>
</div>
<div
class="message"
v-if="
reviewerData.SummarizeInfo.SummarizeEn ||
reviewerData.SummarizeInfo.Summarize
"
>
<div class="message break-word">
<div class="title">{{ $t('curriculumVitae:summarize:title') }}</div>
<span class="text">
{{
isEN
? reviewerData.SummarizeInfo.SummarizeEn
: reviewerData.SummarizeInfo.Summarize
}}
</span>
<span
class=""
style="white-space: pre-wrap"
v-html="isEN ? mainSummarize.SummarizeEn : mainSummarize.Summarize"
v-if="mainSummarize.SummarizeEn || mainSummarize.Summarize"
></span>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
</div>
<div class="message" v-if="isAll">
<el-form class="demo-form-inline">
@@ -173,7 +198,7 @@
{{ $t('curriculumVitae:EducationalExperience:title') }}
</div>
<el-table
:data="reviewerData.EducationList"
:data="[...reviewerData.EducationList]"
v-loading="loading"
style="width: 100%"
:header-cell-style="{ background: '#eee', color: '#606266' }"
@@ -184,13 +209,14 @@
>
<template slot-scope="scope">
<span
>{{ scope.row.BeginDateStr }}-{{ scope.row.EndDateStr }}</span
>{{ scope.row.BeginDateStr }} ~ {{ scope.row.EndDateStr }}</span
>
</template>
</el-table-column>
<el-table-column
prop="date"
prop="Major"
:label="$t('curriculumVitae:EducationalExperience:table:specialy')"
v-if="true"
>
<template slot-scope="scope">
<span>
@@ -212,7 +238,7 @@
<el-table-column
prop="date"
:label="$t('curriculumVitae:EducationalExperience:table:school')"
v-if="isAll"
v-if="true"
>
<template slot-scope="scope">
<span>
@@ -249,13 +275,14 @@
>
<template slot-scope="scope">
<span
>{{ scope.row.BeginDateStr }}-{{ scope.row.EndDateStr }}</span
>{{ scope.row.BeginDateStr }} ~ {{ scope.row.EndDateStr }}</span
>
</template>
</el-table-column>
<el-table-column
prop="Training"
:label="$t('curriculumVitae:continuingTraining:table:type')"
v-if="true"
>
<template slot-scope="scope">
<span>{{ $fd('Training', Number(scope.row.Training)) }}</span>
@@ -264,6 +291,7 @@
<el-table-column
prop="Major"
:label="$t('curriculumVitae:continuingTraining:table:direction')"
v-if="true"
>
<template slot-scope="scope">
<span>{{ isEN ? scope.row.Major : scope.row.MajorCN }}</span>
@@ -272,6 +300,7 @@
<el-table-column
prop="school"
:label="$t('curriculumVitae:continuingTraining:table:school')"
v-if="true"
>
<template slot-scope="scope">
<span>{{ isEN ? scope.row.School : scope.row.SchoolCN }}</span>
@@ -280,6 +309,7 @@
<el-table-column
prop="City"
:label="$t('curriculumVitae:continuingTraining:table:city')"
v-if="isAll"
>
<template slot-scope="scope">
<span>{{ isEN ? scope.row.City : scope.row.CityCN }}</span>
@@ -293,26 +323,50 @@
</div>
<div class="content">
<el-form class="demo-form-inline">
<el-form-item
<!-- <el-form-item
:label="$t('curriculumVitae:scientificResearchProject:direction')"
>
<span v-if="isEN">{{
<span v-if="isEN" class="break-word">{{
reviewerData.ResearchPublicationView.Research
}}</span>
<span v-else>{{
<span v-else class="break-word">{{
reviewerData.ResearchPublicationView.ResearchCN
}}</span>
</el-form-item>
<el-form-item
:label="$t('curriculumVitae:scientificResearchProject:subject')"
>
<span v-if="isEN">{{
reviewerData.ResearchPublicationView.Grants
}}</span>
<span v-else>{{
reviewerData.ResearchPublicationView.GrantsCN
}}</span>
</el-form-item>
</el-form-item> -->
<div style="display: flex; font-size: 14px">
<span
style="display: inline-block; width: 80px; color: #606266"
>{{
$t('curriculumVitae:scientificResearchProject:direction')
}}</span
>
<span
class="break-word"
style="white-space: pre-wrap; width: calc(100% - 80px)"
v-html="
isEN
? reviewerData.ResearchPublicationView.Research
: reviewerData.ResearchPublicationView.ResearchCN
"
></span>
</div>
<div style="display: flex; font-size: 14px">
<span
style="display: inline-block; width: 80px; color: #606266"
>{{
$t('curriculumVitae:scientificResearchProject:subject')
}}</span
>
<span
class="break-word"
style="white-space: pre-wrap; width: calc(100% - 80px)"
v-html="
isEN
? reviewerData.ResearchPublicationView.Grants
: reviewerData.ResearchPublicationView.GrantsCN
"
></span>
</div>
</el-form>
</div>
</div>
@@ -329,6 +383,7 @@
<el-table-column
prop="Phase"
:label="$t('curriculumVitae:clinicalTrials:table:byStages')"
v-if="true"
>
<template slot-scope="scope">
{{
@@ -339,6 +394,7 @@
<el-table-column
prop="EvaluationCriteriaList"
:label="$t('curriculumVitae:clinicalTrials:table:criterion')"
v-if="true"
>
<template slot-scope="scope">
{{
@@ -358,7 +414,11 @@
<el-table-column
prop="EvaluationContent"
:label="$t('curriculumVitae:clinicalTrials:table:indication')"
v-if="true"
>
<template slot-scope="scope">
<span>{{ $fd('Indication', scope.row.IndicationEnum) }}</span>
</template>
</el-table-column>
<el-table-column
prop="VisitReadingCount"
@@ -369,54 +429,58 @@
<el-table-column
prop="date"
:label="$t('curriculumVitae:clinicalTrials:table:year')"
v-if="true"
>
<template slot-scope="scope">
<span v-if="scope.row.StartTime"
>{{ scope.row.StartTime.split('-')[0] }}-{{
scope.row.EndTime ? scope.row.EndTime.split('-')[0] : ''
scope.row.EndTime
? scope.row.EndTime.split('-')[0]
: $t('curriculumVitae:lineIIcon:soFar')
}}</span
>
</template>
</el-table-column>
</el-table>
<!--GCP证书-->
<div class="title">
{{ $t('curriculumVitae:clinicalTrials:GCPtitle') }}
</div>
<el-table
:data="GCPData"
style="width: 100%"
:header-cell-style="{ background: '#eee', color: '#606266' }"
>
<el-table-column
prop="GCP"
:label="$t('curriculumVitae:clinicalTrials:table:hasCertificate')"
<template v-if="isAll">
<div class="title">
{{ $t('curriculumVitae:clinicalTrials:GCPtitle') }}
</div>
<el-table
:data="GCPData"
style="width: 100%"
:header-cell-style="{ background: '#eee', color: '#606266' }"
>
<template slot-scope="scope">
<span>{{ $fd('hasOrNo', scope.row.GCP) }}</span>
</template>
</el-table-column>
<el-table-column
prop="GCPTime"
:label="$t('curriculumVitae:clinicalTrials:table:certificateTime')"
>
</el-table-column>
<el-table-column
prop="GCPAgencies"
:label="
$t('curriculumVitae:clinicalTrials:table:certificateHospital')
"
>
</el-table-column>
</el-table>
<el-table-column
prop="GCP"
:label="$t('curriculumVitae:clinicalTrials:table:hasCertificate')"
v-if="true"
>
<template slot-scope="scope">
<span>{{ $fd('hasOrNo', scope.row.GCP) }}</span>
</template>
</el-table-column>
<el-table-column
prop="GCPTime"
:label="
$t('curriculumVitae:clinicalTrials:table:certificateTime')
"
v-if="true"
>
</el-table-column>
<el-table-column
prop="GCPAgencies"
v-if="true"
:label="
$t('curriculumVitae:clinicalTrials:table:certificateHospital')
"
>
</el-table-column>
</el-table>
</template>
<!--其他相关经历-->
<div
class="title"
v-if="
reviewerData.TrialExperienceView.OtherClinicalExperience ||
reviewerData.TrialExperienceView.OtherClinicalExperienceCN
"
>
<div class="title">
{{ $t('curriculumVitae:clinicalTrials:otherTitle') }}
</div>
<template
@@ -425,44 +489,58 @@
reviewerData.TrialExperienceView.OtherClinicalExperienceCN
"
>
<div class="message">
{{
<div
class="message break-word"
style="white-space: pre-wrap"
v-html="
isEN
? reviewerData.TrialExperienceView.OtherClinicalExperience
: reviewerData.TrialExperienceView.OtherClinicalExperienceCN
}}
</div>
"
></div>
</template>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
</div>
<div
class="message"
v-if="reviewerData.ResearchPublicationView.Publications"
>
<div class="title">{{ $t('curriculumVitae:treatise:title') }}</div>
<div
class="message"
style="white-space: pre-wrap"
v-if="reviewerData.ResearchPublicationView.Publications"
>
{{ reviewerData.ResearchPublicationView.Publications }}
<template v-if="isAll">
<div class="message">
<div class="title">{{ $t('curriculumVitae:treatise:title') }}</div>
<div
class="message break-word"
style="white-space: pre-wrap"
v-html="reviewerData.ResearchPublicationView.Publications"
v-if="reviewerData.ResearchPublicationView.Publications"
></div>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
</div>
</div>
<div
class="message"
v-if="
(reviewerData.ResearchPublicationView.AwardsHonors ||
reviewerData.ResearchPublicationView.AwardsHonorsCN) &&
isAll
"
>
</template>
<template v-else>
<div class="message">
<div class="title">{{ $t('curriculumVitae:treatise:title') }}</div>
<div
class="message break-word"
style="white-space: pre-wrap"
v-html="reviewerData.BasicInfoView.BlindPublications"
v-if="reviewerData.BasicInfoView.BlindPublications"
></div>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
</div>
</template>
<div class="message break-word" v-if="isAll">
<div class="title">{{ $t('curriculumVitae:other:AH') }}</div>
<div class="content">
<span v-if="isEN">{{
reviewerData.ResearchPublicationView.AwardsHonors
}}</span>
<span v-else>{{
reviewerData.ResearchPublicationView.AwardsHonorsCN
}}</span>
<div class="message">
<span
style="white-space: pre-wrap"
v-html="
isEN
? reviewerData.ResearchPublicationView.AwardsHonors
: reviewerData.ResearchPublicationView.AwardsHonorsCN
"
v-if="
reviewerData.ResearchPublicationView.AwardsHonors ||
reviewerData.ResearchPublicationView.AwardsHonorsCN
"
></span>
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
</div>
</div>
<div class="message" v-if="isAll">
@@ -644,7 +722,7 @@
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="handlePreview(item)"
@click.stop="handlePreview(item, true)"
/>
</div>
</template>
@@ -670,7 +748,7 @@
<i
class="el-icon-view"
:title="$t('common:button:preview')"
@click.stop="handlePreview(item)"
@click.stop="handlePreview(item, true)"
/>
</div>
</template>
@@ -686,9 +764,12 @@
</div>
</template>
<script>
import { getDetail } from '@/api/reviewers'
import {
getDetail,
getIsVacation,
getDoctorCriterionFile,
} from '@/api/reviewers'
import { getAttachmentByType } from '@/api/attachment'
import { getDoctorCriterionFile } from '@/api/reviewers'
import holiday from './components/info/holiday.vue'
export default {
name: 'curriculumVitaePreview',
@@ -737,9 +818,26 @@ export default {
loading: false,
holidayVisible: false,
InHoliday: '',
}
},
computed: {
mainSummarize() {
if (
Array.isArray(this.reviewerData.SummarizeInfo.SummarizeList) &&
this.trialId
) {
return this.reviewerData.SummarizeInfo.SummarizeList[0] || {}
}
if (Array.isArray(this.reviewerData.SummarizeInfo.SummarizeList)) {
return (
this.reviewerData.SummarizeInfo.SummarizeList.find(
(item) => item.IsMain
) || {}
)
}
return {}
},
hasFile() {
return (
(this.sowList && this.sowList.length > 0) ||
@@ -828,8 +926,23 @@ export default {
this.getDetail()
this.getResumeList()
this.initSowList()
this.getIsVacation()
},
methods: {
//
async getIsVacation() {
try {
let data = {
DoctorId: this.reviewerId,
}
let res = await getIsVacation(data)
if (res.IsSuccess) {
this.InHoliday = res.Result.IsVacation ? 'Yes' : 'No'
}
} catch (err) {
console.log(err)
}
},
//
async getDetail() {
try {
@@ -838,7 +951,11 @@ export default {
let res = await getDetail(id, this.trialId)
this.loading = false
if (res.IsSuccess) {
this.reviewerData = res.Result
Object.keys(this.reviewerData).forEach((key) => {
if (res.Result[key]) {
this.reviewerData[key] = res.Result[key]
}
})
}
} catch (err) {
this.loading = false
@@ -887,14 +1004,18 @@ export default {
}
})
},
handlePreview(row) {
if (row.FullPath || row.FilePath) {
let path = row.FullPath || row.FilePath
window.open(this.OSSclientConfig.basePath + path, '_blank')
handlePreview(row, isPreview = false) {
if (isPreview) {
this.preview(row)
} else {
if (row.FullPath || row.FilePath) {
let path = row.FullPath || row.FilePath
window.open(this.OSSclientConfig.basePath + path, '_blank')
}
}
},
preview(row) {
let path = row.FullPath || row.FilePath
let path = row.Path || row.FullPath || row.FilePath
this.$preview({
path: path,
type: 'pdf',
@@ -910,18 +1031,23 @@ export default {
<style lang="scss" scoped>
.curriculumVitaePreview {
display: flex;
padding: 0 100px;
justify-content: space-between;
.title {
font-size: 18px;
border: none;
background-color: transparent;
font-weight: bold;
}
.message {
padding: 20px 0;
border-bottom: 1px solid #eee;
word-wrap: break-word;
.title {
font-size: 14px;
line-height: 30px;
margin-bottom: 10px;
font-weight: bold;
}
.text {
color: #909399;
@@ -978,7 +1104,7 @@ export default {
width: 100%;
}
.allInfo {
flex: 1;
width: calc(100% - 300px);
}
.file {
width: 300px;
@@ -987,6 +1113,7 @@ export default {
line-height: 50px;
background-color: #fff;
text-align: left;
font-weight: bold;
}
::v-deep .fileBox {
background-color: #eee;
@@ -996,6 +1123,7 @@ export default {
}
::v-deep .file_title {
line-height: 40px;
font-weight: bold;
}
::v-deep .btnBox {
display: flex;
@@ -1021,4 +1149,14 @@ export default {
}
}
}
break-word {
display: inline-block;
width: 100%;
word-wrap: break-word;
}
.noData {
color: #909399;
text-align: center;
font-size: 14px;
}
</style>
+23 -13
View File
@@ -309,13 +309,6 @@
:title="$t('reviewers-list:table:Detail')"
@click="handleDetail(scope.row)"
/>
<el-button
size="mini"
circle
icon="el-icon-edit-outline"
:title="$t('reviewers-list:table:Edit')"
@click="handleEdit(scope.row)"
/>
<el-button
size="mini"
icon="el-icon-view"
@@ -323,6 +316,13 @@
:title="$t('reviewers-list:table:Blind')"
@click="lookResumeInfo(scope.row)"
/>
<el-button
size="mini"
circle
icon="el-icon-edit-outline"
:title="$t('reviewers-list:table:Edit')"
@click="handleEdit(scope.row)"
/>
</template>
</el-table-column>
</el-table>
@@ -479,7 +479,11 @@ export default {
showClose: true,
},
tokenKey: getToken(),
share_model: { visible: false, title: '', width: '500px' },
share_model: {
title: this.$t('curriculumVitae:share:title'),
visible: false,
width: '500px',
},
shareLink: null,
isEnglish: false,
@@ -521,13 +525,19 @@ export default {
},
//
async sendEmail() {
var pattern =
/^([A-Za-z0-9_\-\.\u4e00-\u9fa5])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,8})$/
if (!pattern.test(this.email))
return this.$message.warning(this.$t('rules:email'))
let emailList = this.email.split('|')
let isError = false
emailList.forEach((item) => {
var pattern =
/^([A-Za-z0-9_\-\.\u4e00-\u9fa5])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,8})$/
if (!pattern.test(item)) {
isError = true
}
})
if (isError) return this.$message.warning(this.$t('rules:email'))
this.emailLoading = true
let res = await doctorSendEmail({
Email: this.email,
Email: emailList,
Url: `ReviewersResearch?lang=${this.$store.getters.language}`,
})
this.emailLoading = false
@@ -179,6 +179,7 @@ export default {
methods: {
openDialog(title, data, options = [], status) {
this.PublishVersionList = options;
this.loading = false
this.status = status;
this.model_cfg.visible = true;
this.model_cfg.title = title;
+16
View File
@@ -154,6 +154,15 @@
>
批量更新
</el-button>
<el-button
type="primary"
icon="el-icon-edit-outline"
size="mini"
:disabled="selectTableList.length <= 0"
@click="handleBatchUpdateToChange"
>
批量编辑
</el-button>
<el-button
size="mini"
type="primary"
@@ -380,6 +389,9 @@ export default {
mounted() {
this.getList()
this.getPublishVersionSelect()
this.$EventBus.$on('il8nUpdate', (data) => {
this.getList()
})
},
methods: {
//
@@ -416,6 +428,10 @@ export default {
)
})
},
//
handleBatchUpdateToChange() {
this.$openI18n(this.selectTableList)
},
async batch(row) {
let { PublishLogId, State } = row
let data = {
+4 -1
View File
@@ -12,7 +12,7 @@
<el-form-item :label="$t('system:log:form:version')" prop="Version">
<el-input v-model="form.Version" />
</el-form-item>
<el-form-item :label="$t('system:log:form:versionUS')" prop="Version">
<el-form-item :label="$t('system:log:form:versionUS')" prop="Version_US">
<el-input v-model="form.Version_US" />
</el-form-item>
<el-form-item
@@ -100,6 +100,9 @@ export default {
},
{ max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` },
],
Version_US:[
{ max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` }
],
// PublishTime: [
// { required: true, message: '', trigger: 'blur' }
// ],
+107
View File
@@ -0,0 +1,107 @@
<template>
<base-model v-if="config.visible" :config="config">
<template slot="dialog-body">
<el-table :data="curData" border style="width: 100%" size="small">
<el-table-column
prop="key"
:label="$t('system:loginLog:table:cfgItem')"
show-overflow-tooltip
/>
<el-table-column
prop="value"
:label="$t('system:loginLog:table:cfgVal')"
show-overflow-tooltip
>
<template slot-scope="scope">
<span v-if="scope.row.prop !== 'UserRoleList'">{{
scope.row.value
}}</span>
<template v-else>
<div
v-for="item in scope.row.value"
:key="item.UserTypeEnum"
style="margin: 0"
>
{{ item.UserTypeShortName
}}{{ $t('system:loginLog:form:symbol')
}}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }}
</div>
</template>
</template>
</el-table-column>
</el-table>
</template>
<template slot="dialog-footer">
<el-button type="primary" @click="config.visible = false">
{{ $t('common:button:confirm') }}
</el-button>
</template>
</base-model>
</template>
<script>
import BaseModel from '@/components/BaseModel'
export default {
components: { BaseModel },
props: {
JsonObj: {
type: String,
default: '',
},
config: {
type: Object,
default: () => {
return {
visible: false,
title: this.$t('system:loginLog:dialog:title'),
width: '500px',
top: '10vh',
appendToBody: true,
bodyStyle: `min-height: 100px; max-height: 650px;overflow-y: auto;padding: 10px;border: 1px solid #e0e0e0;`,
}
},
},
},
data() {
return {
curKeys: [
'UserName',
'FirstName',
'LastName',
'EMail',
'Phone',
'OrganizationName',
'PositionName',
'DepartmentName',
'UserRoleList',
],
}
},
computed: {
curDataArr() {
if (!this.curData) return []
return Object.keys(this.curData)
},
curData() {
if (!this.JsonObj) return []
let obj = JSON.parse(this.JsonObj)
let curData = []
Object.keys(obj).forEach((key) => {
if (this.curKeys.includes(key)) {
let o = {
key: this.$t(`system:loginLog:form:${key}`),
value: obj[key],
prop: key,
}
curData.push(o)
}
})
return curData
},
},
}
</script>
<style lang="scss" scoped>
::v-deep .el-form-item__label {
font-weight: bold;
}
</style>
+114 -48
View File
@@ -50,7 +50,7 @@
/>
</el-form-item>
<el-form-item
:label=" $t('system:loginLog:table:LoginUserType')"
:label="$t('system:loginLog:table:LoginUserType')"
prop="LoginUserTypeEnum"
>
<el-select
@@ -77,19 +77,15 @@
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
@click="getList"
>
{{ $t("common:button:search") }}
<el-button type="primary" icon="el-icon-search" @click="getList">
{{ $t('common:button:search') }}
</el-button>
<el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t("common:button:reset") }}
{{ $t('common:button:reset') }}
</el-button>
</el-form-item>
</el-form>
@@ -101,7 +97,32 @@
class="table"
@sort-change="handleSortByColumn"
>
<el-table-column type="index" width="50" />
<el-table-column type="index" width="50">
<template slot-scope="scope">
<span
style="
display: flex;
align-items: center;
justify-content: flex-end;
"
>
<el-tooltip
class="item"
effect="dark"
:content="$t('system:loginLog:label:IsLoginUncommonly')"
placement="top"
style="margin-right: 3px"
v-if="scope.row.IsLoginUncommonly"
>
<i
v-if="scope.row.IsLoginUncommonly"
class="el-icon-warning icon-i"
></i>
</el-tooltip>
<span>{{ scope.$index + 1 }}</span>
</span>
</template>
</el-table-column>
<el-table-column
:label="$t('system:loginLog:table:OptType')"
prop="OptType"
@@ -110,7 +131,7 @@
sortable="custom"
>
<template slot-scope="scope">
{{ $fd("UserOptType", scope.row.OptType) }}
{{ $fd('UserOptType', scope.row.OptType) }}
</template>
</el-table-column>
<el-table-column
@@ -127,21 +148,28 @@
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
<!-- <el-table-column
:label="$t('system:loginLog:table:LoginFaildName')"
prop="LoginFaildName"
min-width="180"
show-overflow-tooltip
sortable="custom"
/>
/> -->
<el-table-column
:label="$t('system:loginLog:table:LoginUserName')"
prop="LoginUserName"
prop="ActionUserName"
min-width="140"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
:label="$t('system:loginLog:table:Aetionlserlype')"
prop="ActionUserType"
min-width="100"
show-overflow-tooltip
sortable="custom"
/>
<!-- <el-table-column
:label="$t('system:loginLog:table:LoginUserType')"
prop="LoginUserTypeEnum"
min-width="120"
@@ -151,15 +179,15 @@
<template slot-scope="scope">
{{ $fd("UserType", scope.row.LoginUserTypeEnum) }}
</template>
</el-table-column>
</el-table-column> -->
<el-table-column
:label="$t('system:loginLog:table:OptUserName')"
prop="OptUserName"
prop="TargetIdentityUserName"
min-width="200"
sortable="custom"
show-overflow-tooltip
/>
<el-table-column
<!-- <el-table-column
:label="$t('system:loginLog:table:OptUserType')"
prop="OptUserTypeEnum"
min-width="200"
@@ -169,6 +197,21 @@
<template slot-scope="scope">
{{ $fd("UserType", scope.row.OptUserTypeEnum) }}
</template>
</el-table-column> -->
<el-table-column
:label="$t('system:loginLog:table:detail')"
min-width="120"
show-overflow-tooltip
>
<template slot-scope="scope">
<el-button
v-if="scope.row.JsonObj"
type="text"
@click="handleOpenDialog(scope.row)"
>
<span>{{ $t('system:loginLog:message:detail') }}</span>
</el-button>
</template>
</el-table-column>
<el-table-column
:label="$t('system:loginLog:table:CreateTime')"
@@ -187,29 +230,31 @@
/>
</div>
</div>
<detail :config="config" :JsonObj="JsonObj" />
</div>
</template>
<script>
import { getUserLogList } from "@/api/user";
import Pagination from "@/components/Pagination";
import moment from "moment";
import { getUserLogList } from '@/api/user'
import Pagination from '@/components/Pagination'
import detail from './detail.vue'
import moment from 'moment'
const searchDataDefault = () => {
return {
OptType: null,
Ip: "",
LoginFaildName: "",
Ip: '',
LoginFaildName: '',
LoginUserName: '',
LoginUserTypeEnum: null,
BeginDate: "",
EndDate: "",
BeginDate: '',
EndDate: '',
Asc: false,
SortField: "CreateTime",
SortField: 'CreateTime',
PageIndex: 1,
PageSize: 20,
};
};
}
}
export default {
components: { Pagination },
components: { Pagination, detail },
data() {
return {
moment,
@@ -218,52 +263,69 @@ export default {
total: 0,
loading: false,
datetimerange: [],
};
config: {
visible: false,
title: this.$t('system:loginLog:dialog:title'),
width: '500px',
top: '10vh',
},
JsonObj: null,
}
},
mounted() {
this.getList();
this.getList()
},
methods: {
handleOpenDialog(row) {
if (!row.JsonObj)
return this.$message.warning(this.$t('system:loginLog:message:noJSON'))
this.config.title = this.$t('system:loginLog:dialog:title').replace(
'xxx',
this.$fd('UserOptType', row.OptType)
)
this.JsonObj = row.JsonObj
this.config.visible = true
},
getList() {
this.loading = true;
this.loading = true
getUserLogList(this.searchData)
.then((res) => {
this.loading = false;
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
this.loading = false
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
handleDatetimeChange(val) {
if (val) {
this.searchData.BeginDate = val[0];
this.searchData.EndDate = val[1];
this.searchData.BeginDate = val[0]
this.searchData.EndDate = val[1]
} else {
this.searchData.BeginDate = "";
this.searchData.EndDate = "";
this.searchData.BeginDate = ''
this.searchData.EndDate = ''
}
},
//
handleReset() {
this.datetimerange = []
this.searchData = searchDataDefault();
this.getList();
this.searchData = searchDataDefault()
this.getList()
},
//
handleSortByColumn(column) {
if (column.order === "ascending") {
this.searchData.Asc = true;
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false;
this.searchData.Asc = false
}
this.searchData.SortField = column.prop;
this.searchData.PageIndex = 1;
this.getList();
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
},
},
};
}
</script>
<style lang="scss">
.log {
@@ -291,5 +353,9 @@ export default {
text-align: right;
}
}
.icon-i {
color: #f56c6c;
cursor: pointer;
}
}
</style>

Some files were not shown because too many files have changed in this diff Show More