144 Commits

Author SHA1 Message Date
wangxiaoshuang 7fcbd7f983 生产环境配置修改
continuous-integration/drone/push Build encountered an error
2025-03-24 13:59:21 +08:00
wangxiaoshuang 779badb041 项目文档系统数据中英文转换
continuous-integration/drone/push Build is passing
2025-03-24 09:31:49 +08:00
caiyiling ef5e5527fd 标注更改及检查名称更改
continuous-integration/drone/push Build is passing
2025-03-21 16:29:47 +08:00
caiyiling 52ac12d6b6 阅片页面显示检查名称
continuous-integration/drone/push Build is passing
2025-03-21 15:36:23 +08:00
caiyiling 272c28a988 自定义阅片更改及非dicom阅片添加个性化配置
continuous-integration/drone/push Build is passing
2025-03-21 15:03:21 +08:00
caiyiling 6b10d07e2a 自定义阅片预览paf更改
continuous-integration/drone/push Build is passing
2025-03-21 14:03:53 +08:00
caiyiling 032e710890 阅片工具及报告页查看pdf更改
continuous-integration/drone/push Build is passing
2025-03-21 13:09:36 +08:00
caiyiling 032150904e 非dicom阅片更改
continuous-integration/drone/push Build is passing
2025-03-20 19:23:20 +08:00
wangxiaoshuang d91161a139 网速监控改为三位小数
continuous-integration/drone/push Build is passing
2025-03-19 15:53:41 +08:00
wangxiaoshuang bba2237337 文件大小改为保留3位小数
continuous-integration/drone/push Build is passing
2025-03-19 15:36:53 +08:00
wangxiaoshuang 707ca5602c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-18 17:59:20 +08:00
wangxiaoshuang 3b03d6ba76 项目文档搜索栏样式问题 2025-03-18 17:59:10 +08:00
caiyiling 9277d48c85 1
continuous-integration/drone/push Build is passing
2025-03-18 17:55:22 +08:00
caiyiling d753fbc2ab 非dicom阅片测量工具更改
continuous-integration/drone/push Build is passing
2025-03-18 16:53:03 +08:00
caiyiling 5678e3302b 国际化补充
continuous-integration/drone/push Build is passing
2025-03-18 15:34:12 +08:00
caiyiling c25cb097ab 1
continuous-integration/drone/push Build is passing
2025-03-18 15:28:13 +08:00
caiyiling 070db5158d Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2025-03-18 15:27:16 +08:00
caiyiling 121bf497bb 非dicom阅片更改 2025-03-18 15:26:51 +08:00
wangxiaoshuang e2ffd76504 阅片人筛选机构城市国家中英文显示
continuous-integration/drone/push Build is passing
2025-03-18 15:18:26 +08:00
wangxiaoshuang cfbe3b4839 项目文档培训记录培训人数校验修改
continuous-integration/drone/push Build is running
2025-03-18 15:16:31 +08:00
wangxiaoshuang 81bef8abe0 项目文档培训记录培训人数添加校验
continuous-integration/drone/push Build is passing
2025-03-18 14:15:31 +08:00
wangxiaoshuang 84b1263340 浏览器页签标题修改
continuous-integration/drone/push Build is passing
2025-03-18 13:57:07 +08:00
wangxiaoshuang 4016e71c37 项目文档阅片人问题修复
continuous-integration/drone/push Build is passing
2025-03-18 13:51:25 +08:00
wangxiaoshuang 3b0afd3913 1
continuous-integration/drone/push Build is passing
2025-03-18 13:45:13 +08:00
wangxiaoshuang 3672892451 项目文档阅片人问题修复
continuous-integration/drone/push Build is passing
2025-03-18 09:54:33 +08:00
wangxiaoshuang c46ca18a42 项目文档菜单与列表是否适用字段联动
continuous-integration/drone/push Build is passing
2025-03-17 16:38:14 +08:00
wangxiaoshuang 0e0b5c2c4c 项目文档同意入项记录上传方式修改
continuous-integration/drone/push Build is passing
2025-03-17 14:34:24 +08:00
wangxiaoshuang 5339e2df63 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-17 13:23:25 +08:00
wangxiaoshuang 66d5591d50 项目文档同意入项记录上传更改为弹框 2025-03-17 13:23:21 +08:00
caiyiling bfe2f1dbfb Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-17 11:37:30 +08:00
caiyiling 24806f57ed 自定义阅片bug修复 2025-03-17 11:37:09 +08:00
wangxiaoshuang b0ff8e7163 项目文档培训记录效果改为可输入所有字符
continuous-integration/drone/push Build is passing
2025-03-17 11:34:03 +08:00
caiyiling c9ef6cd19f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-17 11:24:01 +08:00
caiyiling 00cc5d5d27 非dicom阅片ecrf更改 2025-03-17 11:23:24 +08:00
wangxiaoshuang 25ddd422a3 1
continuous-integration/drone/push Build is passing
2025-03-17 09:29:56 +08:00
wangxiaoshuang a060c1745d 项目文档资质材料
continuous-integration/drone/push Build is passing
2025-03-14 17:09:38 +08:00
wangxiaoshuang 1a4bfe64f9 项目文档上传文件路径更改
continuous-integration/drone/push Build is passing
2025-03-14 13:15:44 +08:00
caiyiling 2fd6e1893b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-14 10:35:46 +08:00
caiyiling dc0229810d 国际化补充 2025-03-14 10:35:20 +08:00
wangxiaoshuang 08c911d4a0 项目文档申报方同意入项记录审核人角色字段更改
continuous-integration/drone/push Build is passing
2025-03-14 10:25:35 +08:00
wangxiaoshuang 08cdcffd82 项目文档申报方同意入项记录
continuous-integration/drone/push Build is passing
2025-03-13 17:10:42 +08:00
wangxiaoshuang a5f16c866d 检查名称配置更改
continuous-integration/drone/push Build is passing
2025-03-13 16:37:08 +08:00
caiyiling 3167c2bea7 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-13 15:01:16 +08:00
caiyiling 26cca57f75 系统标准国际化补充 2025-03-13 15:00:50 +08:00
wangxiaoshuang ff88cbd6e2 1
continuous-integration/drone/push Build is passing
2025-03-13 13:23:56 +08:00
wangxiaoshuang c4a498d953 检查被IQC标记删除:在crc查看时,该行记录增加删除线
continuous-integration/drone/push Build is passing
2025-03-13 11:14:34 +08:00
wangxiaoshuang f58e2ff82f 影像重传,确认完成时,签名中XXX未替换 2025-03-13 11:14:00 +08:00
wangxiaoshuang 1696fb6294 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-12 17:33:10 +08:00
wangxiaoshuang 3c81a8a678 1 2025-03-12 17:32:58 +08:00
caiyiling afcd1b82c0 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main 2025-03-12 17:22:44 +08:00
caiyiling 96864b808c 配置文件更改 2025-03-12 17:22:18 +08:00
wangxiaoshuang 5ba2abb8f5 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is failing
2025-03-12 17:11:15 +08:00
wangxiaoshuang dc0329032e 项目文档菜单添加滚动条 2025-03-12 17:11:05 +08:00
caiyiling 4097389447 图片渲染窗口滚动条优化
continuous-integration/drone/push Build is passing
2025-03-12 16:11:16 +08:00
caiyiling cf39a84370 全局和裁判阅片签名更改
continuous-integration/drone/push Build is passing
2025-03-12 15:42:56 +08:00
caiyiling aae2d6a1c5 非dicom全局和裁判阅片更改
continuous-integration/drone/push Build is passing
2025-03-12 15:18:23 +08:00
caiyiling 10f4bf7480 pdf文件替换
continuous-integration/drone/push Build is passing
2025-03-12 14:56:17 +08:00
caiyiling 57f0938efc 非dicom文件交互更改
continuous-integration/drone/push Build is passing
2025-03-12 14:50:55 +08:00
caiyiling 615580331b 后台管理页面调整
continuous-integration/drone/push Build is passing
2025-03-12 14:42:05 +08:00
caiyiling 4b4058b0da 文件渲染视口样式更改
continuous-integration/drone/push Build is passing
2025-03-12 13:16:47 +08:00
caiyiling f77820df79 临床数据查看更改
continuous-integration/drone/push Build is running
2025-03-12 13:14:31 +08:00
caiyiling 398bc21666 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-12 13:10:53 +08:00
caiyiling 7db8e231b6 切换pdf时取消取消全屏 2025-03-12 13:10:26 +08:00
wangxiaoshuang 581e2c3879 培训记录备注可输入值变更
continuous-integration/drone/push Build is passing
2025-03-12 11:47:27 +08:00
caiyiling ce030d23cd Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-12 11:35:06 +08:00
caiyiling f3c073286b 非dicom表单更改及渲染视口双击事件优化 2025-03-12 11:34:18 +08:00
wangxiaoshuang d5b342ddc6 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-12 11:22:32 +08:00
wangxiaoshuang d616512a72 项目文档按钮权限更改 2025-03-12 11:22:20 +08:00
caiyiling bf57b75bed 肿瘤学阅片配置更改
continuous-integration/drone/push Build is passing
2025-03-12 10:46:38 +08:00
caiyiling 0d9a77f4a5 文件管理模块列宽调整
continuous-integration/drone/push Build is passing
2025-03-12 10:24:25 +08:00
caiyiling 7f3da436c4 后台管理页面样式调整
continuous-integration/drone/push Build is passing
2025-03-12 10:21:40 +08:00
caiyiling 9e1cd5a099 配置文件更改
continuous-integration/drone/push Build is passing
2025-03-12 09:34:50 +08:00
caiyiling 639351c469 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-12 09:31:16 +08:00
caiyiling fa173a32fb 非dicom文件更改 2025-03-12 09:30:51 +08:00
wangxiaoshuang b93ab130fb 追溯显示信息右对齐
continuous-integration/drone/push Build is passing
2025-03-12 09:20:56 +08:00
caiyiling c6a6029f38 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-11 17:41:03 +08:00
caiyiling ca907a5196 非dicom阅片更改 2025-03-11 17:40:44 +08:00
wangxiaoshuang b4fe2a1c06 ir重阅,pm驳回,签名后无响应
continuous-integration/drone/push Build is passing
2025-03-11 17:00:01 +08:00
wangxiaoshuang 40061db7f7 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web 2025-03-11 16:59:49 +08:00
wangxiaoshuang 513e9b018a spm审批签署-重阅审批,中心编号筛选查询无效 2025-03-11 16:37:59 +08:00
wangxiaoshuang 0c7b4fbfdd 影像重传,确认完成时,签名中XXX未替换 2025-03-11 16:35:10 +08:00
caiyiling 74893a51c7 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-11 16:04:55 +08:00
caiyiling 305b6ab294 非dicom缩略图更改 2025-03-11 16:00:10 +08:00
wangxiaoshuang 920c95f611 非dicom预览pdf和zip缩略图
continuous-integration/drone/push Build is passing
2025-03-11 15:05:31 +08:00
wangxiaoshuang f73eabed03 培训记录删除文件后授权状态改为否、禁用下载按钮
continuous-integration/drone/push Build is passing
2025-03-11 14:41:34 +08:00
wangxiaoshuang e99c77fb0d 培训记录上传单个文件问题修复
continuous-integration/drone/push Build is running
2025-03-11 14:39:36 +08:00
wangxiaoshuang ec37ca2d3e 一般文件记录删除文件后授权状态改为否、禁用下载按钮
continuous-integration/drone/push Build is passing
2025-03-11 14:32:49 +08:00
wangxiaoshuang 6a6a26feb7 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-11 14:18:07 +08:00
wangxiaoshuang 5676bb6e57 1 2025-03-11 14:17:57 +08:00
caiyiling 200aa7c0f8 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2025-03-11 14:16:16 +08:00
caiyiling bf4f0c7245 本地预览影像更改 2025-03-11 14:15:52 +08:00
wangxiaoshuang 21dab27e0b 国际化排序
continuous-integration/drone/push Build is passing
2025-03-11 14:11:18 +08:00
wangxiaoshuang 7b90715953 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-11 13:53:55 +08:00
wangxiaoshuang cb8bc506a7 项目文档上传弹框文件数量没有限制时2才显示上传文件夹按钮 2025-03-11 13:53:38 +08:00
caiyiling 7a69227888 邮件列表列宽调整
continuous-integration/drone/push Build is passing
2025-03-11 13:11:59 +08:00
caiyiling 0785219954 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-11 11:52:52 +08:00
caiyiling b5f2cfeaff 国际化补充 2025-03-11 11:52:38 +08:00
wangxiaoshuang 4164b24bd9 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-11 11:41:49 +08:00
wangxiaoshuang 49b723ab01 上传同名文件时进度条出错 2025-03-11 11:41:30 +08:00
caiyiling 0de49faed1 国际化补充
continuous-integration/drone/push Build is passing
2025-03-11 10:59:22 +08:00
caiyiling 7f85302c1b 国际化补充
continuous-integration/drone/push Build is passing
2025-03-11 10:42:34 +08:00
caiyiling 4305f2536c institutions模块国际化更改
continuous-integration/drone/push Build is passing
2025-03-11 10:30:07 +08:00
caiyiling 55783de27f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-10 17:59:25 +08:00
caiyiling 465ea59906 国际化更改 2025-03-10 17:59:10 +08:00
wangxiaoshuang 81fab97ee4 项目文档部分字段去除排序
continuous-integration/drone/push Build is passing
2025-03-10 17:33:38 +08:00
wangxiaoshuang 2c93ba2882 国际化修改
continuous-integration/drone/push Build is running
2025-03-10 17:31:42 +08:00
wangxiaoshuang f3a237b0bf 1
continuous-integration/drone/push Build is passing
2025-03-10 17:08:43 +08:00
caiyiling c0588661ce Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-10 16:11:22 +08:00
caiyiling 381acf8d76 ecrf表单中分类问题bug修复 2025-03-10 16:10:41 +08:00
wangxiaoshuang e6715a429b 项目文档阅片人简历、阅片人培训记录、阅片人阅片记录、阅片人医学审核记录
continuous-integration/drone/push Build is passing
2025-03-10 15:24:11 +08:00
caiyiling 33ac08f4e4 非dicom阅片更改
continuous-integration/drone/push Build is passing
2025-03-10 15:20:02 +08:00
caiyiling d117bac7f6 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-10 15:09:37 +08:00
caiyiling 7051312855 国际化更改 2025-03-10 15:09:18 +08:00
wangxiaoshuang ff5a868377 项目文档部分问题修复
continuous-integration/drone/push Build is passing
2025-03-10 11:03:19 +08:00
wangxiaoshuang ea44f97985 非dicom列表改变状态时列表不重置
continuous-integration/drone/push Build is passing
2025-03-07 16:04:34 +08:00
wangxiaoshuang 156411fea3 非dicom列表改变状态时列表不重置
continuous-integration/drone/push Build is passing
2025-03-07 15:51:59 +08:00
wangxiaoshuang 822c2dc955 预览按钮位置交换
continuous-integration/drone/push Build is passing
2025-03-07 15:26:49 +08:00
wangxiaoshuang d729c4d34e 阅片期操作按钮样式问题
continuous-integration/drone/push Build is passing
2025-03-07 15:00:46 +08:00
caiyiling a887e686a8 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-07 14:25:09 +08:00
caiyiling 21cb32f1a9 自定义阅片数值问题渲染bug修复 2025-03-07 14:24:32 +08:00
wangxiaoshuang c74b482f0d 非dicom预览样式调整
continuous-integration/drone/push Build is passing
2025-03-07 14:13:57 +08:00
wangxiaoshuang 1af302961b 非dicom预览样式调整
continuous-integration/drone/push Build is running
2025-03-07 14:11:53 +08:00
wangxiaoshuang e83ac6714d 非dicom列表获取参数iReading默认为false
continuous-integration/drone/push Build is passing
2025-03-07 13:37:22 +08:00
wangxiaoshuang fc98aa0312 1
continuous-integration/drone/push Build is running
2025-03-07 13:34:36 +08:00
wangxiaoshuang 278c051f51 质控非dicom添加预览阅片影像功能
continuous-integration/drone/push Build is passing
2025-03-07 12:23:40 +08:00
wangxiaoshuang 5b8716f9ae 质控删除后数据不显示
continuous-integration/drone/push Build is passing
2025-03-07 11:02:30 +08:00
wangxiaoshuang cfef89c703 根据角色权限表核对开放页面以及功能
continuous-integration/drone/push Build is passing
2025-03-06 15:37:13 +08:00
caiyiling bf33f9d589 中心调研表更改
continuous-integration/drone/push Build is passing
2025-03-06 15:15:09 +08:00
caiyiling d74da23d41 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-06 15:10:50 +08:00
caiyiling cd630a70fb 阅片布局调整及中心调研更改 2025-03-06 15:10:11 +08:00
wangxiaoshuang 0b688bc33f PM在阅片期上传临床数据页面调整
continuous-integration/drone/push Build is passing
2025-03-06 14:56:28 +08:00
wangxiaoshuang a602be255b 项目文档部分问题修复
continuous-integration/drone/push Build is passing
2025-03-06 14:39:51 +08:00
wangxiaoshuang fb7891a2af 项目文档部分问题解决
continuous-integration/drone/push Build is passing
2025-03-06 13:20:47 +08:00
wangxiaoshuang 620f0d92ca 追溯角色可查看详情 2025-03-06 13:13:43 +08:00
wangxiaoshuang 8f43c697c0 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-03-06 13:05:40 +08:00
wangxiaoshuang 55769e906d 项目文档菜单增加排序字段 2025-03-06 11:41:17 +08:00
caiyiling 4ad67e5501 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-03-06 11:02:41 +08:00
caiyiling 1265cef6f9 系统标准阅片bug修复及非dicom阅片更改 2025-03-06 11:01:46 +08:00
wangxiaoshuang 86f5e2c782 非DICOM影像质控时,可以设置影像为删除、不阅片
continuous-integration/drone/push Build is passing
2025-03-05 16:14:29 +08:00
wangxiaoshuang 5450188a6e DICOM影像上传时缩略图的生成与存储
continuous-integration/drone/push Build is passing
2025-03-05 14:52:27 +08:00
wangxiaoshuang c8601f6f8f 文件模板
continuous-integration/drone/push Build is passing
2025-03-05 14:34:07 +08:00
wangxiaoshuang 299481a124 Merge branch 'uat'
continuous-integration/drone/push Build is passing
2025-03-05 13:32:23 +08:00
wangxiaoshuang 5ca123e90b 培训记录
continuous-integration/drone/push Build is running
2025-03-05 13:32:00 +08:00
wangxiaoshuang af452bb04e 排序改为升序
continuous-integration/drone/push Build encountered an error
2025-03-05 13:12:55 +08:00
168 changed files with 10210 additions and 4017 deletions
+3
View File
@@ -2,6 +2,9 @@
ENV = 'prop' ENV = 'prop'
NODE_ENV = 'prop' NODE_ENV = 'prop'
# base public path
VUE_APP_BASE_PATH = '/'
# 是否开启登陆限制 true:是 false:否 # 是否开启登陆限制 true:是 false:否
VUE_APP_LOGIN_FOR_PERMISSION = true VUE_APP_LOGIN_FOR_PERMISSION = true
@@ -10516,7 +10516,7 @@ class BaseViewer {
const pageNumber = this._currentPageNumber, const pageNumber = this._currentPageNumber,
state = this.#scrollModePageState, state = this.#scrollModePageState,
viewer = this.viewer; viewmr = this.viewer;
viewer.textContent = ""; viewer.textContent = "";
state.pages.length = 0; state.pages.length = 0;
+197
View File
File diff suppressed because one or more lines are too long
+40 -7
View File
@@ -62,12 +62,14 @@
v-adaptive="{ bottomOffset: 50 }" v-adaptive="{ bottomOffset: 50 }"
height="100" height="100"
style="width: 100%" style="width: 100%"
@sort-change="handleSortByColumn"
> >
<el-table-column <el-table-column
prop="Code" prop="Code"
:label="$t('il8n:table:label')" :label="$t('il8n:table:label')"
width="300" width="300"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
@@ -79,7 +81,11 @@
<!-- {{scope.row.Description}}--> <!-- {{scope.row.Description}}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column prop="Value" :label="$t('il8n:table:en')"> <el-table-column
prop="Value"
:label="$t('il8n:table:en')"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.Value" v-model="scope.row.Value"
@@ -92,7 +98,11 @@
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ValueCN" :label="$t('il8n:table:cn')"> <el-table-column
prop="ValueCN"
:label="$t('il8n:table:cn')"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.ValueCN" v-model="scope.row.ValueCN"
@@ -105,7 +115,11 @@
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ValueCN" :label="$t('il8n:table:state')"> <el-table-column
prop="ValueCN"
:label="$t('il8n:table:state')"
sortable="custom"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select
v-model="scope.row.State" v-model="scope.row.State"
@@ -122,7 +136,11 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Version" :label="$t('il8n:table:Version')"> <el-table-column
prop="Version"
:label="$t('il8n:table:Version')"
sortable="custom"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="text-align: right; padding-top: 10px; padding-right: 10px"> <div style="text-align: right; padding-top: 10px; padding-right: 10px">
@@ -195,6 +213,18 @@ export default {
// }, // },
// }, // },
methods: { methods: {
// 排序
handleSortByColumn(column) {
if (column.order === 'ascending') {
this.tableData.sort((a, b) =>
a[column.prop].localeCompare(b[column.prop])
)
} else {
this.tableData.sort((a, b) =>
b[column.prop].localeCompare(a[column.prop])
)
}
},
handleStateChange() { handleStateChange() {
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
item.State = this.State item.State = this.State
@@ -209,9 +239,12 @@ export default {
[], [],
this.arr.filter( this.arr.filter(
(v) => (v) =>
~v.Code.toLowerCase().indexOf(this.key.toLowerCase()) || (v.Code &&
~v.Value.toLowerCase().indexOf(this.key.toLowerCase()) || ~v.Code.toLowerCase().indexOf(this.key.toLowerCase())) ||
~v.ValueCN.toLowerCase().indexOf(this.key.toLowerCase()) (v.Value &&
~v.Value.toLowerCase().indexOf(this.key.toLowerCase())) ||
(v.ValueCN &&
~v.ValueCN.toLowerCase().indexOf(this.key.toLowerCase()))
) )
) )
} else { } else {
+95
View File
@@ -1226,3 +1226,98 @@ export function batchAddTrialTrianingRecord(data) {
data data
}) })
} }
// 项目文档-删除培训记录
export function deleteTrialTrianingRecord(id) {
return request({
url: `/TrialTrianingRecord/deleteTrialTrianingRecord/${id}`,
method: 'delete',
})
}
// 项目文档-培训记录授权
export function authorizedTrialTrianingRecord(data) {
return request({
url: `/TrialTrianingRecord/authorizedTrialTrianingRecord`,
method: 'post',
data
})
}
// 项目文档-阅片人简历
export function getTrialDoctorList(data) {
return request({
url: `/DoctorList/getTrialDoctorList`,
method: 'post',
data
})
}
// 项目文档-上传同意入项记录
export function uploadTrialFileTypeFile(data) {
return request({
url: `/TrialFileType/uploadTrialFileTypeFile`,
method: 'post',
data
})
}
// 项目文档-获取上传同意入项记录
export function getTrialFileTypeFile(data) {
return request({
url: `/TrialFileType/getTrialFileTypeFile`,
method: 'post',
data
})
}
// 项目文档-删除上传同意入项记录
export function deleteTrialTypeFile(params) {
return request({
url: `/TrialFileType/deleteTrialTypeFile`,
method: 'post',
params
})
}
// 项目文档-获取资质材料列表
export function getTrialAttachments(data) {
return request({
url: `/Attachment/getTrialAttachments`,
method: 'post',
data
})
}
// 项目文档-修改资质材料稽查状态
export function setAuthorizedViewC(data) {
return request({
url: `/Attachment/setAuthorizedView`,
method: 'post',
data
})
}
// 项目文档-上传资质材料
export function saveTrialAttachments(data) {
return request({
url: `/Attachment/saveTrialAttachments`,
method: 'post',
data
})
}
// 项目文档-资质材料(获取医生列表)
export function getTrialDoctorListC(data) {
return request({
url: `/Attachment/getTrialDoctorList`,
method: 'post',
data
})
}
// 项目文档-修改资质材料
export function updateTrialAttachments(data) {
return request({
url: `/Attachment/updateTrialAttachments`,
method: 'post',
data
})
}
// 项目文档-删除资质材料
export function deleteAttachment(data) {
return request({
url: `/Attachment/deleteAttachment`,
method: 'post',
data
})
}
+9 -3
View File
@@ -1080,7 +1080,13 @@ export function setSeriesStatus(trialId, subjectVisitId, studyId, seriesId, stat
method: 'put' method: 'put'
}) })
} }
export function setNodicomStudyState(params) {
return request({
url: `/QCOperation/setNodicomStudyState`,
method: 'put',
params
})
}
export function setInstanceStatus(trialId, subjectVisitId, seriesId, instanceId, state) { export function setInstanceStatus(trialId, subjectVisitId, seriesId, instanceId, state) {
return request({ return request({
url: `/QCOperation/setInstanceState/${trialId}/${subjectVisitId}/${seriesId}/${instanceId}/${state}`, url: `/QCOperation/setInstanceState/${trialId}/${subjectVisitId}/${seriesId}/${instanceId}/${state}`,
@@ -1372,9 +1378,9 @@ export function getForwardList(param) {
}) })
} }
export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '') { export function getNoneDicomStudyList(subjectVisitId, sudyId = '', isFilterZip = false, visitTaskId = '', IsReading = false) {
return request({ return request({
url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}`, url: `/NoneDicomStudy/getNoneDicomStudyList?subjectVisitId=${subjectVisitId}&nonedicomStudyId=${sudyId}&isFilterZip=${isFilterZip}&visitTaskId=${visitTaskId}&IsReading=${IsReading}`,
method: 'get' method: 'get'
}) })
} }
+8
View File
@@ -110,4 +110,12 @@ export function addOrUpdateTrialBodyPart(data) {
data data
}) })
} }
// 修改检查名称列表
export function updateTrialStudyNameList(data) {
return request({
url: `/TrialConfig/updateTrialStudyNameList`,
method: 'post',
data
})
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+28 -27
View File
@@ -4,6 +4,7 @@
<el-col :span="24"> <el-col :span="24">
<div class="box"> <div class="box">
<div class="box-body"> <div class="box-body">
<slot name="title-container" />
<div class="search"> <div class="search">
<slot name="search-container" /> <slot name="search-container" />
</div> </div>
@@ -24,42 +25,42 @@ export default {
props: { props: {
noTitle: { noTitle: {
type: Boolean, type: Boolean,
default: false default: false,
} },
}, },
computed: { computed: {
contentClass() { contentClass() {
return this.noTitle ? 'content-notitle' : 'content' return this.noTitle ? 'content-notitle' : 'content'
} },
} },
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.box-body{ .box-body {
padding: 0px; padding: 0px;
background-color: #fff; background-color: #fff;
.el-card__body { .el-card__body {
padding: 0px; padding: 0px;
} }
.search{ .search {
display: flex; display: flex;
padding: 5px; padding: 5px;
.mr5{ .mr5 {
margin-right:5px; margin-right: 5px;
}
.el-form-item{
margin-bottom: 10px;
}
} }
.page{ .el-form-item {
text-align: right; margin-bottom: 10px;
padding-top: 3px;
}
.el-button.is-circle {
padding: 9px;
font-weight: bold;
font-size: 14px;
} }
} }
.page {
text-align: right;
padding-top: 3px;
}
.el-button.is-circle {
padding: 9px;
font-weight: bold;
font-size: 14px;
}
}
</style> </style>
+1 -2
View File
@@ -1,7 +1,7 @@
<!-- 搜索表单 --> <!-- 搜索表单 -->
<template> <template>
<div class="base-search-form"> <div class="base-search-form">
<el-form :size="size" :inline="true" :label-width="labelWidth"> <el-form :inline="true" :label-width="labelWidth">
<el-form-item <el-form-item
v-for="item in searchForm" v-for="item in searchForm"
:key="item.prop" :key="item.prop"
@@ -152,7 +152,6 @@
<el-button <el-button
v-else v-else
:type="item.type" :type="item.type"
:size="item.size || size"
:icon="item.icon || ''" :icon="item.icon || ''"
@click="handleClick(item.emitKey)" @click="handleClick(item.emitKey)"
>{{ item.label }}</el-button >{{ item.label }}</el-button
-1
View File
@@ -62,7 +62,6 @@
</a> --> </a> -->
<span v-for="(operate, i) in column.operates" :key="i"> <span v-for="(operate, i) in column.operates" :key="i">
<el-button <el-button
:size="operate.size || 'mini'"
:type="operate.type || 'primary'" :type="operate.type || 'primary'"
v-if=" v-if="
(operate.show && scope.row[operate.show]) || (operate.show && scope.row[operate.show]) ||
+17 -16
View File
@@ -90,7 +90,7 @@
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
append-to-body append-to-body
> >
<DicomTags :image-id="stack.imageIds[stack.currentImageIdIndex]" @close="dcmTag.visible = false" /> <dicom-tags :image-id="stack.imageIds[stack.currentImageIdIndex]" @close="dcmTag.visible = false" />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@@ -217,10 +217,10 @@ export default {
this.stack.description = dicomSeries.description this.stack.description = dicomSeries.description
this.toolState.viewportInvert = false this.toolState.viewportInvert = false
this.toolState.dicomInfoVisible = false this.toolState.dicomInfoVisible = false
var imageId = this.stack.imageIds[this.stack.currentImageIdIndex] // var imageId = this.stack.imageIds[this.stack.currentImageIdIndex]
var instanceId = imageId.split('/')[imageId.split('/').length - 1] // var instanceId = imageId.split('/')[imageId.split('/').length - 1]
instanceId = instanceId.split('.')[0] // instanceId = instanceId.split('.')[0]
this.stack.instanceId = instanceId // this.stack.instanceId = instanceId
this.toolState.clipPlaying = false this.toolState.clipPlaying = false
const element = this.$refs.canvas const element = this.$refs.canvas
cornerstone.enable(element) cornerstone.enable(element)
@@ -346,9 +346,9 @@ export default {
// return // return
// } // }
// this.stack.instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1] // this.stack.instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1]
var instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1] // var instanceId = image.imageId.split('/')[image.imageId.split('/').length - 1]
instanceId = instanceId.split('.')[0] // instanceId = instanceId.split('.')[0]
this.stack.instanceId = instanceId // this.stack.instanceId = instanceId
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1) this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
this.resetWwwc() this.resetWwwc()
}, },
@@ -415,15 +415,16 @@ export default {
}, },
onImageRendered(e) { onImageRendered(e) {
var imageId = e.detail.image.imageId // var imageId = e.detail.image.imageId
var instanceId = imageId.split('/')[imageId.split('/').length - 1] // var instanceId = imageId.split('/')[imageId.split('/').length - 1]
instanceId = instanceId.split('.')[0] // instanceId = instanceId.split('.')[0]
if (this.imageId !== instanceId) { // if (this.imageId !== instanceId) {
this.getOrientationMarker(e.detail.element) // this.getOrientationMarker(e.detail.element)
this.imageId = instanceId // this.imageId = instanceId
} // }
this.stack.instanceId = instanceId this.getOrientationMarker(e.detail.element)
// this.stack.instanceId = instanceId
var viewport = e.detail.viewport var viewport = e.detail.viewport
this.dicomInfo.wwwc = `${Math.round( this.dicomInfo.wwwc = `${Math.round(
viewport.voi.windowWidth viewport.voi.windowWidth
@@ -316,9 +316,9 @@
scope.row.dicomInfo.fileCount scope.row.dicomInfo.fileCount
}} }}
({{ ({{
(scope.row.dicomInfo.uploadFileSize / 1024 / 1024).toFixed(2) (scope.row.dicomInfo.uploadFileSize / 1024 / 1024).toFixed(3)
}}MB/{{ }}MB/{{
(scope.row.dicomInfo.fileSize / 1024 / 1024).toFixed(2) (scope.row.dicomInfo.fileSize / 1024 / 1024).toFixed(3)
}}MB) }}MB)
</span> </span>
</template> </template>
@@ -1308,7 +1308,7 @@ export default {
o.imageColumns, o.imageColumns,
o.imageRows o.imageRows
) )
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.png` let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
let OSSclient = scope.OSSclient let OSSclient = scope.OSSclient
let seriesRes = await OSSclient.put( let seriesRes = await OSSclient.put(
thumbnailPath, thumbnailPath,
@@ -1421,7 +1421,7 @@ export default {
v.instanceList[0].imageColumns, v.instanceList[0].imageColumns,
v.instanceList[0].imageRows v.instanceList[0].imageRows
) )
let thumbnailPath = `/${params.trialId}/Image/${params.trialSiteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.png` let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.jpg`
let OSSclient = scope.OSSclient let OSSclient = scope.OSSclient
try { try {
let seriesRes = await OSSclient.put(thumbnailPath, blob) let seriesRes = await OSSclient.put(thumbnailPath, blob)
@@ -1499,8 +1499,8 @@ export default {
return new Promise((resolve) => { return new Promise((resolve) => {
cornerstone.loadImage(imageId).then(async (image) => { cornerstone.loadImage(imageId).then(async (image) => {
let canvas = document.createElement('canvas') let canvas = document.createElement('canvas')
canvas.width = width canvas.width = (width * 60) / height
canvas.height = height canvas.height = 60
if (image) { if (image) {
cornerstone.renderToCanvas(canvas, image) cornerstone.renderToCanvas(canvas, image)
// 将 Canvas 图像对象转换为 PNG 格式 // 将 Canvas 图像对象转换为 PNG 格式
@@ -66,7 +66,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.FileSize && scope.row.FileSize > 0 scope.row.FileSize && scope.row.FileSize > 0
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB` ? `${(scope.row.FileSize / 1024 / 1024).toFixed(3)}MB`
: '' : ''
}}</span> }}</span>
</template> </template>
@@ -138,7 +138,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.FileSize && scope.row.FileSize > 0 scope.row.FileSize && scope.row.FileSize > 0
? `${(scope.row.FileSize / 1024 / 1024).toFixed(2)}MB` ? `${(scope.row.FileSize / 1024 / 1024).toFixed(3)}MB`
: '' : ''
}}</span> }}</span>
</template> </template>
@@ -320,7 +320,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.size && scope.row.size > 0 scope.row.size && scope.row.size > 0
? `${(scope.row.size / 1024 / 1024).toFixed(2)}MB` ? `${(scope.row.size / 1024 / 1024).toFixed(3)}MB`
: '' : ''
}}</span> }}</span>
</template> </template>
@@ -567,7 +567,7 @@ export default {
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
let dicom = arr[i]; let dicom = arr[i];
if (dicom.StudyInstanceUid !== StudyInstanceUid) continue; if (dicom.StudyInstanceUid !== StudyInstanceUid) continue;
let thumbnailPath = `/${dicom.params.TrialId}/TaskImage/${dicom.params.SubjectId}/${dicom.params.VisitTaskId}/${dicom.StudyInstanceUid}/${dicom.SeriesInstanceUid}.png`; let thumbnailPath = `/${dicom.params.TrialId}/TaskImage/${dicom.params.SubjectId}/${dicom.params.VisitTaskId}/${dicom.StudyInstanceUid}/${dicom.SeriesInstanceUid}.jpg`;
if (!studyObj[dicom.StudyId]) { if (!studyObj[dicom.StudyId]) {
studyObj[dicom.StudyId] = { studyObj[dicom.StudyId] = {
StudyId: dicom.StudyId, StudyId: dicom.StudyId,
+5 -5
View File
@@ -50,11 +50,11 @@ export const constantRoutes = [
component: () => import('@/views/login/index'), component: () => import('@/views/login/index'),
hidden: true hidden: true
}, },
{ // {
path: '/test', // path: '/test',
component: () => import('@/views/test/index'), // component: () => import('@/views/test/index'),
hidden: true // hidden: true
}, // },
{ {
path: '/resetpassword', path: '/resetpassword',
component: () => import('@/views/forgetpassword/index'), component: () => import('@/views/forgetpassword/index'),
+1 -1
View File
@@ -1,7 +1,7 @@
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
module.exports = { module.exports = {
title: 'IRCIS', title: 'IRC Imaging System',
/** /**
* @type {boolean} true | false * @type {boolean} true | false
+1
View File
@@ -862,6 +862,7 @@ const actions = {
const data = {} const data = {}
data.StudyId = study.StudyId data.StudyId = study.StudyId
data.StudyCode = study.StudyCode data.StudyCode = study.StudyCode
data.StudyName = study.StudyName
data.Modalities = study.Modalities data.Modalities = study.Modalities
data.SeriesCount = study.SeriesCount data.SeriesCount = study.SeriesCount
data.InstanceCount = study.InstanceCount data.InstanceCount = study.InstanceCount
+1 -1
View File
@@ -1,6 +1,6 @@
import defaultSettings from '@/settings' import defaultSettings from '@/settings'
const title = defaultSettings.title || 'IRCIS' const title = defaultSettings.title || 'IRC Imaging System'
export default function getPageTitle(pageTitle) { export default function getPageTitle(pageTitle) {
if (pageTitle) { if (pageTitle) {
+1 -1
View File
@@ -445,7 +445,7 @@ function setTimer() {
totalBytes = totalBytes / 1024; totalBytes = totalBytes / 1024;
unit = "MB/s"; unit = "MB/s";
} }
store.state.trials.uploadTip = totalBytes.toFixed(2) + unit; store.state.trials.uploadTip = totalBytes.toFixed(3) + unit;
} }
if (timeList.length >= 5) { if (timeList.length >= 5) {
delete bytesReceivedPerSecond[timeList[0]] delete bytesReceivedPerSecond[timeList[0]]
+1 -1
View File
@@ -150,7 +150,7 @@ function setTimer() {
totalBytes = totalBytes / 1024; totalBytes = totalBytes / 1024;
unit = "MB/s"; unit = "MB/s";
} }
store.state.trials.uploadTip = totalBytes.toFixed(2) + unit; store.state.trials.uploadTip = totalBytes.toFixed(3) + unit;
} }
if (timeList.length >= 5) { if (timeList.length >= 5) {
delete bytesReceivedPerSecond[timeList[0]] delete bytesReceivedPerSecond[timeList[0]]
+2 -2
View File
@@ -189,8 +189,8 @@ const dicomToPng = (imageId, width, height) => {
return new Promise((resolve) => { return new Promise((resolve) => {
cornerstone.loadImage(imageId).then(async (image) => { cornerstone.loadImage(imageId).then(async (image) => {
let canvas = document.createElement("canvas"); let canvas = document.createElement("canvas");
canvas.width = width; canvas.width = (width * 60) / height
canvas.height = height; canvas.height = 60
if (image) { if (image) {
cornerstone.renderToCanvas(canvas, image); cornerstone.renderToCanvas(canvas, image);
// 将 Canvas 图像对象转换为 PNG 格式 // 将 Canvas 图像对象转换为 PNG 格式
+1
View File
@@ -9,6 +9,7 @@ const ROUTER = require('@/router');
axios.defaults.withCredentials = false axios.defaults.withCredentials = false
const service = axios.create({ const service = axios.create({
baseURL: '/api', baseURL: '/api',
// baseURL: process.env.NODE_ENV === 'prod' ? "https://api.irc.extimaging.com" : '/api',
timeout: 2 * 360000, // request timeout timeout: 2 * 360000, // request timeout
withCredentials: false withCredentials: false
}) })
+235 -121
View File
@@ -1,5 +1,5 @@
<template> <template>
<div ref="preview-wrapper"> <div ref="preview-wrapper" class="preview-wrapper">
<div class="viewerContainer"> <div class="viewerContainer">
<div class="viewerContentWrapper" style="padding-top:25px;"> <div class="viewerContentWrapper" style="padding-top:25px;">
<div class="viewerLeftSidePanel"> <div class="viewerLeftSidePanel">
@@ -38,7 +38,39 @@
</span> </span>
</span>--> </span>-->
<div class="viewernavitextwrapper"> <div class="viewernavitextwrapper">
<div style="padding: 1px;">#{{ item.seriesNumber }}</div> <div style="padding: 1px 5px 1px 1px;display: flex;justify-content: space-between;">
<div style="padding: 1px;">#{{ item.seriesNumber }}</div>
<div v-if="item.isExistMutiFrames && item.instanceCount > 1">
<el-popover
v-model="item.isShowPopper"
placement="right-start"
trigger="manual"
popper-class="instance_frame_wrapper"
>
<div style="text-align: right;">
<i class="el-icon-circle-close" style="font-size: 20px;cursor: pointer;color:#ddd;" @click="item.isShowPopper = false" />
</div>
<div class="frame_list">
<div
v-for="(instance, idx) in item.instanceInfoList"
:key="instance.InstanceUid"
class="frame_content"
:style="{'margin-bottom':idx<item.instanceInfoList.length-1? '5px':'0px'}"
@click="showMultiFrames(item, index, instance)"
>
<div>
<div>{{ instance.InstanceNumber }}</div>
<div>
{{ `${instance.NumberOfFrames > 0 ? instance.NumberOfFrames : 1} frame` }}
</div>
</div>
</div>
</div>
<i slot="reference" class="el-icon-connection" style="font-size: 15px;cursor: pointer;" @click="popperClick(seriesList, item)" />
</el-popover>
</div>
</div>
<div style="padding: 1px;">{{ item.description }}</div> <div style="padding: 1px;">{{ item.description }}</div>
<div <div
v-show="item.instanceCount" v-show="item.instanceCount"
@@ -147,7 +179,11 @@ export default {
}) })
var imageIds = [] var imageIds = []
let isExistMutiFrames = false
let instanceInfoList = []
series.instanceList.forEach(function(instance) { series.instanceList.forEach(function(instance) {
console.log(instance)
let instanceInfo = {}
var fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add( var fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
instance.file instance.file
) )
@@ -155,7 +191,19 @@ export default {
for (var i = 0; i < instance.frameCount; ++i) { for (var i = 0; i < instance.frameCount; ++i) {
imageIds.push(`${fileId}?frame=${i}`) imageIds.push(`${fileId}?frame=${i}`)
} }
} else imageIds.push(fileId) isExistMutiFrames = true
instanceInfo.NumberOfFrames = instance.frameCount
instanceInfo.InstanceNumber = instance.instanceNumber
instanceInfo.InstanceUid = instance.instanceUid
instanceInfo.FileId = fileId
} else {
imageIds.push(fileId)
instanceInfo.NumberOfFrames = 0
instanceInfo.InstanceNumber = instance.instanceNumber
instanceInfo.InstanceUid = instance.instanceUid
instanceInfo.FileId = fileId
}
instanceInfoList.push(instanceInfo)
}) })
scope.seriesList.push({ scope.seriesList.push({
@@ -164,13 +212,43 @@ export default {
modality: series.modality, modality: series.modality,
instanceCount: series.instanceList.length, instanceCount: series.instanceList.length,
imageIds: imageIds, imageIds: imageIds,
previewImageId: imageIds[0] previewImageId: imageIds[0],
isExistMutiFrames: isExistMutiFrames,
instanceInfoList: instanceInfoList,
isShowPopper: false
}) })
}) })
this.showSeriesImage(0) this.showSeriesImage(0)
}, },
popperClick(seriesList, series) {
for (let i = 0; i < seriesList.length; i++) {
if (seriesList[i].isShowPopper) {
seriesList[i].isShowPopper = false
}
}
series.isShowPopper = !series.isShowPopper
},
showMultiFrames(series, seriesIndex, instanceInfo) {
this.currentSeriesIndex = seriesIndex
const imageIds = []
if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) {
for (let j = 0; j < instanceInfo.NumberOfFrames; j++) {
imageIds.push(`${instanceInfo.FileId}?frame=${j}`)
}
} else {
imageIds.push(instanceInfo.FileId)
}
const seriesInfo = {
seriesNumber: series.seriesNumber,
description: series.description,
modality: series.modality,
instanceCount: series.instanceCount,
imageIds: imageIds,
previewImageId: imageIds[0],
}
this.$refs.dicomViewer.loadImageStack(seriesInfo)
},
showSeriesImage(seriesIndex) { showSeriesImage(seriesIndex) {
// if (seriesIndex === this.currentSeriesIndex) return; // if (seriesIndex === this.currentSeriesIndex) return;
this.currentSeriesIndex = seriesIndex this.currentSeriesIndex = seriesIndex
@@ -183,136 +261,172 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss">
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 7px; width: 7px;
height: 7px; height: 7px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 10px; border-radius: 10px;
background: #d0d0d0; background: #d0d0d0;
} }
.viewerContainer { .viewerContainer {
display: block; width: 100%;
height: 100%; display: block;
margin-top: 20px; height: 100%;
margin-left: auto; margin-top: 20px;
margin-right: auto; margin-left: auto;
background-color: #444; margin-right: auto;
overflow: hidden; background-color: #444;
} overflow: hidden;
}
.viewerBanner { .viewerBanner {
background: linear-gradient(0, #444, #222); background: linear-gradient(0, #444, #222);
min-height: 28px; min-height: 28px;
font-size: 16px; font-size: 16px;
margin: 0; margin: 0;
height: 30px; height: 30px;
padding-top: 0; padding-top: 0;
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
font-weight: bold; font-weight: bold;
} }
.viewerContentWrapper { .viewerContentWrapper {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: 100%; width: 100%;
padding: 5px; padding: 5px;
height: 99%; height: 99%;
/* height: 95%; */ /* height: 95%; */
overflow: hidden; overflow: hidden;
text-overflow: clip; text-overflow: clip;
white-space: nowrap; white-space: nowrap;
} }
.viewerContentWrapper > div { .viewerContentWrapper > div {
display: inline-block; display: inline-block;
white-space: normal; white-space: normal;
} }
.viewerLeftSidePanel { .viewerLeftSidePanel {
width: 200px; width: 200px;
background-color: #323232; background-color: #323232;
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0;
margin-right: 2px; margin-right: 2px;
color: #d0d0d0; color: #d0d0d0;
overflow-y: auto; overflow-y: auto;
} }
.viewerContentWrapper > div > .sidePanelBody { .viewerContentWrapper > div > .sidePanelBody {
background: rgba(50, 50, 50, 1); background: rgba(50, 50, 50, 1);
word-break: break-all; word-break: break-all;
display: table; display: table;
width: 100%; width: 100%;
border: 1px solid #3e3f3a; border: 1px solid #3e3f3a;
} }
.viewerContentWrapper > div > div.sidePanelBody > div { .viewerContentWrapper > div > div.sidePanelBody > div {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.studyDesc { .studyDesc {
font-weight: bold; font-weight: bold;
font-size: 13px; font-size: 13px;
text-align: center; text-align: center;
background: rgb(88 84 83); background: rgb(88 84 83);
color: #d0d0d0; color: #d0d0d0;
padding: 5px; padding: 5px;
} }
.ps { .ps {
overflow: hidden !important; overflow: hidden !important;
overflow-anchor: none; overflow-anchor: none;
-ms-overflow-style: none; -ms-overflow-style: none;
touch-action: auto; touch-action: auto;
-ms-touch-action: auto; -ms-touch-action: auto;
} }
.viewerLeftSidePanel .viewernavigatorwrapper { .viewerLeftSidePanel .viewernavigatorwrapper {
display: flex; display: flex;
width: 196px; width: 196px;
height: 84px; height: 84px;
padding: 1px 2px 1px 8px; padding: 1px 2px 1px 8px;
margin: 6px 0 6px 1px; margin: 6px 0 6px 1px;
border-radius: 2px; border-radius: 2px;
border: 1px solid #404040; border: 1px solid #404040;
} }
.ui-draggable-handle { .ui-draggable-handle {
-ms-touch-action: none; -ms-touch-action: none;
touch-action: none; touch-action: none;
} }
.viewerLeftSidePanel .image-preview { .viewerLeftSidePanel .image-preview {
border: 2px solid #252525; border: 2px solid #252525;
cursor: pointer; cursor: pointer;
} }
.viewerLeftSidePanel .viewernavitextwrapper { .viewerLeftSidePanel .viewernavitextwrapper {
flex: 1; flex: 1;
padding: 3px 1px 3px 4px; padding: 3px 1px 3px 4px;
vertical-align: top; vertical-align: top;
font-size: 12px; font-size: 12px;
} }
.viewerSideActive { .viewerSideActive {
background: #16477b; background: #16477b;
background: #16477b80; background: #16477b80;
border: 1px solid #23527b; border: 1px solid #23527b;
} }
.viewerContent { .viewerContent {
flex: 1; flex: 1;
height: 100%; height: 100%;
display: block; display: block;
background-color: black; background-color: black;
color: #d0d0d0; color: #d0d0d0;
font-size: 13px; font-size: 13px;
} }
.instance_frame_wrapper{
min-width: 120px;
background-color: #2c2c2c;
border: 1px solid #2c2c2c;
padding: 5px;
}
.frame_list{
max-height: 500px;
overflow-y: auto;
}
.instance_frame_wrapper ::-webkit-scrollbar {
width: 7px;
height: 7px;
}
.instance_frame_wrapper ::-webkit-scrollbar-thumb {
border-radius: 10px;
background: #d0d0d0;
}
.frame_content{
/* height: 50px; */
padding: 10px;
display: flex;
justify-content: flex-start;
color: #ddd;
font-size: 12px;
border: 1px solid #404040;
}
.frame_content:hover {
/* font-weight: bold; */
/* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); */
cursor: pointer;
/* color: #428bca; */
border-color: #213a54 !important;
background-color: #213a54;
}
</style> </style>
@@ -9,10 +9,10 @@
class="upload-temporary-file" class="upload-temporary-file"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Code" prop="Code"> <el-form-item :label="$t('dictionary:attachment:label:code')" prop="Code">
<el-input v-model="form.Code" /> <el-input v-model="form.Code" />
</el-form-item> </el-form-item>
<el-form-item label="业务场景: " prop="BusinessScenarioEnum"> <el-form-item :label="$t('dictionary:attachment:label:businessScenario')" prop="BusinessScenarioEnum">
<el-select <el-select
v-model="form.BusinessScenarioEnum" v-model="form.BusinessScenarioEnum"
style="width:100%;" style="width:100%;"
@@ -28,7 +28,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件: "> <el-form-item :label="$t('dictionary:attachment:export:form:file')">
<div class="upload-container"> <div class="upload-container">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@@ -2,7 +2,8 @@
<BaseContainer> <BaseContainer>
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true" size="small"> <el-form :inline="true" size="small">
<el-form-item label="业务场景"> <!-- 业务场景 -->
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
<el-select <el-select
v-model="searchData.BusinessScenarioEnum" v-model="searchData.BusinessScenarioEnum"
style="width:150px;" style="width:150px;"
@@ -16,7 +17,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件名称"> <!-- 文件名称 -->
<el-form-item :label="$t('dictionary:attachment:label:name')">
<el-input <el-input
v-model="searchData.Name" v-model="searchData.Name"
style="width:130px;" style="width:130px;"
@@ -37,7 +39,6 @@
</el-form> </el-form>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus"
style="margin-left:auto;" style="margin-left:auto;"
size="small" size="small"
@click="handleAdd" @click="handleAdd"
@@ -57,14 +58,14 @@
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<el-table-column <el-table-column
prop="Code" prop="Code"
label="Code" :label="$t('dictionary:attachment:label:code')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="BusinessScenarioEnum" prop="BusinessScenarioEnum"
label="业务场景" :label="$t('dictionary:attachment:label:businessScenario')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -76,18 +77,18 @@
<el-table-column <el-table-column
prop="Name" prop="Name"
label="文件名称" :label="$t('dictionary:attachment:label:name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:attachment:label:description')"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
label="是否废除" :label="$t('dictionary:attachment:label:isDeleted')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -98,30 +99,30 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="UpdateTime" prop="UpdateTime"
label="上传时间" :label="$t('dictionary:attachment:label:updateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action"> <el-table-column label="Action" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@click="handleDownload(scope.row)" @click="handleDownload(scope.row)"
> >
下载 {{ $t('common:button:download') }}
</el-button> </el-button>
<el-button <el-button
type="text" type="text"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 {{ $t('common:action:edit') }}
</el-button> </el-button>
<el-button <el-button
type="text" type="text"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -176,9 +177,9 @@ export default {
}, },
methods: { methods: {
handleDelete(row) { handleDelete(row) {
this.$confirm('确定删除该文件?').then(() => { this.$confirm(this.$t('dictionary:attachment:export:confirm:delete')).then(() => {
deleteCommonDocument(row.Id).then(() => { deleteCommonDocument(row.Id).then(() => {
this.$message.success('删除成功') this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.getList() this.getList()
}) })
}) })
@@ -195,7 +196,7 @@ export default {
}, },
// 新增 // 新增
handleAdd() { handleAdd() {
this.editDialog.title = 'Add' this.editDialog.title = this.$t('common:button:new')
this.currentRow = { FileTypeEnum: FileTypeEnum } this.currentRow = { FileTypeEnum: FileTypeEnum }
this.editDialog.visible = true this.editDialog.visible = true
}, },
@@ -208,7 +209,7 @@ export default {
}, },
// 编辑 // 编辑
handleEdit(row) { handleEdit(row) {
this.editDialog.title = 'Edit' this.editDialog.title = this.$t('common:action:edit')
this.currentRow = { ...row } this.currentRow = { ...row }
this.editDialog.visible = true this.editDialog.visible = true
}, },
@@ -2,7 +2,8 @@
<BaseContainer> <BaseContainer>
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true" size="small"> <el-form :inline="true" size="small">
<el-form-item label="业务场景"> <!-- 业务场景 -->
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
<el-select <el-select
v-model="searchData.BusinessScenarioEnum" v-model="searchData.BusinessScenarioEnum"
style="width:150px;" style="width:150px;"
@@ -16,7 +17,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件名称"> <!-- 文件名称 -->
<el-form-item :label="$t('dictionary:attachment:label:name')">
<el-input <el-input
v-model="searchData.Name" v-model="searchData.Name"
style="width:130px;" style="width:130px;"
@@ -57,14 +59,14 @@
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<el-table-column <el-table-column
prop="Code" prop="Code"
label="Code" :label="$t('dictionary:attachment:label:code')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="BusinessScenarioEnum" prop="BusinessScenarioEnum"
label="业务场景" :label="$t('dictionary:attachment:label:businessScenario')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -76,7 +78,7 @@
<el-table-column <el-table-column
prop="Name" prop="Name"
label="文件名称" :label="$t('dictionary:attachment:label:name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
@@ -92,12 +94,12 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:attachment:label:description')"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
label="是否废除" :label="$t('dictionary:attachment:label:isDeleted')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -108,18 +110,18 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="UpdateTime" prop="UpdateTime"
label="上传时间" :label="$t('dictionary:attachment:label:updateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action"> <el-table-column :label="$t('common:action:action')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@click="handleDownload(scope.row)" @click="handleDownload(scope.row)"
> >
下载 {{ $t('common:button:download') }}
</el-button> </el-button>
<!-- <el-button <!-- <el-button
type="text" type="text"
@@ -9,7 +9,7 @@
class="upload-temporary-file" class="upload-temporary-file"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Code" prop="Code"> <el-form-item :label="$t('dictionary:attachment:export:search:code')" prop="Code">
<el-input v-model="form.Code" /> <el-input v-model="form.Code" />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -76,8 +76,9 @@
:label="$t('dictionary:attachment:export:form:isDeleted')" :label="$t('dictionary:attachment:export:form:isDeleted')"
> >
<el-radio-group v-model="form.IsDeleted"> <el-radio-group v-model="form.IsDeleted">
<el-radio :label="true"></el-radio> <el-radio v-for="item of $d.YesOrNo" :key="`IsDeleted${item.value}`" :label="item.value">
<el-radio :label="false"></el-radio> {{ item.label }}
</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -39,7 +39,6 @@
</el-form-item> </el-form-item>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus"
style="float: right" style="float: right"
size="small" size="small"
@click="handleAdd" @click="handleAdd"
@@ -60,7 +59,7 @@
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<el-table-column <el-table-column
prop="Code" prop="Code"
label="Code" :label="$t('dictionary:attachment:export:search:code')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
@@ -120,7 +119,7 @@
sortable="custom" sortable="custom"
/> />
<el-table-column :label="$t('common:action:action')"> <el-table-column :label="$t('common:action:action')" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="PreviewFile(scope.row)"> <el-button type="text" @click="PreviewFile(scope.row)">
{{ $t('common:button:preview') }} {{ $t('common:button:preview') }}
@@ -235,7 +234,7 @@ export default {
}, },
// //
handleAdd() { handleAdd() {
this.editDialog.title = 'Add' this.editDialog.title = this.$t('common:button:new')
this.currentRow = { FileTypeEnum: FileTypeEnum } this.currentRow = { FileTypeEnum: FileTypeEnum }
this.editDialog.visible = true this.editDialog.visible = true
}, },
@@ -252,7 +251,7 @@ export default {
}, },
// //
handleEdit(row) { handleEdit(row) {
this.editDialog.title = 'Edit' this.editDialog.title = this.$t('common:action:edit')
this.currentRow = { ...row } this.currentRow = { ...row }
this.editDialog.visible = true this.editDialog.visible = true
}, },
@@ -33,7 +33,6 @@
</el-form> </el-form>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus"
style="margin-left: auto; margin-bottom: 10px" style="margin-left: auto; margin-bottom: 10px"
size="small" size="small"
@click="handleAdd" @click="handleAdd"
@@ -117,7 +116,7 @@
sortable="custom" sortable="custom"
/> />
<el-table-column :label="$t('common:action:action')" min-width="100"> <el-table-column :label="$t('common:action:action')" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handlePreview(scope.row)"> <el-button type="text" @click="handlePreview(scope.row)">
{{ $t('common:button:preview') }} {{ $t('common:button:preview') }}
@@ -247,7 +246,7 @@ export default {
}, },
// //
handleAdd() { handleAdd() {
this.title = 'Add' this.title = this.$t('common:button:new')
this.currentRow = {} this.currentRow = {}
this.editVisible = true this.editVisible = true
}, },
@@ -262,7 +261,7 @@ export default {
}, },
// //
handleEdit(row) { handleEdit(row) {
this.title = 'Edit' this.title = this.$t('common:action:edit')
this.currentRow = { ...row } this.currentRow = { ...row }
this.editVisible = true this.editVisible = true
}, },
@@ -9,10 +9,10 @@
class="upload-temporary-file" class="upload-temporary-file"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Code" prop="Code"> <el-form-item :label="$t('dictionary:attachment:label:code')" prop="Code">
<el-input v-model="form.Code" /> <el-input v-model="form.Code" />
</el-form-item> </el-form-item>
<el-form-item label="业务场景: " prop="BusinessScenarioEnum"> <el-form-item :label="$t('dictionary:attachment:label:businessScenario')" prop="BusinessScenarioEnum">
<el-select <el-select
v-model="form.BusinessScenarioEnum" v-model="form.BusinessScenarioEnum"
style="width: 100%" style="width: 100%"
@@ -28,7 +28,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件: "> <el-form-item :label="$t('dictionary:attachment:label:file')">
<div class="upload-container"> <div class="upload-container">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@@ -57,7 +57,7 @@
</el-upload> </el-upload>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="文件名" prop="Name"> <el-form-item :label="$t('dictionary:attachment:label:name')" prop="Name">
<el-input v-model="form.Name" /> <el-input v-model="form.Name" />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -66,7 +66,7 @@
> >
<el-input v-model="form.NameCN" /> <el-input v-model="form.NameCN" />
</el-form-item> </el-form-item>
<el-form-item v-if="form.Id !== ''" label="是否废除: "> <el-form-item v-if="form.Id !== ''" :label="$t('dictionary:attachment:label:isDeleted')">
<el-radio-group v-model="form.IsDeleted"> <el-radio-group v-model="form.IsDeleted">
<el-radio <el-radio
v-for="item of $d.YesOrNo" v-for="item of $d.YesOrNo"
@@ -76,12 +76,11 @@
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="描述"> <el-form-item :label="$t('dictionary:attachment:label:description')">
<el-input <el-input
v-model="form.Description" v-model="form.Description"
type="textarea" type="textarea"
:autosize="{ minRows: 2, maxRows: 4 }" :autosize="{ minRows: 2, maxRows: 4 }"
placeholder="请输入内容"
/> />
</el-form-item> </el-form-item>
</div> </div>
@@ -93,7 +92,7 @@
:disabled="!form.FileTypeEnum || !form.BusinessScenarioEnum" :disabled="!form.FileTypeEnum || !form.BusinessScenarioEnum"
:loading="saveBtnLoading" :loading="saveBtnLoading"
@click="handleSave" @click="handleSave"
>Save</el-button >{{ $t('common:button:save') }}</el-button
> >
</el-form-item> </el-form-item>
</div> </div>
@@ -132,16 +131,16 @@ export default {
}, },
rules: { rules: {
Code: [ Code: [
{ required: true, message: 'Please specify', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
], ],
Name: [ Name: [
{ required: true, message: 'Please specify', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
], ],
NameCN: [ NameCN: [
{ required: true, message: 'Please specify', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
], ],
BusinessScenarioEnum: [ BusinessScenarioEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] },
], ],
}, },
fileList: [], fileList: [],
@@ -193,7 +192,7 @@ export default {
this.fileList = [] this.fileList = []
return true return true
} else { } else {
this.$alert('必须是word/excel格式') this.$alert(this.$t('dictionary:attachment:export:alert:formatFile'))
return false return false
} }
@@ -220,7 +219,7 @@ export default {
this.$refs.sysTemplateFrom.validate((valid) => { this.$refs.sysTemplateFrom.validate((valid) => {
if (!valid) return if (!valid) return
if (!this.form.Name) { if (!this.form.Name) {
this.$alert('Please select file.') this.$alert(this.$t('dictionary:attachment:message:msg1'))
return return
} }
this.saveBtnLoading = true this.saveBtnLoading = true
@@ -229,7 +228,7 @@ export default {
this.saveBtnLoading = false this.saveBtnLoading = false
this.$emit('closeDialog') this.$emit('closeDialog')
this.$emit('getList') this.$emit('getList')
this.$message.success('Uploaded successfully') this.$message.success(this.$t('common:message:savedSuccessfully'))
}) })
.catch(() => { .catch(() => {
this.saveBtnLoading = false this.saveBtnLoading = false
@@ -248,7 +247,7 @@ export default {
} }
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`Upload is currently limited to 1 file`) this.$message.warning(this.$t('upload:rule:maxFile1'))
}, },
checkFileSuffix(fileName) { checkFileSuffix(fileName) {
var typeArr = ['xls', 'xlsx', 'doc', 'docx'] var typeArr = ['xls', 'xlsx', 'doc', 'docx']
@@ -2,7 +2,8 @@
<BaseContainer> <BaseContainer>
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true" size="small"> <el-form :inline="true" size="small">
<el-form-item label="业务场景"> <!-- 业务场景 -->
<el-form-item :label="$t('dictionary:attachment:label:businessScenario')">
<el-select <el-select
v-model="searchData.BusinessScenarioEnum" v-model="searchData.BusinessScenarioEnum"
style="width: 150px" style="width: 150px"
@@ -15,7 +16,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件名称"> <!-- 文件名称 -->
<el-form-item :label="$t('dictionary:attachment:label:name')">
<el-input v-model="searchData.Name" style="width: 130px" clearable /> <el-input v-model="searchData.Name" style="width: 130px" clearable />
</el-form-item> </el-form-item>
@@ -35,7 +37,6 @@
</el-form-item> </el-form-item>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus"
style="float: right" style="float: right"
size="small" size="small"
@click="handleAdd" @click="handleAdd"
@@ -56,14 +57,14 @@
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<el-table-column <el-table-column
prop="Code" prop="Code"
label="Code" :label="$t('dictionary:attachment:label:code')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- 业务场景 -->
<el-table-column <el-table-column
prop="BusinessScenarioEnum" prop="BusinessScenarioEnum"
label="业务场景" :label="$t('dictionary:attachment:label:businessScenario')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -76,10 +77,10 @@
}} }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 文件名称 -->
<el-table-column <el-table-column
prop="Name" prop="Name"
label="文件名称" :label="$t('dictionary:attachment:label:name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
@@ -89,14 +90,16 @@
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- 描述 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:attachment:label:description')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 是否废除 -->
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
label="是否废除" :label="$t('dictionary:attachment:label:isDeleted')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -109,26 +112,27 @@
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 上传时间 -->
<el-table-column <el-table-column
prop="UpdateTime" prop="UpdateTime"
label="上传时间" :label="$t('dictionary:attachment:label:updateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action"> <el-table-column :label="$t('common:action:action')" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="PreviewFile(scope.row)"> <el-button type="text" @click="PreviewFile(scope.row)">
{{ $t('common:button:preview') }} {{ $t('common:button:preview') }}
</el-button> </el-button>
<el-button type="text" @click="handleDownload(scope.row)"> <el-button type="text" @click="handleDownload(scope.row)">
下载 {{ $t('common:button:download') }}
</el-button> </el-button>
<el-button type="text" @click="handleEdit(scope.row)"> <el-button type="text" @click="handleEdit(scope.row)">
编辑 {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button type="text" @click="handleDelete(scope.row)"> <el-button type="text" @click="handleDelete(scope.row)">
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -197,12 +201,13 @@ export default {
}, },
methods: { methods: {
handleDelete(row) { handleDelete(row) {
this.$confirm('确定删除该模版?').then(() => { //
this.$confirm(this.$t('dictionary:attachment:message:msg1')).then(() => {
deleteCommonDocument(row.Id).then(() => { deleteCommonDocument(row.Id).then(() => {
this.$message.success('删除成功') this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.getList() this.getList()
}) })
}) }).catch(()=>{})
}, },
PreviewFile(row) { PreviewFile(row) {
let basePath = window.location.origin let basePath = window.location.origin
@@ -229,7 +234,7 @@ export default {
}, },
// //
handleAdd() { handleAdd() {
this.editDialog.title = 'Add' this.editDialog.title = this.$t('common:button:new')
this.currentRow = { FileTypeEnum: FileTypeEnum } this.currentRow = { FileTypeEnum: FileTypeEnum }
this.editDialog.visible = true this.editDialog.visible = true
}, },
@@ -246,7 +251,7 @@ export default {
}, },
// //
handleEdit(row) { handleEdit(row) {
this.editDialog.title = 'Edit' this.editDialog.title = this.$t('common:button:edit')
this.currentRow = { ...row } this.currentRow = { ...row }
this.editDialog.visible = true this.editDialog.visible = true
}, },
+3 -15
View File
@@ -2,13 +2,13 @@
<div class="app-container my_menu" > <div class="app-container my_menu" >
<el-form :inline="true"> <el-form :inline="true">
<el-form-item label="模块"> <el-form-item label="模块">
<el-select v-model="queryParams.ModuleTypeId" placeholder="模块" clearable size="small"> <el-select v-model="queryParams.ModuleTypeId" placeholder="模块" clearable >
<el-option v-for="item of dict.type.ModuleType" :key="`ModuleTypeId${item.value}`" :value="item.value" :label="item.raw.ValueCN" /> <el-option v-for="item of dict.type.ModuleType" :key="`ModuleTypeId${item.value}`" :value="item.value" :label="item.raw.ValueCN" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> <el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div> <div>
@@ -66,42 +66,30 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN " v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
size="mini"
type="text" type="text"
icon="el-icon-top"
@click="handleUpMove(scope.row)" @click="handleUpMove(scope.row)"
>上移</el-button> >上移</el-button>
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>修改</el-button> >修改</el-button>
<el-button <el-button
v-if="!(scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN)" v-if="!(scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN)"
size="mini"
type="text" type="text"
icon="el-icon-plus"
@click="handleAdd(scope.row)" @click="handleAdd(scope.row)"
>新增</el-button> >新增</el-button>
<el-button <el-button
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN " v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
size="mini"
type="text" type="text"
icon="el-icon-plus"
@click="handleChildren(scope.row)" @click="handleChildren(scope.row)"
>Children</el-button> >Children</el-button>
<el-button <el-button
v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN " v-if="scope.row.ModuleTypeValueCN && scope.row.ObjectTypeValueCN && scope.row.OptTypeValueCN && scope.row.ChildrenTypeValueCN "
size="mini"
type="text" type="text"
icon="el-icon-plus"
@click="handleCopy(scope.row)" @click="handleCopy(scope.row)"
>复制到</el-button> >复制到</el-button>
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
>删除</el-button> >删除</el-button>
</template> </template>
@@ -1,30 +1,29 @@
<template> <template>
<box-content> <box-content>
<div class="search"> <div class="search">
<el-form :inline="true" size="small" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="CRO Name:"> <!-- CRO Name -->
<el-form-item :label="$t('institutions:cros:label:croName')">
<el-input v-model="searchData.CROName" style="width: 100px" /> <el-input v-model="searchData.CROName" style="width: 100px" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch" <el-button type="primary" icon="el-icon-search" @click="handleSearch">
>Search</el-button {{ $t('common:button:search') }}
> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
>Reset</el-button
> >
{{ $t('common:button:reset') }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left: auto"> <span style="margin-left: auto">
<el-button <el-button
size="small"
type="primary" type="primary"
style="margin-left: auto"
icon="el-icon-plus"
@click="handleAddCro" @click="handleAddCro"
>New</el-button >{{ $t('common:button:new') }}</el-button
> >
</span> </span>
</div> </div>
@@ -37,30 +36,34 @@
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- CRO Code -->
<el-table-column <el-table-column
prop="CROCode" prop="CROCode"
label="CRO Code" :label="$t('institutions:cros:label:croCode')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- CRO Name -->
<el-table-column <el-table-column
prop="CROName" prop="CROName"
label="CRO Name" :label="$t('institutions:cros:label:croName')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- CRO NameCN -->
<el-table-column <el-table-column
prop="CRONameCN" prop="CRONameCN"
label="CRO NameCN" :label="$t('institutions:cros:label:croNameCN')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Level -->
<el-table-column <el-table-column
prop="IsTrialLevel" prop="IsTrialLevel"
label="Level" :label="$t('institutions:cros:label:level')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -68,20 +71,20 @@
<span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span> <span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Action" min-width="200"> <el-table-column :label="$t('common:action:action')" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
circle type="text"
icon="el-icon-edit-outline"
:title="$t('common:button:edit')"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
/> >
{{ $t('common:button:edit') }}
</el-button>
<el-button <el-button
circle type="text"
icon="el-icon-delete"
:title="$t('common:button:delete')"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
/> >
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -160,13 +163,13 @@ export default {
// CRO // CRO
handleAddCro() { handleAddCro() {
this.rowData = {}; this.rowData = {};
this.title = "Add"; this.title =this.$t('common:button:new');
this.editVisible = true; this.editVisible = true;
}, },
// CRO // CRO
handleEdit(row) { handleEdit(row) {
this.rowData = row; this.rowData = row;
this.title = "Edit"; this.title = this.$t('common:action:edit');
this.editVisible = true; this.editVisible = true;
}, },
// CRO // CRO
@@ -5,19 +5,23 @@
:rules="rules" :rules="rules"
class="demo-ruleForm" class="demo-ruleForm"
size="small" size="small"
label-width="120px" label-width="140px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="CRO Name: " prop="CROName"> <!-- CRO Name -->
<el-form-item :label="$t('institutions:cros:label:croName')" prop="CROName">
<el-input v-model="form.CROName" /> <el-input v-model="form.CROName" />
</el-form-item> </el-form-item>
<el-form-item label="CRO NameCN: " prop="CRONameCN"> <!-- CRO NameCN -->
<el-form-item :label="$t('institutions:cros:label:croNameCN')" prop="CRONameCN">
<el-input v-model="form.CRONameCN" /> <el-input v-model="form.CRONameCN" />
</el-form-item> </el-form-item>
<el-form-item label="CRO Code: " prop="CROCode"> <!-- CRO Code -->
<el-form-item :label="$t('institutions:cros:label:croCode')" prop="CROCode">
<el-input v-model="form.CROCode" /> <el-input v-model="form.CROCode" />
</el-form-item> </el-form-item>
<el-form-item label="Level: "> <!-- Level -->
<el-form-item :label="$t('institutions:cros:label:level')">
<el-switch <el-switch
:disabled="!IsTrialLevel" :disabled="!IsTrialLevel"
v-model="form.IsTrialLevel" v-model="form.IsTrialLevel"
@@ -30,10 +34,10 @@
<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-form-item>
<el-button :disabled="btnLoading" type="primary" @click="handleCancel" <el-button :disabled="btnLoading" type="primary" @click="handleCancel"
>Cancel</el-button >{{ $t('common:button:cancel') }}</el-button
> >
<el-button type="primary" :loading="btnLoading" @click="handleSave" <el-button type="primary" :loading="btnLoading" @click="handleSave"
>Save</el-button >{{ $t('common:button:save') }}</el-button
> >
</el-form-item> </el-form-item>
</div> </div>
@@ -67,16 +71,16 @@ export default {
}, },
rules: { rules: {
CROName: [ CROName: [
{ required: true, message: "Please specify", trigger: "blur" }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
{ max: 500, message: "The maximum length is 500" }, { max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
], ],
CRONameCN: [ CRONameCN: [
{ required: true, message: "Please specify", trigger: "blur" }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
{ max: 500, message: "The maximum length is 500" }, { max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
], ],
CROCode: [ CROCode: [
{ required: true, message: "Please specify", trigger: "blur" }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
{ max: 50, message: "The maximum length is 50" }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
}, },
}; };
@@ -95,7 +99,7 @@ export default {
.then((res) => { .then((res) => {
this.btnLoading = false; this.btnLoading = false;
if (res.IsSuccess) { if (res.IsSuccess) {
this.$message.success("Saved successfully"); this.$message.success(this.$t('common:message:savedSuccessfully'));
this.$refs["CROForm"].resetFields(); this.$refs["CROForm"].resetFields();
this.$emit("getList"); this.$emit("getList");
this.$emit("close"); this.$emit("close");
@@ -8,7 +8,8 @@
label-width="170px" label-width="170px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Site: "> <!-- Site -->
<el-form-item :label="$t('institutions:hospitals:label:site')">
<el-select <el-select
v-model="form.SiteId" v-model="form.SiteId"
style="width: 100%" style="width: 100%"
@@ -25,40 +26,50 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="Hospital CN: " prop="HospitalNameCN"> <!-- Hospital CN -->
<el-form-item :label="$t('institutions:hospitals:label:hospitalCN')" prop="HospitalNameCN">
<el-input v-model="form.HospitalNameCN" /> <el-input v-model="form.HospitalNameCN" />
</el-form-item> </el-form-item>
<el-form-item label="Hospital EN: " prop="HospitalName"> <!-- Hospital EN -->
<el-form-item :label="$t('institutions:hospitals:label:hospital')" prop="HospitalName">
<el-input v-model="form.HospitalName" /> <el-input v-model="form.HospitalName" />
</el-form-item> </el-form-item>
<!-- Affiliated University CN -->
<el-form-item <el-form-item
label="Affiliated University CN: " :label="$t('institutions:hospitals:label:universityAffiliatedCN')"
prop="UniversityAffiliatedCN" prop="UniversityAffiliatedCN"
> >
<el-input v-model="form.UniversityAffiliatedCN" /> <el-input v-model="form.UniversityAffiliatedCN" />
</el-form-item> </el-form-item>
<!-- Affiliated University EN -->
<el-form-item <el-form-item
label="Affiliated University EN: " :label="$t('institutions:hospitals:label:universityAffiliated')"
prop="UniversityAffiliated" prop="UniversityAffiliated"
> >
<el-input v-model="form.UniversityAffiliated" /> <el-input v-model="form.UniversityAffiliated" />
</el-form-item> </el-form-item>
<el-form-item label="Country CN: " prop="CountryCN"> <!-- Country CN -->
<el-form-item :label="$t('institutions:hospitals:label:countryCN')" prop="CountryCN">
<el-input v-model="form.CountryCN" /> <el-input v-model="form.CountryCN" />
</el-form-item> </el-form-item>
<el-form-item label="Country EN: " prop="Country"> <!-- Country EN -->
<el-form-item :label="$t('institutions:hospitals:label:country')" prop="Country">
<el-input v-model="form.Country" /> <el-input v-model="form.Country" />
</el-form-item> </el-form-item>
<el-form-item label="Province CN: " prop="ProvinceCN"> <!-- Province CN -->
<el-form-item :label="$t('institutions:hospitals:label:provinceCN')" prop="ProvinceCN">
<el-input v-model="form.ProvinceCN" /> <el-input v-model="form.ProvinceCN" />
</el-form-item> </el-form-item>
<el-form-item label="Province EN: " prop="Province"> <!-- Province EN -->
<el-form-item :label="$t('institutions:hospitals:label:province')" prop="Province">
<el-input v-model="form.Province" /> <el-input v-model="form.Province" />
</el-form-item> </el-form-item>
<el-form-item label="City CN: " prop="CityCN"> <!-- City CN -->
<el-form-item :label="$t('institutions:hospitals:label:cityCN')" prop="CityCN">
<el-input v-model="form.CityCN" /> <el-input v-model="form.CityCN" />
</el-form-item> </el-form-item>
<el-form-item label="City EN: " prop="City"> <!-- City EN -->
<el-form-item :label="$t('institutions:hospitals:label:city')" prop="City">
<el-input v-model="form.City" /> <el-input v-model="form.City" />
</el-form-item> </el-form-item>
</div> </div>
@@ -69,14 +80,14 @@
size="small" size="small"
type="primary" type="primary"
@click="handleCancel" @click="handleCancel"
>Cancel</el-button >{{ $t('common:button:cancel') }}</el-button
> >
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
:loading="btnLoading" :loading="btnLoading"
@click="handleSave" @click="handleSave"
>Save</el-button >{{ $t('common:button:save') }}</el-button
> >
</el-form-item> </el-form-item>
</div> </div>
@@ -121,29 +132,29 @@ export default {
siteList: [], siteList: [],
rules: { rules: {
HospitalNameCN: [ HospitalNameCN: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
UniversityAffiliated: [ UniversityAffiliated: [
{ max: 100, message: 'The maximum length is 100' }, { max: 100, message: this.$t('common:ruleMessage:maxLength') + ' 100' },
], ],
UniversityAffiliatedCN: [ UniversityAffiliatedCN: [
{ max: 100, message: 'The maximum length is 100' }, { max: 100, message: this.$t('common:ruleMessage:maxLength') + ' 100' },
], ],
Country: [{ max: 50, message: 'The maximum length is 50' }], Country: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
CountryCN: [ CountryCN: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
Province: [{ max: 50, message: 'The maximum length is 50' }], Province: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
ProvinceCN: [ ProvinceCN: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
City: [{ max: 50, message: 'The maximum length is 50' }], City: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
CityCN: [ CityCN: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: 'Please specify', trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
}, },
} }
@@ -184,7 +195,7 @@ export default {
.then((res) => { .then((res) => {
this.btnLoading = false this.btnLoading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.$message.success('Saved successfully') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$refs['hospitalForm'].resetFields() this.$refs['hospitalForm'].resetFields()
this.$emit('getList') this.$emit('getList')
this.$emit('close') this.$emit('close')
@@ -1,29 +1,37 @@
<template> <template>
<box-content> <box-content>
<div class="search"> <div class="search">
<el-form :inline="true" size="small" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Hospital:"> <!-- Hospital -->
<el-form-item :label="$t('institutions:hospitals:label:hospital')">
<el-input v-model="searchData.HospitalName" style="width:100px;" /> <el-input v-model="searchData.HospitalName" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item label="Province:"> <!-- Province -->
<el-form-item :label="$t('institutions:hospitals:label:province')">
<el-input v-model="searchData.Province" style="width:100px;" /> <el-input v-model="searchData.Province" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item label="City:"> <!-- City -->
<el-form-item :label="$t('institutions:hospitals:label:city')">
<el-input v-model="searchData.City" style="width:100px;" /> <el-input v-model="searchData.City" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">Reset</el-button> {{ $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-item>
</el-form> </el-form>
<span style="margin-left:auto;"> <span style="margin-left:auto;">
<el-button <el-button
size="small"
type="primary" type="primary"
style="margin-left:auto;"
icon="el-icon-plus"
@click="handleAddHospital" @click="handleAddHospital"
>New</el-button> >{{ $t('common:button:new') }}</el-button>
</span> </span>
</div> </div>
<!-- hospital列表 --> <!-- hospital列表 -->
@@ -36,92 +44,102 @@
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- Hospital -->
<el-table-column <el-table-column
prop="HospitalName" prop="HospitalName"
label="Hospital" :label="$t('institutions:hospitals:label:hospital')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Hospital CN -->
<el-table-column <el-table-column
prop="HospitalNameCN" prop="HospitalNameCN"
label="Hospital CN" label="Hospital CN"
:label="$t('institutions:hospitals:label:hospitalCN')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- University Affiliated -->
<el-table-column <el-table-column
prop="UniversityAffiliated" prop="UniversityAffiliated"
label="University Affiliated" :label="$t('institutions:hospitals:label:universityAffiliated')"
min-width="170" min-width="170"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- University Affiliated CN -->
<el-table-column <el-table-column
prop="UniversityAffiliatedCN" prop="UniversityAffiliatedCN"
label="University Affiliated CN" :label="$t('institutions:hospitals:label:universityAffiliatedCN')"
min-width="170" min-width="170"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Country -->
<el-table-column <el-table-column
prop="Country" prop="Country"
label="Country" :label="$t('institutions:hospitals:label:country')"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Country CN -->
<el-table-column <el-table-column
prop="CountryCN" prop="CountryCN"
label="Country CN" :label="$t('institutions:hospitals:label:countryCN')"
width="140" width="140"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Province -->
<el-table-column <el-table-column
prop="Province" prop="Province"
label="Province" :label="$t('institutions:hospitals:label:province')"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Province CN -->
<el-table-column <el-table-column
prop="ProvinceCN" prop="ProvinceCN"
label="Province CN" :label="$t('institutions:hospitals:label:provinceCN')"
width="140" width="140"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- City -->
<el-table-column <el-table-column
prop="City" prop="City"
label="City" :label="$t('institutions:hospitals:label:city')"
width="120" width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- City CN -->
<el-table-column <el-table-column
prop="CityCN" prop="CityCN"
label="City CN" :label="$t('institutions:hospitals:label:cityCN')"
width="120" width="130"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action" width="150"> <el-table-column :label="$t('common:action:action')" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
circle type="text"
icon="el-icon-edit-outline"
:title="$t('common:button:edit')"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
/> >
{{ $t('common:button:edit') }}
</el-button>
<el-button <el-button
circle type="text"
icon="el-icon-delete"
:title="$t('common:button:delete')"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
/> >
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -190,13 +208,13 @@ export default {
// //
handleAddHospital() { handleAddHospital() {
this.rowData = {} this.rowData = {}
this.editDialog.title = 'Add' this.editDialog.title = this.$t('common:button:new')
this.editDialog.visible = true this.editDialog.visible = true
}, },
// //
handleEdit(row) { handleEdit(row) {
this.rowData = row this.rowData = row
this.editDialog.title = 'Edit' this.editDialog.title = this.$t('common:action:edit')
this.editDialog.visible = true this.editDialog.visible = true
}, },
// //
@@ -9,49 +9,50 @@
label-width="150px" label-width="150px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Site Code: " v-if="form.Id" prop="SiteCode"> <!-- Site Code -->
<el-form-item :label="$t('institutions:sites:label:siteCode')" v-if="form.Id" prop="SiteCode">
<el-input v-model="form.SiteCode" disabled /> <el-input v-model="form.SiteCode" disabled />
</el-form-item> </el-form-item>
<!-- 中心名称 --> <!-- 中心名称 -->
<el-form-item <el-form-item
:label="$t('trials:customSite:form:siteName')" :label="$t('institutions:sites:label:siteName')"
prop="SiteName" prop="SiteName"
> >
<el-input v-model="form.SiteName" /> <el-input v-model="form.SiteName" />
</el-form-item> </el-form-item>
<!-- 中心名称CN --> <!-- 中心名称CN -->
<el-form-item <el-form-item
:label="$t('trials:customSite:form:siteName') + 'CN'" :label="$t('institutions:sites:label:siteNameCN')"
prop="SiteNameCN" prop="SiteNameCN"
> >
<el-input v-model="form.SiteNameCN" /> <el-input v-model="form.SiteNameCN" />
</el-form-item> </el-form-item>
<!-- Alias Name -->
<el-form-item label="Alias Name: "> <el-form-item :label="$t('institutions:sites:label:aliasName')">
<el-input v-model="form.AliasName" /> <el-input v-model="form.AliasName" />
</el-form-item> </el-form-item>
<!-- <el-form-item label="组织机构代码: "> <!-- <el-form-item label="组织机构代码: ">
<el-input v-model="form.UniqueCode" /> <el-input v-model="form.UniqueCode" />
</el-form-item> --> </el-form-item> -->
<!-- Country -->
<el-form-item label="Country: " prop="Country"> <el-form-item :label="$t('institutions:sites:label:country')" prop="Country">
<el-input v-model="form.Country" /> <el-input v-model="form.Country" />
</el-form-item> </el-form-item>
<!-- City -->
<el-form-item label="City: " prop="City"> <el-form-item :label="$t('institutions:sites:label:city')" prop="City">
<el-input v-model="form.City" /> <el-input v-model="form.City" />
</el-form-item> </el-form-item>
<el-form-item label="Address: " prop="Address"> <!-- Address -->
<el-form-item :label="$t('institutions:sites:label:address')" prop="Address">
<el-input v-model="form.Address" /> <el-input v-model="form.Address" />
</el-form-item> </el-form-item>
<!-- Affiliated Hospital -->
<el-form-item label="Affiliated Hospital: "> <el-form-item :label="$t('institutions:sites:label:affiliatedHospital')">
<el-select <el-select
v-model="form.HospitalId" v-model="form.HospitalId"
clearable clearable
placeholder="Please select"
style="width: 100%" style="width: 100%"
> >
<el-option <el-option
@@ -62,20 +63,20 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- Director Name -->
<el-form-item label="Director Name: " prop="DirectorName"> <el-form-item :label="$t('institutions:sites:label:directorName')" prop="DirectorName">
<el-input v-model="form.DirectorName" /> <el-input v-model="form.DirectorName" />
</el-form-item> </el-form-item>
<!-- Director Phone -->
<el-form-item label="Director Phone: " prop="DirectorPhone"> <el-form-item :label="$t('institutions:sites:label:directorPhone')" prop="DirectorPhone">
<el-input v-model="form.DirectorPhone" /> <el-input v-model="form.DirectorPhone" />
</el-form-item> </el-form-item>
<!-- Contact Name -->
<el-form-item label="Contact Name: " prop="ContactName"> <el-form-item :label="$t('institutions:sites:label:contactName')" prop="ContactName">
<el-input v-model="form.ContactName" /> <el-input v-model="form.ContactName" />
</el-form-item> </el-form-item>
<!-- Contact Phone -->
<el-form-item label="Contact Phone: " prop="ContactPhone"> <el-form-item :label="$t('institutions:sites:label:contactPhone')" prop="ContactPhone">
<el-input v-model="form.ContactPhone" /> <el-input v-model="form.ContactPhone" />
</el-form-item> </el-form-item>
</div> </div>
@@ -86,14 +87,14 @@
size="small" size="small"
type="primary" type="primary"
@click="handleCancel" @click="handleCancel"
>Cancel</el-button >{{ $t('common:button:cancel') }}</el-button
> >
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
:loading="btnLoading" :loading="btnLoading"
@click="handleSave" @click="handleSave"
>Save</el-button >{{ $t('common:button:save') }}</el-button
> >
</el-form-item> </el-form-item>
</div> </div>
@@ -133,35 +134,35 @@ export default {
}, },
rules: { rules: {
SiteName: [ SiteName: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
// { max: 50, message: 'The maximum length is 50' } // { max: 50, message: 'The maximum length is 50' }
], ],
SiteNameCN: [ SiteNameCN: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
// { max: 50, message: 'The maximum length is 50' } // { max: 50, message: 'The maximum length is 50' }
], ],
SiteCode: [ SiteCode: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
Country: [ Country: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
City: [ City: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: 'The maximum length is 50' }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
// HospitalId: [ // HospitalId: [
// { required: true, message: 'Please specify', trigger: 'blur' } // { required: true, message: 'Please specify', trigger: 'blur' }
// ], // ],
Address: [ Address: [
{ required: true, message: 'Please specify', trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
], ],
DirectorName: [{ max: 50, message: 'The maximum length is 50' }], DirectorName: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
DirectorPhone: [{ max: 50, message: 'The maximum length is 50' }], DirectorPhone: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
ContactName: [{ max: 50, message: 'The maximum length is 50' }], ContactName: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
ContactPhone: [{ max: 50, message: 'The maximum length is 50' }], ContactPhone: [{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }],
}, },
loading: false, loading: false,
show: false, show: false,
@@ -180,7 +181,7 @@ export default {
.then((res) => { .then((res) => {
this.btnLoading = false this.btnLoading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.$message.success('Saved successfully') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$refs['siteForm'].resetFields() this.$refs['siteForm'].resetFields()
this.$emit('getList') this.$emit('getList')
this.$emit('close') this.$emit('close')
@@ -1,46 +1,49 @@
<template> <template>
<box-content> <box-content>
<div class="search"> <div class="search">
<el-form :inline="true" size="small" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Site Name:"> <!-- Site Name -->
<el-form-item :label="$t('institutions:sites:label:siteName')">
<el-input v-model="searchData.SiteName" style="width: 120px" /> <el-input v-model="searchData.SiteName" style="width: 120px" />
</el-form-item> </el-form-item>
<el-form-item label="Alias Name:"> <!-- Alias Name -->
<el-form-item :label="$t('institutions:sites:label:aliasName')">
<el-input v-model="searchData.AliasName" style="width: 120px" /> <el-input v-model="searchData.AliasName" style="width: 120px" />
</el-form-item> </el-form-item>
<el-form-item label="Country:"> <!-- Country -->
<el-form-item :label="$t('institutions:sites:label:country')">
<el-input v-model="searchData.Country" style="width: 120px" /> <el-input v-model="searchData.Country" style="width: 120px" />
</el-form-item> </el-form-item>
<el-form-item label="City:"> <!-- City -->
<el-form-item :label="$t('institutions:sites:label:city')">
<el-input v-model="searchData.City" style="width: 120px" /> <el-input v-model="searchData.City" style="width: 120px" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch" <el-button type="primary" icon="el-icon-search" @click="handleSearch">
>Search</el-button {{ $t('common:button:search') }}
> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
>Reset</el-button
> >
{{ $t('common:button:reset') }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div style="margin-left: auto"> <div style="margin-left: auto">
<el-button <el-button
type="primary" type="primary"
size="small"
icon="el-icon-plus" icon="el-icon-plus"
@click="handleAddSystemSite" @click="handleAddSystemSite"
>{{ $t("trial:dictionary:institutions:site:addSystemSite") }} >{{ $t("trial:dictionary:institutions:site:addSystemSite") }}
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
size="small"
style="margin-left: 10px" style="margin-left: 10px"
icon="el-icon-plus"
@click="handleAddSite" @click="handleAddSite"
>New >
{{ $t('common:button:new') }}
</el-button> </el-button>
</div> </div>
</div> </div>
@@ -53,23 +56,34 @@
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- Site Code -->
<el-table-column <el-table-column
prop="SiteCode" prop="SiteCode"
label="Site Code" :label="$t('institutions:sites:label:siteCode')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Site Name -->
<el-table-column <el-table-column
prop="SiteName" prop="SiteName"
label="Site Name" :label="$t('institutions:sites:label:siteName')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column
prop="SiteNameCN"
:label="$t('institutions:sites:label:siteNameCN')"
min-width="150"
show-overflow-tooltip
sortable="custom"
/>
<!-- Alias Name -->
<el-table-column <el-table-column
prop="AliasName" prop="AliasName"
label="Alias Name" :label="$t('institutions:sites:label:aliasName')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
@@ -81,83 +95,92 @@
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> --> /> -->
<!-- Country -->
<el-table-column <el-table-column
prop="Country" prop="Country"
label="Country" :label="$t('institutions:sites:label:country')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- City -->
<el-table-column <el-table-column
prop="City" prop="City"
label="City" :label="$t('institutions:sites:label:city')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Address -->
<el-table-column <el-table-column
prop="Address" prop="Address"
label="Address" :label="$t('institutions:sites:label:address')"
min-width="120" min-width="120"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Affiliated Hospital -->
<el-table-column <el-table-column
prop="HospitalName" prop="HospitalName"
label="Affiliated Hospital" :label="$t('institutions:sites:label:affiliatedHospital')"
min-width="180" min-width="180"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Director Name -->
<el-table-column <el-table-column
prop="DirectorName" prop="DirectorName"
label="Director Name" :label="$t('institutions:sites:label:directorName')"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Director Phone -->
<el-table-column <el-table-column
prop="DirectorPhone" prop="DirectorPhone"
label="Director Phone" :label="$t('institutions:sites:label:directorPhone')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Contact Name -->
<el-table-column <el-table-column
prop="ContactName" prop="ContactName"
label="Contact Name" :label="$t('institutions:sites:label:contactName')"
min-width="150" min-width="150"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Contact Phone -->
<el-table-column <el-table-column
prop="ContactPhone" prop="ContactPhone"
label="Contact Phone" :label="$t('institutions:sites:label:contactPhone')"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- CreateTime -->
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="CreateTime" :label="$t('institutions:sites:label:createTime')"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action" fixed="right" width="150"> <el-table-column :label="$t('common:action:action')" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
circle type="text"
icon="el-icon-edit-outline"
:title="$t('common:button:edit')"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
/> >
{{ $t('common:button:edit') }}
</el-button>
<el-button <el-button
circle type="text"
icon="el-icon-delete"
:title="$t('common:button:delete')"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
/> >
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -357,7 +380,7 @@ export default {
data() { data() {
return { return {
editVisible: false, editVisible: false,
title: "Add", title: this.$t('common:button:new'),
searchData: searchDataDefault(), searchData: searchDataDefault(),
list: [], list: [],
total: 0, total: 0,
@@ -439,13 +462,13 @@ export default {
// Site // Site
handleAddSite() { handleAddSite() {
this.rowData = {}; this.rowData = {};
this.title = "Add"; this.title = this.$t('common:button:new');
this.editVisible = true; this.editVisible = true;
}, },
// Site // Site
handleEdit(row) { handleEdit(row) {
this.rowData = row; this.rowData = row;
this.title = "Edit"; this.title = this.$t('common:action:edit');
this.editVisible = true; this.editVisible = true;
}, },
// Site // Site
@@ -8,16 +8,20 @@
label-width="150px" label-width="150px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Sponsor Name: " prop="SponsorName"> <!-- Sponsor Name -->
<el-form-item :label="$t('institutions:sponsors:label:sponsorName')" prop="SponsorName">
<el-input v-model="form.SponsorName" /> <el-input v-model="form.SponsorName" />
</el-form-item> </el-form-item>
<el-form-item label="Sponsor NameCN: " prop="SponsorName"> <!-- Sponsor NameCN -->
<el-form-item :label="$t('institutions:sponsors:label:sponsorNameCN')" prop="SponsorName">
<el-input v-model="form.SponsorNameCN" /> <el-input v-model="form.SponsorNameCN" />
</el-form-item> </el-form-item>
<el-form-item label="Sponsor Code: " prop="SponsorCode"> <!-- Sponsor Code -->
<el-form-item :label="$t('institutions:sponsors:label:sponsorCode')" prop="SponsorCode">
<el-input v-model="form.SponsorCode" /> <el-input v-model="form.SponsorCode" />
</el-form-item> </el-form-item>
<el-form-item label="Level: "> <!-- Level -->
<el-form-item :label="$t('institutions:sponsors:label:level')">
<el-switch <el-switch
:disabled="!IsTrialLevel" :disabled="!IsTrialLevel"
v-model="form.IsTrialLevel" v-model="form.IsTrialLevel"
@@ -34,15 +38,17 @@
size="small" size="small"
type="primary" type="primary"
@click="handleCancel" @click="handleCancel"
>Cancel</el-button
> >
{{ $t('common:button:cancel') }}
</el-button>
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
:loading="btnLoading" :loading="btnLoading"
@click="handleSave" @click="handleSave"
>Save</el-button
> >
{{ $t('common:button:save') }}
</el-button>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
@@ -75,16 +81,16 @@ export default {
}, },
rules: { rules: {
SponsorName: [ SponsorName: [
{ required: true, message: "Please specify", trigger: "blur" }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
{ max: 500, message: "The maximum length is 500" }, { max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
], ],
SponsorNameCN: [ SponsorNameCN: [
{ required: true, message: "Please specify", trigger: "blur" }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
{ max: 500, message: "The maximum length is 500" }, { max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' },
], ],
SponsorCode: [ SponsorCode: [
{ required: true, message: "Please specify", trigger: "blur" }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: "blur" },
{ max: 50, message: "The maximum length is 50" }, { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' },
], ],
}, },
}; };
@@ -103,7 +109,7 @@ export default {
.then((res) => { .then((res) => {
this.btnLoading = false; this.btnLoading = false;
if (res.IsSuccess) { if (res.IsSuccess) {
this.$message.success("Saved successfully"); this.$message.success(this.$t('common:message:savedSuccessfully'));
this.$refs["sponsorForm"].resetFields(); this.$refs["sponsorForm"].resetFields();
this.$emit("getList"); this.$emit("getList");
this.$emit("close"); this.$emit("close");
@@ -1,30 +1,30 @@
<template> <template>
<box-content> <box-content>
<div class="search"> <div class="search">
<el-form :inline="true" size="small" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Sponsor Name:"> <!-- Sponsor Name -->
<el-form-item :label="$t('institutions:sponsors:label:sponsorName')">
<el-input v-model="searchData.SponsorName" style="width: 100px" /> <el-input v-model="searchData.SponsorName" style="width: 100px" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch" <el-button type="primary" icon="el-icon-search" @click="handleSearch">
>Search</el-button {{ $t('common:button:search') }}
> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
>Reset</el-button
> >
{{ $t('common:button:reset') }}
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left: auto"> <span style="margin-left: auto">
<el-button <el-button
size="small"
type="primary" type="primary"
style="margin-left: auto" style="margin-left: auto"
icon="el-icon-plus"
@click="handleAddSponsor" @click="handleAddSponsor"
>New</el-button >{{ $t('common:button:new') }}</el-button
> >
</span> </span>
</div> </div>
@@ -37,30 +37,34 @@
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- Sponsor Code -->
<el-table-column <el-table-column
prop="SponsorCode" prop="SponsorCode"
label="Sponsor Code" :label="$t('institutions:sponsors:label:sponsorCode')"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Sponsor Name -->
<el-table-column <el-table-column
prop="SponsorName" prop="SponsorName"
label="Sponsor Name" :label="$t('institutions:sponsors:label:sponsorName')"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Sponsor NameCN -->
<el-table-column <el-table-column
prop="SponsorNameCN" prop="SponsorNameCN"
label="Sponsor NameCN" :label="$t('institutions:sponsors:label:sponsorNameCN')"
min-width="100" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- Level -->
<el-table-column <el-table-column
prop="IsTrialLevel" prop="IsTrialLevel"
label="Level" :label="$t('institutions:sponsors:label:level')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -68,20 +72,20 @@
<span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span> <span>{{ $fd("IsTrialLevel", String(scope.row.IsTrialLevel)) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Action" min-width="150"> <el-table-column :label="$t('common:action:action')" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
circle type="text"
icon="el-icon-edit-outline"
:title="$t('common:button:edit')"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
/> >
{{ $t('common:button:edit') }}
</el-button>
<el-button <el-button
circle type="text"
icon="el-icon-delete"
:title="$t('common:button:delete')"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
/> >
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -160,13 +164,13 @@ export default {
// Sponsor // Sponsor
handleAddSponsor() { handleAddSponsor() {
this.rowData = {}; this.rowData = {};
this.title = "Add"; this.title = this.$t('common:button:new');
this.editVisible = true; this.editVisible = true;
}, },
// Sponsor // Sponsor
handleEdit(row) { handleEdit(row) {
this.rowData = row; this.rowData = row;
this.title = "Edit"; this.title = this.$t('common:action:edit');
this.editVisible = true; this.editVisible = true;
}, },
// Sponsor // Sponsor
+8 -4
View File
@@ -1,16 +1,20 @@
<template> <template>
<div class="institution-wrapper"> <div class="institution-wrapper">
<el-tabs v-model="activeTab" @tab-click="clickTab"> <el-tabs v-model="activeTab" @tab-click="clickTab">
<el-tab-pane label="Hospitals" name="Hospitals"> <!-- Hospitals -->
<el-tab-pane :label="$t('institutions:tab:hospitals')" name="Hospitals">
<Hospitals v-if="activeTab === 'Hospitals'" /> <Hospitals v-if="activeTab === 'Hospitals'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Sites" name="Sites"> <!-- Sites -->
<el-tab-pane :label="$t('institutions:tab:sites')" name="Sites">
<Sites v-if="activeTab === 'Sites'" /> <Sites v-if="activeTab === 'Sites'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="CROs" name="CROs"> <!-- CROs -->
<el-tab-pane :label="$t('institutions:tab:CROs')" name="CROs">
<CROs v-if="activeTab === 'CROs'" /> <CROs v-if="activeTab === 'CROs'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Sponsors" name="Sponsors"> <!-- Sponsors -->
<el-tab-pane :label="$t('institutions:tab:sponsors')" name="Sponsors">
<Sponsors v-if="activeTab === 'Sponsors'" /> <Sponsors v-if="activeTab === 'Sponsors'" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="字典表名称:"> <el-form-item label="字典表名称:">
<el-input v-model="searchData.Code" clearable style="width:120px;" /> <el-input v-model="searchData.Code" clearable style="width:120px;" />
</el-form-item> </el-form-item>
@@ -12,12 +12,24 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button
<el-button type="primary" @click="handleSearch">Search</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-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">新建</el-button> <el-button type="primary" @click="handleAdd">新建</el-button>
</span> </span>
</div> </div>
<el-table <el-table
@@ -68,25 +80,22 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="300" fixed="right"> <el-table-column label="操作" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
type="success" type="text"
size="mini"
@click="handleChild(scope.row)" @click="handleChild(scope.row)"
> >
子项 子项
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 删除
@@ -63,18 +63,16 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="300" fixed="right"> <el-table-column label="操作" width="150" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 删除
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="字典表名称:"> <el-form-item label="字典表名称:">
<el-input v-model="searchData.Code" clearable style="width:120px;" /> <el-input v-model="searchData.Code" clearable style="width:120px;" />
</el-form-item> </el-form-item>
@@ -12,12 +12,24 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button
<el-button type="primary" @click="handleSearch">Search</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-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">新建</el-button> <el-button type="primary" @click="handleAdd">新建</el-button>
</span> </span>
</div> </div>
<el-table <el-table
@@ -68,25 +80,22 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="300" fixed="right"> <el-table-column label="操作" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
type="success" type="text"
size="mini"
@click="handleChild(scope.row)" @click="handleChild(scope.row)"
> >
子项 子项
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 删除
@@ -183,16 +183,13 @@
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
icon="el-icon-plus"
@click="handleAdd" @click="handleAdd"
>{{ $t('common:button:new') }}</el-button> >{{ $t('common:button:new') }}</el-button>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 删除 --> <!-- 删除 -->
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDelete(scope.$index)" @click="handleDelete(scope.$index)"
>{{ $t('common:button:delete') }}</el-button> >{{ $t('common:button:delete') }}</el-button>
</template> </template>
@@ -65,15 +65,13 @@
<el-table-column label="操作" width="300" fixed="right"> <el-table-column label="操作" width="300" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 删除
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="字典表名称:"> <el-form-item label="字典表名称:">
<el-input v-model="searchData.Code" clearable style="width:120px;" /> <el-input v-model="searchData.Code" clearable style="width:120px;" />
</el-form-item> </el-form-item>
@@ -15,13 +15,25 @@
<el-input v-model="searchData.KeyInfo" clearable style="width:120px;" /> <el-input v-model="searchData.KeyInfo" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button
<el-button type="primary" @click="handleSearch">Search</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-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">新建</el-button> <el-button type="primary" @click="handleAdd">新建</el-button>
<el-button type="primary" size="mini" @click="handleBatchAdd">批量新建</el-button> <el-button type="primary" @click="handleBatchAdd">批量新建</el-button>
</span> </span>
</div> </div>
<el-table <el-table
@@ -86,22 +98,19 @@
<el-table-column label="操作" width="300" fixed="right"> <el-table-column label="操作" width="300" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
type="success" type="text"
size="mini"
@click="handleChild(scope.row)" @click="handleChild(scope.row)"
> >
子项 子项
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 删除
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="字典表名称:"> <el-form-item label="字典表名称:">
<el-input v-model="searchData.Code" clearable style="width:120px;" /> <el-input v-model="searchData.Code" clearable style="width:120px;" />
</el-form-item> </el-form-item>
@@ -12,13 +12,25 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button
<el-button type="primary" @click="handleSearch">Search</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-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleSetting">配置字典分组</el-button> <el-button type="primary" @click="handleSetting">配置字典分组</el-button>
<el-button type="primary" size="mini" @click="handleAdd">新建</el-button> <el-button type="primary" @click="handleAdd">新建</el-button>
</span> </span>
</div> </div>
<el-table <el-table
@@ -72,22 +84,19 @@
<el-table-column label="操作" width="300" fixed="right"> <el-table-column label="操作" width="300" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
type="success" type="text"
size="mini"
@click="handleChild(scope.row)" @click="handleChild(scope.row)"
> >
子项 子项
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 删除
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Code:"> <el-form-item label="Code:">
<el-input v-model="searchData.Code" clearable style="width:120px;" /> <el-input v-model="searchData.Code" clearable style="width:120px;" />
</el-form-item> </el-form-item>
@@ -10,12 +10,24 @@
<el-input v-model="searchData.KeyName" clearable style="width:120px;" /> <el-input v-model="searchData.KeyName" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button
<el-button type="primary" @click="handleSearch">Search</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-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">New</el-button> <el-button type="primary" @click="handleAdd">New</el-button>
</span> </span>
</div> </div>
<el-table <el-table
@@ -50,18 +62,16 @@
<el-table-column label="Action" width="200" fixed="right"> <el-table-column label="Action" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
Edit 编辑
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
Delete 删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
+37 -20
View File
@@ -3,15 +3,25 @@
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" size="mini" class="base-search-form">
<el-form-item label="编号:"> <!-- 编号 -->
<el-form-item :label="$t('dictionary:sign:label:code')">
<el-input v-model="searchData.Code" style="width:100px;" /> <el-input v-model="searchData.Code" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item label="模板:"> <!-- 模板 -->
<el-form-item :label="$t('dictionary:sign:label:name')">
<el-input v-model="searchData.Name" style="width:100px;" /> <el-input v-model="searchData.Name" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
<el-button type="primary" @click="handleSearch">Search</el-button> {{ $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-item>
</el-form> </el-form>
<span style="margin-left:auto;"> <span style="margin-left:auto;">
@@ -20,7 +30,7 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
> >
New {{ $t('common:button:new') }}
</el-button> </el-button>
</span> </span>
@@ -37,58 +47,65 @@
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
> >
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<!-- 编号 -->
<el-table-column <el-table-column
prop="Code" prop="Code"
label="Code" :label="$t('dictionary:sign:label:code')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 模板 -->
<el-table-column <el-table-column
prop="Name" prop="Name"
label="模板" :label="$t('dictionary:sign:label:name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- 签名内容(EN) -->
<el-table-column <el-table-column
prop="Value" prop="Value"
label="签名内容(EN)" :label="$t('dictionary:sign:label:value')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 签名内容(CN) -->
<el-table-column <el-table-column
prop="ValueCN" prop="ValueCN"
label="签名内容(CN)" :label="$t('dictionary:sign:label:valueCN')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 更新时间 -->
<el-table-column <el-table-column
prop="UpdateTime" prop="UpdateTime"
label="更新时间" :label="$t('dictionary:sign:label:updateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- 创建时间 -->
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="创建时间" :label="$t('dictionary:sign:label:createTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
Edit {{ $t('common:button:edit') }}
</el-button> </el-button>
<!-- 场景配置 -->
<el-button <el-button
type="text" type="text"
@click="handleConfig(scope.row)" @click="handleConfig(scope.row)"
> >
场景配置 {{ $t('dictionary:sign:button:config') }}
</el-button> </el-button>
<el-button type="text" @click="handleDelete(scope.row)">Delete</el-button> <el-button type="text" @click="handleDelete(scope.row)">
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -113,7 +130,7 @@
<el-dialog <el-dialog
v-if="configVisible" v-if="configVisible"
:visible.sync="configVisible" :visible.sync="configVisible"
title="场景配置" :title="$t('dictionary:sign:button:config')"
:fullscreen="true" :fullscreen="true"
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
@@ -167,13 +184,13 @@ export default {
// //
handleAdd() { handleAdd() {
this.rowData = {} this.rowData = {}
this.title = 'Add' this.title = this.$t('common:button:new')
this.editVisible = true this.editVisible = true
}, },
// //
handleEdit(row) { handleEdit(row) {
this.rowData = { ...row } this.rowData = { ...row }
this.title = 'Edit' this.title = this.$t('common:button:edit')
this.editVisible = true this.editVisible = true
}, },
// //
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item :label="$t('dictionary:browser:search:title')"> <el-form-item :label="$t('dictionary:browser:search:title')">
<el-input v-model="searchData.Title" style="width: 100px" /> <el-input v-model="searchData.Title" style="width: 100px" />
</el-form-item> </el-form-item>
@@ -23,7 +23,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left: auto"> <span style="margin-left: auto">
<el-button type="primary" size="mini" @click="handleAdd"> <el-button type="primary" @click="handleAdd">
{{ $t("dictionary:browser:button:add") }} {{ $t("dictionary:browser:button:add") }}
</el-button> </el-button>
</span> </span>
@@ -3,7 +3,7 @@
ref="organForm" ref="organForm"
v-loading="loading" v-loading="loading"
:model="form" :model="form"
label-width="130px" label-width="170px"
size="small" size="small"
:rules="rules" :rules="rules"
> >
@@ -8,32 +8,36 @@
label-width="160px" label-width="160px"
size="small" size="small"
> >
<el-form-item label="Group: " prop="Group"> <el-form-item :label="$t('template:anonymization:label:group')" prop="Group">
<el-input v-model="form.Group" /> <el-input v-model="form.Group" />
</el-form-item> </el-form-item>
<el-form-item label="Element: " prop="Group"> <el-form-item :label="$t('template:anonymization:label:element')" prop="Group">
<el-input v-model="form.Element" /> <el-input v-model="form.Element" />
</el-form-item> </el-form-item>
<el-form-item label="tag Description: " prop="Group"> <!-- tag Description -->
<el-form-item :label="$t('template:anonymization:label:tagDescription')" prop="Group">
<el-input v-model="form.TagDescription" /> <el-input v-model="form.TagDescription" />
</el-form-item> </el-form-item>
<el-form-item label="Tag DescriptionCN: " prop="Group"> <!-- Tag DescriptionCN -->
<el-form-item :label="$t('template:anonymization:label:tagDescriptionCN')" prop="Group">
<el-input v-model="form.TagDescriptionCN" /> <el-input v-model="form.TagDescriptionCN" />
</el-form-item> </el-form-item>
<el-form-item label="Value Representation: " prop="Group"> <!-- Value Representation -->
<el-form-item :label="$t('template:anonymization:label:valueRepresentation')" prop="Group">
<el-input v-model="form.ValueRepresentation" /> <el-input v-model="form.ValueRepresentation" />
</el-form-item> </el-form-item>
<el-form-item label="Is Fixed: "> <!-- Is Fixed -->
<el-form-item :label="$t('template:anonymization:label:isFixed')">
<el-switch <el-switch
v-model="form.IsFixed" v-model="form.IsFixed"
:active-value="true" :active-value="true"
:inactive-value="false" :inactive-value="false"
/> />
</el-form-item> </el-form-item>
<el-form-item label="Replace Value: "> <el-form-item :label="$t('template:anonymization:label:valueReplace')">
<el-input v-model="form.ReplaceValue" /> <el-input v-model="form.ReplaceValue" />
</el-form-item> </el-form-item>
<el-form-item label="Is Enable: "> <el-form-item :label="$t('template:anonymization:label:isEnable')">
<el-switch <el-switch
v-model="form.IsEnable" v-model="form.IsEnable"
:active-value="true" :active-value="true"
@@ -43,8 +47,8 @@
</el-form> </el-form>
</template> </template>
<template slot="dialog-footer"> <template slot="dialog-footer">
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">Cancel</el-button> <el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">{{ $t('common:button:cancel') }}</el-button>
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">Save</el-button> <el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">{{ $t('common:button:save') }}</el-button>
</template> </template>
</base-model> </base-model>
</template> </template>
@@ -82,7 +86,7 @@ export default {
IsAdd: false IsAdd: false
}, },
rules: { rules: {
Group: [{ required: true, message: 'Please specify', trigger: 'blur' }] Group: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }]
}, },
model_cfg: { visible: false, showClose: true, width: '600px', title: '' } model_cfg: { visible: false, showClose: true, width: '600px', title: '' }
} }
@@ -108,7 +112,7 @@ export default {
this.btnLoading = true this.btnLoading = true
addOrUpdateSystemAnonymization(this.form).then(res => { addOrUpdateSystemAnonymization(this.form).then(res => {
this.btnLoading = false this.btnLoading = false
this.$message.success('Saved successfully!') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.model_cfg.visible = false this.model_cfg.visible = false
this.$emit('getList') this.$emit('getList')
}).catch(() => { }).catch(() => {
@@ -2,17 +2,21 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Group:"> <!-- Group -->
<el-form-item :label="$t('template:anonymization:label:group')">
<el-input v-model="searchData.Group" clearable style="width:120px;" /> <el-input v-model="searchData.Group" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item label="Element:"> <!-- Element -->
<el-form-item :label="$t('template:anonymization:label:element')">
<el-input v-model="searchData.Element" clearable style="width:120px;" /> <el-input v-model="searchData.Element" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item label="Tag Description:"> <!-- Tag Description -->
<el-form-item :label="$t('template:anonymization:label:tagDescription')">
<el-input v-model="searchData.TagDescription" clearable style="width:120px;" /> <el-input v-model="searchData.TagDescription" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item label="Tag DescriptionCN:"> <!-- Tag DescriptionCN -->
<el-form-item :label="$t('template:anonymization:label:tagDescriptionCN')">
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" /> <el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@@ -29,7 +33,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">New</el-button> <el-button type="primary" @click="handleAdd">{{ $t('common:button:new') }}</el-button>
</span> </span>
</div> </div>
@@ -38,37 +42,42 @@
v-adaptive="{bottomOffset:45}" v-adaptive="{bottomOffset:45}"
:data="list" :data="list"
stripe stripe
size="small"
height="100" height="100"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
<!-- Group -->
<el-table-column <el-table-column
prop="Group" prop="Group"
label="Group" :label="$t('template:anonymization:label:group')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- Element -->
<el-table-column <el-table-column
prop="Element" prop="Element"
label="Element" :label="$t('template:anonymization:label:element')"
show-overflow-tooltip show-overflow-tooltip
min-width="110" min-width="110"
/> />
<!-- Tag Description -->
<el-table-column <el-table-column
prop="TagDescription" prop="TagDescription"
label="Tag Description" :label="$t('template:anonymization:label:tagDescription')"
min-width="110" min-width="110"
/> />
<!-- Tag DescriptionCN -->
<el-table-column <el-table-column
prop="TagDescriptionCN" prop="TagDescriptionCN"
label="Tag DescriptionCN" :label="$t('template:anonymization:label:tagDescriptionCN')"
min-width="110" min-width="110"
/> />
<!-- Value Representation -->
<el-table-column <el-table-column
prop="ValueRepresentation" prop="ValueRepresentation"
label="Value Representation" :label="$t('template:anonymization:label:valueRepresentation')"
min-width="110" min-width="110"
/> />
<el-table-column label="Is Fixed" width="100"> <!-- Is Fixed -->
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.IsFixed" v-model="scope.row.IsFixed"
@@ -78,12 +87,14 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<!-- Value Replace -->
<el-table-column <el-table-column
prop="ReplaceValue" prop="ReplaceValue"
label="Value Replace" :label="$t('template:anonymization:label:valueReplace')"
min-width="110" min-width="110"
/> />
<el-table-column label="Is Enable" width="100" fixed="right"> <!-- Is Enable -->
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.IsEnable" v-model="scope.row.IsEnable"
@@ -93,21 +104,19 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Action" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
Edit {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
Delete {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -153,7 +162,7 @@ export default {
switchChange(event, item) { switchChange(event, item) {
this.loading = true this.loading = true
addOrUpdateSystemAnonymization(item).then(res => { addOrUpdateSystemAnonymization(item).then(res => {
this.$message.success('Saved successfully!') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.loading = false this.loading = false
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
@@ -161,12 +170,12 @@ export default {
}, },
handleAdd() { handleAdd() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['AddDICOMConfig'].openDialog('New Anonymization', {}) this.$refs['AddDICOMConfig'].openDialog(this.$t('common:button:new'), {})
}) })
}, },
handleEdit(row) { handleEdit(row) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['AddDICOMConfig'].openDialog('Edit Anonymization', row) this.$refs['AddDICOMConfig'].openDialog(this.$t('common:action:edit'), row)
}) })
}, },
handleDelete(row) { handleDelete(row) {
@@ -2,11 +2,13 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="临床数据名称"> <!-- 临床数据名称 -->
<el-form-item :label="$t('trials:processCfg:title:clinicalDataCfg')">
<el-input v-model="searchData.ClinicalDataSetName" /> <el-input v-model="searchData.ClinicalDataSetName" />
</el-form-item> </el-form-item>
<el-form-item label="数据级别"> <!-- 数据级别 -->
<el-form-item :label="$t('trials:processCfg:title:dataLevel')">
<el-select v-model="searchData.ClinicalDataLevel" clearable style="width:120px;"> <el-select v-model="searchData.ClinicalDataLevel" clearable style="width:120px;">
<el-option <el-option
v-for="(item,index) of $d.ClinicalLevel" v-for="(item,index) of $d.ClinicalLevel"
@@ -16,7 +18,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="传输方式"> <!-- 传输方式 -->
<el-form-item :label="$t('trials:processCfg:title:transferType')">
<el-select v-model="searchData.ClinicalUploadType" clearable style="width:120px;"> <el-select v-model="searchData.ClinicalUploadType" clearable style="width:120px;">
<el-option <el-option
v-for="(item,index) of $d.ClinicalUploadType" v-for="(item,index) of $d.ClinicalUploadType"
@@ -40,7 +43,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">新增</el-button> <!-- 新增 -->
<el-button type="primary" @click="handleAdd">{{ $t('common:button:new') }}</el-button>
</span> </span>
</div> </div>
@@ -49,132 +53,152 @@
v-adaptive="{bottomOffset:45}" v-adaptive="{bottomOffset:45}"
:data="list" :data="list"
stripe stripe
size="small"
height="100" height="100"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="40" />
<!-- 临床数据名称 -->
<el-table-column <el-table-column
prop="ClinicalDataSetName" prop="ClinicalDataSetName"
label="临床数据名称" :label="$t('trials:processCfg:title:clinicalDataName')"
show-overflow-tooltip show-overflow-tooltip
min-width="160"
/> />
<!-- 临床数据名称EN -->
<el-table-column <el-table-column
prop="ClinicalDataSetEnName" prop="ClinicalDataSetEnName"
label="临床数据名称(EN" :label="$t('dictionary:clinicalData:label:clinicalDataNameEn')"
show-overflow-tooltip show-overflow-tooltip
min-width="190"
/> />
<!-- 上传人 -->
<el-table-column <el-table-column
prop="UploadRole" prop="UploadRole"
:label="$t('trials:uploadMonitor:table:uploader')" :label="$t('trials:processCfg:title:uploader')"
show-overflow-tooltip show-overflow-tooltip
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ClinicalDataUploadRole',scope.row.UploadRole) }} {{ $fd('ClinicalDataUploadRole',scope.row.UploadRole) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 数据级别 -->
<el-table-column <el-table-column
prop="ClinicalDataLevel" prop="ClinicalDataLevel"
label="数据级别" :label="$t('trials:processCfg:title:dataLevel')"
show-overflow-tooltip show-overflow-tooltip
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ClinicalLevel',scope.row.ClinicalDataLevel) }} {{ $fd('ClinicalLevel',scope.row.ClinicalDataLevel) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 传输方式 -->
<el-table-column <el-table-column
prop="ClinicalUploadType" prop="ClinicalUploadType"
label="传输方式" :label="$t('trials:processCfg:title:transferType')"
show-overflow-tooltip show-overflow-tooltip
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ClinicalUploadType',scope.row.ClinicalUploadType) }} {{ $fd('ClinicalUploadType',scope.row.ClinicalUploadType) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 匹配的阅片标准 -->
<el-table-column <el-table-column
prop="CriterionEnumList" prop="CriterionEnumList"
:label="$t('trials:auditRecord:table:criterion')" :label="$t('trials:processCfg:label:criterion')"
show-overflow-tooltip show-overflow-tooltip
min-width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.CriterionEnumList.map(v => $fd('CriterionType', v)).toString() }} {{ scope.row.CriterionEnumList.map(v => $fd('CriterionType', v)).toString() }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 模板名称 -->
<el-table-column <el-table-column
prop="FileName" prop="FileName"
label="模板名称" :label="$t('trials:processCfg:title:module')"
show-overflow-tooltip show-overflow-tooltip
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.FileName }} {{ scope.row.FileName }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 模板英文名称 -->
<el-table-column <el-table-column
prop="EnFileName" prop="EnFileName"
label="模板英文名称" :label="$t('trials:processCfg:title:enModule')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.EnFileName }} {{ scope.row.EnFileName }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 状态 -->
<el-table-column <el-table-column
prop="IsEnable" prop="IsEnable"
label="状态" :label="$t('dictionary:clinicalData:label:status')"
show-overflow-tooltip show-overflow-tooltip
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsEnable">启用</el-tag> <!-- <el-tag v-if="scope.row.IsEnable">启用</el-tag>
<el-tag v-else type="danger">禁用</el-tag> <el-tag v-else type="danger">禁用</el-tag> -->
<el-tag v-if="!scope.row.IsEnable" type="danger">{{ $fd('IsEnable', scope.row.IsEnable) }}</el-tag>
<el-tag v-else>{{ $fd('IsEnable', scope.row.IsEnable) }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 创建时间 -->
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="创建时间" :label="$t('dictionary:clinicalData:label:CreateTime')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
/> />
<el-table-column label="操作" width="340" fixed="right"> <el-table-column :label="$t('common:action:action')" min-width="250" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 问题配置 -->
<el-button <el-button
type="primary" type="text"
size="mini"
:disabled="scope.row.ClinicalUploadType !== 2" :disabled="scope.row.ClinicalUploadType !== 2"
@click="handleConfigQuestion(scope.row)" @click="handleConfigQuestion(scope.row)"
> >
问题配置 {{ $t('dictionary:clinicalData:button:qsConfig') }}
</el-button> </el-button>
<!-- 下载 -->
<el-button <el-button
v-if="$i18n.locale === 'zh'" v-if="$i18n.locale === 'zh'"
type="primary" type="text"
size="mini"
:disabled="!scope.row.FileName" :disabled="!scope.row.FileName"
@click="handleDownloadTpl(scope.row.Path)" @click="handleDownloadTpl(scope.row.Path)"
> >
下载 {{ $t('common:button:download') }}
</el-button> </el-button>
<!-- 下载 -->
<el-button <el-button
v-else v-else
type="primary" type="text"
size="mini"
:disabled="!scope.row.EnFileName" :disabled="!scope.row.EnFileName"
@click="handleDownloadTpl(scope.row.EnPath)" @click="handleDownloadTpl(scope.row.EnPath)"
> >
下载 {{ $t('common:button:download') }}
</el-button> </el-button>
<!-- 编辑 -->
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 {{ $t('common:action:edit') }}
</el-button> </el-button>
<!-- 删除 -->
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -184,11 +208,11 @@
:visible.sync="addOrEditCD.visible" :visible.sync="addOrEditCD.visible"
:close-on-click-modal="false" :close-on-click-modal="false"
:title="addOrEditCD.title" :title="addOrEditCD.title"
width="500px" width="600px"
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<ClinicalDataForm ref="addOrEditCD" :data="currentRow" @close="addOrEditCD.visible = false" @getList="getList" /> <clinical-data-form ref="addOrEditCD" :data="currentRow" @close="addOrEditCD.visible = false" @getList="getList" />
</el-dialog> </el-dialog>
<el-dialog <el-dialog
v-if="QuestionConfigVisible.visible" v-if="QuestionConfigVisible.visible"
@@ -199,7 +223,7 @@
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<ClinicalQuestionConfig ref="QuestionConfigVisible" :data="currentRow" @close="QuestionConfigVisible.visible = false" @getList="getList" /> <clinical-question-config ref="QuestionConfigVisible" :data="currentRow" @close="QuestionConfigVisible.visible = false" @getList="getList" />
</el-dialog> </el-dialog>
</box-content> </box-content>
</template> </template>
@@ -237,7 +261,8 @@ export default {
handleConfigQuestion(row) { handleConfigQuestion(row) {
this.currentRow = { ...row } this.currentRow = { ...row }
this.QuestionConfigVisible.visible = true this.QuestionConfigVisible.visible = true
this.QuestionConfigVisible.title = '问题配置' //
this.QuestionConfigVisible.title = this.$t('dictionary:clinicalData:button:qsConfig')
}, },
// //
getList() { getList() {
@@ -250,13 +275,13 @@ export default {
// //
handleAdd() { handleAdd() {
this.currentRow = {} this.currentRow = {}
this.addOrEditCD.title = '新增' this.addOrEditCD.title = this.$t('common:button:new')
this.addOrEditCD.visible = true this.addOrEditCD.visible = true
}, },
// //
handleEdit(row) { handleEdit(row) {
this.currentRow = { ...row } this.currentRow = { ...row }
this.addOrEditCD.title = '编辑' this.addOrEditCD.title = this.$t('common:action:edit')
this.addOrEditCD.visible = true this.addOrEditCD.visible = true
}, },
// //
@@ -272,7 +297,7 @@ export default {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$message.success('删除成功!') this.$message.success(this.$t('common:message:deletedSuccessfully'))
} }
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}) })
@@ -5,12 +5,13 @@
:model="form" :model="form"
size="small" size="small"
:rules="rules" :rules="rules"
label-width="110px" label-width="200px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="临床数据名称" prop="ClinicalDataSetEnum"> <!-- 临床数据名称 -->
<el-form-item :label="$t('trials:processCfg:title:clinicalDataName')" prop="ClinicalDataSetEnum">
<!-- <el-input v-model="form.ClinicalDataSetName" /> --> <!-- <el-input v-model="form.ClinicalDataSetName" /> -->
<el-select v-model="form.ClinicalDataSetEnum" placeholder="请选择" style="width:100%;"> <el-select v-model="form.ClinicalDataSetEnum" style="width:100%;">
<el-option <el-option
v-for="(item,index) of $d.ClinicalDataType" v-for="(item,index) of $d.ClinicalDataType"
:key="index" :key="index"
@@ -19,11 +20,10 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 上传人 -->
<el-form-item :label="$t('trials:studyList:table:uploader')" prop="UploadRole"> <el-form-item :label="$t('trials:processCfg:title:uploader')" prop="UploadRole">
<el-select <el-select
v-model="form.UploadRole" v-model="form.UploadRole"
placeholder="请选择"
style="width:100%;" style="width:100%;"
@change="handleUploadRoleChange" @change="handleUploadRoleChange"
> >
@@ -35,11 +35,10 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 数据级别 -->
<el-form-item label="数据级别" prop="ClinicalDataLevel"> <el-form-item :label="$t('trials:processCfg:title:dataLevel')" prop="ClinicalDataLevel">
<el-select <el-select
v-model="form.ClinicalDataLevel" v-model="form.ClinicalDataLevel"
placeholder="请选择"
style="width:100%;" style="width:100%;"
> >
<el-option <el-option
@@ -51,11 +50,10 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 传输方式 -->
<el-form-item label="传输方式" prop="ClinicalUploadType"> <el-form-item :label="$t('trials:processCfg:title:transferType')" prop="ClinicalUploadType">
<el-select <el-select
v-model="form.ClinicalUploadType" v-model="form.ClinicalUploadType"
placeholder="请选择"
style="width:100%;" style="width:100%;"
> >
<el-option <el-option
@@ -67,13 +65,13 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 阅片标准 -->
<el-form-item <el-form-item
:label="$t('trials:auditRecord:table:criterion')" :label="$t('trials:processCfg:label:criterion')"
prop="CriterionEnumList" prop="CriterionEnumList"
> >
<el-select <el-select
v-model="form.CriterionEnumList" v-model="form.CriterionEnumList"
placeholder="请选择"
multiple multiple
style="width:100%;" style="width:100%;"
> >
@@ -85,7 +83,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalUploadType === 1" label="模板: "> <!-- 模板 -->
<el-form-item v-if="form.ClinicalUploadType === 1" :label="$t('trials:processCfg:title:module')">
<div class="upload-container"> <div class="upload-container">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@@ -101,19 +100,21 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:disabled="form.Type === ''" :disabled="form.Type === ''"
> >
<el-button size="small" type="primary">选择</el-button> <el-button size="small" type="primary">
{{ $t('trials:processCfg:button:select') }}
</el-button>
<span <span
slot="tip" slot="tip"
style="margin-left:10px;" style="margin-left:10px;"
class="el-upload__tip" class="el-upload__tip"
> >
(必须是doc/docx格式) {{ $t('system:tip:file:docx') }}
</span> </span>
</el-upload> </el-upload>
</div> </div>
</el-form-item> </el-form-item>
<!-- 英文模板 -->
<el-form-item v-if="form.ClinicalUploadType === 1" label="英文模板: "> <el-form-item v-if="form.ClinicalUploadType === 1" :label="$t('trials:processCfg:title:enModule')">
<div class="upload-container"> <div class="upload-container">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@@ -129,19 +130,21 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:disabled="form.Type === ''" :disabled="form.Type === ''"
> >
<el-button size="small" type="primary">选择</el-button> <el-button size="small" type="primary">
{{ $t('trials:processCfg:button:select') }}
</el-button>
<span <span
slot="tip" slot="tip"
style="margin-left:10px;" style="margin-left:10px;"
class="el-upload__tip" class="el-upload__tip"
> >
(必须是doc/docx格式) {{ $t('system:tip:file:docx') }}
</span> </span>
</el-upload> </el-upload>
</div> </div>
</el-form-item> </el-form-item>
<!-- 是否启用 -->
<el-form-item v-if="form.Id !== ''" label="是否启用"> <el-form-item v-if="form.Id !== ''" :label="$t('dictionary:clinicalData:label:IsEnable')">
<el-switch v-model="form.IsEnable" /> <el-switch v-model="form.IsEnable" />
</el-form-item> </el-form-item>
</div> </div>
@@ -270,7 +273,7 @@ export default {
this.fileList = [] this.fileList = []
return true return true
} else { } else {
this.$alert('(必须是doc/docx格式)') this.$alert(this.$t('system:tip:file:docx'))
return false return false
} }
@@ -286,7 +289,7 @@ export default {
} }
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`只允许上传一个文件`) this.$message.warning(this.$t('trials:processCfg:title:onlyOneFile'))
}, },
beforeUploadEnFile(file) { beforeUploadEnFile(file) {
// //
@@ -294,7 +297,7 @@ export default {
this.enFileList = [] this.enFileList = []
return true return true
} else { } else {
this.$alert('(必须是doc/docx格式)') this.$alert(this.$t('system:tip:file:docx'))
return false return false
} }
@@ -2,39 +2,49 @@
<div class="criterion-config"> <div class="criterion-config">
<div class="search-form" style="display:flex;justify-content: space-between;"> <div class="search-form" style="display:flex;justify-content: space-between;">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" size="mini" class="base-search-form">
<el-form-item label="名称"> <!-- 名称 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:qName')">
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" /> <el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">重置</el-button> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
<el-button type="primary" @click="handleSearch">查询</el-button> {{ $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-item>
</el-form> </el-form>
<div> <div>
<!-- 预览 -->
<el-button <el-button
:disabled="list.length === 0" :disabled="list.length === 0"
size="mini" size="mini"
type="primary" type="primary"
@click="preview.visible = true" @click="preview.visible = true"
> >
预览 {{ $t('common:button:preview') }}
</el-button> </el-button>
<!-- 添加 -->
<el-button <el-button
v-if="Object.keys(data).length > 0 && !data.IsBeUsed" v-if="Object.keys(data).length > 0 && !data.IsBeUsed"
size="mini" size="mini"
type="primary" type="primary"
@click="handleAdd" @click="handleAdd"
> >
添加 {{ $t('common:button:add') }}
</el-button> </el-button>
<!-- 应用 -->
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@click="handleApply" @click="handleApply"
> >
应用 {{ $t('dictionary:clinicalDataQs:button:apply') }}
</el-button> </el-button>
</div> </div>
</div> </div>
@@ -52,81 +62,92 @@
label="" label=""
width="50" width="50"
/> />
<!-- 名称 -->
<el-table-column <el-table-column
prop="QuestionName" prop="QuestionName"
label="名称" :label="$t('trials:readingUnit:qsList:title:qName')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 名称(EN) -->
<el-table-column <el-table-column
prop="QuestionEnName" prop="QuestionEnName"
label="名称(EN)" :label="$t('trials:readingUnit:qsList:title:qNameEn')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 题型 -->
<el-table-column <el-table-column
prop="Type" prop="Type"
label="题型" :label="$t('trials:readingUnit:qsList:title:type')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ClinicalQuestionType',scope.row.ClinicalQuestionType) }} {{ $fd('ClinicalQuestionType',scope.row.ClinicalQuestionType) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 选项 -->
<el-table-column <el-table-column
prop="TypeValue" prop="TypeValue"
label="选项" :label="$t('trials:readingUnit:qsList:title:type')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 是否显示 -->
<el-table-column <el-table-column
prop="ClinicalQuestionShowEnum" prop="ClinicalQuestionShowEnum"
label="是否显示" :label="$t('trials:readingUnit:qsList:title:isShow')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ShowQuestion',scope.row.ClinicalQuestionShowEnum) }} {{ $fd('ShowQuestion',scope.row.ClinicalQuestionShowEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 是否必填 -->
<el-table-column <el-table-column
prop="IsRequired" prop="IsRequired"
label="是否必填" :label="$t('trials:qcCfg:table:isRequired')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('YesOrNo',scope.row.IsRequired) }} {{ $fd('YesOrNo',scope.row.IsRequired) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作 -->
<el-table-column <el-table-column
prop="" prop=""
label="操作" :label="$t('common:action:action')"
width="250" width="250"
show-overflow-tooltip show-overflow-tooltip
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 编辑 -->
<el-button <el-button
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
type="primary" type="primary"
size="mini" size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 {{ $t('trials:readingUnit:qsList:title:edit') }}
</el-button> </el-button>
<!-- 查看 -->
<el-button <el-button
v-else v-else
type="primary" type="primary"
size="mini" size="mini"
@click="handleLook(scope.row)" @click="handleLook(scope.row)"
> >
查看 {{ $t('trials:enrolledReviews:button:view') }}
</el-button> </el-button>
<!-- 表格问题 -->
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
:disabled="scope.row.ClinicalQuestionType !== 'table'" :disabled="scope.row.ClinicalQuestionType !== 'table'"
@click="handleConfig(scope.row)" @click="handleConfig(scope.row)"
> >
表格问题 {{ $t('trials:readingUnit:qsList:title:tableQs') }}
</el-button> </el-button>
<!-- 删除 -->
<el-button <el-button
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
type="danger" type="danger"
@@ -134,7 +155,7 @@
:disabled="scope.row.IsEnable" :disabled="scope.row.IsEnable"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -149,7 +170,7 @@
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<ClinicalQuestionForm <clinical-question-form
ref="addOrEdit" ref="addOrEdit"
:list="this.list" :list="this.list"
:clinical-id="clinicalId" :clinical-id="clinicalId"
@@ -254,7 +275,8 @@ export default {
applySystemClinical({ applySystemClinical({
SystemClinicalId: this.clinicalId SystemClinicalId: this.clinicalId
}).then(res => { }).then(res => {
this.$message.success('应用成功') //
this.$message.success(this.$t('dictionary:clinicalDataQs:message:msg1'))
this.$emit('close') this.$emit('close')
}) })
}, },
@@ -271,19 +293,19 @@ export default {
handleAdd() { handleAdd() {
this.rowData = { SystemClinicalId: this.data.Id, Id: '' } this.rowData = { SystemClinicalId: this.data.Id, Id: '' }
this.type = 'add' this.type = 'add'
this.addOrEdit.title = '添加' this.addOrEdit.title = this.$t('common:button:add')
this.addOrEdit.visible = true this.addOrEdit.visible = true
}, },
handleLook(row) { handleLook(row) {
this.rowData = { ...row } this.rowData = { ...row }
this.type = 'look' this.type = 'look'
this.addOrEdit.title = '查看' this.addOrEdit.title = this.$t('trials:enrolledReviews:button:view')
this.addOrEdit.visible = true this.addOrEdit.visible = true
}, },
handleEdit(row) { handleEdit(row) {
this.rowData = { ...row } this.rowData = { ...row }
this.type = 'edit' this.type = 'edit'
this.addOrEdit.title = '编辑' this.addOrEdit.title = this.$t('trials:readingUnit:qsList:title:edit')
this.addOrEdit.visible = true this.addOrEdit.visible = true
}, },
handleDelete(row) { handleDelete(row) {
@@ -298,14 +320,14 @@ export default {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$message.success('删除成功!') this.$message.success(this.$t('common:message:deletedSuccessfully'))
} }
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}) })
}, },
handleConfig(row) { handleConfig(row) {
this.rowData = { ...row } this.rowData = { ...row }
this.config.title = `表格问题` this.config.title = this.$t('trials:readingUnit:qsList:title:tableQs')
this.config.visible = true this.config.visible = true
}, },
// //
@@ -6,10 +6,11 @@
size="small" size="small"
:rules="rules" :rules="rules"
:disabled="type === 'look'" :disabled="type === 'look'"
label-width="130px" label-width="180px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="类型" prop="ClinicalQuestionType"> <!-- 类型 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:type')" prop="ClinicalQuestionType">
<el-select v-model="form.ClinicalQuestionType" clearable @change="((val)=>{typeChange(val, form)})"> <el-select v-model="form.ClinicalQuestionType" clearable @change="((val)=>{typeChange(val, form)})">
<el-option <el-option
v-for="item of $d.ClinicalQuestionType" v-for="item of $d.ClinicalQuestionType"
@@ -19,31 +20,35 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 问题名称 -->
<el-form-item <el-form-item
label="问题名称" :label="$t('trials:readingUnit:qsList:title:qName')"
prop="QuestionName" prop="QuestionName"
> >
<el-input v-model="form.QuestionName" /> <el-input v-model="form.QuestionName" />
</el-form-item> </el-form-item>
<!-- 问题名称EN -->
<el-form-item <el-form-item
label="问题名称(EN" :label="$t('dictionary:template:criterionConfig:title:qsNameEn')"
prop="QuestionEnName" prop="QuestionEnName"
> >
<el-input v-model="form.QuestionEnName" /> <el-input v-model="form.QuestionEnName" />
</el-form-item> </el-form-item>
<!-- 选项 -->
<el-form-item <el-form-item
v-if="form.ClinicalQuestionType === 'select' || form.ClinicalQuestionType === 'radio' || form.ClinicalQuestionType === 'checkbox'" v-if="form.ClinicalQuestionType === 'select' || form.ClinicalQuestionType === 'radio' || form.ClinicalQuestionType === 'checkbox'"
label="选项" :label="$t('trials:qcCfg:table:typeValue')"
prop="TypeValue" prop="TypeValue"
> >
<el-input <el-input
v-model="form.TypeValue" v-model="form.TypeValue"
placeholder="选项请用‘|’分割多个选项" :placeholder="$t('trials:qcCfg:message:typeValue')"
/> />
</el-form-item> </el-form-item>
<!-- 小数位数 -->
<el-form-item <el-form-item
v-if="form.ClinicalQuestionType === 'number'" v-if="form.ClinicalQuestionType === 'number'"
label="小数位数" :label="$t('trials:processCfg:form:digitPlaces')"
prop="DigitPlaces" prop="DigitPlaces"
> >
<el-radio-group <el-radio-group
@@ -59,16 +64,17 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- 单位 -->
<el-form-item <el-form-item
v-if="form.ClinicalQuestionType === 'number'" v-if="form.ClinicalQuestionType === 'number'"
label="单位" :label="$t('trials:readingUnit:qsList:title:unit')"
prop="Unit" prop="Unit"
> >
<el-input <el-input
v-model="form.Unit" v-model="form.Unit"
/> />
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalQuestionType !== 'group'" label="是否显示" prop="ClinicalQuestionShowEnum"> <el-form-item v-if="form.ClinicalQuestionType !== 'group'" :label="$t('trials:readingUnit:qsList:title:isShow')" prop="ClinicalQuestionShowEnum">
<el-radio-group <el-radio-group
v-model="form.ClinicalQuestionShowEnum" v-model="form.ClinicalQuestionShowEnum"
@change="((val)=>{isShowQuestionChange(val, form)})" @change="((val)=>{isShowQuestionChange(val, form)})"
@@ -82,9 +88,10 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- 显示依赖父问题 -->
<el-form-item <el-form-item
v-if="form.ClinicalQuestionType !== 'group' && form.ClinicalQuestionShowEnum===1" v-if="form.ClinicalQuestionType !== 'group' && form.ClinicalQuestionShowEnum===1"
label="显示依赖父问题" :label="$t('trials:readingUnit:qsList:title:parentId')"
prop="ParentId" prop="ParentId"
> >
<el-select <el-select
@@ -101,7 +108,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 显示时依赖父问题触发值 --> <!-- 显示时依赖父问题触发值 -->
<el-form-item v-if="form.ParentId && form.ClinicalQuestionShowEnum===1" label="显示触发值" prop="ParentTriggerValue"> <el-form-item v-if="form.ParentId && form.ClinicalQuestionShowEnum===1" :label="$t('trials:qcCfg:table:parentTriggerValue')" prop="ParentTriggerValue">
<el-select v-model="form.ParentTriggerValue" clearable> <el-select v-model="form.ParentTriggerValue" clearable>
<el-option <el-option
v-for="item of parentTriggerValOptions" v-for="item of parentTriggerValOptions"
@@ -111,7 +118,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalQuestionType !== 'group' && form.ClinicalQuestionType !== 'table'" label="是否必填" prop="IsRequired"> <!-- 是否必填 -->
<el-form-item v-if="form.ClinicalQuestionType !== 'group' && form.ClinicalQuestionType !== 'table'" :label="$t('trials:readingUnit:qsList:title:isRequired')" prop="IsRequired">
<el-radio-group <el-radio-group
v-model="form.IsRequired" v-model="form.IsRequired"
> >
@@ -124,7 +132,8 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalQuestionType !== 'group'" label="问题分组"> <!-- 问题分组 -->
<el-form-item v-if="form.ClinicalQuestionType !== 'group'" :label="$t('dictionary:template:criterionConfig:title:groupNameEn')">
<el-select v-model="form.GroupId" clearable :disabled="isParentExistGroup"> <el-select v-model="form.GroupId" clearable :disabled="isParentExistGroup">
<el-option <el-option
v-for="group of groupOptions" v-for="group of groupOptions"
@@ -147,7 +156,8 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalQuestionType !== 'table' && form.ClinicalQuestionType !== 'group' && form.ClinicalQuestionType !== 'number' && form.ClinicalQuestionType !== 'select'" label="最大长度"> <!-- 最大长度 -->
<el-form-item v-if="form.ClinicalQuestionType !== 'table' && form.ClinicalQuestionType !== 'group' && form.ClinicalQuestionType !== 'number' && form.ClinicalQuestionType !== 'select'" :label="$t('trials:readingUnit:qsList:title:MaxAnswerLength')">
<el-input-number <el-input-number
v-model="form.MaxAnswerLength" v-model="form.MaxAnswerLength"
controls-position="right" controls-position="right"
@@ -155,7 +165,8 @@
:max="2000" :max="2000"
/> />
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalQuestionType === 'table'" label="最大行数"> <!-- 最大行数 -->
<el-form-item v-if="form.ClinicalQuestionType === 'table'" :label="$t('trials:readingUnit:qsList:title:maxQuestionCount')">
<el-input-number <el-input-number
v-model="form.MaxQuestionCount" v-model="form.MaxQuestionCount"
controls-position="right" controls-position="right"
@@ -163,10 +174,12 @@
:max="10" :max="10"
/> />
</el-form-item> </el-form-item>
<el-form-item v-if="form.ClinicalQuestionType === 'upload'" label="最大上传个数"> <!-- 最大上传个数 -->
<el-form-item v-if="form.ClinicalQuestionType === 'upload'" :label="$t('trials:readingUnit:qsList:title:imageCount')">
<el-input-number v-model="form.ImageCount" controls-position="right" :min="1" :max="10" /> <el-input-number v-model="form.ImageCount" controls-position="right" :min="1" :max="10" />
</el-form-item> </el-form-item>
<el-form-item label="序号" prop="ShowOrder"> <!-- 序号 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:order')" prop="ShowOrder">
<el-input-number <el-input-number
v-model="form.ShowOrder" v-model="form.ShowOrder"
controls-position="right" controls-position="right"
@@ -227,7 +240,7 @@ export default {
} else { } else {
var arr = value.split('|') var arr = value.split('|')
if (new Set(arr).size !== arr.length) { if (new Set(arr).size !== arr.length) {
callback(new Error('选项不允许存在相同值')) callback(new Error(this.$t('trials:qcCfg:message:msg1')))
} else { } else {
callback() callback()
} }
@@ -264,29 +277,29 @@ export default {
}, },
rules: { rules: {
Type: [ Type: [
{ required: true, message: '请选择', trigger: 'blur' } { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
], ],
LesionType: [ LesionType: [
{ required: true, message: '请选择', trigger: 'blur' } { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
], ],
QuestionName: [{ required: true, message: '请注明', trigger: 'blur' }, QuestionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 300, message: '最大长度为 300' }], { max: 300, message: this.$t('common:ruleMessage:maxLength') + ' 300' }],
QuestionGenre: [{ required: true, message: '请选择', trigger: 'blur' }], QuestionGenre: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
TypeValue: [{ required: true, message: '请注明', trigger: 'blur' }, TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ validator: validateTypeVal, trigger: 'blur' }, { validator: validateTypeVal, trigger: 'blur' },
{ max: 500, message: '最大长度为 500' }], { max: 500, message: this.$t('common:ruleMessage:maxLength') + ' 500' }],
DictionaryCode: [{ required: true, message: '请选择', trigger: 'blur' }], DictionaryCode: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
IsCheckDate: [{ required: true, message: '请选择', trigger: 'blur' }], IsCheckDate: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
ClinicalQuestionShowEnum: [{ required: true, message: '请选择', trigger: 'blur' }], ClinicalQuestionShowEnum: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
IsRequired: [{ required: true, message: '请选择', trigger: 'blur' }], IsRequired: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
ParentId: [{ required: true, message: '请选择', trigger: 'blur' }], ParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
ParentTriggerValue: [ ParentTriggerValue: [
{ required: true, message: '请选择', trigger: 'blur' } { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
], ],
RelevanceId: [{ required: true, message: '请选择', trigger: 'blur' }], RelevanceId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
RelevanceValue: [{ required: true, message: '请选择', trigger: 'blur' }], RelevanceValue: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
GroupName: [{ required: true, message: '请注明', trigger: 'blur' }, GroupName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 50, message: '最大长度为 50' }] { max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50' }]
}, },
loading: false, loading: false,
btnLoading: false, btnLoading: false,
@@ -9,7 +9,8 @@
label-width="120px" label-width="120px"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="类型" prop="ClinicalTableQuestionType"> <!-- 类型 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:type')" prop="ClinicalTableQuestionType">
<el-select <el-select
v-model="form.ClinicalTableQuestionType" v-model="form.ClinicalTableQuestionType"
@change="((val)=>{qsTypeChange(val, form)})" @change="((val)=>{qsTypeChange(val, form)})"
@@ -23,28 +24,31 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 问题名称 -->
<el-form-item <el-form-item
v-if="form.ClinicalTableQuestionType !== 'group'" v-if="form.ClinicalTableQuestionType !== 'group'"
label="问题名称" :label="$t('trials:readingUnit:qsList:title:qName')"
prop="QuestionName" prop="QuestionName"
> >
<el-input <el-input
v-model="form.QuestionName" v-model="form.QuestionName"
/> />
</el-form-item> </el-form-item>
<!-- 选项 -->
<el-form-item <el-form-item
label="选项" :label="$t('trials:readingUnit:qsList:title:typeValue')"
v-if="form.ClinicalTableQuestionType === 'select' || form.ClinicalTableQuestionType === 'radio'" v-if="form.ClinicalTableQuestionType === 'select' || form.ClinicalTableQuestionType === 'radio'"
prop="TypeValue" prop="TypeValue"
> >
<el-input <el-input
v-model="form.TypeValue" v-model="form.TypeValue"
placeholder="选项请用‘|’分割多个选项" :placeholder="$t('trials:readingUnit:qsList:message:msg3')"
/> />
</el-form-item> </el-form-item>
<!-- 小数位数 -->
<el-form-item <el-form-item
v-if="form.ClinicalTableQuestionType === 'number'" v-if="form.ClinicalTableQuestionType === 'number'"
label="小数位数" :label="$t('trials:readingUnit:qsList:title:digitPlaces')"
> >
<el-radio-group <el-radio-group
v-model="form.DigitPlaces" v-model="form.DigitPlaces"
@@ -58,19 +62,18 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- 数值单位 --> <!-- 单位 -->
<el-form-item <el-form-item
v-if="form.ClinicalTableQuestionType === 'number'" v-if="form.ClinicalTableQuestionType === 'number'"
label="单位" :label="$t('trials:readingUnit:qsList:title:unit')"
> >
<el-input <el-input
v-model="form.Unit" v-model="form.Unit"
placeholder="请输入单位"
/> />
</el-form-item> </el-form-item>
<!-- 数值单位 --> <!-- 问题标记 -->
<el-form-item <el-form-item
label="问题标记" :label="$t('dictionary:clinicalDataQs:title:qsMark')"
> >
<el-select <el-select
v-model="form.clinicalTableQuestionMarkEnum" v-model="form.clinicalTableQuestionMarkEnum"
@@ -84,16 +87,17 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 数值单位 --> <!-- 是否必填 -->
<el-form-item <el-form-item
label="是否必填" :label="$t('trials:readingUnit:qsList:title:isRequired')"
prop="IsRequired" prop="IsRequired"
> >
<el-radio-group v-model="form.IsRequired"> <el-radio-group v-model="form.IsRequired">
<el-radio v-for="item of $d.QuestionRequired" :key="`IsRequired${item.value}`" :label="item.value">{{ item.label }}</el-radio> <el-radio v-for="item of $d.QuestionRequired" :key="`IsRequired${item.value}`" :label="item.value">{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="序号" prop="ShowOrder"> <!-- 序号 -->
<el-form-item :label="$t('trials:qcCfg:table:order')" prop="ShowOrder">
<el-input-number <el-input-number
v-model="form.ShowOrder" v-model="form.ShowOrder"
controls-position="right" controls-position="right"
@@ -156,7 +160,7 @@ export default {
} else { } else {
var arr = value.split('|') var arr = value.split('|')
if (new Set(arr).size !== arr.length) { if (new Set(arr).size !== arr.length) {
callback(new Error('选项不允许存在相同值')) callback(new Error(this.$t('trials:qcCfg:message:msg1')))
} else { } else {
callback() callback()
} }
@@ -193,26 +197,26 @@ export default {
}, },
rules: { rules: {
Type: [ Type: [
{ required: true, message: '请选择', trigger: 'blur' } { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
], ],
QuestionName: [{ required: true, message: '请注明', trigger: 'blur' }, QuestionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 300, message: '最大长度为 300' }], { max: 300, message: this.$t('common:ruleMessage:maxLength') + ' 300' }],
TypeValue: [{ required: true, message: '请注明', trigger: 'blur' }, TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ validator: validateTypeVal, trigger: 'blur' }, { validator: validateTypeVal, trigger: 'blur' },
{ max: 200, message: '最大长度为 200' }], { max: 200, message: this.$t('common:ruleMessage:maxLength') + ' 200' }],
ShowQuestion: [{ required: true, message: '请选择', trigger: 'blur' }], ShowQuestion: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
IsRequired: [{ required: true, message: '请选择', trigger: 'blur' }], IsRequired: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
ParentId: [{ required: true, message: '请选择', trigger: 'blur' }], ParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
ParentTriggerValue: [ ParentTriggerValue: [
{ required: true, message: '请选择', trigger: 'blur' } { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
], ],
RelevanceId: [{ required: true, message: '请选择', trigger: 'blur' }], RelevanceId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
RelevanceValue: [{ required: true, message: '请选择', trigger: 'blur' }], RelevanceValue: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
DataTableName: [{ required: true, message: '请选择', trigger: 'blur' }], DataTableName: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
DataTableColumn: [{ required: true, message: '请选择', trigger: 'blur' }], DataTableColumn: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
// DictionaryCode: [{ required: true, message: '', trigger: 'blur' }], // DictionaryCode: [{ required: true, message: '', trigger: 'blur' }],
DependParentId: [{ required: true, message: '请选择', trigger: 'blur' }] DependParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }]
}, },
loading: false, loading: false,
parentOptions: [], parentOptions: [],
@@ -10,7 +10,7 @@
type="primary" type="primary"
@click="handleAdd" @click="handleAdd"
> >
新增 {{ $t('common:button:new') }}
</el-button> </el-button>
</div> </div>
@@ -20,39 +20,45 @@
size="small" size="small"
height="500" height="500"
> >
<!-- 序号 -->
<el-table-column <el-table-column
prop="ShowOrder" prop="ShowOrder"
label="序号" :label="$t('trials:qcCfg:table:order')"
min-width="70" min-width="70"
/> />
<!-- 名称 -->
<el-table-column <el-table-column
prop="QuestionName" prop="QuestionName"
label="名称" :label="$t('trials:readingUnit:qsList:title:qName')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 名称(EN) -->
<el-table-column <el-table-column
prop="QuestionEnName" prop="QuestionEnName"
label="名称(EN)" :label="$t('trials:readingUnit:qsList:title:qNameEn')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 类型 -->
<el-table-column <el-table-column
prop="Type" prop="Type"
label="类型" :label="$t('trials:readingUnit:qsList:title:type')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ClinicalTableQuestionType',scope.row.ClinicalTableQuestionType) }} {{ $fd('ClinicalTableQuestionType',scope.row.ClinicalTableQuestionType) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 选项 -->
<el-table-column <el-table-column
prop="TypeValue" prop="TypeValue"
label="选项" :label="$t('trials:readingUnit:qsList:title:typeValue')"
show-overflow-tooltip show-overflow-tooltip
min-width="110" min-width="110"
/> />
<!-- 是否必填 -->
<el-table-column <el-table-column
prop="IsRequired" prop="IsRequired"
label="是否必填" :label="$t('trials:qcCfg:table:isRequired')"
min-width="90" min-width="90"
show-overflow-tooltip show-overflow-tooltip
> >
@@ -60,36 +66,40 @@
{{ $fd('YesOrNo',scope.row.IsRequired) }} {{ $fd('YesOrNo',scope.row.IsRequired) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 操作 -->
<el-table-column <el-table-column
prop="" prop=""
label="操作" :label="$t('common:action:action')"
width="150" width="150"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 查看 -->
<el-button <el-button
v-if="isCompleteConfig" v-if="isCompleteConfig"
type="primary" type="primary"
size="mini" size="mini"
@click="handleLook(scope.row)" @click="handleLook(scope.row)"
> >
查看 {{ $t('trials:readingUnit:qsList:title:view') }}
</el-button> </el-button>
<!-- 编辑 -->
<el-button <el-button
v-if="!isCompleteConfig" v-if="!isCompleteConfig"
type="primary" type="primary"
size="mini" size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 {{ $t('common:button:edit') }}
</el-button> </el-button>
<!-- 删除 -->
<el-button <el-button
v-if="!isCompleteConfig" v-if="!isCompleteConfig"
type="danger" type="danger"
size="mini" size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -104,7 +114,7 @@
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<ClinicalQuestionTableForm <clinical-question-table-form
:clinical-id="clinicalId" :clinical-id="clinicalId"
:clinical-info="clinicalInfo" :clinical-info="clinicalInfo"
ref="addOrEdit" ref="addOrEdit"
@@ -165,7 +175,7 @@ export default {
handleLook(row) { handleLook(row) {
this.type = 'look' this.type = 'look'
this.rowData = { ...row } this.rowData = { ...row }
this.addOrEdit.title = '编辑' this.addOrEdit.title = this.$t('common:button:edit')
this.addOrEdit.visible = true this.addOrEdit.visible = true
}, },
getList() { getList() {
@@ -178,13 +188,13 @@ export default {
handleAdd() { handleAdd() {
this.type = 'add' this.type = 'add'
this.rowData = {} this.rowData = {}
this.addOrEdit.title = '添加' this.addOrEdit.title = this.$t('common:button:add')
this.addOrEdit.visible = true this.addOrEdit.visible = true
}, },
handleEdit(row) { handleEdit(row) {
this.type = 'edit' this.type = 'edit'
this.rowData = { ...row } this.rowData = { ...row }
this.addOrEdit.title = '编辑' this.addOrEdit.title = this.$t('common:button:edit')
this.addOrEdit.visible = true this.addOrEdit.visible = true
}, },
handleDelete(row) { handleDelete(row) {
@@ -199,7 +209,7 @@ export default {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$message.success('删除成功!') this.$message.success(this.$t('common:message:deletedSuccessfully'))
} }
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}) })
@@ -4,6 +4,7 @@
<div> <div>
</div> </div>
<div> <div>
<!-- 配置 -->
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@@ -11,7 +12,7 @@
@click="handleAdd" @click="handleAdd"
style="margin-right: 10px;" style="margin-right: 10px;"
> >
配置 {{ $t('dictionary:template:criterionDictionary:button:config') }}
</el-button> </el-button>
</div> </div>
</div> </div>
@@ -21,55 +22,62 @@
:data="list" :data="list"
stripe stripe
> >
<!-- 序号 -->
<el-table-column <el-table-column
prop="" prop=""
label="序号" label=""
width="50" width="50"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<!-- 字典表名 -->
<el-table-column <el-table-column
prop="Code" prop="Code"
label="字典表名" :label="$t('dictionary:template:criterionDictionary:table:code')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:template:criterionDictionary:table:description')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 子项数量 -->
<el-table-column <el-table-column
prop="Count" prop="Count"
label="子项数量" :label="$t('dictionary:template:criterionDictionary:table:count')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 排序 -->
<el-table-column <el-table-column
prop="ShowOrder" prop="ShowOrder"
label="排序" :label="$t('dictionary:template:criterionDictionary:table:showOrder')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 操作 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="操作" :label="$t('common:action:action')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="small" :disabled="isCompleteConfig" type="primary" @click="openChildren(scope.row)"> <!-- 配置 -->
配置 <el-button :disabled="isCompleteConfig" type="text" @click="openChildren(scope.row)">
{{ $t('dictionary:template:criterionDictionary:button:config') }}
</el-button> </el-button>
<!-- 删除 -->
<el-button <el-button
type="danger" type="text"
size="small"
:disabled="isCompleteConfig" :disabled="isCompleteConfig"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -99,7 +107,7 @@
@click="handleSave" @click="handleSave"
v-loading="loading" v-loading="loading"
> >
保存 {{ $t('common:button:save')}}
</el-button> </el-button>
</div> </div>
<el-table <el-table
@@ -122,21 +130,24 @@
{{ scope.$index + 1}} {{ scope.$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<!-- 字典表名 -->
<el-table-column <el-table-column
prop="Code" prop="Code"
label="字典表名" :label="$t('dictionary:template:criterionDictionary:table:code')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:template:criterionDictionary:table:description')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 排序 -->
<el-table-column <el-table-column
prop="ShowOrder" prop="ShowOrder"
label="排序" :label="$t('dictionary:template:criterionDictionary:table:showOrder')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
@@ -170,7 +181,6 @@ export default {
rowData: {}, rowData: {},
activeName: '0', activeName: '0',
addOrEdit: { visible: false, title: '' }, addOrEdit: { visible: false, title: '' },
preview: { visible: false, title: 'eCRF预览' },
config: { visible: false, title: '全局配置' }, config: { visible: false, title: '全局配置' },
drawer_cfg: { drawerChild: false, parentId: '', title: '' }, drawer_cfg: { drawerChild: false, parentId: '', title: '' },
drawer_cfg2: { drawerChild: false, parentId: '', title: '' }, drawer_cfg2: { drawerChild: false, parentId: '', title: '' },
@@ -216,7 +226,8 @@ export default {
}) })
}, },
handleAdd() { handleAdd() {
this.drawer_cfg2 = { drawerChild: true, title: '选择标准字典' } //
this.drawer_cfg2 = { drawerChild: true, title: this.$t('template:criterionDictionary:title:selectDictionary') }
this.config.visible = true this.config.visible = true
this.$nextTick(() => { this.$nextTick(() => {
var a = this.dicList.filter(v => { var a = this.dicList.filter(v => {
@@ -251,9 +262,10 @@ export default {
}, },
handleDelete(row) { handleDelete(row) {
this.loading = true this.loading = true
this.$confirm('确定要删除该系统标准字典吗?').then(() => { //
this.$confirm(this.$t('template:criterionDictionary:message:msg1')).then(() => {
deleteSystemCriterionDictionary({Id: row.Id}).then(res => { deleteSystemCriterionDictionary({Id: row.Id}).then(res => {
this.$message.success('删除成功') this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.loading = false this.loading = false
this.getList() this.getList()
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
@@ -10,7 +10,7 @@
@click="handleAdd" @click="handleAdd"
style="margin-right: 10px;" style="margin-right: 10px;"
> >
配置 {{ $t('dictionary:template:criterionDictionary:button:config') }}
</el-button> </el-button>
</div> </div>
</div> </div>
@@ -24,39 +24,44 @@
> >
<el-table-column <el-table-column
prop="" prop=""
label="序号" label=""
width="50" width="50"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<!-- 键值 -->
<el-table-column <el-table-column
prop="Code" prop="Code"
label="键值" :label="$t('dictionary:template:criterionDictionary:table:code')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 中文值 -->
<el-table-column <el-table-column
prop="ValueCN" prop="ValueCN"
label="中文值" :label="$t('dictionary:template:criterionDictionary:table:valueCN')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 英文值 -->
<el-table-column <el-table-column
prop="Value" prop="Value"
label="英文值" :label="$t('dictionary:template:criterionDictionary:table:value')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="描述" :label="$t('dictionary:template:criterionDictionary:table:description')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 分组 -->
<el-table-column <el-table-column
prop="Description" prop="Description"
label="分组" :label="$t('dictionary:template:criterionDictionary:table:group')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -84,7 +89,7 @@
@click="handleSave" @click="handleSave"
v-loading="loading" v-loading="loading"
> >
保存 {{ $t('common:button:save')}}
</el-button> </el-button>
</div> </div>
<el-table <el-table
@@ -100,27 +105,31 @@
type="selection" type="selection"
width="55"> width="55">
</el-table-column> </el-table-column>
<!-- 键值 -->
<el-table-column <el-table-column
prop="raw.Code" prop="raw.Code"
label="键值" :label="$t('dictionary:template:criterionDictionary:table:code')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 中文值 -->
<el-table-column <el-table-column
prop="raw.ValueCN" prop="raw.ValueCN"
label="中文值" :label="$t('dictionary:template:criterionDictionary:table:valueCN')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 英文值 -->
<el-table-column <el-table-column
prop="raw.Value" prop="raw.Value"
label="英文值" :label="$t('dictionary:template:criterionDictionary:table:value')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<!-- 描述 -->
<el-table-column <el-table-column
prop="raw.Description" prop="raw.Description"
label="描述" :label="$t('dictionary:template:criterionDictionary:table:description')"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
@@ -152,7 +161,7 @@ export default {
activeName: '0', activeName: '0',
addOrEdit: { visible: false, title: '' }, addOrEdit: { visible: false, title: '' },
preview: { visible: false, title: 'eCRF预览' }, preview: { visible: false, title: 'eCRF预览' },
config: { visible: false, title: '标准字典值' }, config: { visible: false, title: this.$t('template:criterionDictionary:message:msg2') }, //
selectedList: [] selectedList: []
} }
}, },
@@ -167,7 +176,7 @@ export default {
CrterionDictionaryGroup: v CrterionDictionaryGroup: v
}).then(res => { }).then(res => {
this.loading = false this.loading = false
this.$message.success('设置成功') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getList() this.getList()
}).catch(() => {this.loading = false}) }).catch(() => {this.loading = false})
}, },
@@ -6,7 +6,7 @@
size="small" size="small"
:rules="rules" :rules="rules"
:disabled="type === 'look'" :disabled="type === 'look'"
label-width="140px" label-width="220px"
> >
<div class="base-dialog-body" style="height: 550px; display:flex;flex-direction: column;"> <div class="base-dialog-body" style="height: 550px; display:flex;flex-direction: column;">
<div style="height: 150px;"> <div style="height: 150px;">
@@ -33,7 +33,7 @@
<!-- 分组名称 --> <!-- 分组名称 -->
<el-form-item <el-form-item
v-if="form.Type === 'group'" v-if="form.Type === 'group'"
:label="$t('trials:readingUnit:qsList:title:groupNameEn')" :label="$t('trials:readingUnit:qsList:title:groupName')"
prop="GroupName" prop="GroupName"
> >
<el-input v-model="form.GroupName" /> <el-input v-model="form.GroupName" />
@@ -41,7 +41,7 @@
<!-- 分组名称EN --> <!-- 分组名称EN -->
<el-form-item <el-form-item
v-if="form.Type === 'group'" v-if="form.Type === 'group'"
:label="$t('trials:readingUnit:qsList:title:groupNameEn')" :label="$t('dictionary:template:criterionConfig:title:groupNameEn')"
prop="GroupEnName" prop="GroupEnName"
> >
<el-input v-model="form.GroupEnName" /> <el-input v-model="form.GroupEnName" />
@@ -49,7 +49,7 @@
<!-- 问题名称 --> <!-- 问题名称 -->
<el-form-item <el-form-item
v-if="form.Type !== 'group'" v-if="form.Type !== 'group'"
:label="$t('trials:readingUnit:qsList:title:qsNameEn')" :label="$t('trials:readingUnit:qsList:title:qsName')"
prop="QuestionName" prop="QuestionName"
:rules="[ :rules="[
{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }, { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
@@ -61,7 +61,7 @@
<!-- 问题名称EN --> <!-- 问题名称EN -->
<el-form-item <el-form-item
v-if="form.Type !== 'group'" v-if="form.Type !== 'group'"
:label="$t('trials:readingUnit:qsList:title:qsNameEn')" :label="$t('dictionary:template:criterionConfig:title:qsNameEn')"
prop="QuestionEnName" prop="QuestionEnName"
:rules="[ :rules="[
{ max: form.Type === 'summary' ? 300 : 100, message: `${this.$t('common:ruleMessage:maxLength')} ${form.Type === 'summary' ? 300 : 100}` } { max: form.Type === 'summary' ? 300 : 100, message: `${this.$t('common:ruleMessage:maxLength')} ${form.Type === 'summary' ? 300 : 100}` }
@@ -6,7 +6,7 @@
<div class="search-form" style="display:flex;justify-content: space-between;"> <div class="search-form" style="display:flex;justify-content: space-between;">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" size="mini" class="base-search-form">
<!-- 问题名称 --> <!-- 问题名称 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:qsNameEn')"> <el-form-item :label="$t('trials:readingUnit:qsList:title:qsName')">
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" /> <el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@@ -60,32 +60,37 @@
<!-- 分组 --> <!-- 分组 -->
<el-table-column <el-table-column
prop="GroupName" prop="GroupName"
:label="$t('trials:readingUnit:qsList:title:groupNameEn')" :label="$t('trials:readingUnit:qsList:title:groupName')"
show-overflow-tooltip show-overflow-tooltip
min-width="120"
/> />
<!-- 分组(EN) --> <!-- 分组(EN) -->
<el-table-column <el-table-column
prop="GroupEnName" prop="GroupEnName"
:label="$t('trials:readingUnit:qsList:title:groupNameEn')" :label="$t('dictionary:template:criterionConfig:title:groupNameEn')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
/> />
<!-- 名称 --> <!-- 名称 -->
<el-table-column <el-table-column
prop="QuestionName" prop="QuestionName"
:label="$t('trials:readingUnit:qsList:title:qsNameEn')" :label="$t('trials:readingUnit:qsList:title:qsName')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
/> />
<!-- 名称(EN) --> <!-- 名称(EN) -->
<el-table-column <el-table-column
prop="QuestionEnName" prop="QuestionEnName"
:label="$t('trials:readingUnit:qsList:title:qsNameEn')" :label="$t('dictionary:template:criterionConfig:title:qsNameEn')"
show-overflow-tooltip show-overflow-tooltip
min-width="160"
/> />
<!-- 题型 --> <!-- 题型 -->
<el-table-column <el-table-column
prop="Type" prop="Type"
:label="$t('trials:readingUnit:qsList:title:type')" :label="$t('trials:readingUnit:qsList:title:type')"
show-overflow-tooltip show-overflow-tooltip
min-width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('Criterion_Question_Type',scope.row.Type) }} {{ $fd('Criterion_Question_Type',scope.row.Type) }}
@@ -96,6 +101,7 @@
prop="ShowQuestion" prop="ShowQuestion"
:label="$t('trials:readingUnit:qsList:title:isShow')" :label="$t('trials:readingUnit:qsList:title:isShow')"
show-overflow-tooltip show-overflow-tooltip
min-width="100"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ShowQuestion',scope.row.ShowQuestion) }} {{ $fd('ShowQuestion',scope.row.ShowQuestion) }}
@@ -106,6 +112,7 @@
prop="IsRequired" prop="IsRequired"
:label="$t('trials:readingUnit:qsList:title:isRequired')" :label="$t('trials:readingUnit:qsList:title:isRequired')"
show-overflow-tooltip show-overflow-tooltip
min-width="100"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('QuestionRequired',scope.row.IsRequired) }} {{ $fd('QuestionRequired',scope.row.IsRequired) }}
@@ -115,7 +122,7 @@
<el-table-column <el-table-column
prop="IsJudgeQuestion" prop="IsJudgeQuestion"
:label="$t('trials:readingUnit:qsList:title:isJudgeQuestion')" :label="$t('trials:readingUnit:qsList:title:isJudgeQuestion')"
width="120" min-width="200"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -126,7 +133,7 @@
<el-table-column <el-table-column
prop="IsShowInDicom" prop="IsShowInDicom"
:label="$t('trials:readingUnit:qsList:title:isShowInDicom')" :label="$t('trials:readingUnit:qsList:title:isShowInDicom')"
width="150" min-width="200"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -145,7 +152,7 @@
<el-table-column <el-table-column
prop="GlobalReadingShowType" prop="GlobalReadingShowType"
:label="$t('trials:readingUnit:qsList:title:globalReadingShowType')" :label="$t('trials:readingUnit:qsList:title:globalReadingShowType')"
width="160" min-width="240"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -167,7 +174,7 @@
<el-table-column <el-table-column
prop="QuestionType" prop="QuestionType"
:label="$t('dictionary:template:criterionConfig:table:questionType')" :label="$t('dictionary:template:criterionConfig:table:questionType')"
width="140" min-width="160"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -199,30 +206,27 @@
<el-table-column <el-table-column
prop="" prop=""
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="250" width="200"
show-overflow-tooltip show-overflow-tooltip
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
{{ $t('trials:readingUnit:qsList:title:edit') }} {{ $t('trials:readingUnit:qsList:title:edit') }}
</el-button> </el-button>
<el-button <el-button
v-else v-else
type="primary" type="text"
size="mini"
@click="handleLook(scope.row)" @click="handleLook(scope.row)"
> >
{{ $t('trials:readingUnit:qsList:title:view') }} {{ $t('trials:readingUnit:qsList:title:view') }}
</el-button> </el-button>
<el-button <el-button
type="primary" type="text"
size="mini"
:disabled="!(scope.row.Type === 'table' || scope.row.Type === 'basicTable')" :disabled="!(scope.row.Type === 'table' || scope.row.Type === 'basicTable')"
@click="handleConfig(scope.row)" @click="handleConfig(scope.row)"
> >
@@ -230,8 +234,7 @@
</el-button> </el-button>
<el-button <el-button
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
type="danger" type="text"
size="mini"
:disabled="scope.row.IsEnable" :disabled="scope.row.IsEnable"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
@@ -256,11 +259,11 @@
:visible.sync="addOrEdit.visible" :visible.sync="addOrEdit.visible"
:close-on-click-modal="false" :close-on-click-modal="false"
:title="`${addOrEdit.title}`" :title="`${addOrEdit.title}`"
width="650px" width="800px"
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<CriterionQuestionForm <criterion-question-form
ref="addOrEdit" ref="addOrEdit"
:data="rowData" :data="rowData"
:type="type" :type="type"
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item <el-form-item
:label="$t('trials:auditRecord:table:criterion')" :label="$t('trials:auditRecord:table:criterion')"
> >
@@ -75,7 +75,7 @@
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<!-- 添加 --> <!-- 添加 -->
<el-button type="primary" size="mini" @click="handleAdd">{{$t('common:button:new')}}</el-button> <el-button type="primary" @click="handleAdd">{{$t('common:button:new')}}</el-button>
</span> </span>
</div> </div>
@@ -84,7 +84,6 @@
v-adaptive="{bottomOffset:45}" v-adaptive="{bottomOffset:45}"
:data="list" :data="list"
stripe stripe
size="small"
height="100" height="100"
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
ref="criterionsTbl" ref="criterionsTbl"
@@ -96,6 +95,7 @@
:label="$t('trials:auditRecord:table:criterion')" :label="$t('trials:auditRecord:table:criterion')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
width="180"
/> />
<!-- 标准类型 --> <!-- 标准类型 -->
<el-table-column <el-table-column
@@ -103,6 +103,7 @@
:label="$t('dictionary:template:criterionConfig:table:criterionType')" :label="$t('dictionary:template:criterionConfig:table:criterionType')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('CriterionType',scope.row.CriterionType) }} {{ $fd('CriterionType',scope.row.CriterionType) }}
@@ -114,6 +115,7 @@
:label="$t('dictionary:template:criterionConfig:table:criterionGroup')" :label="$t('dictionary:template:criterionConfig:table:criterionGroup')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
width="160"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('CriterionGroup',scope.row.CriterionGroup) }} {{ $fd('CriterionGroup',scope.row.CriterionGroup) }}
@@ -124,6 +126,7 @@
prop="IsCompleteConfig" prop="IsCompleteConfig"
:label="$t('dictionary:template:criterionConfig:table:isCompleteConfig')" :label="$t('dictionary:template:criterionConfig:table:isCompleteConfig')"
sortable="custom" sortable="custom"
width="220"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -170,36 +173,32 @@
{{ $fd('YesOrNo', scope.row.IseCRFShowInDicomReading) }} {{ $fd('YesOrNo', scope.row.IseCRFShowInDicomReading) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common:action:action')" min-width="200px"> <el-table-column :label="$t('common:action:action')" min-width="220px">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 编辑 --> <!-- 编辑 -->
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
{{ $t('common:button:edit') }} {{ $t('common:button:edit') }}
</el-button> </el-button>
<!-- eCRF --> <!-- eCRF -->
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleConfig(scope.row)" @click="handleConfig(scope.row)"
> >
{{ $t('dictionary:template:criterionConfig:button:eCRF') }} {{ $t('dictionary:template:criterionConfig:button:eCRF') }}
</el-button> </el-button>
<!-- 基础数据 --> <!-- 基础数据 -->
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleBaseDataConfig(scope.row)" @click="handleBaseDataConfig(scope.row)"
> >
{{ $t('dictionary:template:criterionConfig:button:basicData') }} {{ $t('dictionary:template:criterionConfig:button:basicData') }}
</el-button> </el-button>
<!-- 删除 --> <!-- 删除 -->
<el-button <el-button
type="danger" type="text"
size="mini"
:disabled="scope.row.IsCompleteConfig" :disabled="scope.row.IsCompleteConfig"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
@@ -219,9 +218,9 @@
:close-on-click-modal="false" :close-on-click-modal="false"
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
width="500px" width="600px"
> >
<AddCriterion <add-criterion
:data="rowData" :data="rowData"
@close="addDialog.visible = false" @close="addDialog.visible = false"
@getList="getList" @getList="getList"
@@ -54,7 +54,7 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left:auto"> <!-- <span style="margin-left:auto">
<el-button <el-button
v-if="!isCompleteConfig" v-if="!isCompleteConfig"
type="primary" type="primary"
@@ -63,7 +63,7 @@
> >
{{ $t('common:button:new') }} {{ $t('common:button:new') }}
</el-button> </el-button>
</span> </span> -->
</template> </template>
@@ -1,6 +1,6 @@
<template> <template>
<div style="position: relative"> <div style="position: relative">
<el-form size="small" :inline="true" label-width="130px" style="position: relative;"> <el-form size="small" :inline="true" style="position: relative;">
<!-- 阅片规则 --> <!-- 阅片规则 -->
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:readingRules') }}</el-divider> <el-divider content-position="left">{{ $t('dictionary:template:globalConfig:readingRules') }}</el-divider>
<!-- 是否必须全局阅片 --> <!-- 是否必须全局阅片 -->
@@ -18,7 +18,7 @@
{{ $t('dictionary:template:globalConfig:config') }} {{ $t('dictionary:template:globalConfig:config') }}
</el-button> </el-button>
</el-form> </el-form>
<el-form size="small" :inline="true" label-width="110px" style="position: relative"> <el-form size="small" :inline="true" style="position: relative">
<!-- 名称 --> <!-- 名称 -->
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:name') }}</el-divider> <el-divider content-position="left">{{ $t('dictionary:template:globalConfig:name') }}</el-divider>
<!-- 配置 --> <!-- 配置 -->
@@ -44,7 +44,7 @@
<el-table-column <el-table-column
prop="" prop=""
:label="$t('dictionary:template:globalConfig:order')" :label="$t('dictionary:template:globalConfig:order')"
width="50" width="80"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
@@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<el-form size="small" :inline="true" label-width="110px" style="position: relative;"> <el-form size="small" :inline="true" style="position: relative;">
<!-- 阅片规则 --> <!-- 阅片规则 -->
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:readingRules') }}</el-divider> <el-divider content-position="left">{{ $t('dictionary:template:globalConfig:readingRules') }}</el-divider>
<!-- 是否肿瘤学阅片 --> <!-- 是否肿瘤学阅片 -->
@@ -18,7 +18,7 @@
{{ $t('dictionary:template:globalConfig:config') }} {{ $t('dictionary:template:globalConfig:config') }}
</el-button> </el-button>
</el-form> </el-form>
<el-form size="small" :inline="true" label-width="110px" style="position: relative"> <el-form size="small" :inline="true" style="position: relative">
<!-- 阅片问题 --> <!-- 阅片问题 -->
<el-divider content-position="left">{{ $t('dictionary:template:oncologyConfig:reviewQs') }}</el-divider> <el-divider content-position="left">{{ $t('dictionary:template:oncologyConfig:reviewQs') }}</el-divider>
<!-- 配置 --> <!-- 配置 -->
@@ -45,7 +45,7 @@
<el-table-column <el-table-column
prop="" prop=""
:label="$t('dictionary:template:globalConfig:order')" :label="$t('dictionary:template:globalConfig:order')"
width="50" width="80"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
@@ -126,7 +126,7 @@ import { getSystemOncologyInfo, setSystemOncologyInfo, getCriterionDictionary }
export default { export default {
props: { props: {
data: { data: {
type: String, type: Object,
default() { return {} } default() { return {} }
}, },
criterionId: { criterionId: {
@@ -2,17 +2,21 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Group:"> <!-- Group -->
<el-form-item :label="$t('template:anonymization:label:group')">
<el-input v-model="searchData.Group" clearable style="width:120px;" /> <el-input v-model="searchData.Group" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item label="Element:"> <!-- Element -->
<el-form-item :label="$t('template:anonymization:label:element')">
<el-input v-model="searchData.Element" clearable style="width:120px;" /> <el-input v-model="searchData.Element" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item label="Tag Description:"> <!-- Tag Description -->
<el-form-item :label="$t('template:anonymization:label:tagDescription')">
<el-input v-model="searchData.TagDescription" clearable style="width:120px;" /> <el-input v-model="searchData.TagDescription" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item label="Tag DescriptionCN:"> <!-- Tag DescriptionCN -->
<el-form-item :label="$t('template:anonymization:label:tagDescriptionCN')">
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" /> <el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@@ -29,7 +33,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">New</el-button> <el-button type="primary" @click="handleAdd">{{ $t('common:button:new') }}</el-button>
</span> </span>
</div> </div>
@@ -38,37 +42,42 @@
v-adaptive="{bottomOffset:45}" v-adaptive="{bottomOffset:45}"
:data="list" :data="list"
stripe stripe
size="small"
height="100" height="100"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
<!-- Group -->
<el-table-column <el-table-column
prop="Group" prop="Group"
label="Group" :label="$t('template:anonymization:label:group')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- Element -->
<el-table-column <el-table-column
prop="Element" prop="Element"
label="Element" :label="$t('template:anonymization:label:element')"
show-overflow-tooltip show-overflow-tooltip
min-width="110" min-width="110"
/> />
<!-- Tag Description -->
<el-table-column <el-table-column
prop="TagDescription" prop="TagDescription"
label="Tag Description" :label="$t('template:anonymization:label:tagDescription')"
min-width="110" min-width="110"
/> />
<!-- Tag DescriptionCN -->
<el-table-column <el-table-column
prop="TagDescriptionCN" prop="TagDescriptionCN"
label="Tag DescriptionCN" :label="$t('template:anonymization:label:tagDescriptionCN')"
min-width="110" min-width="110"
/> />
<!-- Value Representation -->
<el-table-column <el-table-column
prop="ValueRepresentation" prop="ValueRepresentation"
label="Value Representation" :label="$t('template:anonymization:label:valueRepresentation')"
min-width="110" min-width="110"
/> />
<el-table-column label="Is Fixed" width="100"> <!-- Is Fixed -->
<el-table-column :label="$t('template:anonymization:label:isFixed')" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.IsFixed" v-model="scope.row.IsFixed"
@@ -78,12 +87,14 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<!-- Value Replace -->
<el-table-column <el-table-column
prop="ReplaceValue" prop="ReplaceValue"
label="Value Replace" :label="$t('template:anonymization:label:valueReplace')"
min-width="110" min-width="110"
/> />
<el-table-column label="Is Enable" width="100" fixed="right"> <!-- Is Enable -->
<el-table-column :label="$t('template:anonymization:label:isEnable')" width="100" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.IsEnable" v-model="scope.row.IsEnable"
@@ -93,21 +104,19 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Action" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
Edit {{ $t('common:action:edit') }}
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
Delete {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -152,7 +161,7 @@ export default {
switchChange(event, item) { switchChange(event, item) {
this.loading = true this.loading = true
addOrUpdateSystemAnonymization(item).then(res => { addOrUpdateSystemAnonymization(item).then(res => {
this.$message.success('Saved successfully!') this.$message.success(this.$t('common:message:savedSuccessfully'))
this.loading = false this.loading = false
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
@@ -160,12 +169,12 @@ export default {
}, },
handleEdit(row) { handleEdit(row) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['AddDICOMConfig'].openDialog('Edit Anonymization', row) this.$refs['AddDICOMConfig'].openDialog(this.$t('common:action:edit'), row)
}) })
}, },
handleAdd() { handleAdd() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['AddDICOMConfig'].openDialog('New IncreaseFields', { this.$refs['AddDICOMConfig'].openDialog(this.$t('common:button:new'), {
Group: '', Group: '',
Element: '', Element: '',
TagDescription: '', TagDescription: '',
@@ -2,8 +2,9 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="问题名称:"> <!-- 问题名称 -->
<el-form-item :label="$t('trials:MIMqcCfg:table:questionName')">
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" /> <el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<!-- 语言类型 --> <!-- 语言类型 -->
@@ -22,7 +23,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="类型:"> <!-- 类型 -->
<el-form-item :label="$t('trials:medicalFeedbackCfg:title:taskType')">
<el-input v-model="searchData.Type" clearable style="width:120px;" /> <el-input v-model="searchData.Type" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -32,7 +34,8 @@
<el-option v-for="item of $d.CriterionType" :key="item.id" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.CriterionType" :key="item.id" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否通用:"> <!-- 是否通用 -->
<el-form-item :label="$t('dictionary:medicalAudit:label:IsGeneral')">
<el-select v-model="searchData.IsGeneral"> <el-select v-model="searchData.IsGeneral">
<el-option v-for="item of $d.YesOrNo" :key="item.id" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.YesOrNo" :key="item.id" :value="item.value" :label="item.label" />
</el-select> </el-select>
@@ -51,7 +54,9 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button type="primary" size="mini" @click="handleAdd">新增</el-button> <el-button type="primary" @click="handleAdd">
{{ $t('common:button:new') }}
</el-button>
</span> </span>
</div> </div>
@@ -60,26 +65,27 @@
v-adaptive="{bottomOffset:50}" v-adaptive="{bottomOffset:50}"
:data="list" :data="list"
stripe stripe
size="small"
height="100" height="100"
> >
<!-- 序号 --> <!-- 序号 -->
<el-table-column <el-table-column
prop="ShowOrder" prop="ShowOrder"
label="序号" :label="$t('trials:qcCfg:table:order')"
width="60" width="60"
/> />
<!-- 审核问题 --> <!-- 审核问题 -->
<el-table-column <el-table-column
prop="QuestionName" prop="QuestionName"
label="问题名称" :label="$t('trials:MIMqcCfg:table:questionName')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
/> />
<!-- 审核问题 --> <!-- 审核问题 -->
<el-table-column <el-table-column
prop="LanguageType" prop="LanguageType"
:label="$t('common:title:languageType')" :label="$t('common:title:languageType')"
show-overflow-tooltip show-overflow-tooltip
min-width="160"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('LanguageType', scope.row.LanguageType) }} {{ $fd('LanguageType', scope.row.LanguageType) }}
@@ -88,8 +94,9 @@
<!-- 类型 --> <!-- 类型 -->
<el-table-column <el-table-column
prop="Type" prop="Type"
label="类型" :label="$t('trials:qcCfg:table:type')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('QcType', scope.row.Type) }} {{ $fd('QcType', scope.row.Type) }}
@@ -98,14 +105,16 @@
<!-- 选项 --> <!-- 选项 -->
<el-table-column <el-table-column
prop="TypeValue" prop="TypeValue"
label="选项" :label="$t('trials:qcCfg:table:typeValue')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
/> />
<!-- 任务类型 --> <!-- 任务类型 -->
<el-table-column <el-table-column
prop="ReadingCategory" prop="ReadingCategory"
label="任务类型" :label="$t('trials:medicalFeedbackCfg:title:taskType')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.ReadingCategory === 1" type="primary"> <el-tag v-if="scope.row.ReadingCategory === 1" type="primary">
@@ -125,7 +134,7 @@
<el-table-column <el-table-column
prop="ReadingCategory" prop="ReadingCategory"
:label="$t('trials:auditRecord:table:criterion')" :label="$t('trials:auditRecord:table:criterion')"
width="240" min-width="160"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -136,8 +145,8 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="IsGeneral" prop="IsGeneral"
label="是否通用" :label="$t('dictionary:medicalAudit:label:IsGeneral')"
width="80" min-width="120"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -149,19 +158,22 @@
<!-- 父问题 --> <!-- 父问题 -->
<el-table-column <el-table-column
prop="ParentShowOrder" prop="ParentShowOrder"
label="父问题" :label="$t('trials:qcCfg:table:parentQs')"
show-overflow-tooltip show-overflow-tooltip
min-width="140"
/> />
<!-- 父问题触发值 --> <!-- 父问题触发值 -->
<el-table-column <el-table-column
prop="ParentTriggerValue" prop="ParentTriggerValue"
label="父问题触发值" :label="$t('trials:qcCfg:table:parentTriggerValue')"
show-overflow-tooltip show-overflow-tooltip
min-width="160"
/> />
<!-- 是否必填 --> <!-- 是否必填 -->
<el-table-column <el-table-column
prop="IsRequired" prop="IsRequired"
label="是否必填" :label="$t('trials:qcCfg:table:isRequired')"
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IsRequired) }} {{ $fd('YesOrNo', scope.row.IsRequired) }}
@@ -170,28 +182,27 @@
<!-- 启用状态 --> <!-- 启用状态 -->
<el-table-column <el-table-column
prop="IsEnable" prop="IsEnable"
label="启用状态" :label="$t('trials:qcCfg:table:isEnable')"
min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IsEnable) }} {{ $fd('YesOrNo', scope.row.IsEnable) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Action" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="150" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
编辑 {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
@@ -249,13 +260,13 @@ export default {
// //
handleAdd() { handleAdd() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['medicalAuditForm'].openDialog('新增', {}) this.$refs['medicalAuditForm'].openDialog(this.$t('common:button:new'), {})
}) })
}, },
// //
handleEdit(row) { handleEdit(row) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['medicalAuditForm'].openDialog('编辑', row) this.$refs['medicalAuditForm'].openDialog(this.$t('common:button:edit'), row)
}) })
}, },
// //
@@ -271,7 +282,7 @@ export default {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$message.success('删除成功!') this.$message.success(this.$t('common:message:deletedSuccessfully'))
} }
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}) })
@@ -6,11 +6,12 @@
v-loading="loading" v-loading="loading"
:model="form" :model="form"
:rules="rules" :rules="rules"
label-width="120px" label-width="140px"
size="small" size="small"
> >
<el-form-item label="问题名称" prop="QuestionName"> <el-form-item :label="$t('trials:MIMqcCfg:table:questionName')" prop="QuestionName">
<el-input v-model="form.QuestionName" /> <el-input v-model="form.QuestionName" type="textarea"
:rows="2"/>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('common:title:languageType')" :label="$t('common:title:languageType')"
@@ -27,20 +28,24 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="类型"> <!-- 类型 -->
<el-form-item :label="$t('trials:qcCfg:table:type')">
<el-select v-model="form.Type" @change="((val)=>{typeChange(val, form)})"> <el-select v-model="form.Type" @change="((val)=>{typeChange(val, form)})">
<el-option value="select" label="下拉框" /> <el-option
<el-option value="input" label="单行文本框" /> v-for="item of $d.QcType"
<el-option value="textarea" label="多行文本框" /> :key="item.value"
<el-option value="radio" label="单选框" /> :value="item.value"
:label="item.label"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="form.Type !== 'textarea' && form.Type !== 'input'" label="选项: " prop="TypeValue"> <!-- 选项 -->
<el-input v-model="form.TypeValue" placeholder="选项请用‘|’分割多个选项" /> <el-form-item v-if="form.Type !== 'textarea' && form.Type !== 'input'" :label="$t('trials:qcCfg:table:typeValue')" prop="TypeValue">
<el-input v-model="form.TypeValue" :placeholder="$t('trials:qcCfg:message:typeValue')" />
</el-form-item> </el-form-item>
<!-- 任务类型 --> <!-- 是否通用 -->
<el-form-item <el-form-item
label="是否通用" :label="$t('dictionary:medicalAudit:label:IsGeneral')"
prop="IsGeneral" prop="IsGeneral"
> >
<el-switch <el-switch
@@ -58,9 +63,10 @@
<el-option v-for="item of $d.CriterionType" :key="item.id" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.CriterionType" :key="item.id" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 任务类型 -->
<el-form-item <el-form-item
v-if="form.Type === 'select' || form.Type === 'radio'" v-if="form.Type === 'select' || form.Type === 'radio'"
label="任务类型" :label="$t('trials:medicalFeedbackCfg:title:taskType')"
prop="ReadingCategory" prop="ReadingCategory"
> >
<el-select v-model="form.ReadingCategory" @change="((val)=>{readingCategoryChange(val, form)})"> <el-select v-model="form.ReadingCategory" @change="((val)=>{readingCategoryChange(val, form)})">
@@ -69,7 +75,7 @@
</el-form-item> </el-form-item>
<!-- 父问题 --> <!-- 父问题 -->
<el-form-item <el-form-item
label="父问题" :label="$t('trials:qcCfg:table:parentQs')"
> >
<el-select <el-select
v-model="form.ParentId" v-model="form.ParentId"
@@ -87,7 +93,7 @@
<!-- 父问题触发值 --> <!-- 父问题触发值 -->
<el-form-item <el-form-item
v-if="form.ParentId" v-if="form.ParentId"
label="父问题触发值" :label="$t('trials:qcCfg:table:parentTriggerValue')"
prop="ParentTriggerValue" prop="ParentTriggerValue"
> >
<el-select <el-select
@@ -101,26 +107,40 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否必填"> <el-form-item :label="$t('trials:qcCfg:table:isRequired')">
<el-radio-group v-model="form.IsRequired"> <el-radio-group v-model="form.IsRequired">
<el-radio :label="true"></el-radio> <el-radio
<el-radio :label="false"></el-radio> v-for="item of $d.YesOrNo"
:key="`IsRequired${item.value}`"
:label="item.value"
>
{{ item.label }}
</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="启用状态"> <el-form-item :label="$t('trials:qcCfg:table:isEnable')">
<el-radio-group v-model="form.IsEnable"> <el-radio-group v-model="form.IsEnable">
<el-radio :label="true">启用</el-radio> <el-radio
<el-radio :label="false">停用</el-radio> v-for="item of $d.YesOrNo"
:key="item.value"
:label="item.value"
>
{{ item.label }}
</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="序号" prop="ShowOrder"> <el-form-item :label="$t('trials:qcCfg:table:order')" prop="ShowOrder">
<el-input-number v-model="form.ShowOrder" controls-position="right" :min="0" /> <el-input-number v-model="form.ShowOrder" controls-position="right" :min="0" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</template> </template>
<template slot="dialog-footer"> <template slot="dialog-footer">
<el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">取消</el-button> <el-button :disabled="btnLoading" size="small" type="primary" @click="handleCancle">
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">保存</el-button> {{ $t('common:button:cancel') }}
</el-button>
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
{{ $t('common:button:save') }}
</el-button>
</template> </template>
</base-model> </base-model>
</template> </template>
@@ -154,7 +174,7 @@ export default {
} else { } else {
var arr = value.split('|') var arr = value.split('|')
if (new Set(arr).size !== arr.length) { if (new Set(arr).size !== arr.length) {
callback(new Error('选项不允许存在相同值')) callback(new Error(this.$t('trials:medicalFeedbackCfg:message:msg2')))
} else { } else {
callback() callback()
} }
@@ -164,11 +184,11 @@ export default {
btnLoading: false, btnLoading: false,
form: formDataDefault(), form: formDataDefault(),
rules: { rules: {
QuestionName: [{ required: true, message: 'Please specify', trigger: 'blur' }, QuestionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ max: 300, message: 'The maximum length is 300' }], { max: 300, message: `${this.$t('common:ruleMessage:maxLength')} 300` }],
TypeValue: [{ required: true, message: 'Please specify', trigger: 'blur' }, TypeValue: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
{ validator: validateTypeVal, trigger: 'blur' }, { validator: validateTypeVal, trigger: 'blur' },
{ max: 200, message: 'The maximum length is 200' }], { max: 200, message: `${this.$t('common:ruleMessage:maxLength')} 200` }],
ParentTriggerValue: [ ParentTriggerValue: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' } { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
], ],
@@ -96,7 +96,7 @@
<el-table-column <el-table-column
prop="OrganType" prop="OrganType"
:label="$t('trials:readingUnit:baseDataCfg:title:organType')" :label="$t('trials:readingUnit:baseDataCfg:title:organType')"
min-width="120" min-width="140"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -110,11 +110,12 @@
:label="$t('trials:readingUnit:baseDataCfg:title:classification')" :label="$t('trials:readingUnit:baseDataCfg:title:classification')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="140"
/> />
<el-table-column <el-table-column
prop="ClassificationEN" prop="ClassificationEN"
:label="$t('trials:readingUnit:baseDataCfg:title:classificationEn')" :label="$t('trials:readingUnit:baseDataCfg:title:classificationEn')"
min-width="140" min-width="160"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
@@ -124,6 +125,7 @@
:label="$t('trials:readingUnit:baseDataCfg:title:bodyPart')" :label="$t('trials:readingUnit:baseDataCfg:title:bodyPart')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="120"
/> />
<el-table-column <el-table-column
prop="PartEN" prop="PartEN"
@@ -138,6 +140,7 @@
:label="$t('trials:readingUnit:baseDataCfg:title:organ')" :label="$t('trials:readingUnit:baseDataCfg:title:organ')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="120"
/> />
<el-table-column <el-table-column
prop="TULOCEN" prop="TULOCEN"
@@ -152,6 +155,7 @@
:label="$t('trials:readingUnit:baseDataCfg:title:TULAT')" :label="$t('trials:readingUnit:baseDataCfg:title:TULAT')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="120"
/> />
<el-table-column <el-table-column
prop="TULATEN" prop="TULATEN"
@@ -212,17 +216,17 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
circle type="text"
:title="$t('common:button:edit')"
icon="el-icon-edit-outline"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
/> >
{{ $t('common:button:edit') }}
</el-button>
<el-button <el-button
circle type="text"
:title="$t('common:button:delete')"
icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
/> >
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -2,7 +2,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<!-- 问题名称 --> <!-- 问题名称 -->
<el-form-item :label="$t('trials:qcCfg:table:questionName')"> <el-form-item :label="$t('trials:qcCfg:table:questionName')">
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" /> <el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
@@ -42,13 +42,12 @@
<span style="margin-left:auto"> <span style="margin-left:auto">
<el-button <el-button
:disabled="list.length === 0" :disabled="list.length === 0"
size="mini"
type="primary" type="primary"
@click="preview.visible = true" @click="preview.visible = true"
> >
{{$t('common:button:preview')}} {{$t('common:button:preview')}}
</el-button> </el-button>
<el-button type="primary" size="mini" @click="handleAdd">{{$t('common:button:new')}}</el-button> <el-button type="primary" @click="handleAdd">{{$t('common:button:new')}}</el-button>
</span> </span>
</div> </div>
@@ -57,7 +56,6 @@
v-adaptive="{bottomOffset:45}" v-adaptive="{bottomOffset:45}"
:data="list" :data="list"
stripe stripe
size="small"
height="100" height="100"
> >
<!-- 序号 --> <!-- 序号 -->
@@ -137,15 +135,13 @@
<el-table-column :label="$t('common:action:action')" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
{{ $t('common:button:edit') }} {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
{{ $t('common:button:delete') }} {{ $t('common:button:delete') }}
@@ -204,24 +204,21 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="isCompleteConfig" v-if="isCompleteConfig"
type="primary" type="text"
size="mini"
@click="handleLook(scope.row)" @click="handleLook(scope.row)"
> >
{{ $t('trials:readingPeriod:button:view') }} {{ $t('trials:readingPeriod:button:view') }}
</el-button> </el-button>
<el-button <el-button
v-if="!isCompleteConfig" v-if="!isCompleteConfig"
type="primary" type="text"
size="mini"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
{{ $t('common:button:edit') }} {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
v-if="!isCompleteConfig" v-if="!isCompleteConfig"
type="danger" type="text"
size="mini"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
{{ $t('common:button:delete') }} {{ $t('common:button:delete') }}
@@ -9,22 +9,26 @@
> >
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<!-- Code -->
<el-form-item label="Code: " prop="Code"> <el-form-item label="Code: " prop="Code">
<el-input style="width: 300px" v-model="form.Code" /> <el-input style="width: 300px" v-model="form.Code" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="邮件主题(CN" prop="EmailTopicCN"> <!-- 邮件主题CN -->
<el-form-item :label="$t('trials:emailManageCfg:table:EmailTopicCN')" prop="EmailTopicCN">
<el-input style="width: 300px" v-model="form.EmailTopicCN" /> <el-input style="width: 300px" v-model="form.EmailTopicCN" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="邮件主题(EN" prop="EmailTopic"> <!-- 邮件主题EN -->
<el-form-item :label="$t('trials:emailManageCfg:table:EmailTopic')" prop="EmailTopic">
<el-input style="width: 300px" v-model="form.EmailTopic" /> <el-input style="width: 300px" v-model="form.EmailTopic" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="邮件延时发送s数" prop="EmailDelaySeconds"> <!-- 邮件延时发送s数 -->
<el-form-item :label="$t('dictionary:email:label:emailDelaySeconds')" prop="EmailDelaySeconds">
<el-input <el-input
v-model.number="form.EmailDelaySeconds" v-model.number="form.EmailDelaySeconds"
style="width: 300px" style="width: 300px"
@@ -35,7 +39,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="业务层级" prop="BusinessLevelEnum"> <!-- 业务层级 -->
<el-form-item :label="$t('dictionary:email:label:businessLevel')" prop="BusinessLevelEnum">
<el-select v-model="form.BusinessLevelEnum" clearable class="mr"> <el-select v-model="form.BusinessLevelEnum" clearable class="mr">
<el-option <el-option
v-for="item of $d.BusinessLevel" v-for="item of $d.BusinessLevel"
@@ -47,7 +52,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="业务模块" prop="BusinessModuleEnum"> <!-- 业务模块 -->
<el-form-item :label="$t('dictionary:email:label:businessModule')" prop="BusinessModuleEnum">
<el-select v-model="form.BusinessModuleEnum" clearable class="mr"> <el-select v-model="form.BusinessModuleEnum" clearable class="mr">
<el-option <el-option
v-for="item of $d.BusinessModule" v-for="item of $d.BusinessModule"
@@ -59,7 +65,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="业务场景" prop="BusinessScenarioEnum"> <!-- 业务场景 -->
<el-form-item :label="$t('trials:emailManageCfg:table:BusinessScenarioEnum')" prop="BusinessScenarioEnum">
<el-select v-model="form.BusinessScenarioEnum" clearable class="mr"> <el-select v-model="form.BusinessScenarioEnum" clearable class="mr">
<el-option <el-option
v-for="item of $d.Email_BusinessScenario" v-for="item of $d.Email_BusinessScenario"
@@ -71,7 +78,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="收件人" prop="ToUserTypeList"> <!-- 收件人 -->
<el-form-item :label="$t('trials:emailManageCfg:title:toUserTypeList')" prop="ToUserTypeList">
<el-select <el-select
v-model="form.ToUserTypeList" v-model="form.ToUserTypeList"
clearable clearable
@@ -88,7 +96,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="抄送人" prop="CopyUserTypeList"> <!-- 抄送人 -->
<el-form-item :label="$t('trials:emailManageCfg:title:copyUserTypeList')" prop="CopyUserTypeList">
<el-select <el-select
v-model="form.CopyUserTypeList" v-model="form.CopyUserTypeList"
clearable clearable
@@ -105,7 +114,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="加急状态" prop="EmailUrgentEnum"> <!-- 加急状态 -->
<el-form-item :label="$t('dictionary:email:label:IsUrgent')" prop="EmailUrgentEnum">
<el-select <el-select
v-model="form.EmailUrgentEnum" v-model="form.EmailUrgentEnum"
@change=" @change="
@@ -126,33 +136,46 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<!-- 发送周期和时间 -->
<el-form-item <el-form-item
label="发送周期和时间" :label="$t('trials:emailManageCfg:table:EmailCron')"
v-if="form.EmailUrgentEnum !== 1" v-if="form.EmailUrgentEnum !== 1"
prop="EmailCron" prop="EmailCron"
> >
<el-input style="width: 300px" readonly v-model="form.EmailCron" /> <el-input style="width: 300px" readonly v-model="form.EmailCron" />
<el-button type="primary" @click="showDialog">生成 cron</el-button> <!-- 生成 cron -->
<el-button type="primary" @click="showDialog"> {{ $t('dictionary:email:button:cron') }} </el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="是否需要回执" prop="IsReturnRequired"> <!-- 是否需要回执 -->
<el-form-item :label="$t('trials:emailManageCfg:title:isReturnRequired')" prop="IsReturnRequired">
<el-radio-group v-model="form.IsReturnRequired"> <el-radio-group v-model="form.IsReturnRequired">
<el-radio :label="true"></el-radio> <el-radio
<el-radio :label="false"></el-radio> v-for="item of $d.YesOrNo"
:label="item.value"
:key="`IsReturnRequired${item.value}`"
>{{ item.label }}</el-radio
>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="是否自动发送" prop="IsAutoSend"> <!-- 是否自动发送 -->
<el-form-item :label="$t('trials:emailManageCfg:table:IsAutoSend')" prop="IsAutoSend">
<el-radio-group v-model="form.IsAutoSend"> <el-radio-group v-model="form.IsAutoSend">
<el-radio :label="true"></el-radio> <el-radio
<el-radio :label="false"></el-radio> v-for="item of $d.YesOrNo"
:label="item.value"
:key="`IsAutoSend${item.value}`"
>{{ item.label }}</el-radio
>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="systemLevel"> <el-col :span="12" v-if="systemLevel">
<el-form-item label="是否区分标准" prop="IsDistinguishCriteria"> <!-- 是否区分标准 -->
<el-form-item :label="$t('dictionary:email:button:isDistinguishCriteria')" prop="IsDistinguishCriteria">
<el-radio-group <el-radio-group
v-model="form.IsDistinguishCriteria" v-model="form.IsDistinguishCriteria"
@change=" @change="
@@ -161,8 +184,12 @@
} }
" "
> >
<el-radio :label="true"></el-radio> <el-radio
<el-radio :label="false"></el-radio> v-for="item of $d.YesOrNo"
:label="item.value"
:key="`IsDistinguishCriteria${item.value}`"
>{{ item.label }}</el-radio
>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -183,15 +210,21 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="是否启用" prop="IsEnable"> <!-- 是否启用 -->
<el-form-item :label="$t('trials:emailManageCfg:table:IsEnable')" prop="IsEnable">
<el-radio-group v-model="form.IsEnable"> <el-radio-group v-model="form.IsEnable">
<el-radio :label="true"></el-radio> <el-radio
<el-radio :label="false"></el-radio> v-for="item of $d.YesOrNo"
:label="item.value"
:key="`IsEnable${item.value}`"
>{{ item.label }}</el-radio
>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="附件(CN" prop="IsEnable"> <!-- 附件CN -->
<el-form-item :label="$t('trials:emailManageCfg:table:fileListCN')" prop="IsEnable">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
action action
@@ -213,7 +246,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="附件(EN" prop="IsEnable"> <!-- 附件EN -->
<el-form-item :label="$t('trials:emailManageCfg:table:fileListEN')" prop="IsEnable">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
action action
@@ -235,8 +269,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- 邮件内容模版CN -->
<el-form-item <el-form-item
label="邮件内容模版(CN" :label="$t('dictionary:email:label:emailHtmlContentCN')"
prop="EmailHtmlContentCN" prop="EmailHtmlContentCN"
style="position: relative" style="position: relative"
> >
@@ -254,8 +289,9 @@
{{ $t('common:button:preview') }} {{ $t('common:button:preview') }}
</el-button> </el-button>
</el-form-item> </el-form-item>
<!-- 邮件内容模版EN -->
<el-form-item <el-form-item
label="邮件内容模版(EN" :label="$t('dictionary:email:label:emailHtmlContent')"
prop="EmailHtmlContent" prop="EmailHtmlContent"
style="position: relative" style="position: relative"
> >
@@ -278,18 +314,20 @@
style="text-align: right; margin-top: 10px; padding-bottom: 10px" style="text-align: right; margin-top: 10px; padding-bottom: 10px"
> >
<el-form-item style="text-align: right"> <el-form-item style="text-align: right">
<el-button size="small" type="primary" @click="handleSave" <el-button size="small" type="primary" @click="handleSave">
>Save</el-button {{ $t('common:button:save') }}
> </el-button>
</el-form-item> </el-form-item>
</div> </div>
<el-dialog append-to-body title="生成 cron" :visible.sync="showCron"> <!-- 生成 cron -->
<el-dialog append-to-body :title="$t('dictionary:email:button:cron')" :visible.sync="showCron">
<vcrontab <vcrontab
:hideComponent="['year']" :hideComponent="['year']"
@hide="showCron = false" @hide="showCron = false"
@fill="crontabFill" @fill="crontabFill"
:expression="expression" :expression="expression"
></vcrontab> >
</vcrontab>
</el-dialog> </el-dialog>
</el-form> </el-form>
</template> </template>
@@ -349,18 +387,18 @@ export default {
EmailDelaySeconds: null, EmailDelaySeconds: null,
}, },
rules: { rules: {
Code: [{ required: true, message: 'Please select', trigger: ['blur'] }], Code: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }],
BusinessScenarioEnum: [ BusinessScenarioEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
EmailTopicCN: [ EmailTopicCN: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
EmailTopic: [ EmailTopic: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
BusinessLevelEnum: [ BusinessLevelEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
// ToUserTypeList: [ // ToUserTypeList: [
// { required: true, message: 'Please select', trigger: ['blur'] }, // { required: true, message: 'Please select', trigger: ['blur'] },
@@ -369,16 +407,16 @@ export default {
// { required: true, message: 'Please select', trigger: ['blur'] }, // { required: true, message: 'Please select', trigger: ['blur'] },
// ], // ],
EmailUrgentEnum: [ EmailUrgentEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
EmailHtmlContentCN: [ EmailHtmlContentCN: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
EmailHtmlContent: [ EmailHtmlContent: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
CriterionTypeEnum: [ CriterionTypeEnum: [
{ required: true, message: 'Please select', trigger: ['blur'] }, { required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] },
], ],
}, },
scenarioOption: [], scenarioOption: [],
@@ -416,7 +454,7 @@ export default {
}, },
beforeUploadCN() { beforeUploadCN() {
if (this.fileListCN.length > 0) { if (this.fileListCN.length > 0) {
this.$alert('最多只能传一个附件') this.$alert(this.$t('trials:emailManageCfg:message:msg1'))
return return
} }
}, },
@@ -464,7 +502,7 @@ export default {
}, },
beforeUploadEN() { beforeUploadEN() {
if (this.fileListEN.length > 0) { if (this.fileListEN.length > 0) {
this.$alert('最多只能传一个附件') this.$alert(this.$t('trials:emailManageCfg:message:msg1'))
return return
} }
}, },
@@ -511,7 +549,7 @@ export default {
this.loading = false this.loading = false
this.$emit('closeDialog') this.$emit('closeDialog')
this.$emit('getList') this.$emit('getList')
this.$message.success('Saved successfully') this.$message.success(this.$t('common:message:savedSuccessfully'))
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
@@ -1,8 +1,9 @@
<template> <template>
<box-content> <box-content>
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="是否需要回执:" v-if="!systemLevel"> <!-- 是否需要回执 -->
<el-form-item :label="$t('trials:emailManageCfg:title:isReturnRequired')" v-if="!systemLevel">
<el-select <el-select
v-model="searchData.IsReturnRequired" v-model="searchData.IsReturnRequired"
clearable clearable
@@ -16,7 +17,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否加急:" v-if="!systemLevel"> <!-- 是否加急 -->
<el-form-item :label="$t('dictionary:email:label:IsUrgent')" v-if="!systemLevel">
<el-select <el-select
v-model="searchData.IsUrgent" v-model="searchData.IsUrgent"
clearable clearable
@@ -30,7 +32,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否启用:" v-if="!systemLevel"> <!-- 是否启用 -->
<el-form-item :label="$t('trials:emailManageCfg:table:IsEnable')" v-if="!systemLevel">
<el-select <el-select
v-model="searchData.IsEnable" v-model="searchData.IsEnable"
clearable clearable
@@ -136,7 +139,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left: auto"> <span style="margin-left: auto">
<el-button type="primary" size="mini" @click="handleExport"> <el-button type="primary" @click="handleExport">
{{ $t('common:button:export') }} {{ $t('common:button:export') }}
</el-button> </el-button>
<!-- <el-button <!-- <el-button
@@ -145,8 +148,8 @@
> >
场景配置 场景配置
</el-button> --> </el-button> -->
<el-button type="primary" size="mini" @click="handleAdd"> <el-button type="primary" @click="handleAdd">
新增 {{ $t('common:button:new') }}
</el-button> </el-button>
</span> </span>
</div> </div>
@@ -181,45 +184,50 @@
{{ $fd('CriterionType', scope.row.CriterionTypeEnum) }} {{ $fd('CriterionType', scope.row.CriterionTypeEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 邮件主题中文 -->
<el-table-column <el-table-column
prop="EmailTopicCN" prop="EmailTopicCN"
label="邮件主题(中文)" :label="$t('trials:emailManageCfg:table:EmailTopicCN')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="160" min-width="160"
/> />
<!-- 邮件主题英文 -->
<el-table-column <el-table-column
prop="EmailTopic" prop="EmailTopic"
label="邮件主题(英文)" :label="$t('trials:emailManageCfg:table:EmailTopic')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="160" min-width="160"
/> />
<!-- 业务层级 -->
<el-table-column <el-table-column
prop="BusinessLevelEnum" prop="BusinessLevelEnum"
label="业务层级" :label="$t('dictionary:email:label:businessLevel')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('BusinessLevel', scope.row.BusinessLevelEnum) }} {{ $fd('BusinessLevel', scope.row.BusinessLevelEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 业务模块 -->
<el-table-column <el-table-column
prop="BusinessModuleEnum" prop="BusinessModuleEnum"
label="业务模块" :label="$t('dictionary:email:label:businessModule')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="160"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('BusinessModule', scope.row.BusinessModuleEnum) }} {{ $fd('BusinessModule', scope.row.BusinessModuleEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<!-- 业务场景 -->
<el-table-column <el-table-column
prop="BusinessScenarioEnum" prop="BusinessScenarioEnum"
label="业务场景" :label="$t('trials:emailManageCfg:table:BusinessScenarioEnum')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="130" min-width="130"
@@ -262,25 +270,25 @@
}} }}
</template> </template>
</el-table-column> </el-table-column>
<!---v-if="!systemLevel"--> <!-- 加急状态 -->
<el-table-column <el-table-column
prop="EmailUrgentEnum" prop="EmailUrgentEnum"
label="加急状态" :label="$t('dictionary:email:label:IsUrgent')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="110"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('EmailUrgent', scope.row.EmailUrgentEnum) }} {{ $fd('EmailUrgent', scope.row.EmailUrgentEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<!---v-if="!systemLevel"--> <!-- 发送周期和时间 -->
<el-table-column <el-table-column
prop="EmailCron" prop="EmailCron"
label="发送周期和时间" :label="$t('trials:emailManageCfg:table:EmailCron')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
min-width="160" min-width="180"
/> />
<!-- 附件 --> <!-- 附件 -->
<el-table-column <el-table-column
@@ -306,7 +314,7 @@
:label="$t('trials:emailManageCfg:title:isReturnRequired')" :label="$t('trials:emailManageCfg:title:isReturnRequired')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="140" min-width="160"
v-if="!systemLevel" v-if="!systemLevel"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -369,22 +377,21 @@
sortable="custom" sortable="custom"
min-width="160" min-width="160"
/> />
<el-table-column label="Action" min-width="140" fixed="right"> <el-table-column label="Action" min-width="180" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handleEdit(scope.row)"> <el-button type="text" @click="handleEdit(scope.row)">
编辑 {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button type="text" @click="handleDelete(scope.row)" <el-button type="text" @click="handleDelete(scope.row)">
>删除</el-button {{ $t('common:button:delete') }}
> </el-button>
<el-button <el-button
type="text" type="text"
@click=" @click="
preview(scope.row.EmailHtmlContentCN, scope.row.EmailHtmlContent) preview(scope.row.EmailHtmlContentCN, scope.row.EmailHtmlContent)
" "
>{{ $t('common:button:preview') }}</el-button >{{ $t('common:button:preview') }}</el-button>
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -422,7 +429,7 @@
v-if="attachmentVisible" v-if="attachmentVisible"
:visible.sync="attachmentVisible" :visible.sync="attachmentVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
title="附件" :title="$t('trials:emailManageCfg:title:fileName')"
width="80%" width="80%"
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
append-to-body append-to-body
@@ -438,7 +445,7 @@
v-if="previewVisible" v-if="previewVisible"
:visible.sync="previewVisible" :visible.sync="previewVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
title="预览" :title="$t('common:button:preview')"
fullscreen fullscreen
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
@@ -451,11 +458,13 @@
" "
> >
<div style="min-width: 50%"> <div style="min-width: 50%">
<h3>邮件内容模版CN</h3> <!-- 邮件内容模版CN -->
<h3>{{ $t('dictionary:email:title:title1') }}</h3>
<div v-html="previewHTML"></div> <div v-html="previewHTML"></div>
</div> </div>
<div style="min-width: 50%"> <div style="min-width: 50%">
<h3>邮件内容模版EN</h3> <!-- 邮件内容模版EN -->
<h3>{{ $t('dictionary:email:title:title2') }}</h3>
<div v-html="previewHTMLEN"></div> <div v-html="previewHTMLEN"></div>
</div> </div>
</div> </div>
@@ -554,13 +563,13 @@ export default {
// //
handleAdd() { handleAdd() {
this.rowData = {} this.rowData = {}
this.title = '新增' this.title = this.$t('common:button:new')
this.editVisible = true this.editVisible = true
}, },
// //
handleEdit(row) { handleEdit(row) {
this.rowData = { ...row } this.rowData = { ...row }
this.title = '编辑' this.title = this.$t('common:button:edit')
this.editVisible = true this.editVisible = true
}, },
// //
@@ -572,7 +581,7 @@ export default {
deleteEmailNoticeConfig(row.Id).then((res) => { deleteEmailNoticeConfig(row.Id).then((res) => {
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$message.success('删除成功!') this.$message.success(this.$t('common:message:deletedSuccessfully'))
} }
}) })
}) })
@@ -56,6 +56,16 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item
:label="$t('dictionary:file:form:ShowOrder')"
prop="ShowOrder"
>
<el-input-number
v-model="form.ShowOrder"
:step="1"
step-strictly
></el-input-number>
</el-form-item>
<el-form-item :label="$t('dictionary:file:form:IsEnable')"> <el-form-item :label="$t('dictionary:file:form:IsEnable')">
<el-switch <el-switch
v-model="form.IsEnable" v-model="form.IsEnable"
@@ -115,6 +125,7 @@ export default {
Name: null, Name: null,
NameCN: null, NameCN: null,
SubIdentificationEnum: null, SubIdentificationEnum: null,
ShowOrder: 0,
}, },
rules: { rules: {
Name: [ Name: [
+10 -3
View File
@@ -3,7 +3,7 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item :label="$t('dictionary:file:search:Name')"> <el-form-item :label="$t('dictionary:file:search:Name')">
<el-input v-model="searchData.Name" style="width: 100px" /> <el-input v-model="searchData.Name" style="width: 100px" />
</el-form-item> </el-form-item>
@@ -95,7 +95,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span style="margin-left: auto"> <span style="margin-left: auto">
<el-button type="primary" size="mini" @click="handleAdd"> <el-button type="primary" @click="handleAdd">
{{ $t('dictionary:browser:button:add') }} {{ $t('dictionary:browser:button:add') }}
</el-button> </el-button>
</span> </span>
@@ -144,6 +144,12 @@
{{ $fd('SubIdentification', scope.row.SubIdentificationEnum) }} {{ $fd('SubIdentification', scope.row.SubIdentificationEnum) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="ShowOrder"
:label="$t('dictionary:file:table:ShowOrder')"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column <el-table-column
:label="$t('dictionary:file:table:IsEnable')" :label="$t('dictionary:file:table:IsEnable')"
prop="IsEnable" prop="IsEnable"
@@ -161,6 +167,7 @@
prop="IsConfirmRecord" prop="IsConfirmRecord"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="!scope.row.IsEnable ? 'info' : ''"> <el-tag :type="!scope.row.IsEnable ? 'info' : ''">
@@ -234,7 +241,7 @@ const searchDataDefault = () => {
PageIndex: 1, PageIndex: 1,
PageSize: 20, PageSize: 20,
asc: false, asc: false,
sortField: 'CreateTime', sortField: '',
} }
} }
export default { export default {
@@ -8,22 +8,22 @@
:rules="rules" :rules="rules"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="编号: " prop="Code"> <el-form-item :label="$t('dictionary:sign:label:code')" prop="Code">
<el-input v-model="form.Code" /> <el-input v-model="form.Code" />
</el-form-item> </el-form-item>
<el-form-item label="场景类型: " prop="Name"> <el-form-item :label="$t('dictionary:sign:label:sceneType')" prop="Name">
<el-input v-model="form.Name" /> <el-input v-model="form.Name" />
</el-form-item> </el-form-item>
<el-form-item label="签名内容(EN): " prop="Value"> <el-form-item label="$t('dictionary:sign:label:value')" prop="Value">
<el-input v-model="form.Value" type="textarea" rows="5" /> <el-input v-model="form.Value" type="textarea" rows="5" />
</el-form-item> </el-form-item>
<el-form-item label="签名内容(CN): " prop="ValueCN"> <el-form-item :label="$t('dictionary:sign:label:valueCN')" prop="ValueCN">
<el-input v-model="form.ValueCN" type="textarea" rows="5" /> <el-input v-model="form.ValueCN" type="textarea" rows="5" />
</el-form-item> </el-form-item>
</div> </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 style="text-align:right;"> <el-form-item style="text-align:right;">
<el-button size="small" type="primary" :disabled="form.Type === '' || form.Name === ''" :loading="saveBtnLoading" @click="handleSave">Save</el-button> <el-button size="small" type="primary" :disabled="form.Type === '' || form.Name === ''" :loading="saveBtnLoading" @click="handleSave">{{ $t('common:button:save') }}</el-button>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
@@ -53,10 +53,10 @@ export default {
ParentId: '' ParentId: ''
}, },
rules: { rules: {
Code: [{ required: true, message: 'Please specify', trigger: ['blur'] }], Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
Name: [{ required: true, message: 'Please specify', trigger: ['blur'] }], Name: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
Value: [{ required: true, message: 'Please specify', trigger: ['blur'] }], Value: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
ValueCN: [{ required: true, message: 'Please specify', trigger: ['blur'] }] ValueCN: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }]
}, },
scenarioOption: [], scenarioOption: [],
saveBtnLoading: false, saveBtnLoading: false,
@@ -86,7 +86,7 @@ export default {
this.saveBtnLoading = false this.saveBtnLoading = false
this.$emit('closeDialog') this.$emit('closeDialog')
this.$emit('getList') this.$emit('getList')
this.$message.success('Saved successfully') this.$message.success(this.$t('common:message:savedSuccessfully'))
}).catch(() => { }).catch(() => {
this.saveBtnLoading = false this.saveBtnLoading = false
}) })
@@ -8,7 +8,7 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
> >
Add {{ $t('common:button:new') }}
</el-button> </el-button>
</span> </span>
@@ -27,48 +27,50 @@
<el-table-column <el-table-column
prop="Code" prop="Code"
label="编号" :label="$t('dictionary:sign:label:code')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="Name" prop="Name"
label="场景类型" :label="$t('dictionary:sign:label:sceneType')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="Value" prop="Value"
label="签名内容(EN)" :label="$t('dictionary:sign:label:value')"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="ValueCN" prop="ValueCN"
label="签名内容(CN)" :label="$t('dictionary:sign:label:valueCN')"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
prop="UpdateTime" prop="UpdateTime"
label="更新时间" :label="$t('dictionary:sign:label:updateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="创建时间" :label="$t('dictionary:sign:label:createTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
Edit {{ $t('common:button:edit') }}
</el-button>
<el-button type="text" @click="handleDelete(scope.row)">
{{ $t('common:button:delete') }}
</el-button> </el-button>
<el-button type="text" @click="handleDelete(scope.row)">Delete</el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -8,22 +8,25 @@
:rules="rules" :rules="rules"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="Code: " prop="Code"> <el-form-item :label="$t('dictionary:sign:label:code')" prop="Code">
<el-input v-model="form.Code" /> <el-input v-model="form.Code" />
</el-form-item> </el-form-item>
<el-form-item label="模板: " prop="Name"> <!-- 模板 -->
<el-form-item :label="$t('dictionary:sign:label:name')" prop="Name">
<el-input v-model="form.Name" /> <el-input v-model="form.Name" />
</el-form-item> </el-form-item>
<el-form-item label="签名内容(EN): " prop="Value"> <!-- 签名内容(EN) -->
<el-form-item :label="$t('dictionary:sign:label:value')" prop="Value">
<el-input v-model="form.Value" type="textarea" rows="5" /> <el-input v-model="form.Value" type="textarea" rows="5" />
</el-form-item> </el-form-item>
<el-form-item label="签名内容(CN): " prop="ValueCN"> <!-- 签名内容(CN) -->
<el-form-item :label="$t('dictionary:sign:label:valueCN')" prop="ValueCN">
<el-input v-model="form.ValueCN" type="textarea" rows="5" /> <el-input v-model="form.ValueCN" type="textarea" rows="5" />
</el-form-item> </el-form-item>
</div> </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 style="text-align:right;"> <el-form-item style="text-align:right;">
<el-button size="small" type="primary" :disabled="form.Type === '' || form.Name === ''" :loading="saveBtnLoading" @click="handleSave">Save</el-button> <el-button size="small" type="primary" :disabled="form.Type === '' || form.Name === ''" :loading="saveBtnLoading" @click="handleSave">{{ $t('common:button:save') }}</el-button>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
@@ -48,10 +51,10 @@ export default {
ValueCN: '' ValueCN: ''
}, },
rules: { rules: {
Code: [{ required: true, message: 'Please specify', trigger: ['blur'] }], Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
Name: [{ required: true, message: 'Please specify', trigger: ['blur'] }], Name: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
Value: [{ required: true, message: 'Please specify', trigger: ['blur'] }], Value: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
ValueCN: [{ required: true, message: 'Please specify', trigger: ['blur'] }] ValueCN: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }]
}, },
scenarioOption: [], scenarioOption: [],
saveBtnLoading: false, saveBtnLoading: false,
@@ -80,7 +83,7 @@ export default {
this.saveBtnLoading = false this.saveBtnLoading = false
this.$emit('closeDialog') this.$emit('closeDialog')
this.$emit('getList') this.$emit('getList')
this.$message.success('Saved successfully') this.$message.success(this.$t('common:message:savedSuccessfully'))
}).catch(() => { }).catch(() => {
this.saveBtnLoading = false this.saveBtnLoading = false
}) })
+27 -19
View File
@@ -2,11 +2,13 @@
<box-content> <box-content>
<!-- 搜索框 --> <!-- 搜索框 -->
<div class="search"> <div class="search">
<el-form :inline="true" size="mini" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<el-form-item label="Code:"> <!-- Code -->
<el-form-item :label="$t('dictionary:sign:label:code')">
<el-input v-model="searchData.Code" style="width:100px;" /> <el-input v-model="searchData.Code" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item label="模板:"> <!-- 模板 -->
<el-form-item :label="$t('dictionary:sign:label:name')">
<el-input v-model="searchData.Name" style="width:100px;" /> <el-input v-model="searchData.Name" style="width:100px;" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@@ -25,10 +27,9 @@
<span style="margin-left:auto;"> <span style="margin-left:auto;">
<el-button <el-button
type="primary" type="primary"
size="mini"
@click="handleAdd" @click="handleAdd"
> >
New {{ $t('common:button:new') }}
</el-button> </el-button>
</span> </span>
@@ -48,55 +49,62 @@
<el-table-column <el-table-column
prop="Code" prop="Code"
label="Code" :label="$t('dictionary:sign:label:code')"
sortable="custom" sortable="custom"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 模板 -->
<el-table-column <el-table-column
prop="Name" prop="Name"
label="模板" :label="$t('dictionary:sign:label:name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- 签名内容(EN) -->
<el-table-column <el-table-column
prop="Value" prop="Value"
label="签名内容(EN)" :label="$t('dictionary:sign:label:value')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 签名内容(CN) -->
<el-table-column <el-table-column
prop="ValueCN" prop="ValueCN"
label="签名内容(CN)" :label="$t('dictionary:sign:label:valueCN')"
show-overflow-tooltip show-overflow-tooltip
/> />
<!-- 更新时间 -->
<el-table-column <el-table-column
prop="UpdateTime" prop="UpdateTime"
label="更新时间" :label="$t('dictionary:sign:label:updateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<!-- 创建时间 -->
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="创建时间" :label="$t('dictionary:sign:label:createTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action" width="200" fixed="right"> <el-table-column :label="$t('common:action:action')" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
Edit {{ $t('common:button:edit') }}
</el-button> </el-button>
<!-- 场景配置 -->
<el-button <el-button
type="text" type="text"
@click="handleConfig(scope.row)" @click="handleConfig(scope.row)"
> >
场景配置 {{ $t('dictionary:sign:button:config') }}
</el-button> </el-button>
<el-button type="text" @click="handleDelete(scope.row)">Delete</el-button> <el-button type="text" @click="handleDelete(scope.row)">
{{ $t('common:button:delete') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -121,7 +129,7 @@
<el-dialog <el-dialog
v-if="configVisible" v-if="configVisible"
:visible.sync="configVisible" :visible.sync="configVisible"
title="场景配置" :title="$t('dictionary:sign:button:config')"
:fullscreen="true" :fullscreen="true"
append-to-body append-to-body
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
@@ -175,13 +183,13 @@ export default {
// //
handleAdd() { handleAdd() {
this.rowData = {} this.rowData = {}
this.title = 'Add' this.title = this.$t('common:button:new')
this.editVisible = true this.editVisible = true
}, },
// //
handleEdit(row) { handleEdit(row) {
this.rowData = { ...row } this.rowData = { ...row }
this.title = 'Edit' this.title = this.$t('common:button:edit')
this.editVisible = true this.editVisible = true
}, },
// //
+3 -6
View File
@@ -111,14 +111,12 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini"
@click="getList" @click="getList"
> >
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
</el-button> </el-button>
<!-- 重置 --> <!-- 重置 -->
<el-button <el-button
size="mini"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
> >
@@ -135,7 +133,6 @@
</el-form-item> </el-form-item>
<el-button <el-button
type="primary" type="primary"
size="mini"
@click="resolve" @click="resolve"
style="float: right" style="float: right"
v-if="level > 7" v-if="level > 7"
@@ -205,7 +202,7 @@
<el-table-column <el-table-column
:label="$t('feedBack:form:role')" :label="$t('feedBack:form:role')"
prop="FeedBackUserName" prop="FeedBackUserName"
min-width="80" min-width="100"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
v-if="level > 7" v-if="level > 7"
@@ -273,11 +270,11 @@
:label="$t('common:action:action')" :label="$t('common:action:action')"
fixed="right" fixed="right"
prop="UserTypeShortName" prop="UserTypeShortName"
width="80" width="100"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="getDetail(scope.row)"> <el-button type="text" @click="getDetail(scope.row)">
{{ $t('common:button:view') }} {{ $t('common:button:view') }}
</el-button> </el-button>
</template> </template>
+244 -43
View File
@@ -6,44 +6,110 @@
</div> </div>
<div class="left-content"> <div class="left-content">
<!-- 检查层级 --> <!-- 检查层级 -->
<div v-for="(study, i) in studyList" :key="study.CodeView"> <el-collapse v-model="activeNames" @change="handleChange">
<div class="study-desc"> <el-collapse-item
<span>{{ study.CodeView }}</span> v-for="(study, i) in studyList"
<span v-if="OtherInfo.IsShowStudyName" style="margin-left: 5px"> :key="study.CodeView"
{{ study.StudyName }} :name="study.CodeView"
</span> ><template slot="title">
<span style="margin: 0 5px">{{ study.Modality }}</span> <div class="study-desc">
<span>{{ getBodyPart(study.BodyPart) }}</span> <span>{{ study.CodeView }}</span>
</div> <span v-if="OtherInfo.IsShowStudyName" style="margin-left: 5px">
<!-- 文件层级 --> {{ study.StudyName }}
<div </span>
v-if="study.NoneDicomStudyFileList.length === 0" <span style="margin: 0 5px">{{ study.Modality }}</span>
class="empty-text" <span>{{ getBodyPart(study.BodyPart) }}</span>
>
<slot name="empty">{{ $t('trials:audit:message:noData') }}</slot>
</div>
<div v-else id="imgList" style="height: 100%; overflow: hidden">
<div
v-for="(item, j) in study.NoneDicomStudyFileList"
:id="`img${item.Id}`"
:key="item.Id"
:class="{
'is-boxActive': item.Id === currentFileId,
}"
class="img-box"
@click="selected(item, i, j, true)"
>
<div v-if="item.FileName.length < 15" class="img-text">
{{ `${j + 1}. ${item.FileName}` }}
</div> </div>
<el-tooltip v-else :content="item.FileName" placement="bottom"> </template>
<div class="img-text"> <!-- 文件层级 -->
{{ `${j + 1}. ${item.FileName}` }} <div
</div> v-if="study.NoneDicomStudyFileList.length === 0"
</el-tooltip> class="empty-text"
>
<slot name="empty">{{ $t('trials:audit:message:noData') }}</slot>
</div> </div>
</div> <div v-else id="imgList" style="height: 100%; overflow: hidden">
</div> <template v-for="(item, j) in study.NoneDicomStudyFileList">
<div
:id="`img${item.Id}`"
:key="item.Id"
:class="{
'is-boxActive': item.Id === currentFileId,
}"
class="img-box"
@click="selected(item, i, j, true)"
>
<div class="file-image">
<el-image
v-if="
[
'image/jpeg',
'image/jpg',
'image/png',
'image/bmp',
].includes(item.FileType)
"
style="width: 100%; height: 100%"
:src="`${OSSclientConfig.basePath}${item.Path}?x-oss-process=image/resize,w_50,h_50/format,png`"
fit="contain"
crossorigin="anonymous"
/>
<el-image
v-else-if="item.FileType === 'application/pdf'"
style="width: 100%; height: 100%"
:src="pdf"
fit="contain"
crossorigin="anonymous"
/>
<el-image
v-else-if="
item.FileType === 'application/x-zip-compressed'
"
style="width: 100%; height: 100%"
:src="zip"
fit="contain"
crossorigin="anonymous"
/>
</div>
<div v-if="item.FileName.length < 15" class="img-text">
{{ `${j + 1}. ${item.FileName}` }}
</div>
<el-tooltip
v-else
:content="item.FileName"
placement="bottom"
>
<div class="img-text">
{{ `${j + 1}. ${item.FileName}` }}
</div>
</el-tooltip>
<div v-if="isQcCheck" class="switchBox">
<div class="item">
<span>{{ $t('trials:audit:table:isReading') }}</span>
<el-switch
v-model="item.IsReading"
:disabled="item.IsDeleted || isAudit"
@change="changeReadingStatus($event, study, item)"
:active-text="$fd('YesOrNo', true)"
:inactive-text="$fd('YesOrNo', false)"
/>
</div>
<div class="item">
<span>{{ $t('trials:audit:table:isDelete') }}</span>
<el-switch
v-model="item.IsDeleted"
:disabled="isAudit"
@change="changeDeleteStatus($event, study, item)"
:active-text="$fd('YesOrNo', true)"
:inactive-text="$fd('YesOrNo', false)"
/>
</div>
</div>
</div>
</template>
</div>
</el-collapse-item>
</el-collapse>
</div> </div>
</el-card> </el-card>
<!-- 预览图像 --> <!-- 预览图像 -->
@@ -70,8 +136,10 @@
</template> </template>
<script> <script>
import { getNoneDicomStudyList } from '@/api/trials' import { getNoneDicomStudyList, setNodicomStudyState } from '@/api/trials'
import store from '@/store' import store from '@/store'
import pdf from '@/assets/pdf.png'
import zip from '@/assets/zip.jpg'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
import Preview from './components/preview' import Preview from './components/preview'
import PreviewFile from '@/components/PreviewFile' import PreviewFile from '@/components/PreviewFile'
@@ -85,6 +153,8 @@ export default {
}, },
data() { data() {
return { return {
pdf,
zip,
activeName: 'first', activeName: 'first',
currentFileId: '', currentFileId: '',
currentStudyIndex: 0, currentStudyIndex: 0,
@@ -111,10 +181,15 @@ export default {
path: null, path: null,
type: null, type: null,
}, },
isQcCheck: false,
isAudit: false,
activeNames: [],
} }
}, },
async created() { async created() {
this.bp = await this.$getBodyPart(this.$route.query.trialId) this.bp = await this.$getBodyPart(this.$route.query.trialId)
this.isQcCheck = !!this.$route.query.isQcCheck
}, },
async mounted() { async mounted() {
if (this.$router.currentRoute.query.TokenKey) { if (this.$router.currentRoute.query.TokenKey) {
@@ -127,8 +202,100 @@ export default {
// //
}, },
methods: { methods: {
handleChange() {},
changeReadingStatus(callback, row, file) {
let statusStr = ''
if (callback) {
statusStr = this.$t('trials:audit:label:setSeriesReading')
file.IsReading = false
} else {
statusStr = this.$t('trials:audit:label:setSeriesNotReading')
file.IsReading = true
}
var message = this.$t('trials:audit:message:changeSeriesStatus').replace(
'xxx',
statusStr
)
message = message.replace('yyy', this.$fd('YesOrNo', !file.IsReading))
this.$confirm(message, {
distinguishCancelAndClose: true,
type: 'warning',
})
.then(() => {
const state = file.IsReading ? 1 : 2
this.loading = true
let params = {
SubjectVisitId: row.SubjectVisitId,
NoneDicomStudyId: row.Id,
State: state,
NoneDicomStudyFileId: file.Id,
}
return setNodicomStudyState(params)
.then((res) => {
this.loading = false
if (res.IsSuccess) {
this.$message.success(
this.$t('common:message:savedSuccessfully')
)
file.IsReading = !file.IsReading
// this.getNoneDicomList()
}
})
.catch(() => {
this.loading = false
})
})
.catch(() => {})
},
changeDeleteStatus(callback, row, file) {
let statusStr = ''
if (callback) {
statusStr = this.$t('trials:audit:label:setSeriesDeleted')
file.IsDeleted = false
} else {
statusStr = this.$t('trials:audit:label:setSeriesNotDelete')
file.IsDeleted = true
}
var message = this.$t('trials:audit:message:changeSeriesStatus').replace(
'xxx',
statusStr
)
message = message.replace('yyy', this.$fd('YesOrNo', !file.IsDeleted))
this.$confirm(message, {
distinguishCancelAndClose: true,
type: 'warning',
})
.then(() => {
const state = file.IsDeleted ? 5 : 4
this.loading = true
let params = {
SubjectVisitId: row.SubjectVisitId,
NoneDicomStudyId: row.Id,
State: state,
NoneDicomStudyFileId: file.Id,
}
return setNodicomStudyState(params)
.then((res) => {
this.loading = false
if (res.IsSuccess) {
this.$message.success(
this.$t('common:message:savedSuccessfully')
)
file.IsDeleted = !file.IsDeleted
// this.getNoneDicomList()
}
})
.catch(() => {
// file.IsDeleted = !file.IsDeleted
this.loading = false
})
})
.catch(() => {
// file.IsDeleted = !file.IsDeleted
})
},
getBodyPart(bodyPart) { getBodyPart(bodyPart) {
console.log(bodyPart)
if (!bodyPart) return '' if (!bodyPart) return ''
var separator = ',' var separator = ','
if (bodyPart.indexOf('|') > -1) { if (bodyPart.indexOf('|') > -1) {
@@ -148,7 +315,6 @@ export default {
'Name' 'Name'
) )
}) })
console.log(newArr, this.bp)
return newArr.join(' | ') return newArr.join(' | ')
}, },
// Dicom // Dicom
@@ -158,15 +324,19 @@ export default {
this.subjectVisitId, this.subjectVisitId,
this.studyId, this.studyId,
false, false,
this.$route.query.visitTaskId this.$route.query.visitTaskId,
!!this.$route.query.isReading
) )
.then((res) => { .then((res) => {
this.studyList = res.Result this.studyList = res.Result
this.OtherInfo = res.OtherInfo this.OtherInfo = res.OtherInfo
this.isAudit = res.OtherInfo.AuditState * 1 > 6
this.loading = false this.loading = false
const studyIndex = this.studyList.findIndex((item) => { const studyIndex = this.studyList.findIndex((item) => {
return item.NoneDicomStudyFileList.length > 0 return item.NoneDicomStudyFileList.length > 0
}) })
this.activeNames = this.studyList.map((item) => item.CodeView)
console.log(this.activeNames)
if (studyIndex > -1) { if (studyIndex > -1) {
var fileObj = this.studyList[studyIndex]['NoneDicomStudyFileList'] var fileObj = this.studyList[studyIndex]['NoneDicomStudyFileList']
this.selected(fileObj[0], studyIndex, 0, true) this.selected(fileObj[0], studyIndex, 0, true)
@@ -249,7 +419,7 @@ export default {
} }
} }
.study-desc { .study-desc {
padding: 15px 5px; padding: 10px 5px;
line-height: 20px; line-height: 20px;
background-color: #d5d5d5; background-color: #d5d5d5;
font-weight: 500; font-weight: 500;
@@ -294,6 +464,11 @@ export default {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 2px solid #f3f3f3; border-bottom: 2px solid #f3f3f3;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: flex-start;
padding: 5px 10px;
cursor: pointer; cursor: pointer;
// margin-bottom: 5px; // margin-bottom: 5px;
@@ -301,7 +476,8 @@ export default {
} }
.img-text { .img-text {
display: inline-block; display: inline-block;
width: 200px; width: calc(100% - 60px);
margin-left: 5px;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
overflow: hidden; overflow: hidden;
@@ -328,4 +504,29 @@ export default {
width: 100%; width: 100%;
} }
} }
</style> .switchBox {
width: 100%;
margin: 5px 0;
color: #4e4e4e;
.item {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 5px;
}
}
.file-image {
width: 50px;
height: 50px;
}
::v-deep .el-collapse-item__header {
background-color: #d5d5d5;
}
::v-deep .el-collapse-item__header {
min-height: 48px;
height: auto;
}
::v-deep .el-collapse-item__content {
padding-bottom: 0;
}
</style>
@@ -60,7 +60,7 @@
<el-input v-model="form.Email" disabled /> <el-input v-model="form.Email" disabled />
</el-form-item> </el-form-item>
<!-- 平均刻盘周期 --> <!-- 平均刻盘周期 -->
<el-form-item :label="$t('trials:researchForm:form:engravingCycle')"> <el-form-item v-if="!notShowFieldList.includes('AverageEngravingCycle')" :label="$t('trials:researchForm:form:engravingCycle')">
<el-input-number v-model="form.AverageEngravingCycle" :disabled="!(state === 0 && userTypeEnumInt === 0) || isHistory" controls-position="right" :min="0" style="width:100%;" /> <el-input-number v-model="form.AverageEngravingCycle" :disabled="!(state === 0 && userTypeEnumInt === 0) || isHistory" controls-position="right" :min="0" style="width:100%;" />
</el-form-item> </el-form-item>
</div> </div>
+1 -1
View File
@@ -55,7 +55,7 @@
<!-- <el-divider /> --> <!-- <el-divider /> -->
<!-- 平均刻盘周期 --> <!-- 平均刻盘周期 -->
<el-form-item :label="$t('trials:researchForm:form:engravingCycle')"> <el-form-item v-if="!notShowFieldList.includes('AverageEngravingCycle')" :label="$t('trials:researchForm:form:engravingCycle')">
<el-input-number v-model="form.AverageEngravingCycle" :disabled="!(state === 0 && userTypeEnumInt === 0) || isHistory" controls-position="right" :min="0" /> <el-input-number v-model="form.AverageEngravingCycle" :disabled="!(state === 0 && userTypeEnumInt === 0) || isHistory" controls-position="right" :min="0" />
</el-form-item> </el-form-item>
<!-- 请确认参与本项目影像采集的影像技师具备对应的资质技师证对应设备的大型设备上岗证 --> <!-- 请确认参与本项目影像采集的影像技师具备对应的资质技师证对应设备的大型设备上岗证 -->
+2 -4
View File
@@ -36,13 +36,11 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini"
@click="getList" @click="getList"
> >
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
</el-button> </el-button>
<el-button <el-button
size="mini"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
> >
@@ -97,10 +95,10 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="view(scope.row)"> <el-button type="text" @click="view(scope.row)">
{{ $t('common:button:view') }} {{ $t('common:button:view') }}
</el-button> </el-button>
<el-button size="mini" type="text" @click="rePublish(scope.row)"> <el-button type="text" @click="rePublish(scope.row)">
{{ $t('system:event:button:rePublish') }} {{ $t('system:event:button:rePublish') }}
</el-button> </el-button>
</template> </template>
@@ -176,7 +176,6 @@
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
icon="el-icon-plus"
@click="handleAdd" @click="handleAdd"
>{{ $t('common:button:new') }}</el-button >{{ $t('common:button:new') }}</el-button
> >
@@ -184,9 +183,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 删除 --> <!-- 删除 -->
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDelete(scope.$index)" @click="handleDelete(scope.$index)"
>{{ $t('common:button:delete') }}</el-button >{{ $t('common:button:delete') }}</el-button
> >
+1 -22
View File
@@ -22,7 +22,6 @@
<el-form-item :label="$t('system:l18n:search:Module')"> <el-form-item :label="$t('system:l18n:search:Module')">
<el-input <el-input
v-model="searchData.Module" v-model="searchData.Module"
size="small"
clearable clearable
style="width: 130px" style="width: 130px"
/> />
@@ -30,7 +29,6 @@
<el-form-item :label="$t('system:l18n:search:Code')"> <el-form-item :label="$t('system:l18n:search:Code')">
<el-input <el-input
v-model="searchData.Code" v-model="searchData.Code"
size="small"
clearable clearable
style="width: 130px" style="width: 130px"
/> />
@@ -38,7 +36,6 @@
<el-form-item :label="$t('system:l18n:search:ValueCN')"> <el-form-item :label="$t('system:l18n:search:ValueCN')">
<el-input <el-input
v-model="searchData.ValueCN" v-model="searchData.ValueCN"
size="small"
clearable clearable
style="width: 130px" style="width: 130px"
/> />
@@ -46,7 +43,6 @@
<el-form-item :label="$t('system:l18n:search:Value')"> <el-form-item :label="$t('system:l18n:search:Value')">
<el-input <el-input
v-model="searchData.Value" v-model="searchData.Value"
size="small"
style="width: 130px" style="width: 130px"
clearable clearable
/> />
@@ -69,7 +65,6 @@
<el-form-item :label="$t('system:l18n:search:Description')"> <el-form-item :label="$t('system:l18n:search:Description')">
<el-input <el-input
v-model="searchData.Description" v-model="searchData.Description"
size="small"
clearable clearable
style="width: 130px" style="width: 130px"
/> />
@@ -117,14 +112,12 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini"
@click="getList" @click="getList"
> >
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
</el-button> </el-button>
<!-- 重置 --> <!-- 重置 -->
<el-button <el-button
size="mini"
type="primary" type="primary"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
@@ -133,24 +126,18 @@
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus"
size="mini"
@click="handleAdd" @click="handleAdd"
> >
{{ $t('common:button:new') }} {{ $t('common:button:new') }}
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus"
size="mini"
@click="handleBatchAdd" @click="handleBatchAdd"
> >
{{ $t('system:l18n:button:batchAdd') }} {{ $t('system:l18n:button:batchAdd') }}
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-edit-outline"
size="mini"
:disabled="selectTableList.length <= 0" :disabled="selectTableList.length <= 0"
@click="handleBatchUpdate" @click="handleBatchUpdate"
> >
@@ -158,17 +145,13 @@
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-edit-outline"
size="mini"
:disabled="selectTableList.length <= 0" :disabled="selectTableList.length <= 0"
@click="handleBatchUpdateToChange" @click="handleBatchUpdateToChange"
> >
{{ $t('system:l18n:button:batchEdit') }} {{ $t('system:l18n:button:batchEdit') }}
</el-button> </el-button>
<el-button <el-button
size="mini"
type="primary" type="primary"
icon="el-icon-download"
@click="exportTable" @click="exportTable"
> >
{{ $t('common:button:export') }} {{ $t('common:button:export') }}
@@ -275,7 +258,7 @@
<el-table-column <el-table-column
:label="$t('system:l18n:search:Description')" :label="$t('system:l18n:search:Description')"
prop="Description" prop="Description"
min-width="100" min-width="110"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
@@ -309,18 +292,14 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-edit-outline"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
{{ $t('common:button:edit') }} {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
:disabled="scope.row.State === 1" :disabled="scope.row.State === 1"
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
{{ $t('common:button:delete') }} {{ $t('common:button:delete') }}
+4 -10
View File
@@ -3,22 +3,21 @@
<div ref="leftContainer" class="left"> <div ref="leftContainer" class="left">
<el-form :inline="true"> <el-form :inline="true">
<el-form-item :label="$t('system:log:table:version')" prop="Version"> <el-form-item :label="$t('system:log:table:version')" prop="Version">
<el-input v-model="searchData.Version" size="small" clearable /> <el-input v-model="searchData.Version" clearable />
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:log:table:versionUS')" prop="Version"> <el-form-item :label="$t('system:log:table:versionUS')" prop="Version">
<el-input v-model="searchData.Version_US" size="small" clearable /> <el-input v-model="searchData.Version_US" clearable />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('system:log:table:UpdateContent')" :label="$t('system:log:table:UpdateContent')"
prop="UpdateContent" prop="UpdateContent"
> >
<el-input v-model="searchData.UpdateContent" size="small" clearable /> <el-input v-model="searchData.UpdateContent" clearable />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini"
@click="getList" @click="getList"
> >
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
@@ -26,7 +25,6 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
size="mini"
@click="handleAdd" @click="handleAdd"
> >
{{ $t('common:button:new') }} {{ $t('common:button:new') }}
@@ -102,22 +100,18 @@
:label="$t('common:action:action')" :label="$t('common:action:action')"
fixed="right" fixed="right"
prop="" prop=""
min-width="200" min-width="150"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-edit-outline"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
> >
{{ $t('common:button:edit') }} {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
> >
{{ $t('common:button:delete') }} {{ $t('common:button:delete') }}
-11
View File
@@ -6,7 +6,6 @@
v-model="queryParams.menuName" v-model="queryParams.menuName"
placeholder="" placeholder=""
clearable clearable
size="small"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
@@ -15,21 +14,18 @@
v-model="queryParams.visible" v-model="queryParams.visible"
placeholder="" placeholder=""
clearable clearable
size="small"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini"
@click="handleQuery" @click="handleQuery"
>{{ $t("system:menu:button:search") }}</el-button >{{ $t("system:menu:button:search") }}</el-button
> >
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
size="mini"
@click="handleAdd" @click="handleAdd"
>{{ $t("system:menu:button:add") }}</el-button >{{ $t("system:menu:button:add") }}</el-button
> >
@@ -40,7 +36,6 @@
type="info" type="info"
plain plain
icon="el-icon-sort" icon="el-icon-sort"
size="mini"
@click="toggleExpandAll" @click="toggleExpandAll"
>{{ $t("system:menu:button:foldAndExpand") }}</el-button >{{ $t("system:menu:button:foldAndExpand") }}</el-button
> >
@@ -154,25 +149,19 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['system:menu:edit']" v-hasPermi="['system:menu:edit']"
size="mini"
type="text" type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>{{ $t("system:menu:button:edit") }}</el-button >{{ $t("system:menu:button:edit") }}</el-button
> >
<el-button <el-button
v-hasPermi="['system:menu:add']" v-hasPermi="['system:menu:add']"
size="mini"
type="text" type="text"
icon="el-icon-plus"
@click="handleAdd(scope.row)" @click="handleAdd(scope.row)"
>{{ $t("system:menu:button:add") }}</el-button >{{ $t("system:menu:button:add") }}</el-button
> >
<el-button <el-button
v-hasPermi="['system:menu:delete']" v-hasPermi="['system:menu:delete']"
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
>{{ $t("system:menu:button:remove") }}</el-button >{{ $t("system:menu:button:remove") }}</el-button
> >
+7 -13
View File
@@ -3,7 +3,7 @@
<div ref="leftContainer" class="left"> <div ref="leftContainer" class="left">
<el-form :inline="true"> <el-form :inline="true">
<el-form-item :label="$t('system:notice:label:NoticeLevel')" prop="NoticeLevelEnum"> <el-form-item :label="$t('system:notice:label:NoticeLevel')" prop="NoticeLevelEnum">
<el-select v-model="searchData.NoticeLevelEnum" clearable size="small"> <el-select v-model="searchData.NoticeLevelEnum" clearable>
<el-option <el-option
v-for="item of $d.NoteLevel" v-for="item of $d.NoteLevel"
:key="item.value" :key="item.value"
@@ -13,7 +13,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:notice:label:NoticeType')" prop="NoticeTypeEnum"> <el-form-item :label="$t('system:notice:label:NoticeType')" prop="NoticeTypeEnum">
<el-select v-model="searchData.NoticeTypeEnum" clearable size="small"> <el-select v-model="searchData.NoticeTypeEnum" clearable>
<el-option <el-option
v-for="item of $d.NoteType" v-for="item of $d.NoteType"
:key="item.value" :key="item.value"
@@ -23,7 +23,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:notice:label:ApplicableProject')" prop="ApplicableProjectEnum"> <el-form-item :label="$t('system:notice:label:ApplicableProject')" prop="ApplicableProjectEnum">
<el-select v-model="searchData.ApplicableProjectEnum" clearable size="small"> <el-select v-model="searchData.ApplicableProjectEnum" clearable>
<el-option <el-option
v-for="item of $d.NoticeApplicableTrial" v-for="item of $d.NoticeApplicableTrial"
:key="item.value" :key="item.value"
@@ -33,7 +33,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:notice:label:NoticeUserTypeIdList')" prop="NoticeUserTypeIdList"> <el-form-item :label="$t('system:notice:label:NoticeUserTypeIdList')" prop="NoticeUserTypeIdList">
<el-select v-model="searchData.NoticeUserTypeIdList" multiple clearable size="small"> <el-select v-model="searchData.NoticeUserTypeIdList" multiple clearable>
<el-option <el-option
v-for="item of roleList" v-for="item of roleList"
:key="item.Id" :key="item.Id"
@@ -43,7 +43,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:notice:label:NoticeMode')" prop="NoticeModeEnum"> <el-form-item :label="$t('system:notice:label:NoticeMode')" prop="NoticeModeEnum">
<el-select v-model="searchData.NoticeModeEnum" clearable size="small"> <el-select v-model="searchData.NoticeModeEnum" clearable>
<el-option <el-option
v-for="item of $d.NoticeMode" v-for="item of $d.NoticeMode"
:key="item.value" :key="item.value"
@@ -53,8 +53,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList">{{ $t('common:button:search') }}</el-button> <el-button type="primary" icon="el-icon-search" @click="getList">{{ $t('common:button:search') }}</el-button>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">{{ $t('common:button:add') }}</el-button> <el-button type="primary" icon="el-icon-plus" @click="handleAdd">{{ $t('common:button:add') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" v-adaptive="{bottomOffset:45}" height="100" :data="list" class="table"> <el-table v-loading="loading" v-adaptive="{bottomOffset:45}" height="100" :data="list" class="table">
@@ -116,23 +116,17 @@
<el-table-column :label="$t('common:action:action')" fixed="right" prop="UserTypeShortName" min-width="200" show-overflow-tooltip> <el-table-column :label="$t('common:action:action')" fixed="right" prop="UserTypeShortName" min-width="200" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini"
type="text" type="text"
icon="el-icon-edit-outline"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
>{{$t('common:action:edit')}}</el-button> >{{$t('common:action:edit')}}</el-button>
<el-button <el-button
v-if="scope.row.NoticeStateEnum === 0" v-if="scope.row.NoticeStateEnum === 0"
size="mini"
type="text" type="text"
icon="el-icon-s-promotion"
@click="handlePush(scope.row)" @click="handlePush(scope.row)"
>{{$t('common:action:push')}}</el-button> >{{$t('common:action:push')}}</el-button>
<el-button <el-button
v-if="scope.row.NoticeStateEnum === 1" v-if="scope.row.NoticeStateEnum === 1"
size="mini"
type="text" type="text"
icon="el-icon-s-release"
@click="handleGet(scope.row)" @click="handleGet(scope.row)"
>{{$t('common:action:pull')}}</el-button> >{{$t('common:action:pull')}}</el-button>
</template> </template>
+1 -8
View File
@@ -6,12 +6,11 @@
<el-input <el-input
v-model="queryParams.SearchFilter" v-model="queryParams.SearchFilter"
clearable clearable
size="small"
@keyup.enter.native="getList" @keyup.enter.native="getList"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:role:title:Group')"> <el-form-item :label="$t('system:role:title:Group')">
<el-select v-model="queryParams.GroupId" clearable size="small"> <el-select v-model="queryParams.GroupId" clearable>
<el-option <el-option
v-for="item of dict.type.UserTypeGroup" v-for="item of dict.type.UserTypeGroup"
:key="item.value" :key="item.value"
@@ -24,7 +23,6 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
size="mini"
@click="getList" @click="getList"
>{{ $t('common:button:search') }}</el-button >{{ $t('common:button:search') }}</el-button
> >
@@ -32,7 +30,6 @@
v-hasPermi="['system:role:add']" v-hasPermi="['system:role:add']"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
size="mini"
@click="handleAddRole" @click="handleAddRole"
>{{ $t('common:button:add') }}</el-button >{{ $t('common:button:add') }}</el-button
> >
@@ -111,17 +108,13 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['system:role:edit']" v-hasPermi="['system:role:edit']"
size="mini"
type="text" type="text"
icon="el-icon-edit"
@click="handleEditRole(scope.row)" @click="handleEditRole(scope.row)"
>{{ $t('common:button:edit') }}</el-button >{{ $t('common:button:edit') }}</el-button
> >
<el-button <el-button
v-hasPermi="['system:role:delete']" v-hasPermi="['system:role:delete']"
size="mini"
type="text" type="text"
icon="el-icon-delete"
@click="handleDeleteRole(scope.row)" @click="handleDeleteRole(scope.row)"
>{{ $t('common:button:delete') }}</el-button >{{ $t('common:button:delete') }}</el-button
> >
+132 -22
View File
@@ -4,7 +4,12 @@
{{ $t('system:retrospect:title:userFrom') }} {{ $t('system:retrospect:title:userFrom') }}
</div> </div>
<div class="userFrom"> <div class="userFrom">
<el-form size="mini" class="base-search-form"> <el-form
size="mini"
class="base-search-form"
label-position="right"
:label-width="isEN ? '130px' : '100px'"
>
<el-form-item :label="$t('system:retrospect:form:createType')"> <el-form-item :label="$t('system:retrospect:form:createType')">
<span>{{ $fd('UserCeateSource', otherInfo.UserCeateSource) }}</span> <span>{{ $fd('UserCeateSource', otherInfo.UserCeateSource) }}</span>
</el-form-item> </el-form-item>
@@ -160,25 +165,34 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip <el-button
class="item"
effect="dark"
:content="$t('trials:staff:tip:userTypeDisabled')"
placement="top"
style="margin-right: 2px"
v-if=" v-if="
scope.row.TrialUserRoleList.some( Array.isArray(scope.row.TrialUserRoleList) &&
(item) => item.IsDeleted || item.IsUserRoleDisabled scope.row.TrialUserRoleList.length > 0
)
" "
type="text"
@click.stop="openRoleList(scope.row)"
> >
<i class="el-icon-warning icon-i"></i> <el-tooltip
</el-tooltip> class="item"
<span>{{ effect="dark"
scope.row.TrialUserRoleList.map( :content="$t('trials:staff:tip:userTypeDisabled')"
(item) => item.UserTypeShortName placement="top"
).join(', ') style="margin-right: 2px"
}}</span> v-if="
scope.row.TrialUserRoleList.some(
(item) => item.IsDeleted || item.IsUserRoleDisabled
)
"
>
<i class="el-icon-warning icon-i"></i>
</el-tooltip>
<span>{{
scope.row.TrialUserRoleList.map(
(item) => item.UserTypeShortName
).join(', ')
}}</span>
</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -213,11 +227,23 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 详情 --> <!-- 详情 -->
<el-button <el-button
circle type="text"
icon="el-icon-info" :disabled="
:title="$t('system:retrospect:table:detail')" (scope.row.TrialStatusStr === 'Initializing' &&
!hasPermi(['role:pm'])) ||
scope.row.IsDeleted ||
((scope.row.TrialStatusStr === 'Completed' ||
scope.row.TrialStatusStr === 'Stopped') &&
!(
hasPermi(['role:qa']) ||
hasPermi(['role:ea']) ||
hasPermi(['role:pm'])
))
"
@click.stop="handleDetail(scope.row)" @click.stop="handleDetail(scope.row)"
/> >
{{ $t('system:retrospect:table:detail') }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -230,6 +256,73 @@
:limit.sync="searchData.PageSize" :limit.sync="searchData.PageSize"
@pagination="getList" @pagination="getList"
/> />
<!-- 修改参与者人员角色 -->
<base-model v-if="role_model.visible" :config="role_model">
<template slot="dialog-body">
<el-table :data="roleList" style="width: 100%" max-height="300px">
<el-table-column type="index" width="60">
<template slot-scope="scope">
<span
style="
display: flex;
align-items: center;
justify-content: flex-end;
"
>
<el-tooltip
class="item"
effect="dark"
:content="$t('system:retrospect:tip:userTypeSysDisabled')"
placement="top"
style="margin-right: 3px"
v-if="scope.row.IsUserRoleDisabled"
>
<i
v-if="scope.row.IsUserRoleDisabled"
class="el-icon-warning icon-i"
></i>
</el-tooltip>
<span>{{ scope.$index + 1 }}</span>
</span>
</template>
</el-table-column>
<el-table-column
prop="UserTypeShortName"
:label="$t('system:retrospect:table:UserTypeShortName')"
/>
<el-table-column
prop="IsDeleted"
:label="$t('system:retrospect:table:IsUserRoleDisabled')"
>
<template slot-scope="scope">
<span> {{ $fd('IsDisable', scope.row.IsDeleted) }}</span>
</template>
</el-table-column>
<el-table-column
prop="IsDeleted"
:label="$t('system:retrospect:table:enableTime')"
min-width="120px"
>
<template slot-scope="scope">
<span>
{{ scope.row.CreateTime }}
</span>
</template>
</el-table-column>
<el-table-column
prop="IsDeleted"
:label="$t('system:retrospect:table:forbiddenTime')"
min-width="120px"
>
<template slot-scope="scope">
<span v-if="scope.row.IsDeleted">
{{ scope.row.UpdateTime }}
</span>
</template>
</el-table-column>
</el-table>
</template>
</base-model>
</box-content> </box-content>
</template> </template>
<script> <script>
@@ -239,6 +332,7 @@ import {
} from '@/api/admin.js' } from '@/api/admin.js'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import BoxContent from '@/components/BoxContent' import BoxContent from '@/components/BoxContent'
import BaseModel from '@/components/BaseModel'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
TrialCode: null, TrialCode: null,
@@ -253,7 +347,7 @@ const searchDataDefault = () => {
} }
} }
export default { export default {
components: { BoxContent, Pagination }, components: { BoxContent, Pagination, BaseModel },
props: { props: {
userId: { type: String, default: '' }, userId: { type: String, default: '' },
}, },
@@ -271,6 +365,13 @@ export default {
list: [], list: [],
total: 0, total: 0,
userTypeOptions: [], userTypeOptions: [],
roleList: [],
role_model: {
visible: false,
title: this.$t('system:retrospect:dialogTitle:role'),
width: '800px',
},
} }
}, },
mounted() { mounted() {
@@ -278,6 +379,10 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
openRoleList(row) {
this.roleList = row.TrialUserRoleList
this.role_model.visible = true
},
getUserTypeList() { getUserTypeList() {
getUserTypeListByUserType(0).then((res) => { getUserTypeListByUserType(0).then((res) => {
if (res.IsSuccess) { if (res.IsSuccess) {
@@ -337,6 +442,11 @@ export default {
this.getList() this.getList()
}, },
}, },
computed: {
isEN() {
return this.$i18n.locale !== 'zh'
},
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
+2 -3
View File
@@ -2,7 +2,6 @@
<box-content> <box-content>
<div class="search" style="position: relative"> <div class="search" style="position: relative">
<SearchForm <SearchForm
size="mini"
:that="this" :that="this"
:search-data="searchData" :search-data="searchData"
:search-form="searchForm" :search-form="searchForm"
@@ -249,12 +248,12 @@ export default {
operates: [ operates: [
{ {
name: this.$t('common:button:edit'), name: this.$t('common:button:edit'),
type: 'primary', type: 'text',
emitKey: 'editCb', emitKey: 'editCb',
}, },
{ {
name: this.$t('common:button:email'), name: this.$t('common:button:email'),
type: 'primary', type: 'text',
emitKey: 'sendCb', emitKey: 'sendCb',
show: 'IsFirstAdd', show: 'IsFirstAdd',
}, },
+4 -4
View File
@@ -94,8 +94,8 @@ export const columns = [
label: 'Action', label: 'Action',
minWidth: 200, minWidth: 200,
operates: [ operates: [
{ name: 'Edit', type: 'primary', emitKey: 'editCb' }, { name: 'Edit', type: 'text', emitKey: 'editCb' },
{ name: 'Delete', type: 'danger', emitKey: 'deleteCb' } { name: 'Delete', type: 'text', emitKey: 'deleteCb' }
] } ] }
] ]
@@ -180,6 +180,6 @@ export const searchForm = [
] ]
// 用户列表查询表单事件配置信息 // 用户列表查询表单事件配置信息
export const searchHandle = [ export const searchHandle = [
{ label: 'Reset', type: 'primary', emitKey: 'reset' }, { label: 'Reset', type: 'text', emitKey: 'reset' },
{ label: 'Search', type: 'primary', emitKey: 'search' } { label: 'Search', type: 'text', emitKey: 'search' }
] ]
+87 -36
View File
@@ -72,7 +72,7 @@
<!-- <el-button type="text" @click="isShow = !isShow">More</el-button> --> <!-- <el-button type="text" @click="isShow = !isShow">More</el-button> -->
<!-- Search --> <!-- Search -->
<el-button type="primary" icon="el-icon-search" @click="handleSearch"> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t("common:button:search") }} {{ $t('common:button:search') }}
</el-button> </el-button>
<!-- Reset --> <!-- Reset -->
<el-button <el-button
@@ -80,7 +80,7 @@
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
> >
{{ $t("common:button:reset") }} {{ $t('common:button:reset') }}
</el-button> </el-button>
<!-- Export --> <!-- Export -->
<el-button <el-button
@@ -90,7 +90,7 @@
:loading="exportLoading" :loading="exportLoading"
@click="handleExportTrial" @click="handleExportTrial"
> >
{{ $t("common:button:export") }} {{ $t('common:button:export') }}
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -102,7 +102,7 @@
type="primary" type="primary"
@click="handleNew" @click="handleNew"
> >
{{ $t("common:button:new") }} {{ $t('common:button:new') }}
</el-button> </el-button>
</span> </span>
</template> </template>
@@ -293,10 +293,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button type="primary" @click="handleSelectSearch"
type="primary" >Search</el-button
@click="handleSelectSearch" >
>Search</el-button>
<el-button type="primary" @click="handleReset">Reset</el-button> <el-button type="primary" @click="handleReset">Reset</el-button>
<el-button type="primary" @click="isShow = false">Back</el-button> <el-button type="primary" @click="isShow = false">Back</el-button>
</el-form-item> </el-form-item>
@@ -358,19 +357,23 @@
<el-tag <el-tag
v-if="scope.row.TrialStatusStr === 'Initializing'" v-if="scope.row.TrialStatusStr === 'Initializing'"
type="info" type="info"
>{{ $fd("TrialStatusEnum", scope.row.TrialStatusStr) }}</el-tag> >{{ $fd('TrialStatusEnum', scope.row.TrialStatusStr) }}</el-tag
>
<el-tag <el-tag
v-if="scope.row.TrialStatusStr === 'Ongoing'" v-if="scope.row.TrialStatusStr === 'Ongoing'"
type="primary" type="primary"
>{{ $fd("TrialStatusEnum", scope.row.TrialStatusStr) }}</el-tag> >{{ $fd('TrialStatusEnum', scope.row.TrialStatusStr) }}</el-tag
>
<el-tag <el-tag
v-if="scope.row.TrialStatusStr === 'Completed'" v-if="scope.row.TrialStatusStr === 'Completed'"
type="warning" type="warning"
>{{ $fd("TrialStatusEnum", scope.row.TrialStatusStr) }}</el-tag> >{{ $fd('TrialStatusEnum', scope.row.TrialStatusStr) }}</el-tag
>
<el-tag <el-tag
v-if="scope.row.TrialStatusStr === 'Stopped'" v-if="scope.row.TrialStatusStr === 'Stopped'"
type="danger" type="danger"
>{{ $fd("TrialStatusEnum", scope.row.TrialStatusStr) }}</el-tag> >{{ $fd('TrialStatusEnum', scope.row.TrialStatusStr) }}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -437,7 +440,7 @@
min-width="160" min-width="160"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.IR_ReadingCriterionList.join(", ") }} {{ scope.row.IR_ReadingCriterionList.join(', ') }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -472,7 +475,7 @@
min-width="170" min-width="170"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.IR_PMEmailList.join(", ") }} {{ scope.row.IR_PMEmailList.join(', ') }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -579,7 +582,14 @@
:disabled=" :disabled="
(scope.row.TrialStatusStr === 'Initializing' && (scope.row.TrialStatusStr === 'Initializing' &&
!hasPermi(['role:pm'])) || !hasPermi(['role:pm'])) ||
scope.row.IsDeleted || ((scope.row.TrialStatusStr === 'Completed' || scope.row.TrialStatusStr === 'Stopped') && !(hasPermi(['role:qa']) || hasPermi(['role:ea']) || hasPermi(['role:pm']))) scope.row.IsDeleted ||
((scope.row.TrialStatusStr === 'Completed' ||
scope.row.TrialStatusStr === 'Stopped') &&
!(
hasPermi(['role:qa']) ||
hasPermi(['role:ea']) ||
hasPermi(['role:pm'])
))
" "
:title="$t('trials:trials-list:action:panel')" :title="$t('trials:trials-list:action:panel')"
@click.stop="handleDetail(scope.row)" @click.stop="handleDetail(scope.row)"
@@ -602,6 +612,29 @@
:title="$t('trials:trials-list:action:status')" :title="$t('trials:trials-list:action:status')"
@click.stop="handleStatus(scope.row)" @click.stop="handleStatus(scope.row)"
/> />
<!--项目文档-->
<el-button
v-hasPermi="[
'trials:trials-panel:trial-summary:trial-document:inspect',
'trials:trials-panel:trial-summary:trial-document:manage',
]"
circle
icon="el-icon-folder-opened"
:disabled="
(scope.row.TrialStatusStr === 'Initializing' &&
!hasPermi(['role:pm'])) ||
scope.row.IsDeleted ||
((scope.row.TrialStatusStr === 'Completed' ||
scope.row.TrialStatusStr === 'Stopped') &&
!(
hasPermi(['role:qa']) ||
hasPermi(['role:ea']) ||
hasPermi(['role:pm'])
))
"
:title="$t('trials:trials-list:action:trialDocument')"
@click.stop="toTrialDocument(scope.row)"
/>
<!-- 废除项目 --> <!-- 废除项目 -->
<el-button <el-button
v-hasPermi="['trials:trials-list:abolish']" v-hasPermi="['trials:trials-list:abolish']"
@@ -609,7 +642,7 @@
icon="el-icon-delete" icon="el-icon-delete"
:disabled=" :disabled="
scope.row.IsDeleted || scope.row.IsDeleted ||
scope.row.TrialStatusStr !== 'Initializing' scope.row.TrialStatusStr !== 'Initializing'
" "
:title="$t('trials:trials-list:action:abolition')" :title="$t('trials:trials-list:action:abolition')"
@click.stop="handleAbandon(scope.row)" @click.stop="handleAbandon(scope.row)"
@@ -690,7 +723,7 @@
import { import {
abandonTrial, abandonTrial,
ifTrialCanOngoing, ifTrialCanOngoing,
getTrialToBeDoneList getTrialToBeDoneList,
} from '@/api/trials' } from '@/api/trials'
import { getTrialList_Export } from '@/api/export' import { getTrialList_Export } from '@/api/export'
import store from '@/store' import store from '@/store'
@@ -721,7 +754,7 @@ const searchDataDefault = () => {
Asc: false, Asc: false,
SortField: '', SortField: '',
CriterionType: null, CriterionType: null,
PM_EMail: null PM_EMail: null,
} }
} }
export default { export default {
@@ -731,7 +764,7 @@ export default {
BaseContainer, BaseContainer,
TrialForm, TrialForm,
TrialStatusForm, TrialStatusForm,
DoneList DoneList,
}, },
dicts: ['ReadingStandard', 'ReviewType', 'ReadingType'], dicts: ['ReadingStandard', 'ReviewType', 'ReadingType'],
data() { data() {
@@ -756,7 +789,7 @@ export default {
{ value: 'I' }, { value: 'I' },
{ value: 'II' }, { value: 'II' },
{ value: 'III' }, { value: 'III' },
{ value: 'IV' } { value: 'IV' },
], ],
expeditedOption: this.$d.TrialExpeditedState, expeditedOption: this.$d.TrialExpeditedState,
beginPickerOption: { beginPickerOption: {
@@ -766,7 +799,7 @@ export default {
} else { } else {
return time.getTime() > Date.now() return time.getTime() > Date.now()
} }
} },
}, },
endpickerOption: { endpickerOption: {
disabledDate: (time) => { disabledDate: (time) => {
@@ -778,20 +811,20 @@ export default {
} else { } else {
return time.getTime() > Date.now() return time.getTime() > Date.now()
} }
} },
} },
} }
}, },
computed: { computed: {
...mapGetters(['sponsorList', 'croList']) ...mapGetters(['sponsorList', 'croList']),
}, },
created() { created() {
this.initPage() this.initPage()
}, },
mounted(){ mounted() {
this.$EventBus.$on("reload", (data) => { this.$EventBus.$on('reload', (data) => {
window.location.reload() window.location.reload()
}); })
}, },
methods: { methods: {
initPage() { initPage() {
@@ -864,7 +897,7 @@ export default {
this.$confirm(res.ErrorMessage, { this.$confirm(res.ErrorMessage, {
type: 'warning', type: 'warning',
showCancelButton: false, showCancelButton: false,
callback: (action) => {} callback: (action) => {},
}) })
} }
}) })
@@ -883,7 +916,7 @@ export default {
handleAbandon(row) { handleAbandon(row) {
this.$confirm(this.$t('trials:trials-list:message:abolition'), { this.$confirm(this.$t('trials:trials-list:message:abolition'), {
type: 'warning', type: 'warning',
distinguishCancelAndClose: true distinguishCancelAndClose: true,
}) })
.then(() => { .then(() => {
this.currentRow = { ...row } this.currentRow = { ...row }
@@ -909,19 +942,37 @@ export default {
}) })
}, },
rowClick(row, col) { rowClick(row, col) {
if ((row.TrialStatusStr === 'Initializing' && !this.hasPermi(['role:pm'])) || row.IsDeleted) { if (
(row.TrialStatusStr === 'Initializing' &&
!this.hasPermi(['role:pm'])) ||
row.IsDeleted
) {
return return
} else if ((row.TrialStatusStr === 'Completed' || row.TrialStatusStr === 'Stopped') && !(this.hasPermi(['role:qa']) || this.hasPermi(['role:ea']) || this.hasPermi(['role:pm']))) { } else if (
(row.TrialStatusStr === 'Completed' ||
row.TrialStatusStr === 'Stopped') &&
!(
this.hasPermi(['role:qa']) ||
this.hasPermi(['role:ea']) ||
this.hasPermi(['role:pm'])
)
) {
return return
} }
this.$router.push({ this.$router.push({
path: `/trials/trials-panel?trialId=${row.Id}&trialCode=${row.TrialCode}&researchProgramNo=${row.ResearchProgramNo}` path: `/trials/trials-panel?trialId=${row.Id}&trialCode=${row.TrialCode}&researchProgramNo=${row.ResearchProgramNo}`,
}) })
}, },
// panel // panel
handleDetail(row) { handleDetail(row) {
this.$router.push({ this.$router.push({
path: `/trials/trials-panel?trialId=${row.Id}&trialCode=${row.TrialCode}&researchProgramNo=${row.ResearchProgramNo}` path: `/trials/trials-panel?trialId=${row.Id}&trialCode=${row.TrialCode}&researchProgramNo=${row.ResearchProgramNo}`,
})
},
//
toTrialDocument(row) {
this.$router.push({
path: `/trials/trials-panel/trial-summary/trial-document?trialId=${row.Id}&trialCode=${row.TrialCode}&researchProgramNo=${row.ResearchProgramNo}`,
}) })
}, },
// //
@@ -951,7 +1002,7 @@ export default {
handleExportTrial() { handleExportTrial() {
this.exportLoading = true this.exportLoading = true
const data = { const data = {
...this.searchData ...this.searchData,
} }
data.TrialIdList = this.selectArr.map((item) => item.Id) data.TrialIdList = this.selectArr.map((item) => item.Id)
return getTrialList_Export(data) return getTrialList_Export(data)
@@ -961,7 +1012,7 @@ export default {
.catch(() => { .catch(() => {
this.exportLoading = false this.exportLoading = false
}) })
} },
} },
} }
</script> </script>
@@ -1,5 +1,10 @@
<template> <template>
<BaseContainer> <BaseContainer>
<template slot="title-container">
<div class="title" v-if="isDoc">
{{ TITLE }}
</div>
</template>
<!-- 搜索框 --> <!-- 搜索框 -->
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true"> <el-form :inline="true">
@@ -23,7 +28,10 @@
<el-input v-model="searchData.Name" style="width: 120px" /> <el-input v-model="searchData.Name" style="width: 120px" />
</el-form-item> </el-form-item>
<!-- 签署人 --> <!-- 签署人 -->
<el-form-item :label="$t('trials:signRecords:table:user')"> <el-form-item
:label="$t('trials:signRecords:table:user')"
v-if="!isDoc"
>
<el-select <el-select
v-model="searchData.UserId" v-model="searchData.UserId"
clearable clearable
@@ -51,7 +59,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 用户类型 --> <!-- 用户类型 -->
<el-form-item :label="$t('trials:signRecords:table:userType')"> <el-form-item
:label="$t('trials:signRecords:table:userType')"
v-if="!isDoc"
>
<el-select <el-select
v-model="searchData.UserTypeId" v-model="searchData.UserTypeId"
clearable clearable
@@ -69,7 +80,10 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:signRecords:table:isSign')"> <el-form-item
:label="$t('trials:signRecords:table:isSign')"
v-if="!isDoc || !viewStatus"
>
<el-select <el-select
v-model="searchData.IsConfirmed" v-model="searchData.IsConfirmed"
clearable clearable
@@ -83,7 +97,13 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:signRecords:table:isDeleted')"> <el-form-item
:label="
isDoc
? $t('trials:signRecords:table:isDeletedFile')
: $t('trials:signRecords:table:isDeleted')
"
>
<el-select <el-select
v-model="searchData.IsDeleted" v-model="searchData.IsDeleted"
clearable clearable
@@ -97,6 +117,25 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item
:label="$t('trials:signRecords:table:username')"
v-if="isDoc"
>
<el-input v-model="searchData.UserName" style="width: 120px" />
</el-form-item>
<el-form-item
:label="$t('trials:signRecords:table:confirmTime')"
v-if="isDoc"
>
<el-date-picker
v-model="timeList"
@change="changeTimeList"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
type="datetimerange"
>
</el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<!-- 查询 --> <!-- 查询 -->
<el-button icon="el-icon-search" type="primary" @click="handleSearch"> <el-button icon="el-icon-search" type="primary" @click="handleSearch">
@@ -170,7 +209,11 @@
<!-- 是否废除 --> <!-- 是否废除 -->
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
:label="$t('trials:signRecords:table:isDeleted')" :label="
isDoc
? $t('trials:signRecords:table:isDeletedFile')
: $t('trials:signRecords:table:isDeleted')
"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@@ -213,6 +256,7 @@
:label="$t('trials:signRecords:table:user')" :label="$t('trials:signRecords:table:user')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
v-if="!isDoc || !viewStatus"
/> />
<!-- 用户名 --> <!-- 用户名 -->
<el-table-column <el-table-column
@@ -302,6 +346,9 @@ import Pagination from '@/components/Pagination'
import PreviewFile from '@/components/PreviewFile/index' import PreviewFile from '@/components/PreviewFile/index'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
UserName: null,
StartConfirmTime: null,
EndConfirmTime: null,
FileTypeId: '', FileTypeId: '',
Name: '', Name: '',
UserId: '', UserId: '',
@@ -315,6 +362,20 @@ const searchDataDefault = () => {
export default { export default {
name: 'AttachmentsManagement', name: 'AttachmentsManagement',
components: { BaseContainer, Pagination, PreviewFile }, components: { BaseContainer, Pagination, PreviewFile },
props: {
isDoc: {
type: Boolean,
default: false,
},
TITLE: {
type: String,
default: '',
},
viewStatus: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
searchData: searchDataDefault(), searchData: searchDataDefault(),
@@ -331,15 +392,24 @@ export default {
typeOptions: [], typeOptions: [],
trialId: this.$route.query.trialId, trialId: this.$route.query.trialId,
exportLoading: false, exportLoading: false,
timeList: [],
} }
}, },
mounted() { mounted() {
this.getTypeOptions() this.getTypeOptions()
this.getUserSelect() this.getUserSelect()
this.getUserType() this.getUserType()
this.getList()
}, },
methods: { methods: {
changeTimeList() {
if (this.timeList) {
this.searchData.StartConfirmTime = this.timeList[0]
this.searchData.EndConfirmTime = this.timeList[1]
} else {
this.searchData.StartConfirmTime = null
this.searchData.EndConfirmTime = null
}
},
handleExport() { handleExport() {
this.exportLoading = true this.exportLoading = true
pMTrainingRecordList_Export(this.searchData) pMTrainingRecordList_Export(this.searchData)
@@ -353,6 +423,15 @@ export default {
// //
getList() { getList() {
this.loading = true this.loading = true
if (this.viewStatus) {
this.searchData.IsConfirmed = true
}
if (this.isDoc) {
let IR = this.userTypeOptions.find((item) => item.UserTypeEnum == 13)
if (IR) {
this.searchData.UserTypeId = IR.Id
}
}
this.searchData.TrialId = this.trialId this.searchData.TrialId = this.trialId
getDocumentConfirmList(this.searchData) getDocumentConfirmList(this.searchData)
.then(async (res) => { .then(async (res) => {
@@ -379,9 +458,14 @@ export default {
}, },
// //
getUserType() { getUserType() {
getTrialUserTypeList().then((res) => { getTrialUserTypeList()
this.userTypeOptions = res.Result .then((res) => {
}) this.userTypeOptions = res.Result
this.getList()
})
.catch(() => {
this.getList()
})
}, },
// //
handlePreview(row) { handlePreview(row) {
@@ -396,6 +480,7 @@ export default {
// //
handleReset() { handleReset() {
this.searchData = searchDataDefault() this.searchData = searchDataDefault()
this.timeList = []
this.getList() this.getList()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.AttachmentsManagement.clearSort() this.$refs.AttachmentsManagement.clearSort()
@@ -418,3 +503,10 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped>
.title {
line-height: 40px;
font-weight: bold;
margin-bottom: 10px;
}
</style>

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