128 Commits

Author SHA1 Message Date
wangxiaoshuang dba4466ac2 国际化修改
continuous-integration/drone/push Build is passing
2025-01-24 16:27:39 +08:00
wangxiaoshuang 9187bbe64f 阅片人简历预览水印
continuous-integration/drone/push Build is passing
2025-01-24 13:27:47 +08:00
caiyiling a0f593a22f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-24 10:05:07 +08:00
caiyiling 89f7aee973 管理后台按钮调整及医学审核文本超长处理 2025-01-24 10:04:25 +08:00
wangxiaoshuang ced57cbfe4 logo显示有误
continuous-integration/drone/push Build is running
2025-01-24 10:01:17 +08:00
wangxiaoshuang 99d099496e 1
continuous-integration/drone/push Build is passing
2025-01-23 18:41:10 +08:00
caiyiling d3afa7b676 中心列表添加快捷跳转入口
continuous-integration/drone/push Build is passing
2025-01-23 18:18:29 +08:00
wangxiaoshuang c08d701143 重复新增角色弹框未清空
continuous-integration/drone/push Build is passing
2025-01-23 14:13:01 +08:00
caiyiling a2d06ba72f 多帧关键序列更改
continuous-integration/drone/push Build is passing
2025-01-23 10:21:51 +08:00
caiyiling 148aa4908b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-23 09:32:37 +08:00
caiyiling 53738c2da4 1 2025-01-23 09:32:15 +08:00
wangxiaoshuang 3513c08adf Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-23 09:22:28 +08:00
wangxiaoshuang 9eb3f2f322 1 2025-01-23 09:22:24 +08:00
caiyiling b16e351779 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-23 09:11:21 +08:00
caiyiling b176ab0716 关键序列渲染更改 2025-01-23 09:10:40 +08:00
wangxiaoshuang c7eb323eaa 通用培训课件添加国际化
continuous-integration/drone/push Build is passing
2025-01-22 17:29:20 +08:00
wangxiaoshuang 7b3fe42654 部分问题修复
continuous-integration/drone/push Build is passing
2025-01-22 15:27:20 +08:00
wangxiaoshuang 21c96300ad 1
continuous-integration/drone/push Build is passing
2025-01-22 10:21:32 +08:00
caiyiling 8f46819b9a Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-22 09:48:44 +08:00
caiyiling 6e66dd8bbe 导表配置更改 2025-01-22 09:48:28 +08:00
wangxiaoshuang b209c6566b 添加外部人员弹框按钮样式修改
continuous-integration/drone/push Build is running
2025-01-22 09:48:25 +08:00
wangxiaoshuang f8bd826c9c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 17:12:45 +08:00
wangxiaoshuang e3f6f9107d 角色可切换选项不足时不显示切换角色按钮 2025-01-21 17:12:33 +08:00
caiyiling f1c72c66e8 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 16:49:29 +08:00
caiyiling 79caed3fd9 1 2025-01-21 16:49:02 +08:00
wangxiaoshuang e56440634e 1
continuous-integration/drone/push Build is running
2025-01-21 16:47:19 +08:00
wangxiaoshuang ac657a162f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 16:38:56 +08:00
wangxiaoshuang 9d362e13de 用户登录只有一个角色可以选择时自动登录 2025-01-21 16:38:52 +08:00
wangxiaoshuang d04898dc28 管理员新增用户角色必填 2025-01-21 16:38:16 +08:00
caiyiling e0f42e815e 1
continuous-integration/drone/push Build is passing
2025-01-21 16:26:03 +08:00
caiyiling efe3d937b4 医学审核更改
continuous-integration/drone/push Build is passing
2025-01-21 16:16:23 +08:00
caiyiling 5cf6ab24bd Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 15:59:04 +08:00
caiyiling ff0ddeea9a 医学审核问题更改 2025-01-21 15:58:45 +08:00
wangxiaoshuang 42083afb8d 密码校验提示遮挡问题
continuous-integration/drone/push Build is passing
2025-01-21 14:01:42 +08:00
wangxiaoshuang de1b22ff48 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 11:28:37 +08:00
wangxiaoshuang 66cbbbbb75 退出至登录页国际化问题 2025-01-21 11:28:33 +08:00
caiyiling 3d89939a98 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 11:12:27 +08:00
caiyiling ade4ab3e03 项目模块下样式调整及中心调研调整 2025-01-21 11:11:47 +08:00
wangxiaoshuang a3550c44bd 后端开启限制登录后国际化问题
continuous-integration/drone/push Build is passing
2025-01-21 10:01:43 +08:00
wangxiaoshuang 9e85e9705e 后端开启限制登录后国际化问题
continuous-integration/drone/push Build is passing
2025-01-21 09:38:42 +08:00
wangxiaoshuang e1d5db8cf5 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-21 09:31:30 +08:00
wangxiaoshuang 6f3381c267 后端开启限制登录后国际化问题 2025-01-21 09:31:26 +08:00
caiyiling 0c52bde525 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-21 09:24:29 +08:00
caiyiling 102089c16f 我的项目模块下Tab样式更改 2025-01-21 09:23:40 +08:00
wangxiaoshuang 6e1d07ee95 多页签登录清楚缓存uerId和identityUserId
continuous-integration/drone/push Build is passing
2025-01-20 17:32:49 +08:00
wangxiaoshuang 55ae6bac7e lili关于页面
continuous-integration/drone/push Build is passing
2025-01-20 16:14:06 +08:00
wangxiaoshuang 823ac2f085 登陆页面国际化
continuous-integration/drone/push Build is passing
2025-01-20 15:58:19 +08:00
wangxiaoshuang 73e0a13e91 简历英文姓名展示修改
continuous-integration/drone/push Build is passing
2025-01-20 15:47:31 +08:00
caiyiling 7f179fb393 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-20 14:29:42 +08:00
caiyiling 3441793bcb 返回功能样式更改 2025-01-20 14:29:17 +08:00
wangxiaoshuang dbe651fe98 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-20 14:05:45 +08:00
wangxiaoshuang f54ff927ec 登录页国际化问题 2025-01-20 14:05:36 +08:00
caiyiling 535b37e830 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-20 13:49:40 +08:00
caiyiling 13191c914e 系统阅片标准配置页字段更改 2025-01-20 13:49:16 +08:00
wangxiaoshuang 70735f2c47 重置密码完成后国际化问题
continuous-integration/drone/push Build is passing
2025-01-20 13:19:51 +08:00
wangxiaoshuang 8ad77f1679 问题修复
continuous-integration/drone/push Build is passing
2025-01-20 11:23:09 +08:00
wangxiaoshuang 3a76a7c24d 1
continuous-integration/drone/push Build is passing
2025-01-17 13:43:31 +08:00
wangxiaoshuang 5393ca571c 邮件模板预览修改
continuous-integration/drone/push Build is passing
2025-01-17 13:30:50 +08:00
wangxiaoshuang 4cef62ccba 中心列表参与人员去除排序
continuous-integration/drone/push Build is passing
2025-01-17 10:32:06 +08:00
wangxiaoshuang 2772168c3b 1
continuous-integration/drone/push Build is passing
2025-01-17 10:23:22 +08:00
wangxiaoshuang 89be8d8a12 项目培训记录列表添加创建时间
continuous-integration/drone/push Build is passing
2025-01-17 10:00:43 +08:00
wangxiaoshuang 041266c250 admin项目用户角色权限配置、部分国际化问题解决
continuous-integration/drone/push Build is passing
2025-01-17 09:31:06 +08:00
wangxiaoshuang cbcb84a768 1
continuous-integration/drone/push Build is passing
2025-01-16 17:21:35 +08:00
wangxiaoshuang 830718c228 人员管理禁用更换字典
continuous-integration/drone/push Build is passing
2025-01-16 17:02:58 +08:00
wangxiaoshuang 6977ed3713 稽查查询下拉选择框可搜索
continuous-integration/drone/push Build is passing
2025-01-16 16:18:14 +08:00
wangxiaoshuang 28ea52797e 系统配置签名文档国际化
continuous-integration/drone/push Build is passing
2025-01-16 14:41:10 +08:00
wangxiaoshuang 1348d5f864 IP不一致登陆提示
continuous-integration/drone/push Build is passing
2025-01-16 11:29:01 +08:00
wangxiaoshuang cd34ad7ef7 登录账号同时修改密码和登录IP不一致提示
continuous-integration/drone/push Build is running
2025-01-16 11:22:51 +08:00
wangxiaoshuang 5af7e8dd3c 锁定弹窗问题
continuous-integration/drone/push Build is passing
2025-01-16 10:25:17 +08:00
caiyiling 455f808f49 导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 15:06:43 +08:00
caiyiling a0d5e58311 导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 14:53:08 +08:00
caiyiling 84dbcd49f0 导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 13:43:16 +08:00
caiyiling a4ec387814 CDISC导表配置更改
continuous-integration/drone/push Build is passing
2025-01-14 11:00:30 +08:00
caiyiling 3a6c3d451c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-14 10:42:20 +08:00
caiyiling f396901731 CDISC导表配置更改 2025-01-14 10:41:38 +08:00
wangxiaoshuang 0b00f4bc7e Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-13 16:13:32 +08:00
wangxiaoshuang e58695aeff 异地登录提示 2025-01-13 16:13:18 +08:00
caiyiling 65a9dd3cf1 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-13 15:50:18 +08:00
caiyiling 63743dbbc1 系统阅片标准配置更改及项目导出配置更改 2025-01-13 15:49:46 +08:00
wangxiaoshuang b5643d3774 1
continuous-integration/drone/push Build is passing
2025-01-13 15:22:28 +08:00
wangxiaoshuang 4c1a770969 简历采集英文环境填写工作所属医院,未保存成功
continuous-integration/drone/push Build is passing
2025-01-13 14:51:36 +08:00
wangxiaoshuang 7ff0273c29 用户评审辅助功能
continuous-integration/drone/push Build is passing
2025-01-13 13:44:30 +08:00
wangxiaoshuang 3f2a339cba 增加后台批量编辑国际化翻译功能
continuous-integration/drone/push Build is passing
2025-01-13 11:49:16 +08:00
caiyiling d3dd4ecffc ecrf配置去除导出标识属性
continuous-integration/drone/push Build is passing
2025-01-13 11:21:42 +08:00
wangxiaoshuang d636813210 账号禁用或无权限自动退出
continuous-integration/drone/push Build is passing
2025-01-10 17:38:54 +08:00
caiyiling 66d09ca284 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-10 14:25:01 +08:00
caiyiling e672e6bd18 保存验证更改 2025-01-10 14:24:39 +08:00
wangxiaoshuang 9c964f11a1 国际化批量编辑
continuous-integration/drone/push Build is passing
2025-01-10 13:54:28 +08:00
caiyiling 0a473dcae3 肝分段保存状态维护
continuous-integration/drone/push Build is passing
2025-01-10 12:31:54 +08:00
caiyiling 85b3960f97 分段是否可测量逻辑更改
continuous-integration/drone/push Build is passing
2025-01-10 11:37:49 +08:00
caiyiling b96f5b9910 表格默认折叠更改
continuous-integration/drone/push Build is passing
2025-01-10 10:19:53 +08:00
caiyiling 31196e850e 计算平均值bug修复
continuous-integration/drone/push Build is passing
2025-01-10 09:44:05 +08:00
caiyiling c309410c04 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-09 16:21:59 +08:00
caiyiling 0a671fb330 清除标注信息bug修复 2025-01-09 16:21:36 +08:00
wangxiaoshuang febdfd7b4f Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-09 15:42:43 +08:00
wangxiaoshuang e1da0c9ea5 个人账号操作日志修改 2025-01-09 15:42:29 +08:00
caiyiling 54be84c300 阅片跟踪国际化更改
continuous-integration/drone/push Build is running
2025-01-09 15:42:11 +08:00
caiyiling 78c1b57770 阅片结果更改
continuous-integration/drone/push Build is passing
2025-01-09 14:52:30 +08:00
caiyiling 39ce8fd355 阅片结果导出国际化补充
continuous-integration/drone/push Build is passing
2025-01-09 14:36:49 +08:00
caiyiling 130862518f 阅片结果功能按钮添加图标
continuous-integration/drone/push Build is passing
2025-01-09 14:13:04 +08:00
caiyiling a129adbc4b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-09 11:42:27 +08:00
caiyiling 3066781ee6 ecrf系统配置更改及MRI-PDFF阅片bug修复 2025-01-09 11:41:51 +08:00
wangxiaoshuang df4880dc08 新建用户邮件初始化密码无法输入问题
continuous-integration/drone/push Build is passing
2025-01-09 10:43:12 +08:00
wangxiaoshuang 29e2a6ea65 新建用户邮件初始化取消按钮功能修改
continuous-integration/drone/push Build is passing
2025-01-09 10:19:38 +08:00
caiyiling ae12c3d517 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
2025-01-08 17:40:23 +08:00
caiyiling cbe346a049 MRI-PDFF计算更改 2025-01-08 17:39:49 +08:00
wangxiaoshuang c8c5ab72bb 阅片期列表样式问题
continuous-integration/drone/push Build is passing
2025-01-08 16:08:06 +08:00
caiyiling 37dc4a960f 阅片报告页更改
continuous-integration/drone/push Build is passing
2025-01-08 16:01:50 +08:00
caiyiling 05cf250c21 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
2025-01-08 15:58:56 +08:00
caiyiling b2ca803f94 肝分段状态维护 2025-01-08 15:58:30 +08:00
wangxiaoshuang 2ff2f5106e 项目课件状态
continuous-integration/drone/push Build is passing
2025-01-08 15:44:53 +08:00
wangxiaoshuang 67c2d47689 项目课件状态
continuous-integration/drone/push Build is passing
2025-01-08 15:31:02 +08:00
wangxiaoshuang 67a3c4f926 1.07部分问题修复
continuous-integration/drone/push Build is passing
2025-01-08 14:26:45 +08:00
wangxiaoshuang 9ab7afa06f 1
continuous-integration/drone/push Build is passing
2025-01-08 14:02:41 +08:00
wangxiaoshuang e5a17d20b1 1.07部分问题修复
continuous-integration/drone/push Build is running
2025-01-08 14:01:26 +08:00
wangxiaoshuang 3c664e9ba6 1.07部分问题修复
continuous-integration/drone/push Build is passing
2025-01-08 13:33:56 +08:00
caiyiling 50dd74b4ce 肝脏分段脂肪分数测量交互更改
continuous-integration/drone/push Build is passing
2025-01-08 13:26:54 +08:00
caiyiling b22b9d338e MRI-PDFF标准更改及导表配置更改
continuous-integration/drone/push Build is passing
2025-01-08 13:19:52 +08:00
wangxiaoshuang a13ef6e5d2 管理端国际化批量更新问题
continuous-integration/drone/push Build is passing
2025-01-08 09:23:15 +08:00
wangxiaoshuang 58141aaca9 中心调研已废除禁用审批
continuous-integration/drone/push Build is passing
2025-01-07 15:50:29 +08:00
wangxiaoshuang 17b868e7ed 版本记录lili版本改为非必填
continuous-integration/drone/push Build is passing
2025-01-07 13:54:10 +08:00
wangxiaoshuang bbc4da7b9e 质疑弹框用户名修改为姓名
continuous-integration/drone/push Build is passing
2025-01-07 13:12:15 +08:00
wangxiaoshuang c14079efe3 1
continuous-integration/drone/push Build is passing
2025-01-07 11:15:29 +08:00
wangxiaoshuang ecf5119269 1
continuous-integration/drone/push Build is passing
2025-01-07 10:54:05 +08:00
wangxiaoshuang b35ff2b7dc 质疑弹框用户名修改为姓名
continuous-integration/drone/push Build is running
2025-01-07 10:51:23 +08:00
wangxiaoshuang bae5b9c51c 导出更改
continuous-integration/drone/push Build is passing
2025-01-07 10:23:34 +08:00
wangxiaoshuang be5b9efa7b Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
2025-01-06 15:37:00 +08:00
wangxiaoshuang efab56f6bd 项目添加外部人员角色禁用提示国际化 2025-01-06 15:36:51 +08:00
107 changed files with 1949 additions and 828 deletions
+95 -12
View File
@@ -23,12 +23,38 @@
> >
i18n i18n
</div> </div>
<el-drawer title="国际化" :visible.sync="drawer" direction="rtl" size="80%"> <el-drawer
<div style="width: 320px"> :title="$t('il8n:title')"
<el-form label-width="100px" @submit.native.prevent size="small"> :visible.sync="drawer"
<el-form-item label="关键字"> direction="rtl"
size="80%"
>
<div style="width: 620px">
<el-form
label-width="100px"
@submit.native.prevent
size="small"
:inline="true"
class="demo-form-inline"
>
<el-form-item :label="$t('il8n:search:keyword')">
<el-input v-model="key" @input="keyChange" /> <el-input v-model="key" @input="keyChange" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('il8n:search:state')" v-if="il8nExternal">
<el-select
v-model="State"
clearable
filterable
@change="handleStateChange"
>
<el-option
v-for="item of $d.InternationalizationKeyState"
:key="'InternationalizationKeyState' + item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-form> </el-form>
</div> </div>
<el-table <el-table
@@ -39,7 +65,7 @@
> >
<el-table-column <el-table-column
prop="Code" prop="Code"
label="标签" :label="$t('il8n:table:label')"
width="300" width="300"
show-overflow-tooltip show-overflow-tooltip
> >
@@ -53,7 +79,7 @@
<!-- {{scope.row.Description}}--> <!-- {{scope.row.Description}}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column prop="Value" label="英文"> <el-table-column prop="Value" :label="$t('il8n:table:en')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.Value" v-model="scope.row.Value"
@@ -66,7 +92,7 @@
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ValueCN" label="中文"> <el-table-column prop="ValueCN" :label="$t('il8n:table:cn')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.ValueCN" v-model="scope.row.ValueCN"
@@ -79,6 +105,27 @@
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="ValueCN"
:label="$t('il8n:table:state')"
v-if="il8nExternal"
>
<template slot-scope="scope">
<el-select
v-model="scope.row.State"
clearable
filterable
size="mini"
>
<el-option
v-for="item of $d.InternationalizationKeyState"
:key="'InternationalizationKeyState' + item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
</el-table-column>
</el-table> </el-table>
<div style="text-align: right; padding-top: 10px; padding-right: 10px"> <div style="text-align: right; padding-top: 10px; padding-right: 10px">
<el-button size="mini" @click="drawer = false">取消 </el-button> <el-button size="mini" @click="drawer = false">取消 </el-button>
@@ -110,10 +157,13 @@ export default {
show: false, show: false,
key: null, key: null,
arr: [], arr: [],
il8nExternal: false,
State: null,
} }
}, },
mounted() { mounted() {
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist' this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
Vue.prototype.$openI18n = this.openI18n
}, },
// watch: { // watch: {
// '$route.query': { // '$route.query': {
@@ -145,6 +195,11 @@ export default {
// }, // },
// }, // },
methods: { methods: {
handleStateChange() {
this.tableData.forEach((item) => {
item.State = this.State
})
},
changeValue(target, attr, e) { changeValue(target, attr, e) {
this.$set(target, attr, e) this.$set(target, attr, e)
}, },
@@ -154,9 +209,9 @@ export default {
[], [],
this.arr.filter( this.arr.filter(
(v) => (v) =>
~v.Code.indexOf(this.key) || ~v.Code.toLowerCase().indexOf(this.key.toLowerCase()) ||
~v.Value.indexOf(this.key) || ~v.Value.toLowerCase().indexOf(this.key.toLowerCase()) ||
~v.ValueCN.indexOf(this.key) ~v.ValueCN.toLowerCase().indexOf(this.key.toLowerCase())
) )
) )
} else { } else {
@@ -181,22 +236,50 @@ export default {
i18n.mergeLocaleMessage('en', enMessages) i18n.mergeLocaleMessage('en', enMessages)
this.drawer = false this.drawer = false
this.$message.success('国际化修改成功') this.$message.success('国际化修改成功')
if (this.il8nExternal) {
this.$EventBus.$emit('il8nUpdate')
}
} }
) )
}) })
}, },
openI18n() { openI18n(ARRAY) {
this.tableData = [] this.tableData = []
this.il8nExternal = false
this.key = null this.key = null
this.drawer = true this.drawer = true
let arr = [] let arr = []
let tableData = this.$tl.map((v) => { let tableData = []
if (ARRAY && Array.isArray(ARRAY)) {
this.il8nExternal = true
let data = ARRAY.map((v) => {
let a = { ...v }
return a
})
tableData = data.map((item) => {
return {
Code: item.Code,
Description: item.Description,
FrontType: item.FrontType,
Module: item.Module,
Value: item.Value,
ValueCN: item.ValueCN,
State: item.State,
}
})
this.tableData = Object.assign([], tableData)
this.arr = Object.assign([], tableData)
return false
} else {
tableData = this.$tl.map((v) => {
let a = { ...v } let a = { ...v }
// if (!a.Description) { // if (!a.Description) {
// a.Description = this.$route.path // a.Description = this.$route.path
// } // }
return a return a
}) })
}
tableData = tableData.filter((v) => { tableData = tableData.filter((v) => {
// return ~this.$path.indexOf(v.Description + '_' + v.Code) // return ~this.$path.indexOf(v.Description + '_' + v.Code)
return ~this.$path.indexOf(v.Code) return ~this.$path.indexOf(v.Code)
+8
View File
@@ -334,3 +334,11 @@ export function updateUserRoleInfo(data) {
data data
}) })
} }
// 管理端新增用户发送邮件
export function addNewUserSendEmail(data) {
return request({
url: `/User/addNewUserSendEmail`,
method: 'post',
data
})
}
+10
View File
@@ -275,3 +275,13 @@ export function submitTaskRowInfo(param, type) {
data: param data: param
}) })
} }
export function deleteSingleTableQuestionMark(param, type) {
return request({
url: `/DeleteSingleTableQuestionMark/${type}`,
method: 'post',
data: param
})
}
+8
View File
@@ -3951,3 +3951,11 @@ export function setTrialQuestionExportResult(data) {
data data
}) })
} }
// 项目加入人员发送邮件
export function trialUserSendJoinEmail(data) {
return request({
url: `/TrialMaintenance/trialUserSendJoinEmail`,
method: 'post',
data
})
}
+6
View File
@@ -13,6 +13,7 @@
v-model="searchData[item.prop]" v-model="searchData[item.prop]"
:placeholder="item.placeholder" :placeholder="item.placeholder"
size="mini" size="mini"
clearable
:style="{ width: item.width }" :style="{ width: item.width }"
:readonly="item.readonly" :readonly="item.readonly"
/> />
@@ -22,6 +23,7 @@
v-model="searchData[item.prop]" v-model="searchData[item.prop]"
:placeholder="item.placeholder" :placeholder="item.placeholder"
size="mini" size="mini"
clearable
:style="{ width: item.width }" :style="{ width: item.width }"
@change="item.change && item.change(that, searchData[item.prop])" @change="item.change && item.change(that, searchData[item.prop])"
> >
@@ -37,6 +39,7 @@
v-model="searchData[item.prop]" v-model="searchData[item.prop]"
:placeholder="item.placeholder" :placeholder="item.placeholder"
size="mini" size="mini"
clearable
:style="{ width: item.width }" :style="{ width: item.width }"
@change="item.change && item.change(that, searchData[item.prop])" @change="item.change && item.change(that, searchData[item.prop])"
> >
@@ -96,6 +99,7 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" format="yyyy-MM-dd"
:picker-options="item.pickerOption" :picker-options="item.pickerOption"
clearable
/> />
<!-- 时间 --> <!-- 时间 -->
<el-time-select <el-time-select
@@ -104,6 +108,7 @@
:placeholder="item.placeholder" :placeholder="item.placeholder"
type="" type=""
:style="{ width: item.width }" :style="{ width: item.width }"
clearable
/> />
<!-- 日期时间 --> <!-- 日期时间 -->
<el-date-picker <el-date-picker
@@ -114,6 +119,7 @@
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
:disabled="item.disable && item.disable(searchData[item.prop])" :disabled="item.disable && item.disable(searchData[item.prop])"
:style="{ width: item.width }" :style="{ width: item.width }"
clearable
/> />
<!-- 日期时间段 --> <!-- 日期时间段 -->
<el-date-picker <el-date-picker
+4
View File
@@ -64,6 +64,10 @@
<el-button <el-button
:size="operate.size || 'mini'" :size="operate.size || 'mini'"
:type="operate.type || 'primary'" :type="operate.type || 'primary'"
v-if="
(operate.show && scope.row[operate.show]) ||
!operate.show
"
style="margin-right: 5px" style="margin-right: 5px"
@click="handleClick(operate, scope.row)" @click="handleClick(operate, scope.row)"
>{{ operate.name }}</el-button >{{ operate.name }}</el-button
+10 -4
View File
@@ -3,7 +3,7 @@
<div class="trialsTab"> <div class="trialsTab">
<el-tabs v-model="trialsTab" @tab-click="clickTab"> <el-tabs v-model="trialsTab" @tab-click="clickTab">
<el-tab-pane v-for="item of trialsRouter.children.find(v => {return v.name == 'TrialsPanel'}).children" :key="`tab${item.path}`" :disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'" :label="$t(item.LanguageMark)" :name="item.path"> <el-tab-pane v-for="item of trialsRouter.children.find(v => {return v.name == 'TrialsPanel'}).children" :key="`tab${item.path}`" :disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'" :label="$t(item.LanguageMark)" :name="item.path">
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab"> <el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab" style="background-color: #f5f7fa;">
<template v-for="item1 of item.children"> <template v-for="item1 of item.children">
<el-tab-pane <el-tab-pane
v-if="TrialConfig && isShow(item1.path)" v-if="TrialConfig && isShow(item1.path)"
@@ -22,11 +22,14 @@
<i class="iconfont" style="font-size: 30px;color:#ccc">&#xe680;</i> <i class="iconfont" style="font-size: 30px;color:#ccc">&#xe680;</i>
</div> </div>
<!-- 返回项目列表 --> <!-- 返回项目列表 -->
<div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack"> <el-button type="primary" size="small" @click="goBack">
<i class="iconfont">&#xe670;</i> <i class="iconfont">&#xe670;</i>
<!-- 返回 -->
<span>{{ $t('trials:trials:title:back') }}</span> <span>{{ $t('trials:trials:title:back') }}</span>
</div> </el-button>
<!-- <div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
<i class="iconfont">&#xe670;</i>
<span>{{ $t('trials:trials:title:back') }}</span>
</div> -->
</div> </div>
</div> </div>
</template> </template>
@@ -221,6 +224,9 @@ export default {
.el-tabs__header{ .el-tabs__header{
margin-bottom: 3px; margin-bottom: 3px;
} }
.el-tabs__item.is-active{
font-weight: bold;
}
position: relative; position: relative;
.el-input--medium .el-input__inner{ .el-input--medium .el-input__inner{
height: 44px;line-height: 44px;width: 280px; height: 44px;line-height: 44px;width: 280px;
+3 -1
View File
@@ -47,8 +47,10 @@ const dialogDrag = Vue.directive('dialogDrag', {
styL = +styL.replace(/\px/g, '') styL = +styL.replace(/\px/g, '')
styT = +styT.replace(/\px/g, '') styT = +styT.replace(/\px/g, '')
} }
const oldMousemove = document.onmousemove
document.onmousemove = function (e) { document.onmousemove = function (e) {
oldMousemove(e)
// 通过事件委托,计算移动的距离 // 通过事件委托,计算移动的距离
let left = e.clientX - disX let left = e.clientX - disX
const top = e.clientY - disY const top = e.clientY - disY
@@ -71,7 +73,7 @@ const dialogDrag = Vue.directive('dialogDrag', {
} }
document.onmouseup = function (e) { document.onmouseup = function (e) {
document.onmousemove = null document.onmousemove = oldMousemove
document.onmouseup = null document.onmouseup = null
} }
} }
+2 -2
View File
@@ -175,8 +175,8 @@ export default {
} else { } else {
this.$router.push(`/login`) this.$router.push(`/login`)
} }
this.$i18n.locale = 'zh' // //this.$i18n.locale = 'zh'
this.setLanguage('zh') // //this.setLanguage('zh')
this.$updateDictionary() this.$updateDictionary()
}, },
editInfo() { editInfo() {
+5 -1
View File
@@ -403,9 +403,13 @@ async function VueInit() {
} }
_vm.$store.dispatch('user/logout').then(res => { _vm.$store.dispatch('user/logout').then(res => {
// window.location.href = `/login` // window.location.href = `/login`
if (_vm.$msgbox) { try {
if (_vm.$msgbox && _vm.$msgbox.close) {
_vm.$msgbox.close(); _vm.$msgbox.close();
} }
} catch (err) {
console.log(err)
}
_vm.$FB.close(); _vm.$FB.close();
_vm.$FBT.close(); _vm.$FBT.close();
_vm.$MFA.close(); _vm.$MFA.close();
+17 -4
View File
@@ -4,7 +4,7 @@ import store from './store'
// import { Message } from 'element-ui' // import { Message } from 'element-ui'
import NProgress from 'nprogress' import NProgress from 'nprogress'
import 'nprogress/nprogress.css' import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth' import { getToken, removeToken } from '@/utils/auth'
import Vue from 'vue' import Vue from 'vue'
import { OSSclient } from './utils/oss' import { OSSclient } from './utils/oss'
import WHITELIST from "./utils/whiteList" import WHITELIST from "./utils/whiteList"
@@ -70,6 +70,16 @@ router.beforeEach(async (to, from, next) => {
} }
next() next()
NProgress.done() NProgress.done()
} else if (from.path === '/researchForm') {
removeToken()
let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done()
} else if (from.path === '/researchDetail_m') {
removeToken()
let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done()
} else { } else {
await OSSclient() await OSSclient()
const hasGetUserInfo = store.getters.userId const hasGetUserInfo = store.getters.userId
@@ -97,9 +107,10 @@ router.beforeEach(async (to, from, next) => {
/* has no token*/ /* has no token*/
if (whiteList.indexOf(to.path) !== -1) { if (whiteList.indexOf(to.path) !== -1) {
if (to.path === '/researchLogin') { if (to.path === '/researchLogin') {
let lang = to.query.lang || zzSessionStorage.getItem('lang')
const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i) const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
if (flag) { if (flag) {
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${to.query.lang}`) next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
} else { } else {
next() next()
} }
@@ -112,10 +123,12 @@ router.beforeEach(async (to, from, next) => {
} }
} else { } else {
if (to.path === '/researchForm') { if (to.path === '/researchForm') {
next(`/researchLogin?`) let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done() NProgress.done()
} else if (to.path === '/researchDetail_m') { } else if (to.path === '/researchDetail_m') {
next(`/researchLogin_m?`) let lang = to.query.lang || zzSessionStorage.getItem('lang')
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
NProgress.done() NProgress.done()
} else if (to.path === '/ReviewersResearchForm') { } else if (to.path === '/ReviewersResearchForm') {
next(`/ReviewersResearch?`) next(`/ReviewersResearch?`)
+1
View File
@@ -47,6 +47,7 @@ const getters = {
language: state => state.lang.language, language: state => state.lang.language,
TotalNeedSignSystemDocCount: state => state.user.TotalNeedSignSystemDocCount, TotalNeedSignSystemDocCount: state => state.user.TotalNeedSignSystemDocCount,
TotalNeedSignTrialDocCount: state => state.user.TotalNeedSignTrialDocCount, TotalNeedSignTrialDocCount: state => state.user.TotalNeedSignTrialDocCount,
IsFirstSysDocNeedSign: state => state.user.IsFirstSysDocNeedSign,
TrialStatusStr: state => state.user.TrialStatusStr TrialStatusStr: state => state.user.TrialStatusStr
} }
export default getters export default getters
+7 -1
View File
@@ -75,7 +75,7 @@ function getQuestions(questions) {
let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj) let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj)
answerObj.isMeasurable = isMeasurable answerObj.isMeasurable = isMeasurable
answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj) answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj)
answerObj.saveTypeEnum = isNaN(parseFloat(isMeasurable)) ? 1 : 2 answerObj.saveTypeEnum = parseInt(isMeasurable) === 1 && isNaN(parseFloat(answerObj.mean)) ? 1 : 2
} else { } else {
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj) answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj) answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
@@ -887,6 +887,12 @@ const actions = {
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}` const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
imageIds.push(imageId) imageIds.push(imageId)
}) })
} else if (study.IsCriticalSequence && instance.KeyFramesList.length === 0) {
// 兼容保存标记数据未存NumberOfFrames的情况,按序列展示
for (let i = 0; i < instance.NumberOfFrames; i++) {
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
imageIds.push(imageId)
}
} else { } else {
for (let i = 0; i < instance.NumberOfFrames; i++) { for (let i = 0; i < instance.NumberOfFrames; i++) {
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}` const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
+13
View File
@@ -18,6 +18,7 @@ const getDefaultState = () => {
/* eslint-disable */ /* eslint-disable */
TotalNeedSignSystemDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0, TotalNeedSignSystemDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
TotalNeedSignTrialDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0, TotalNeedSignTrialDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
IsFirstSysDocNeedSign: false,
TrialStatusStr: null, TrialStatusStr: null,
isTestUser: false, isTestUser: false,
roles: [] roles: []
@@ -65,6 +66,10 @@ const mutations = {
SET_ISTESTUSER: (state, isTestUser) => { SET_ISTESTUSER: (state, isTestUser) => {
state.isTestUser = eval(isTestUser) state.isTestUser = eval(isTestUser)
}, },
SET_IS_FIRST_SYSTEM_DOC_SIGN: (state, IsFirstSysDocNeedSign) => {
zzSessionStorage.setItem('IsFirstSysDocNeedSign', IsFirstSysDocNeedSign)
state.IsFirstSysDocNeedSign = IsFirstSysDocNeedSign
},
SET_NEED_SIGN_SYSTEM_DOC_COUNT: (state, TotalNeedSignSystemDocCount) => { SET_NEED_SIGN_SYSTEM_DOC_COUNT: (state, TotalNeedSignSystemDocCount) => {
/* eslint-disable */ /* eslint-disable */
if (eval(process.env.VUE_APP_WORD_FOR_PERMISSION) && !state.isTestUser) { if (eval(process.env.VUE_APP_WORD_FOR_PERMISSION) && !state.isTestUser) {
@@ -216,6 +221,9 @@ const actions = {
setTotalNeedSignSystemDocCount({ commit }, TotalNeedSignSystemDocCount) { setTotalNeedSignSystemDocCount({ commit }, TotalNeedSignSystemDocCount) {
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', TotalNeedSignSystemDocCount) commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', TotalNeedSignSystemDocCount)
}, },
setIsFirstSysDocNeedSign({ commit }, IsFirstSysDocNeedSign) {
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', IsFirstSysDocNeedSign)
},
setTotalNeedSignTrialDocCount({ commit }, TotalNeedSignTrialDocCount) { setTotalNeedSignTrialDocCount({ commit }, TotalNeedSignTrialDocCount) {
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', TotalNeedSignTrialDocCount) commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', TotalNeedSignTrialDocCount)
}, },
@@ -238,6 +246,7 @@ const actions = {
commit('SET_USERNAME', zzSessionStorage.getItem('userName')) commit('SET_USERNAME', zzSessionStorage.getItem('userName'))
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))) commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignSystemDocCount')))
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))) commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignTrialDocCount')))
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', zzSessionStorage.getItem('IsFirstSysDocNeedSign'))
// console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount')) // console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))
// console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount')) // console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))
zzSessionStorage.setItem('userName', user.name) zzSessionStorage.setItem('userName', user.name)
@@ -273,7 +282,9 @@ const actions = {
}) })
resetRouter() resetRouter()
removeName() removeName()
let lang = zzSessionStorage.getItem('lang')
zzSessionStorage.clear() zzSessionStorage.clear()
zzSessionStorage.setItem('lang', lang)
commit('RESET_STATE') commit('RESET_STATE')
} catch (e) { } catch (e) {
console.log(e) console.log(e)
@@ -288,7 +299,9 @@ const actions = {
// }) // })
resetRouter() resetRouter()
removeName() removeName()
let lang = zzSessionStorage.getItem('lang')
zzSessionStorage.clear() zzSessionStorage.clear()
zzSessionStorage.setItem('lang', lang)
commit('RESET_STATE') commit('RESET_STATE')
} catch (e) { } catch (e) {
console.log(e) console.log(e)
+3
View File
@@ -47,3 +47,6 @@
.el-range-separator { .el-range-separator {
box-sizing: content-box; box-sizing: content-box;
} }
.el-select-dropdown__wrap{
max-height: 350px;
}
+3 -2
View File
@@ -40,8 +40,9 @@ Vue.directive('dialogDrag', {
styL = +styL.replace(/\px/g, '') styL = +styL.replace(/\px/g, '')
styT = +styT.replace(/\px/g, '') styT = +styT.replace(/\px/g, '')
} }
const oldMousemove = document.onmousemove
document.onmousemove = function(e) { document.onmousemove = function(e) {
oldMousemove(e)
// 通过事件委托,计算移动的距离 // 通过事件委托,计算移动的距离
let left = e.clientX - disX let left = e.clientX - disX
let top = e.clientY - disY let top = e.clientY - disY
@@ -63,7 +64,7 @@ Vue.directive('dialogDrag', {
} }
document.onmouseup = function(e) { document.onmouseup = function(e) {
document.onmousemove = null document.onmousemove = oldMousemove
document.onmouseup = null document.onmouseup = null
} }
return false return false
+3 -3
View File
@@ -89,9 +89,9 @@ service.interceptors.response.use(
}) })
store.dispatch('user/logout').then(() => { store.dispatch('user/logout').then(() => {
router.push(`/login`) router.push(`/login`)
this.$i18n.locale = 'zh' //this.$i18n.locale = 'zh'
this.setLanguage('zh') //this.setLanguage('zh')
this.$updateDictionary() // this.$updateDictionary()
}) })
} }
} else { } else {
+17 -8
View File
@@ -1,11 +1,11 @@
import axios from 'axios' import axios from 'axios'
import _vm from '@/main'
import { Message, MessageBox, Alert } from 'element-ui' import { Message, MessageBox, Alert } from 'element-ui'
import store from '@/store' import store from '@/store'
import router from '@/router' import router from '@/router'
import WHITELIST from "./whiteList" import WHITELIST from "./whiteList"
import moment from 'moment-timezone'; import moment from 'moment-timezone';
import { encryptConfig } from "@/utils/encrypt" import { encryptConfig } from "@/utils/encrypt"
const ROUTER = require('@/router');
axios.defaults.withCredentials = false axios.defaults.withCredentials = false
const service = axios.create({ const service = axios.create({
baseURL: '/api', baseURL: '/api',
@@ -91,13 +91,20 @@ service.interceptors.response.use(
const status = error.response.status const status = error.response.status
if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) { if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) {
store.dispatch('user/logout').then(() => { store.dispatch('user/logout').then(() => {
if (_vm.$msgbox) { let _vm = ROUTER.default.app
try {
if (_vm.$msgbox && _vm.$msgbox.close) {
_vm.$msgbox.close(); _vm.$msgbox.close();
} }
} catch (err) {
console.log(err)
}
router.push(`/login`) router.push(`/login`)
this.$i18n.locale = 'zh' // if (!this.$i18n.locale) {
this.setLanguage('zh') // //this.$i18n.locale = 'zh'
this.$updateDictionary() // //this.setLanguage('zh')
// }
// this.$updateDictionary()
}) })
} }
switch (status) { switch (status) {
@@ -127,9 +134,9 @@ service.interceptors.response.use(
} }
store.dispatch('user/logout').then(() => { store.dispatch('user/logout').then(() => {
router.push(`/login`) router.push(`/login`)
this.$i18n.locale = 'zh' // //this.$i18n.locale = 'zh'
this.setLanguage('zh') // //this.setLanguage('zh')
this.$updateDictionary() // this.$updateDictionary()
}) })
} else { } else {
setTimer({ setTimer({
@@ -173,6 +180,8 @@ const setTimer = (obj, type) => {
Message(obj) Message(obj)
} }
if (type === 'confirm') { if (type === 'confirm') {
obj[2].closeOnClickModal = false
obj[2].closeOnPressEscape = false
MessageBox.confirm(...obj) MessageBox.confirm(...obj)
} }
clearTimeout(timer); clearTimeout(timer);
+2 -2
View File
@@ -131,8 +131,8 @@ export default {
.then(() => { .then(() => {
this.$store.dispatch('user/logout').then(res => { this.$store.dispatch('user/logout').then(res => {
this.$router.push(`/login`) this.$router.push(`/login`)
this.$i18n.locale = 'zh' //this.$i18n.locale = 'zh'
this.setLanguage('zh') //this.setLanguage('zh')
this.$updateDictionary() this.$updateDictionary()
}) })
}) })
@@ -3,13 +3,16 @@
ref="sysAttachmentFrom" ref="sysAttachmentFrom"
v-loading="loading" v-loading="loading"
:model="form" :model="form"
label-width="170px" label-width="190px"
size="small" size="small"
:rules="rules" :rules="rules"
class="upload-temporary-file" class="upload-temporary-file"
> >
<div class="base-dialog-body"> <div class="base-dialog-body">
<el-form-item label="文件类型: " prop="FileTypeId"> <el-form-item
:label="$t('dictionary:signature:form:FileTypeId')"
prop="FileTypeId"
>
<el-select <el-select
v-model="form.FileTypeId" v-model="form.FileTypeId"
style="width: 100%" style="width: 100%"
@@ -25,7 +28,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件: "> <el-form-item :label="$t('dictionary:signature:form:File')">
<div class="upload-container"> <div class="upload-container">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@@ -46,16 +49,16 @@
type="primary" type="primary"
:disabled="form.FileTypeId === ''" :disabled="form.FileTypeId === ''"
:loading="btnLoading" :loading="btnLoading"
>Select</el-button >{{ $t('common:button:check') }}</el-button
> >
<span slot="tip" style="margin-left: 10px" class="el-upload__tip"> <span slot="tip" style="margin-left: 10px" class="el-upload__tip">
(must be in pdf format) ({{ $t('trials:signature:label:mustBepdf') }})
</span> </span>
</el-upload> </el-upload>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="需要签署的用户类型: " :label="$t('dictionary:signature:form:NeedConfirmedUserTypeIdList')"
prop="NeedConfirmedUserTypeIdList" prop="NeedConfirmedUserTypeIdList"
> >
<el-select <el-select
@@ -71,7 +74,10 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否仅内部签署: " prop="DocUserSignType"> <el-form-item
:label="$t('dictionary:signature:form:DocUserSignType')"
prop="DocUserSignType"
>
<el-switch <el-switch
v-model="form.DocUserSignType" v-model="form.DocUserSignType"
:active-value="1" :active-value="1"
@@ -80,7 +86,7 @@
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="查看最短时间(分钟): " :label="$t('dictionary:signature:form:SignViewMinimumMinutes')"
prop="SignViewMinimumMinutes" prop="SignViewMinimumMinutes"
> >
<el-input-number <el-input-number
@@ -105,7 +111,7 @@
:disabled="form.FileTypeId === '' || form.Name === ''" :disabled="form.FileTypeId === '' || form.Name === ''"
: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>
@@ -138,13 +144,25 @@ export default {
}, },
rules: { rules: {
FileTypeId: [ FileTypeId: [
{ required: true, message: 'Please select', trigger: ['blur'] }, {
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: ['blur'],
},
], ],
SignViewMinimumMinutes: [ SignViewMinimumMinutes: [
{ required: true, message: 'Please specify', trigger: ['change'] }, {
required: true,
message: this.$t('common:ruleMessage:specify'),
trigger: ['change'],
},
], ],
NeedConfirmedUserTypeIdList: [ NeedConfirmedUserTypeIdList: [
{ required: true, message: 'Please select', trigger: ['blur'] }, {
required: true,
message: this.$t('common:ruleMessage:select'),
trigger: ['blur'],
},
], ],
}, },
fileList: [], fileList: [],
@@ -211,7 +229,7 @@ export default {
this.fileList = [] this.fileList = []
return true return true
} else { } else {
this.$alert('must be in pdf format') this.$alert(this.$t('trials:signature:label:mustBepdf'))
return false return false
} }
@@ -236,7 +254,7 @@ export default {
this.$refs.sysAttachmentFrom.validate((valid) => { this.$refs.sysAttachmentFrom.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('trials:signature:message:selectFile'))
return return
} }
this.saveBtnLoading = true this.saveBtnLoading = true
@@ -245,7 +263,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:updatedSuccessfully'))
}) })
.catch(() => { .catch(() => {
this.saveBtnLoading = false this.saveBtnLoading = false
@@ -263,7 +281,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 = ['pdf'] var typeArr = ['pdf']
@@ -2,7 +2,7 @@
<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:signature:search:FileTypeId')">
<el-select v-model="searchData.FileTypeId" style="width: 150px"> <el-select v-model="searchData.FileTypeId" style="width: 150px">
<el-option <el-option
v-for="item of dict.type.Sys_Document" v-for="item of dict.type.Sys_Document"
@@ -12,7 +12,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件名称"> <el-form-item :label="$t('dictionary:signature:search:Name')">
<el-input v-model="searchData.Name" style="width: 130px" clearable /> <el-input v-model="searchData.Name" style="width: 130px" clearable />
</el-form-item> </el-form-item>
@@ -34,7 +34,7 @@
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
style="margin-left: auto" style="margin-left: auto; margin-bottom: 10px"
size="small" size="small"
@click="handleAdd" @click="handleAdd"
> >
@@ -53,26 +53,27 @@
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<el-table-column <el-table-column
prop="FileType" prop="FileType"
label="文件类型" :label="$t('dictionary:signature:table:FileType')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="Name" prop="Name"
label="文件名称" :label="$t('dictionary:signature:table:Name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="SignViewMinimumMinutes" prop="SignViewMinimumMinutes"
label="查看最短时间(分钟)" :label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="110"
/> />
<el-table-column <el-table-column
prop="NeedConfirmedUserTypes" prop="NeedConfirmedUserTypes"
label="需要签署的用户类型" :label="$t('dictionary:signature:table:NeedConfirmedUserTypes')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -85,19 +86,25 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
label="是否废除" :label="$t('dictionary:signature:table:IsDeleted')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.IsDeleted ? 'Yes' : 'No' }} <el-tag v-if="scope.row.IsDeleted" type="danger">{{
$fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag>
<el-tag v-else type="primary">{{
$fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="DocUserSignType" prop="DocUserSignType"
label="是否仅内部签署" :label="$t('dictionary:signature:table:DocUserSignType')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="90"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }} {{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
@@ -105,28 +112,28 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="创建时间" :label="$t('dictionary:signature:table:CreateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action"> <el-table-column :label="$t('common:action:action')" min-width="100">
<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') }}
</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 <el-button
:disabled="scope.row.IsDeleted" :disabled="scope.row.IsDeleted"
type="text" type="text"
@click="handleRepeal(scope.row)" @click="handleRepeal(scope.row)"
> >
废除 {{ $t('common:button:revoke') }}
</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>
@@ -261,7 +268,7 @@ export default {
}, },
// //
handleRepeal(row) { handleRepeal(row) {
this.$confirm('是否确认废除此文件?', { this.$confirm(this.$t('dictionary:signature:confirm:delFile'), {
type: 'warning', type: 'warning',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
}) })
@@ -298,7 +305,9 @@ export default {
this.list.findIndex((item) => item.Id === row.Id), this.list.findIndex((item) => item.Id === row.Id),
1 1
) )
this.$message.success('删除成功!') this.$message.success(
this.$t('common:message:deletedSuccessfully')
)
} }
}) })
.catch(() => { .catch(() => {
@@ -10,12 +10,16 @@
<el-input v-model="searchData.Version" style="width: 100px" /> <el-input v-model="searchData.Version" style="width: 100px" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleReset">{{ <el-button type="primary" icon="el-icon-search" @click="handleSearch">
$t("dictionary:browser:button:reset") {{ $t('common:button:search') }}
}}</el-button> </el-button>
<el-button type="primary" @click="handleSearch">{{ <el-button
$t("dictionary:browser:button:search") type="primary"
}}</el-button> 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">
@@ -24,6 +24,16 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="标准分组" prop="CriterionGroup">
<el-select v-model="form.CriterionGroup">
<el-option
v-for="item of $d.CriterionGroup"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item v-if="form.Id !== ''" label="是否配置完成"> <el-form-item v-if="form.Id !== ''" label="是否配置完成">
<el-switch v-model="form.IsCompleteConfig" /> <el-switch v-model="form.IsCompleteConfig" />
@@ -40,7 +50,7 @@
<el-form-item v-if="form.Id !== ''" label="是否启用"> <el-form-item v-if="form.Id !== ''" label="是否启用">
<el-switch v-model="form.IsEnable" /> <el-switch v-model="form.IsEnable" />
</el-form-item> </el-form-item>
<el-form-item v-if="form.Id !== ''" label="eCRF是否显示在影像阅片页面"> <el-form-item v-if="form.Id !== ''" label="eICRF仅展示阅片Tab">
<el-switch v-model="form.IseCRFShowInDicomReading" /> <el-switch v-model="form.IseCRFShowInDicomReading" />
</el-form-item> </el-form-item>
</div> </div>
@@ -72,6 +82,7 @@ export default {
Id: '', Id: '',
CriterionName: '', CriterionName: '',
CriterionType: null, CriterionType: null,
CriterionGroup: null,
IsEnable: true, IsEnable: true,
IsCompleteConfig: false, IsCompleteConfig: false,
ShowOrder: null, ShowOrder: null,
@@ -80,7 +91,8 @@ export default {
}, },
rules: { rules: {
CriterionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }], CriterionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
CriterionType: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }] CriterionType: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }],
CriterionGroup: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }]
}, },
loading: false, loading: false,
@@ -16,8 +16,16 @@
<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>
<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">
@@ -27,8 +27,16 @@
</el-select> </el-select>
</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>
<span style="margin-left:auto"> <span style="margin-left:auto">
@@ -243,7 +243,7 @@
> >
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="导出标识" <!-- <el-form-item label="导出标识"
prop="ExportIdentification" prop="ExportIdentification"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'" v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
> >
@@ -262,8 +262,11 @@
>{{ item.label }} >{{ item.label }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
<el-form-item label="导出结果" v-if="form.ExportIdentification" prop="ExportResult"> <el-form-item
label="导出结果"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
<el-select v-model="form.ExportResult" multiple> <el-select v-model="form.ExportResult" multiple>
<el-option <el-option
v-for="item in CriterionDictionaryList.ExportResult" v-for="item in CriterionDictionaryList.ExportResult"
@@ -450,10 +453,10 @@
<el-form-item v-if="form.QuestionGenre === 3" label="默认值"> <el-form-item v-if="form.QuestionGenre === 3" label="默认值">
<el-select v-model="form.DefaultValue" clearable> <el-select v-model="form.DefaultValue" clearable>
<el-option <el-option
v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []" v-for="item of highlightAnswers"
:key="item.id" :key="item.Id"
:label="item.label" :label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
:value="item.value.toString()" :value="item.Code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -829,7 +832,7 @@ export default {
ConvertShowType: 0, ConvertShowType: 0,
QuestionClassify: null, QuestionClassify: null,
HighlightAnswerList: [], HighlightAnswerList: [],
ExportIdentification: 0, // ExportIdentification: 0,
ExportResult: [], ExportResult: [],
MaxAnswerLength: null, MaxAnswerLength: null,
FileType: [], FileType: [],
@@ -866,12 +869,12 @@ export default {
{ required: true, message: '请注明', trigger: 'blur' }, { required: true, message: '请注明', trigger: 'blur' },
{ max: 50, message: '最大长度为 50' }, { max: 50, message: '最大长度为 50' },
], ],
ExportIdentification: [ // ExportIdentification: [
{ required: true, message: '请选择', trigger: 'blur' }, // { required: true, message: '', trigger: 'blur' },
], // ],
ExportResult: [ // ExportResult: [
{ required: true, message: '请选择', trigger: 'blur' }, // { required: true, message: '', trigger: 'blur' },
] // ]
}, },
loading: false, loading: false,
btnLoading: false, btnLoading: false,
@@ -1159,7 +1162,7 @@ export default {
data.ConvertShowType = 0 data.ConvertShowType = 0
data.QuestionClassify = null data.QuestionClassify = null
data.HighlightAnswerList = [] data.HighlightAnswerList = []
data.ExportIdentification = 0 // data.ExportIdentification = 0
data.ExportResult = [] data.ExportResult = []
data.FileType = [] data.FileType = []
data.ClassifyQuestionId = null data.ClassifyQuestionId = null
@@ -8,9 +8,16 @@
<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>
@@ -8,9 +8,65 @@
> >
<el-input v-model="searchData.CriterionName" clearable style="width:120px;" /> <el-input v-model="searchData.CriterionName" clearable style="width:120px;" />
</el-form-item> </el-form-item>
<el-form-item
label="标准类型"
>
<el-select v-model="searchData.CriterionType" clearable style="width:120px;">
<el-option
v-for="item of $d.CriterionType"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item
label="标准分组"
>
<el-select v-model="searchData.CriterionGroup" clearable style="width:120px;">
<el-option
v-for="item of $d.CriterionGroup"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item
label="是否配置完成"
>
<el-select v-model="searchData.IsCompleteConfig" clearable style="width:120px;">
<el-option
v-for="item of $d.YesOrNo"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item
label="是否启用"
>
<el-select v-model="searchData.IsEnable" clearable style="width:120px;">
<el-option
v-for="item of $d.YesOrNo"
:key="item.id"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item> <el-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>
<span style="margin-left:auto"> <span style="margin-left:auto">
@@ -25,6 +81,8 @@
stripe stripe
size="small" size="small"
height="100" height="100"
@sort-change="handleSortByColumn"
ref="criterionsTbl"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
@@ -32,20 +90,33 @@
prop="CriterionName" prop="CriterionName"
label="标准名称" label="标准名称"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
/> />
<el-table-column <el-table-column
prop="CriterionType" prop="CriterionType"
label="标准类型" label="标准类型"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('CriterionType',scope.row.CriterionType) }} {{ $fd('CriterionType',scope.row.CriterionType) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="CriterionGroup"
label="标准分组"
show-overflow-tooltip
sortable="custom"
>
<template slot-scope="scope">
{{ $fd('CriterionGroup',scope.row.CriterionGroup) }}
</template>
</el-table-column>
<el-table-column <el-table-column
prop="IsCompleteConfig" prop="IsCompleteConfig"
label="是否配置完成" label="是否配置完成"
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -62,22 +133,32 @@
label="描述" label="描述"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column
prop="ShowOrder"
label="显示序号"
show-overflow-tooltip
/>
<el-table-column <el-table-column
prop="IsEnable" prop="IsEnable"
label="是否启用" label="是否启用"
sortable="custom"
> >
<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
prop="ShowOrder"
label="显示序号"
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
prop="IseCRFShowInDicomReading"
label="eICRF仅展示阅片Tab"
show-overflow-tooltip
sortable="custom"
width="210"
>
<template slot-scope="scope">
{{ $fd('YesOrNo', scope.row.IseCRFShowInDicomReading) }}
</template>
</el-table-column>
<el-table-column label="Action" min-width="200px"> <el-table-column label="Action" min-width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@@ -172,8 +253,14 @@ import AddCriterion from './AddCriterion'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
CriterionName: '', CriterionName: '',
CriterionType: null,
CriterionGroup: null,
IsCompleteConfig: null,
IsEnable: null,
PageIndex: 1, PageIndex: 1,
PageSize: 20 PageSize: 20,
Asc: true,
SortField: ''
} }
} }
export default { export default {
@@ -271,6 +358,18 @@ export default {
// //
handleReset() { handleReset() {
this.searchData = searchDataDefault() this.searchData = searchDataDefault()
this.$refs['criterionsTbl'].clearSort()
this.getList()
},
//
handleSortByColumn(column) {
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false
}
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList() this.getList()
} }
} }
@@ -16,8 +16,16 @@
<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>
<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">
@@ -38,8 +38,16 @@
</el-select> </el-select>
</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>
<span style="margin-left:auto"> <span style="margin-left:auto">
@@ -26,8 +26,16 @@
<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>
<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">
@@ -147,7 +147,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 导出标识 --> <!-- 导出标识 -->
<el-form-item <!-- <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification" :label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'" v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
> >
@@ -166,9 +166,12 @@
>{{ item.label }} >{{ item.label }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
<!-- 导出结果 --> <!-- 导出结果 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')" v-if="form.ExportIdentification" prop="ExportResult"> <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
<el-select v-model="form.ExportResult" multiple> <el-select v-model="form.ExportResult" multiple>
<el-option <el-option
v-for="item in CriterionDictionaryList.ExportResult" v-for="item in CriterionDictionaryList.ExportResult"
@@ -329,11 +332,17 @@
</el-form-item> </el-form-item>
<el-form-item v-if="form.TableQuestionType === 3" label="默认值"> <el-form-item v-if="form.TableQuestionType === 3" label="默认值">
<el-select v-model="form.DefaultValue" clearable> <el-select v-model="form.DefaultValue" clearable>
<el-option <!-- <el-option
v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []" v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []"
:key="item.id" :key="item.id"
:label="item.label" :label="item.label"
:value="item.value.toString()" :value="item.value.toString()"
/> -->
<el-option
v-for="item of highlightAnswers"
:key="item.Id"
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
:value="item.Code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -358,11 +367,17 @@
/> />
</template> </template>
<template v-else-if="form.DictionaryCode"> <template v-else-if="form.DictionaryCode">
<el-option <!-- <el-option
v-for="item of $d[form.DictionaryCode]" v-for="item of $d[form.DictionaryCode]"
:key="item.id" :key="item.id"
:label="item.label" :label="item.label"
:value="item.value.toString()" :value="item.value.toString()"
/> -->
<el-option
v-for="item of highlightAnswers"
:key="item.Id"
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
:value="item.Code"
/> />
</template> </template>
</el-select> </el-select>
@@ -627,7 +642,7 @@ export default {
ImageCount: 0, ImageCount: 0,
ClassifyTableQuestionId: null, ClassifyTableQuestionId: null,
ClassifyAlgorithms: null, ClassifyAlgorithms: null,
ExportIdentification: 0, // ExportIdentification: 0,
ExportResult: [], ExportResult: [],
DefaultValue:null DefaultValue:null
// IsEnable: true // IsEnable: true
@@ -654,12 +669,12 @@ export default {
DataTableColumn: [{ required: true, message: '请选择', trigger: 'blur' }], DataTableColumn: [{ required: true, message: '请选择', trigger: 'blur' }],
// DictionaryCode: [{ required: true, message: '', trigger: 'blur' }], // DictionaryCode: [{ required: true, message: '', trigger: 'blur' }],
DependParentId: [{ required: true, message: '请选择', trigger: 'blur' }], DependParentId: [{ required: true, message: '请选择', trigger: 'blur' }],
ExportIdentification: [ // ExportIdentification: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }, // { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
], // ],
ExportResult: [ // ExportResult: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }, // { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
] // ]
}, },
loading: false, loading: false,
parentOptions: [], parentOptions: [],
@@ -669,9 +684,31 @@ export default {
colOptions: [], colOptions: [],
dicList: [], dicList: [],
CriterionDictionaryList: [], CriterionDictionaryList: [],
Questions: [] Questions: [],
highlightAnswers: []
} }
}, },
watch: {
'form.DictionaryCode': {
deep: true,
immediate: true,
async handler(v, oldv) {
try {
if (!v) {
this.highlightAnswers = []
return
}
let res = await getCriterionDictionary({
ReadingCriterionId: this.criterionId,
DictionaryCode: this.form.DictionaryCode,
})
this.highlightAnswers = res.Result[this.form.DictionaryCode]
} catch (e) {
console.log(e)
}
},
},
},
mounted() { mounted() {
this.initForm() this.initForm()
this.getCriterionDictionary() this.getCriterionDictionary()
@@ -931,7 +968,7 @@ export default {
form.ImageCount = null form.ImageCount = null
form.ClassifyTableQuestionId = null form.ClassifyTableQuestionId = null
form.ClassifyAlgorithms = null form.ClassifyAlgorithms = null
form.ExportIdentification = 0 // form.ExportIdentification = 0
form.ExportResult = [] form.ExportResult = []
form.DefaultValue = null form.DefaultValue = null
}, },
@@ -246,9 +246,9 @@
:autosize="{ minRows: 8, maxRows: 8 }" :autosize="{ minRows: 8, maxRows: 8 }"
/> />
<el-button <el-button
:disabled="!form.EmailHtmlContentCN" :disabled="!form.EmailHtmlContentCN && form.EmailHtmlContent"
type="text" type="text"
@click="PreviewHTML(form.EmailHtmlContentCN)" @click="PreviewHTML(form.EmailHtmlContentCN, form.EmailHtmlContent)"
style="position: absolute; left: -50px; top: 30px" style="position: absolute; left: -50px; top: 30px"
> >
{{ $t('common:button:preview') }} {{ $t('common:button:preview') }}
@@ -265,9 +265,9 @@
:autosize="{ minRows: 8, maxRows: 8 }" :autosize="{ minRows: 8, maxRows: 8 }"
/> />
<el-button <el-button
:disabled="!form.EmailHtmlContent" :disabled="!form.EmailHtmlContentCN && form.EmailHtmlContent"
type="text" type="text"
@click="PreviewHTML(form.EmailHtmlContent)" @click="PreviewHTML(form.EmailHtmlContentCN, form.EmailHtmlContent)"
style="position: absolute; left: -50px; top: 30px" style="position: absolute; left: -50px; top: 30px"
> >
{{ $t('common:button:preview') }} {{ $t('common:button:preview') }}
@@ -519,8 +519,8 @@ export default {
}) })
}, },
// //
PreviewHTML(html) { PreviewHTML(html, htmlEn) {
this.$emit('PreviewHTML', html) this.$emit('PreviewHTML', html, htmlEn)
}, },
}, },
} }
@@ -123,8 +123,16 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
<el-button type="primary" @click="handleReset">重置</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">
@@ -370,6 +378,13 @@
<el-button type="text" @click="handleDelete(scope.row)" <el-button type="text" @click="handleDelete(scope.row)"
>删除</el-button >删除</el-button
> >
<el-button
type="text"
@click="
preview(scope.row.EmailHtmlContentCN, scope.row.EmailHtmlContent)
"
>{{ $t('common:button:preview') }}</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -427,7 +442,23 @@
fullscreen fullscreen
custom-class="base-dialog-wrapper" custom-class="base-dialog-wrapper"
> >
<div
style="
display: flex;
align-items: flex-start;
justify-content: space-around;
flex-wrap: wrap;
"
>
<div>
<h3>邮件内容模版CN</h3>
<div v-html="previewHTML"></div> <div v-html="previewHTML"></div>
</div>
<div>
<h3>邮件内容模版EN</h3>
<div v-html="previewHTMLEN"></div>
</div>
</div>
</el-dialog> </el-dialog>
</box-content> </box-content>
</template> </template>
@@ -487,6 +518,7 @@ export default {
attachmentVisible: false, attachmentVisible: false,
previewVisible: false, previewVisible: false,
previewHTML: null, previewHTML: null,
previewHTMLEN: null,
} }
}, },
computed: { computed: {
@@ -574,8 +606,9 @@ export default {
closeDialog() { closeDialog() {
this.editVisible = false this.editVisible = false
}, },
preview(html) { preview(html, htmlEN) {
this.previewHTML = html this.previewHTML = html
this.previewHTMLEN = htmlEN
this.previewVisible = true this.previewVisible = true
}, },
// //
+11 -3
View File
@@ -3,15 +3,23 @@
<!-- 搜索框 --> <!-- 搜索框 -->
<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="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="模板:">
<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;">
+19 -8
View File
@@ -38,6 +38,7 @@
</el-form-item> </el-form-item>
<!-- 新密码 --> <!-- 新密码 -->
<el-form-item <el-form-item
class="my_new_pwd"
:label="$t('recompose:form:newPassword')" :label="$t('recompose:form:newPassword')"
prop="NewPassWord" prop="NewPassWord"
> >
@@ -84,6 +85,11 @@ export default {
password: { password: {
NewUserName: null, NewUserName: null,
UserId: null, UserId: null,
ConfirmPassWord: null,
NewPassWord: null,
Email: null,
UserType: null,
access_token: null,
}, },
passwordFormRules: { passwordFormRules: {
NewUserName: [ NewUserName: [
@@ -175,9 +181,9 @@ export default {
this.$i18n.locale = this.$route.query.lang this.$i18n.locale = this.$route.query.lang
this.setLanguage(this.$route.query.lang) this.setLanguage(this.$route.query.lang)
this.$updateDictionary() this.$updateDictionary()
if (!this.password.NewUserName) { // if (!this.password.NewUserName) {
this.$alert(this.$t('recompose:message:warning')) // this.$alert(this.$t('recompose:message:warning'))
} // }
}, },
methods: { methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }), ...mapMutations({ setLanguage: 'lang/setLanguage' }),
@@ -189,8 +195,10 @@ export default {
} else { } else {
this.$router.push(`/login`) this.$router.push(`/login`)
} }
this.$i18n.locale = 'zh' if (!this.$i18n.locale) {
this.setLanguage('zh') //this.$i18n.locale = 'zh'
//this.setLanguage('zh')
}
this.$updateDictionary() this.$updateDictionary()
}, },
save() { save() {
@@ -228,7 +236,10 @@ export default {
}) })
}, },
cancel() { cancel() {
this.$refs['passwordForm'].resetFields() // this.$refs['passwordForm'].resetFields()
this.password.NewPassWord = null
this.password.NewUserName = null
this.password.ConfirmPassWord = null
}, },
}, },
} }
@@ -262,7 +273,7 @@ input {
background-color: transparent; background-color: transparent;
caret-color: #fff; caret-color: #fff;
} }
.el-form-item { ::v-deep .is-error.my_new_pwd {
margin-bottom: 30px; margin-bottom: 45px;
} }
</style> </style>
+5 -2
View File
@@ -2,7 +2,8 @@
<div class="wscn-http404-container"> <div class="wscn-http404-container">
<div class="wscn-http404" style="display: flex;align-items: center"> <div class="wscn-http404" style="display: flex;align-items: center">
<div class="pic-404"> <div class="pic-404">
<img class="pic-404__parent" src="@/assets/login-bg.png" alt="404"> <!-- <img class="pic-404__parent" src="@/assets/login-bg.png" alt="404"> -->
<svg-icon icon-class="login-bg" style="width: 100%; height: 100%" />
<img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404"> <img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404"> <img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404">
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404"> <img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
@@ -56,8 +57,10 @@ export default {
.pic-404 { .pic-404 {
position: relative; position: relative;
float: left; float: left;
width: 400px; width: 500px;
height: 300px;
overflow: hidden; overflow: hidden;
margin-right: 10px;
&__parent { &__parent {
width: 100%; width: 100%;
} }
+1 -1
View File
@@ -423,7 +423,7 @@ export default {
/* margin-bottom: 40px;*/ /* margin-bottom: 40px;*/
/*}*/ /*}*/
.is-error.my_new_pwd { .is-error.my_new_pwd {
margin-bottom: 40px; margin-bottom: 45px;
} }
.flexBox { .flexBox {
display: flex; display: flex;
+40 -19
View File
@@ -205,17 +205,21 @@
" "
> >
<h1 <h1
style="text-align: center; margin-bottom: 20px" style="text-align: center; margin-bottom: 30px"
v-if="NODE_ENV === 'usa'" v-if="NODE_ENV === 'usa'"
> >
About About
</h1> </h1>
<h1 style="text-align: center; margin-bottom: 20px" v-else>关于</h1> <h1 style="text-align: center; margin-bottom: 30px" v-else>关于</h1>
<p style="margin-bottom: 20px" v-if="NODE_ENV === 'usa'"> <p style="margin-bottom: 0px" v-if="NODE_ENV === 'usa'">
{{ $t('login:title:system_title_about') }} <!-- {{ $t('login:title:system_title_about') }} -->
<svg-icon
icon-class="login-logo"
style="width: 250px; height: 71px"
/>
</p> </p>
<p style="margin-bottom: 20px" v-else>{{ $t('login:title:system') }}</p> <p style="margin-bottom: 0px" v-else>{{ $t('login:title:system') }}</p>
<p style="margin-bottom: 20px"> <p style="margin-bottom: 20px; margin-top: 0">
V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }} V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }}
</p> </p>
<p style="margin-bottom: 20px" v-if="language === 'zh'"> <p style="margin-bottom: 20px" v-if="language === 'zh'">
@@ -308,14 +312,13 @@ export default {
Img1, Img1,
toggleRoleVisible: false, toggleRoleVisible: false,
toggleRoleLoading: false, toggleRoleLoading: false,
LoginState: 0,
} }
}, },
computed: { computed: {
...mapGetters(['asyncRoutes', 'routes', 'language']), ...mapGetters(['asyncRoutes', 'routes', 'language']),
host() { host() {
return window.location.host // return window.location.host
return 'elevateimaging.ai '
}, },
}, },
watch: { watch: {
@@ -330,7 +333,8 @@ export default {
}, },
}, },
mounted() { mounted() {
zzSessionStorage.clear() let lang = zzSessionStorage.getItem('lang') || 'zh'
// zzSessionStorage.clear()
this.loginType = this.$route.query.loginType this.loginType = this.$route.query.loginType
this.location = this.$route.query.location this.location = this.$route.query.location
zzSessionStorage.setItem('loginType', this.loginType) zzSessionStorage.setItem('loginType', this.loginType)
@@ -345,9 +349,9 @@ export default {
this.setLanguage('en') this.setLanguage('en')
this.$updateDictionary() this.$updateDictionary()
} else { } else {
// this.$i18n.locale = 'zh' this.$i18n.locale = lang
// this.setLanguage('zh') this.setLanguage(lang)
// this.$updateDictionary() this.$updateDictionary()
} }
} }
this.$refs.browserTip.open() this.$refs.browserTip.open()
@@ -385,12 +389,13 @@ export default {
loginIn(Id) { loginIn(Id) {
this.loading = true this.loading = true
this.showCode = false this.showCode = false
this.LoginState = 0
if (Id) this.loginForm.UserId = Id if (Id) this.loginForm.UserId = Id
this.$store this.$store
.dispatch('user/login', this.loginForm) .dispatch('user/login', this.loginForm)
.then((res) => { .then((res) => {
this.LoginState = res.BasicInfo.LoginState if (res.BasicInfo.LoginState === 2) {
this.$message.warning(this.$t('login:message:login4'))
}
if (res.BasicInfo.IsFirstAdd) { if (res.BasicInfo.IsFirstAdd) {
// , // ,
this.$message.success(this.$t('login:message:login1')) this.$message.success(this.$t('login:message:login1'))
@@ -400,7 +405,7 @@ export default {
}) })
}, 500) }, 500)
return return
} else if (res.BasicInfo.LoginState === 1) { } else if (res.BasicInfo.NeedChangePassWord) {
// //
this.$alert( this.$alert(
this.$t('login:message:login3'), this.$t('login:message:login3'),
@@ -416,6 +421,8 @@ export default {
) )
return return
} else if (res.IsMFA) { } else if (res.IsMFA) {
zzSessionStorage.removeItem('userId')
zzSessionStorage.removeItem('identityUserId')
this.$MFA({ this.$MFA({
UserId: res.BasicInfo.IdentityUserId, UserId: res.BasicInfo.IdentityUserId,
EMail: res.BasicInfo.EMail, EMail: res.BasicInfo.EMail,
@@ -432,6 +439,8 @@ export default {
// // this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning')) // // this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
// this.$message.warning(this.$t('login:message:login4')) // this.$message.warning(this.$t('login:message:login4'))
// } // }
zzSessionStorage.removeItem('userId')
zzSessionStorage.removeItem('identityUserId')
this.changeRoleLogin() this.changeRoleLogin()
}) })
.catch(() => { .catch(() => {
@@ -453,9 +462,9 @@ export default {
if (res && res.length > 0) { if (res && res.length > 0) {
this.$store.dispatch('global/getNoticeList') this.$store.dispatch('global/getNoticeList')
this.$router.addRoutes(res) this.$router.addRoutes(res)
if (this.LoginState === 2) { // if (this.LoginState === 2) {
this.$message.warning(this.$t('login:message:login4')) // this.$message.warning(this.$t('login:message:login4'))
} // }
if (this.loginType === 'DevOps') { if (this.loginType === 'DevOps') {
this.$router.replace({ path: res[0].path }) this.$router.replace({ path: res[0].path })
return return
@@ -503,6 +512,18 @@ export default {
this.loginByRole(this.$store.state.user.roles[0].Id) this.loginByRole(this.$store.state.user.roles[0].Id)
return return
} }
if (
Array.isArray(this.$store.state.user.roles) &&
this.$store.state.user.roles.filter((item) => item.IsUserRoleDisabled)
.length ===
this.$store.state.user.roles.length - 1
) {
let role = this.$store.state.user.roles.find(
(item) => !item.IsUserRoleDisabled
)
this.loginByRole(role.Id)
return
}
return (this.toggleRoleVisible = true) return (this.toggleRoleVisible = true)
}, },
cancel() { cancel() {
+8 -2
View File
@@ -42,6 +42,7 @@
</el-form-item> </el-form-item>
<!-- 新密码 --> <!-- 新密码 -->
<el-form-item <el-form-item
class="my_new_pwd"
:label="$t('recompose:form:newPassword')" :label="$t('recompose:form:newPassword')"
prop="NewPassWord" prop="NewPassWord"
> >
@@ -144,8 +145,10 @@ export default {
} else { } else {
this.$router.push(`/login`) this.$router.push(`/login`)
} }
this.$i18n.locale = 'zh' if (!this.$i18n.locale) {
this.setLanguage('zh') //this.$i18n.locale = 'zh'
//this.setLanguage('zh')
}
this.$updateDictionary() this.$updateDictionary()
}, },
save() { save() {
@@ -219,4 +222,7 @@ input {
background-color: transparent; background-color: transparent;
caret-color: #fff; caret-color: #fff;
} }
::v-deep .is-error.my_new_pwd {
margin-bottom: 45px;
}
</style> </style>
@@ -437,7 +437,7 @@ export default {
}, },
handlePreview3(row) { handlePreview3(row) {
return this.$preview({ return this.$preview({
path: row.FilePath, path: row.Path || row.FilePath,
type: 'pdf', type: 'pdf',
title: row.FileName, title: row.FileName,
}) })
@@ -447,7 +447,7 @@ export default {
}, },
handlePreview2(row, r2) { handlePreview2(row, r2) {
return this.$preview({ return this.$preview({
path: row.fullPath, path: row.Path || row.fullPath,
type: 'pdf', type: 'pdf',
title: row.FileName, title: row.FileName,
}) })
@@ -537,7 +537,7 @@ export default {
handlePreview(row) { handlePreview(row) {
console.log(row) console.log(row)
return this.$preview({ return this.$preview({
path: row.FullPath, path: row.Path || row.FullPath,
type: 'pdf', type: 'pdf',
title: row.FileName, title: row.FileName,
}) })
@@ -333,7 +333,7 @@ export default {
}, },
preview(row) { preview(row) {
this.$preview({ this.$preview({
path: row.FullPath, path: row.Path || row.FullPath,
type: 'pdf', type: 'pdf',
title: row.FileName, title: row.FileName,
}) })
@@ -292,7 +292,7 @@ export default {
}, },
preview(row) { preview(row) {
this.$preview({ this.$preview({
path: row.FullPath, path: row.Path || row.FullPath,
type: 'pdf', type: 'pdf',
title: row.FileName, title: row.FileName,
}) })
@@ -159,7 +159,6 @@
style="width: 100%" style="width: 100%"
v-model="form.Hospital" v-model="form.Hospital"
:fetch-suggestions="querySearch" :fetch-suggestions="querySearch"
@select="handleSelect"
placeholder="" placeholder=""
></el-autocomplete> ></el-autocomplete>
</el-form-item> </el-form-item>
@@ -6,7 +6,7 @@
<template v-if="DATA.FirstName && DATA.LastName"> <template v-if="DATA.FirstName && DATA.LastName">
<div class="userInfo"> <div class="userInfo">
<span>{{ <span>{{
isEN ? DATA.FirstName + DATA.LastName : DATA.ChineseName isEN ? DATA.LastName + ' / ' + DATA.FirstName : DATA.ChineseName
}}</span> }}</span>
<span>{{ $fd('Sex', DATA.Sex) }}</span> <span>{{ $fd('Sex', DATA.Sex) }}</span>
<span v-if="isEN"> <span v-if="isEN">
@@ -269,16 +269,10 @@
:label="$t('curriculumVitae:info:form:City')" :label="$t('curriculumVitae:info:form:City')"
v-if="isEN" v-if="isEN"
> >
<el-input <el-input v-model="form.City" size="small" />
v-model="form.City"
size="small"
/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('curriculumVitae:info:form:City')" v-else> <el-form-item :label="$t('curriculumVitae:info:form:City')" v-else>
<el-input <el-input v-model="form.CityCN" size="small" />
v-model="form.CityCN"
size="small"
/>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('curriculumVitae:info:form:department')" :label="$t('curriculumVitae:info:form:department')"
@@ -757,11 +751,12 @@ export default {
if (this.reviewerId) { if (this.reviewerId) {
this.form.Id = this.reviewerId this.form.Id = this.reviewerId
} }
// console.log(this.form)
let data = Object.assign({}, this.form) let data = Object.assign({}, this.form)
if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) { // if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) {
data.HospitalName = data.HospitalId // data.HospitalName = data.HospitalId
data.HospitalId = null // data.HospitalId = null
} // }
this.loading = true this.loading = true
let res = await addOrUpdateDoctorBasicInfoAndEmployment(data) let res = await addOrUpdateDoctorBasicInfoAndEmployment(data)
this.loading = false this.loading = false
@@ -7,8 +7,9 @@
<span v-if="isAll"> <span v-if="isAll">
{{ {{
isEN isEN
? reviewerData.BasicInfoView.FirstName + ? reviewerData.BasicInfoView.LastName +
reviewerData.BasicInfoView.LastName ' / ' +
reviewerData.BasicInfoView.FirstName
: reviewerData.BasicInfoView.ChineseName : reviewerData.BasicInfoView.ChineseName
}} }}
</span> </span>
@@ -1014,7 +1015,7 @@ export default {
} }
}, },
preview(row) { preview(row) {
let path = row.FullPath || row.FilePath let path = row.Path || row.FullPath || row.FilePath
this.$preview({ this.$preview({
path: path, path: path,
type: 'pdf', type: 'pdf',
@@ -179,6 +179,7 @@ export default {
methods: { methods: {
openDialog(title, data, options = [], status) { openDialog(title, data, options = [], status) {
this.PublishVersionList = options; this.PublishVersionList = options;
this.loading = false
this.status = status; this.status = status;
this.model_cfg.visible = true; this.model_cfg.visible = true;
this.model_cfg.title = title; this.model_cfg.title = title;
+16
View File
@@ -154,6 +154,15 @@
> >
批量更新 批量更新
</el-button> </el-button>
<el-button
type="primary"
icon="el-icon-edit-outline"
size="mini"
:disabled="selectTableList.length <= 0"
@click="handleBatchUpdateToChange"
>
批量编辑
</el-button>
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@@ -380,6 +389,9 @@ export default {
mounted() { mounted() {
this.getList() this.getList()
this.getPublishVersionSelect() this.getPublishVersionSelect()
this.$EventBus.$on('il8nUpdate', (data) => {
this.getList()
})
}, },
methods: { methods: {
// //
@@ -416,6 +428,10 @@ export default {
) )
}) })
}, },
//
handleBatchUpdateToChange() {
this.$openI18n(this.selectTableList)
},
async batch(row) { async batch(row) {
let { PublishLogId, State } = row let { PublishLogId, State } = row
let data = { let data = {
+4 -1
View File
@@ -12,7 +12,7 @@
<el-form-item :label="$t('system:log:form:version')" prop="Version"> <el-form-item :label="$t('system:log:form:version')" prop="Version">
<el-input v-model="form.Version" /> <el-input v-model="form.Version" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:log:form:versionUS')" prop="Version"> <el-form-item :label="$t('system:log:form:versionUS')" prop="Version_US">
<el-input v-model="form.Version_US" /> <el-input v-model="form.Version_US" />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -100,6 +100,9 @@ export default {
}, },
{ max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` }, { max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` },
], ],
Version_US:[
{ max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` }
],
// PublishTime: [ // PublishTime: [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
+25 -14
View File
@@ -1,18 +1,24 @@
<template> <template>
<base-model v-if="config.visible" :config="config"> <base-model v-if="config.visible" :config="config">
<template slot="dialog-body"> <template slot="dialog-body">
<el-form ref="form" :model="curData" max-height="500px"> <el-table :data="curData" border style="width: 100%" size="small">
<template v-for="key in curDataArr"> <el-table-column
<el-form-item prop="key"
:key="key" :label="$t('system:loginLog:table:cfgItem')"
:label="$t(`system:loginLog:form:${key}`)" show-overflow-tooltip
label-width="120px" />
style="margin-bottom: 0px" <el-table-column
prop="value"
:label="$t('system:loginLog:table:cfgVal')"
show-overflow-tooltip
> >
<span v-if="key !== 'UserRoleList'">{{ curData[key] }}</span> <template slot-scope="scope">
<span v-if="scope.row.prop !== 'UserRoleList'">{{
scope.row.value
}}</span>
<template v-else> <template v-else>
<div <div
v-for="item in curData[key]" v-for="item in scope.row.value"
:key="item.UserTypeEnum" :key="item.UserTypeEnum"
style="margin: 0" style="margin: 0"
> >
@@ -21,9 +27,9 @@
}}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }} }}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }}
</div> </div>
</template> </template>
</el-form-item>
</template> </template>
</el-form> </el-table-column>
</el-table>
</template> </template>
<template slot="dialog-footer"> <template slot="dialog-footer">
<el-button type="primary" @click="config.visible = false"> <el-button type="primary" @click="config.visible = false">
@@ -76,12 +82,17 @@ export default {
return Object.keys(this.curData) return Object.keys(this.curData)
}, },
curData() { curData() {
if (!this.JsonObj) return {} if (!this.JsonObj) return []
let obj = JSON.parse(this.JsonObj) let obj = JSON.parse(this.JsonObj)
let curData = {} let curData = []
Object.keys(obj).forEach((key) => { Object.keys(obj).forEach((key) => {
if (this.curKeys.includes(key)) { if (this.curKeys.includes(key)) {
curData[key] = obj[key] let o = {
key: this.$t(`system:loginLog:form:${key}`),
value: obj[key],
prop: key,
}
curData.push(o)
} }
}) })
return curData return curData
+30 -1
View File
@@ -97,7 +97,32 @@
class="table" class="table"
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50">
<template slot-scope="scope">
<span
style="
display: flex;
align-items: center;
justify-content: flex-end;
"
>
<el-tooltip
class="item"
effect="dark"
:content="$t('system:loginLog:label:IsLoginUncommonly')"
placement="top"
style="margin-right: 3px"
v-if="scope.row.IsLoginUncommonly"
>
<i
v-if="scope.row.IsLoginUncommonly"
class="el-icon-warning icon-i"
></i>
</el-tooltip>
<span>{{ scope.$index + 1 }}</span>
</span>
</template>
</el-table-column>
<el-table-column <el-table-column
:label="$t('system:loginLog:table:OptType')" :label="$t('system:loginLog:table:OptType')"
prop="OptType" prop="OptType"
@@ -328,5 +353,9 @@ export default {
text-align: right; text-align: right;
} }
} }
.icon-i {
color: #f56c6c;
cursor: pointer;
}
} }
</style> </style>
+17 -5
View File
@@ -46,7 +46,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> --> </el-form-item> -->
<el-form-item :label="$t('system:userlist:table:Email')" prop="EMail"> <el-form-item :label="$t('system:userlist:table:Email')" prop="EMail">
<el-input v-model="user.EMail" /> <el-input v-model="user.EMail" :disabled="!!user.UserCode" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('system:userlist:table:Phone')" prop="Phone"> <el-form-item :label="$t('system:userlist:table:Phone')" prop="Phone">
<el-input v-model="user.Phone" /> <el-input v-model="user.Phone" />
@@ -73,7 +73,8 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('system:userlist:table:UserType')" :label="$t('system:userlist:table:UserType')"
prop="UserTypeId" prop="Roles"
v-if="type === 0"
> >
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
<el-select <el-select
@@ -85,7 +86,6 @@
style="width: 100%" style="width: 100%"
:disabled="user.CanEditUserType === false || type === 1" :disabled="user.CanEditUserType === false || type === 1"
@change="handleChange" @change="handleChange"
v-if="type === 0"
> >
<template v-for="userType of userTypeOptions"> <template v-for="userType of userTypeOptions">
<el-option <el-option
@@ -96,6 +96,14 @@
/> />
</template> </template>
</el-select> </el-select>
</div>
</el-form-item>
<el-form-item
:label="$t('system:userlist:table:UserType')"
prop="userTypeId"
v-else
>
<div style="display: flex; align-items: center">
<el-select <el-select
ref="userType" ref="userType"
v-model="Roles" v-model="Roles"
@@ -105,7 +113,6 @@
style="width: 100%" style="width: 100%"
:disabled="user.CanEditUserType === false || type === 1" :disabled="user.CanEditUserType === false || type === 1"
@change="handleChange" @change="handleChange"
v-else
> >
<template v-for="userType of userTypeOptions"> <template v-for="userType of userTypeOptions">
<el-option <el-option
@@ -291,7 +298,12 @@ export default {
getUserTypeList() { getUserTypeList() {
getUserTypeListByUserType(0).then((res) => { getUserTypeListByUserType(0).then((res) => {
if (res.IsSuccess) { if (res.IsSuccess) {
this.userTypeOptions = res.Result this.userTypeOptions = []
res.Result.forEach((item) => {
if (item.UserTypeEnum !== 21) {
this.userTypeOptions.push(item)
}
})
} }
}) })
}, },
@@ -37,7 +37,7 @@
<span> {{ $fd('IsEnable', !scope.row.IsUserRoleDisabled) }}</span> <span> {{ $fd('IsEnable', !scope.row.IsUserRoleDisabled) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common:action:action')" width="120px"> <el-table-column :label="$t('common:action:action')" min-width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@@ -165,6 +165,7 @@ export default {
this.$emit('update:visible', false) this.$emit('update:visible', false)
}, },
openAdd() { openAdd() {
this.form.roles = []
this.addVisible = true this.addVisible = true
}, },
async save() { async save() {
+61 -7
View File
@@ -20,17 +20,33 @@
:total="total" :total="total"
@getList="getList" @getList="getList"
@editCb="handleEditUser" @editCb="handleEditUser"
@sendCb="addNewUserSendEmail"
@deleteCb="handleDeleteUser" @deleteCb="handleDeleteUser"
@sortByColumn="sortByColumn" @sortByColumn="sortByColumn"
> >
<!-- 选择自定义slot --> <!-- 选择自定义slot -->
<template slot="tip-slot" slot-scope="{ scope }"> <template slot="tip-slot" slot-scope="{ scope }">
<i <i
v-if="diffTime(scope.row.LastLoginTime) >= 90" v-if="
diffTime(scope.row.LastLoginTime) >= 90 &&
diffTime(scope.row.LastChangePassWordTime) >= 90
"
class="el-icon-warning"
style="color: #f56c6c"
:title="$t('system:userlist:tip:overTimeAndoverTimePassWord')"
/>
<i
v-else-if="diffTime(scope.row.LastLoginTime) >= 90"
class="el-icon-warning" class="el-icon-warning"
style="color: #f56c6c" style="color: #f56c6c"
:title="$t('system:userlist:tip:overTime')" :title="$t('system:userlist:tip:overTime')"
/> />
<i
v-else-if="diffTime(scope.row.LastChangePassWordTime) >= 90"
class="el-icon-warning"
style="color: #f56c6c"
:title="$t('system:userlist:tip:overTimePassWord')"
/>
</template> </template>
<template slot="genderSlot" slot-scope="{ scope }"> <template slot="genderSlot" slot-scope="{ scope }">
{{ scope.row.Sex ? 'Male' : 'Female' }} {{ scope.row.Sex ? 'Male' : 'Female' }}
@@ -73,7 +89,12 @@
</box-content> </box-content>
</template> </template>
<script> <script>
import { getUserList, getUserTypeList, deleteSysUser } from '@/api/admin' import {
getUserList,
getUserTypeList,
deleteSysUser,
addNewUserSendEmail,
} from '@/api/admin'
// import { searchForm, searchHandle, columns } from './list' // import { searchForm, searchHandle, columns } from './list'
import BoxContent from '@/components/BoxContent' import BoxContent from '@/components/BoxContent'
import SearchForm from '@/components/BaseForm/search-form' import SearchForm from '@/components/BaseForm/search-form'
@@ -231,6 +252,12 @@ export default {
type: 'primary', type: 'primary',
emitKey: 'editCb', emitKey: 'editCb',
}, },
{
name: this.$t('common:button:email'),
type: 'primary',
emitKey: 'sendCb',
show: 'IsFirstAdd',
},
// { // {
// name: this.$t('common:button:delete'), // name: this.$t('common:button:delete'),
// type: 'danger', // type: 'danger',
@@ -365,15 +392,17 @@ export default {
}, },
], ],
searchHandle: [ searchHandle: [
{
label: this.$t('common:button:reset'),
type: 'primary',
emitKey: 'reset',
},
{ {
label: this.$t('common:button:search'), label: this.$t('common:button:search'),
type: 'primary', type: 'primary',
emitKey: 'search', emitKey: 'search',
icon: 'el-icon-search'
},
{
label: this.$t('common:button:reset'),
type: 'primary',
emitKey: 'reset',
icon: 'el-icon-refresh-left'
}, },
{ {
label: this.$t('common:button:new'), label: this.$t('common:button:new'),
@@ -395,6 +424,31 @@ export default {
diffTime(time) { diffTime(time) {
return moment(new Date()).diff(time, 'days') return moment(new Date()).diff(time, 'days')
}, },
async addNewUserSendEmail(row) {
try {
let confirm = await this.$confirm(
this.$t('system:userlist:confirm:sendEmail')
)
if (!confirm) return false
let data = {
IdentityUserId: row.Id,
BaseUrl: `${location.protocol}//${location.host}/login`,
RouteUrl: `${location.protocol}//${location.host}/email-recompose`,
}
this.loading = true
let res = await addNewUserSendEmail(data)
this.loading = false
if (res.IsSuccess) {
this.$message.success(
this.$t('system:userlist:message:sendEmailSuccess')
)
this.getList()
}
} catch (err) {
this.loading = false
console.log(err)
}
},
// //
getList() { getList() {
this.loading = true this.loading = true
@@ -71,6 +71,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.notice-marquee_wrapper{ .notice-marquee_wrapper{
width: 100%; width: 100%;
display: flex;
align-items: center;
/deep/ .el-dialog__header{ /deep/ .el-dialog__header{
padding: 10px; padding: 10px;
} }
@@ -146,7 +146,11 @@ export default {
return this.$store.state.user.roles return this.$store.state.user.roles
}, },
hasRole() { hasRole() {
return this.roles && this.roles.length > 1 return (
this.roles &&
this.roles.length > 1 &&
this.roles.filter((item) => !item.IsUserRoleDisabled).length > 1
)
}, },
}, },
watch: { watch: {
@@ -221,8 +225,8 @@ export default {
async logout() { async logout() {
await this.$store.dispatch('user/logout') await this.$store.dispatch('user/logout')
this.$router.push(`/login`) this.$router.push(`/login`)
this.$i18n.locale = 'zh' //this.$i18n.locale = 'zh'
this.setLanguage('zh') //this.setLanguage('zh')
this.$updateDictionary() this.$updateDictionary()
}, },
go(value) { go(value) {
@@ -379,6 +383,11 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.right-menu {
.el-menu-item.is-active {
font-weight: bolder;
}
}
.center-menu { .center-menu {
width: calc(100% - 1200px); width: calc(100% - 1200px);
} }
+3 -3
View File
@@ -119,7 +119,7 @@
v-for="item in roles" v-for="item in roles"
:key="item.Id" :key="item.Id"
:label="item.Id" :label="item.Id"
:disabled="item.isUserRoleDisabled" :disabled="item.IsUserRoleDisabled"
style="margin-bottom: 10px" style="margin-bottom: 10px"
> >
{{ item.UserTypeShortName }} {{ item.UserTypeShortName }}
@@ -333,8 +333,8 @@ export default {
} else { } else {
this.$router.push(`/login`) this.$router.push(`/login`)
} }
this.$i18n.locale = 'zh' //this.$i18n.locale = 'zh'
this.setLanguage('zh') //this.setLanguage('zh')
this.$updateDictionary() this.$updateDictionary()
}, },
}, },
+2 -2
View File
@@ -37,7 +37,7 @@
:IsCanConnectInternet="IsCanConnectInternet" :IsCanConnectInternet="IsCanConnectInternet"
v-if="activeIndex === '2'" v-if="activeIndex === '2'"
/> />
<login-log v-if="activeIndex === '3'" :id="userId" :isMine="true" /> <login-log v-if="activeIndex === '3'" :id="identityUserId" :isMine="true" />
</div> </div>
</div> </div>
</template> </template>
@@ -64,7 +64,7 @@ export default {
} }
}, },
computed: { computed: {
...mapGetters(['userId', 'userName']), ...mapGetters(['identityUserId', 'userName']),
}, },
mounted() { mounted() {
this.getUserInfo() this.getUserInfo()
+5 -4
View File
@@ -27,6 +27,7 @@
<!-- 新密码 --> <!-- 新密码 -->
<el-form-item <el-form-item
:label="$t('recompose:form:newPassword')" :label="$t('recompose:form:newPassword')"
class="my_new_pwd"
prop="NewPassWord" prop="NewPassWord"
> >
<el-input <el-input
@@ -151,15 +152,15 @@ export default {
} else { } else {
this.$router.push(`/login`) this.$router.push(`/login`)
} }
this.$i18n.locale = 'zh' //this.$i18n.locale = 'zh'
this.setLanguage('zh') //this.setLanguage('zh')
this.$updateDictionary() this.$updateDictionary()
}, },
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-form-item { ::v-deep .is-error.my_new_pwd {
margin-bottom: 30px; margin-bottom: 45px;
} }
</style> </style>
+59 -21
View File
@@ -17,7 +17,7 @@
<el-form-item :label="$t('trials:notice:table:notificationContent')"> <el-form-item :label="$t('trials:notice:table:notificationContent')">
<el-input <el-input
v-model="searchData.NoticeContent" v-model="searchData.NoticeContent"
style="width:100px;" style="width: 100px"
clearable clearable
/> />
</el-form-item> </el-form-item>
@@ -36,7 +36,11 @@
<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>
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset"> <el-button
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }} {{ $t('common:button:reset') }}
</el-button> </el-button>
</el-form-item> </el-form-item>
@@ -79,7 +83,15 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.ActualNoticeStateEnum === 0 ? 'info' : scope.row.ActualNoticeStateEnum === 1 ? 'success' : 'error'"> <el-tag
:type="
scope.row.ActualNoticeStateEnum === 0
? 'info'
: scope.row.ActualNoticeStateEnum === 1
? 'success'
: 'error'
"
>
{{ $fd('NoticeState', scope.row.ActualNoticeStateEnum) }} {{ $fd('NoticeState', scope.row.ActualNoticeStateEnum) }}
</el-tag> </el-tag>
</template> </template>
@@ -113,7 +125,12 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="OSSclientConfig.basePath + scope.row.Path" target="_blank" style="color:#428bca">{{ scope.row.FileName }}</a> <a
:href="OSSclientConfig.basePath + scope.row.Path"
target="_blank"
style="color: #428bca"
>{{ scope.row.FileName }}</a
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -124,11 +141,19 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsRead">{{ $fd('YesOrNo', scope.row.IsRead) }}</el-tag> <el-tag v-if="scope.row.IsRead">{{
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsRead) }}</el-tag> $fd('YesOrNo', scope.row.IsRead)
}}</el-tag>
<el-tag v-else type="danger">{{
$fd('YesOrNo', scope.row.IsRead)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common:action:action')" min-width="100" fixed="right"> <el-table-column
:label="$t('common:action:action')"
min-width="100"
fixed="right"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
circle circle
@@ -136,12 +161,17 @@
icon="el-icon-info" icon="el-icon-info"
@click="showDetail(scope.row)" @click="showDetail(scope.row)"
/> />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" /> <pagination
class="page"
:total="total"
:page.sync="searchData.PageIndex"
:limit.sync="searchData.PageSize"
@pagination="getList"
/>
</template> </template>
</BaseContainer> </BaseContainer>
</template> </template>
@@ -157,9 +187,10 @@ const searchDataDefault = () => {
ApplicableProjectEnum: null, ApplicableProjectEnum: null,
NoticeModeEnum: null, NoticeModeEnum: null,
NoticeStateEnum: null, NoticeStateEnum: null,
Asc: true, Asc: false,
SortField: 'PublishedTime',
PageIndex: 1, PageIndex: 1,
PageSize: 20 PageSize: 20,
} }
} }
export default { export default {
@@ -171,7 +202,7 @@ export default {
searchData: searchDataDefault(), searchData: searchDataDefault(),
list: [], list: [],
total: 0, total: 0,
loading: false loading: false,
} }
}, },
mounted() { mounted() {
@@ -180,17 +211,21 @@ export default {
methods: { methods: {
getList() { getList() {
this.loading = true this.loading = true
getUserSystemNoticeList(this.searchData).then(res => { getUserSystemNoticeList(this.searchData)
.then((res) => {
this.loading = false this.loading = false
this.list = res.Result.CurrentPageData this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount this.total = res.Result.TotalCount
}).catch(() => { this.loading = false }) })
.catch(() => {
this.loading = false
})
}, },
showDetail(row) { showDetail(row) {
var currentNoticeType = this.$fd('NoteType', row.NoticeTypeEnum) var currentNoticeType = this.$fd('NoteType', row.NoticeTypeEnum)
if (row.IsRead || row.ActualNoticeStateEnum !== 1) { if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
this.$alert(row.NoticeContent, currentNoticeType, { this.$alert(row.NoticeContent, currentNoticeType, {
showConfirmButton: false showConfirmButton: false,
}) })
} else { } else {
const h = this.$createElement const h = this.$createElement
@@ -200,18 +235,22 @@ export default {
beforeClose: (action, instance, done) => { beforeClose: (action, instance, done) => {
if (action === 'confirm') { if (action === 'confirm') {
instance.confirmButtonLoading = true instance.confirmButtonLoading = true
setSystemNoticeHaveRead(row.Id).then(async res => { setSystemNoticeHaveRead(row.Id)
.then(async (res) => {
if (res.IsSuccess) { if (res.IsSuccess) {
await this.$store.dispatch('global/getNoticeList') await this.$store.dispatch('global/getNoticeList')
this.getList() this.getList()
} }
instance.confirmButtonLoading = false instance.confirmButtonLoading = false
done() done()
}).catch(() => { instance.confirmButtonLoading = false }) })
.catch(() => {
instance.confirmButtonLoading = false
})
} else { } else {
done() done()
} }
} },
}) })
} }
}, },
@@ -237,10 +276,9 @@ export default {
this.searchData.SortField = column.prop this.searchData.SortField = column.prop
this.searchData.PageIndex = 1 this.searchData.PageIndex = 1
this.getList() this.getList()
} },
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>
@@ -76,7 +76,7 @@
style="width: 120px" style="width: 120px"
> >
<el-option <el-option
v-for="i of $d.YesOrNo" v-for="i of $d.TrainingStatusEnum"
:key="'IsConfirmed' + i.label" :key="'IsConfirmed' + i.label"
:value="i.value" :value="i.value"
:label="i.label" :label="i.label"
@@ -90,7 +90,7 @@
style="width: 120px" style="width: 120px"
> >
<el-option <el-option
v-for="i of $d.YesOrNo" v-for="i of $d.TrainingStatus"
:key="'IsDeleted' + i.label" :key="'IsDeleted' + i.label"
:value="i.value" :value="i.value"
:label="i.label" :label="i.label"
@@ -176,10 +176,10 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsDeleted" type="danger">{{ <el-tag v-if="scope.row.IsDeleted" type="danger">{{
$fd('YesOrNo', scope.row.IsDeleted) $fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag> }}</el-tag>
<el-tag v-else type="primary">{{ <el-tag v-else type="primary">{{
$fd('YesOrNo', scope.row.IsDeleted) $fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@@ -199,11 +199,11 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="!scope.row.IsConfirmed" type="primary">{{ <el-tag v-if="scope.row.IsConfirmed" type="primary">{{
$fd('YesOrNo', scope.row.IsConfirmed) $fd('TrainingStatusEnum', scope.row.IsConfirmed)
}}</el-tag> }}</el-tag>
<el-tag v-else type="danger">{{ <el-tag v-else type="danger">{{
$fd('YesOrNo', scope.row.IsConfirmed) $fd('TrainingStatusEnum', scope.row.IsConfirmed)
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@@ -1,7 +1,7 @@
<template> <template>
<BaseContainer> <BaseContainer>
<template slot="search-container"> <template slot="search-container">
<div style="margin-left:auto;"> <div style="margin-left: auto">
<!-- Approve --> <!-- Approve -->
</div> </div>
</template> </template>
@@ -27,17 +27,26 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> --> <!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
<span style="color: #428bca;cursor: pointer;" @click="go(`/trialsResume?doctorId=${scope.row.Id}&trialId=${$route.query.trialId}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span> <span
style="color: #428bca; cursor: pointer"
@click="
go(
`/trialsResume?doctorId=${scope.row.Id}&trialId=${$route.query.trialId}&token=${token}`
)
"
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<!-- Name CN --> <!-- Name CN -->
<!-- <el-table-column <el-table-column
v-if="!isEN"
prop="ChineseName" prop="ChineseName"
:label="$t('trials:seletctedReviews:table:nameCN')" :label="$t('trials:seletctedReviews:table:nameCN')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable="custom" sortable="custom"
/> --> />
<!-- ID --> <!-- ID -->
<el-table-column <el-table-column
prop="Code" prop="Code"
@@ -53,8 +62,12 @@
min-width="120" min-width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.DoctorTrialState !== 5" type="primary">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag> <el-tag v-if="scope.row.DoctorTrialState !== 5" type="primary">{{
<el-tag v-else type="danger">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag> $fd('DoctorTrialState', scope.row.DoctorTrialState)
}}</el-tag>
<el-tag v-else type="danger">{{
$fd('DoctorTrialState', scope.row.DoctorTrialState)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- Approver --> <!-- Approver -->
@@ -70,19 +83,34 @@
min-width="150" min-width="150"
/> />
</el-table> </el-table>
<pagination class="page" :total="total" :page.sync="listQuery.PageIndex" :limit.sync="listQuery.PageSize" @pagination="getList" /> <pagination
class="page"
:total="total"
:page.sync="listQuery.PageIndex"
:limit.sync="listQuery.PageSize"
@pagination="getList"
/>
</template> </template>
</BaseContainer> </BaseContainer>
</template> </template>
<script> <script>
import BaseContainer from '@/components/BaseContainer' import BaseContainer from '@/components/BaseContainer'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { getSubmissionOrApprovalReviewerList, approveReviewer } from '@/api/trials' import {
getSubmissionOrApprovalReviewerList,
approveReviewer,
} from '@/api/trials'
import store from '@/store' import store from '@/store'
const enrollState = 4 const enrollState = 4
export default { export default {
name: 'Approval', name: 'Approval',
components: { BaseContainer, Pagination }, components: { BaseContainer, Pagination },
props: {
isEN: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
list: [], list: [],
@@ -93,15 +121,17 @@ export default {
PageIndex: 1, PageIndex: 1,
PageSize: 20, PageSize: 20,
Asc: false, Asc: false,
SortField: '' SortField: '',
}, },
total: 0, total: 0,
listLoading: false, listLoading: false,
approveIdArr: [], approveIdArr: [],
token: store.getters.token token: store.getters.token,
} }
}, },
created() { this.initPage() }, created() {
this.initPage()
},
methods: { methods: {
go(path) { go(path) {
window.open(path) window.open(path)
@@ -112,28 +142,36 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
this.listQuery.TrialId = this.$route.query.trialId this.listQuery.TrialId = this.$route.query.trialId
getSubmissionOrApprovalReviewerList(this.listQuery).then(res => { getSubmissionOrApprovalReviewerList(this.listQuery)
.then((res) => {
this.listLoading = false this.listLoading = false
this.list = res.Result.CurrentPageData this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount this.total = res.Result.TotalCount
// eslint-disable-next-line handle-callback-err // eslint-disable-next-line handle-callback-err
}).catch(() => { this.listLoading = false }) })
.catch(() => {
this.listLoading = false
})
}, },
handleApprove() { handleApprove() {
// Confirm the approval? // Confirm the approval?
this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), { this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), {
type: 'warning' type: 'warning',
}).then(() => { }).then(() => {
this.loading = true this.loading = true
const trialId = this.$route.query.trialId const trialId = this.$route.query.trialId
approveReviewer(trialId, this.approveIdArr, 1).then(res => { approveReviewer(trialId, this.approveIdArr, 1)
.then((res) => {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$emit('nextStep', 'confirmation') this.$emit('nextStep', 'confirmation')
} }
}).catch(() => {this.loading = false}) })
.catch(() => {
this.loading = false
})
}) })
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
@@ -158,12 +196,16 @@ export default {
return 'selected' return 'selected'
} }
}, },
handleSelectTable(row) { return row.DoctorTrialState !== 8 }, handleSelectTable(row) {
return row.DoctorTrialState !== 8
},
handleDetail(row) { handleDetail(row) {
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}` }) const { href } = this.$router.resolve({
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
})
window.open(href, '_blank') window.open(href, '_blank')
} },
} },
} }
</script> </script>
@@ -50,13 +50,14 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- Name CN --> <!-- Name CN -->
<!-- <el-table-column <el-table-column
v-if="!isEN"
prop="ChineseName" prop="ChineseName"
:label="$t('trials:seletctedReviews:table:nameCN')" :label="$t('trials:seletctedReviews:table:nameCN')"
show-overflow-tooltip show-overflow-tooltip
min-width="120" min-width="120"
sortable="custom" sortable="custom"
/> --> />
<!-- ID --> <!-- ID -->
<el-table-column <el-table-column
prop="Code" prop="Code"
@@ -119,6 +120,12 @@ import store from '@/store'
export default { export default {
name: 'Confirmation', name: 'Confirmation',
components: { BaseContainer, Pagination }, components: { BaseContainer, Pagination },
props: {
isEN: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
list: [], list: [],
@@ -186,13 +186,14 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- Name CN --> <!-- Name CN -->
<!-- <el-table-column <el-table-column
v-if="!isEN"
prop="ChineseName" prop="ChineseName"
:label="$t('trials:seletctedReviews:table:nameCN')" :label="$t('trials:seletctedReviews:table:nameCN')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
width="120" width="120"
/> --> />
<el-table-column <el-table-column
prop="DoctorUserName" prop="DoctorUserName"
@@ -483,6 +484,12 @@ export default {
curriculumVitae, curriculumVitae,
}, },
dicts: ['ReadingType', 'Subspeciality', 'Position', 'Rank'], dicts: ['ReadingType', 'Subspeciality', 'Position', 'Rank'],
props: {
isEN: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
list: [], list: [],
@@ -60,13 +60,14 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- Name CN --> <!-- Name CN -->
<!-- <el-table-column <el-table-column
v-if="!isEN"
prop="ChineseName" prop="ChineseName"
:label="$t('trials:seletctedReviews:table:nameCN')" :label="$t('trials:seletctedReviews:table:nameCN')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
min-width="120" min-width="120"
/> --> />
<!-- ID --> <!-- ID -->
<el-table-column <el-table-column
prop="Code" prop="Code"
@@ -166,6 +167,12 @@ const enrollState = 1
export default { export default {
name: 'Submission', name: 'Submission',
components: { BaseContainer, Pagination }, components: { BaseContainer, Pagination },
props: {
isEN: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
list: [], list: [],
@@ -8,50 +8,83 @@
<div v-if="trialInfo" class="trial-wrapper"> <div v-if="trialInfo" class="trial-wrapper">
<div class="div-row"> <div class="div-row">
<div class="div-col"> <div class="div-col">
<label class="el-label">{{ $t('trials:trials-list:form:indication:') }}</label> <label class="el-label">{{
<span>{{$fd('Indication', trialInfo.IndicationEnum)}}{{trialInfo.Indication ? '-' + trialInfo.Indication : '' }}</span> $t('trials:trials-list:form:indication:')
}}</label>
<span
>{{ $fd('Indication', trialInfo.IndicationEnum)
}}{{
trialInfo.Indication ? '-' + trialInfo.Indication : ''
}}</span
>
</div> </div>
<div class="div-col"> <div class="div-col">
<label class="el-label">{{ $t('trials:trials-list:form:declarationType:') }}</label> <label class="el-label">{{
$t('trials:trials-list:form:declarationType:')
}}</label>
<el-tooltip <el-tooltip
class="item" class="item"
:content="trialInfo.DeclarationTypeEnumList.map(v => $fd('DeclarationType', v)).join(', ')" :content="
trialInfo.DeclarationTypeEnumList.map((v) =>
$fd('DeclarationType', v)
).join(', ')
"
placement="top" placement="top"
> >
<span>{{ trialInfo.DeclarationTypeEnumList.map(v => $fd('DeclarationType', v)).join(', ') }}</span> <span>{{
trialInfo.DeclarationTypeEnumList.map((v) =>
$fd('DeclarationType', v)
).join(', ')
}}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="div-col"> <div class="div-col">
<label class="el-label">{{ $t('trials:trials-list:form:criterion:') }}</label> <label class="el-label">{{
$t('trials:trials-list:form:criterion:')
}}</label>
<el-tooltip <el-tooltip
class="item" class="item"
:content="(trialInfo.CriterionList && trialInfo.CriterionList.length>0)? trialInfo.CriterionList.join(', '): ''" :content="
trialInfo.CriterionList && trialInfo.CriterionList.length > 0
? trialInfo.CriterionList.join(', ')
: ''
"
placement="top" placement="top"
> >
<span>{{ (trialInfo.CriterionList && trialInfo.CriterionList.length>0)? trialInfo.CriterionList.join(', '): '' }}</span> <span>{{
trialInfo.CriterionList && trialInfo.CriterionList.length > 0
? trialInfo.CriterionList.join(', ')
: ''
}}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="div-col"> <div class="div-col"></div>
</div>
</div> </div>
<div class="div-row"> <div class="div-row">
<div class="div-col"> <div class="div-col">
<label class="el-label">{{ $t('trials:trials-list:form:expedited:') }}</label> <label class="el-label">{{
$t('trials:trials-list:form:expedited:')
}}</label>
<span>{{ $fd('YesOrNoForInt', trialInfo.Expedited) }}</span> <span>{{ $fd('YesOrNoForInt', trialInfo.Expedited) }}</span>
</div> </div>
<div class="div-col"> <div class="div-col">
<label class="el-label">{{ $t('trials:trials-list:form:totalReviewers:') }}</label> <label class="el-label">{{
$t('trials:trials-list:form:totalReviewers:')
}}</label>
<span>{{ trialInfo.TotalReviewers }}</span> <span>{{ trialInfo.TotalReviewers }}</span>
</div> </div>
<div class="div-col"> <div class="div-col">
<label class="el-label">{{ $t('trials:trials-list:form:typeofReviewers:') }}</label> <label class="el-label">{{
<span>{{ trialInfo.AttendedReviewerTypeEnumList.map(v => $fd('AttendedReviewerType', v)).join(', ') }}</span> $t('trials:trials-list:form:typeofReviewers:')
</div> }}</label>
<div class="div-col"> <span>{{
trialInfo.AttendedReviewerTypeEnumList.map((v) =>
$fd('AttendedReviewerType', v)
).join(', ')
}}</span>
</div> </div>
<div class="div-col"></div>
</div> </div>
</div> </div>
<div class="title"> <div class="title">
@@ -60,7 +93,12 @@
</div> </div>
</div> </div>
<div class="step-wrapper"> <div class="step-wrapper">
<el-steps :active="activeStatus" style="margin-top: 70px" align-center :space="300"> <el-steps
:active="activeStatus"
style="margin-top: 70px"
align-center
:space="300"
>
<!-- Selection --> <!-- Selection -->
<el-step <el-step
:title="$t('trials:seletctedReviews:timeline:selection')" :title="$t('trials:seletctedReviews:timeline:selection')"
@@ -93,21 +131,25 @@
<div class="step-content"> <div class="step-content">
<Selection <Selection
v-if="activeStatus === 0" v-if="activeStatus === 0"
:isEN="isEN"
@nextStep="nextStep" @nextStep="nextStep"
/> />
<Submission <Submission
v-if="activeStatus === 1" v-if="activeStatus === 1"
ref="submission" ref="submission"
:isEN="isEN"
@nextStep="nextStep" @nextStep="nextStep"
/> />
<Approval <Approval
v-if="activeStatus === 2" v-if="activeStatus === 2"
ref="approval" ref="approval"
:isEN="isEN"
@nextStep="nextStep" @nextStep="nextStep"
/> />
<Confirmation <Confirmation
v-if="activeStatus === 3" v-if="activeStatus === 3"
ref="confirmation" ref="confirmation"
:isEN="isEN"
/> />
</div> </div>
</div> </div>
@@ -127,18 +169,30 @@ export default {
trialInfo: null, trialInfo: null,
TrialId: '', TrialId: '',
activeStatus: null, activeStatus: null,
TrialMaxState: 0 TrialMaxState: 0,
} }
}, },
mounted() { mounted() {
this.TrialId = this.$route.query.trialId this.TrialId = this.$route.query.trialId
this.initPage() this.initPage()
}, },
computed: {
isEN() {
return this.$i18n.locale !== 'zh'
},
},
methods: { methods: {
initPage() { initPage() {
getTrialInfoAndMaxTrialState(this.TrialId).then(res => { getTrialInfoAndMaxTrialState(this.TrialId).then((res) => {
this.trialInfo = res.Result.TrialView this.trialInfo = res.Result.TrialView
var activeStatus = res.Result.TrialMaxState < 1 ? 0 : res.Result.TrialMaxState < 5 ? 1 : res.Result.TrialMaxState < 8 ? 2 : 3 var activeStatus =
res.Result.TrialMaxState < 1
? 0
: res.Result.TrialMaxState < 5
? 1
: res.Result.TrialMaxState < 8
? 2
: 3
this.activeStatus = activeStatus this.activeStatus = activeStatus
this.TrialMaxState = activeStatus this.TrialMaxState = activeStatus
}) })
@@ -147,9 +201,9 @@ export default {
this.activeStatus = step this.activeStatus = step
}, },
nextStep(stepName) { nextStep(stepName) {
this.activeStatus = this.activeStatus === 3 ? 3 : this.activeStatus + 1; this.activeStatus = this.activeStatus === 3 ? 3 : this.activeStatus + 1
if (stepName === 'confirmation') { if (stepName === 'confirmation') {
this.activeStatus = 3; this.activeStatus = 3
} }
this.TrialMaxState = this.activeStatus this.TrialMaxState = this.activeStatus
this.$nextTick( this.$nextTick(
@@ -157,9 +211,8 @@ export default {
this.$refs[stepName].getList() this.$refs[stepName].getList()
}.bind(this) }.bind(this)
) )
} },
},
}
} }
</script> </script>
<style lang="scss"> <style lang="scss">
@@ -217,7 +270,6 @@ export default {
.div-textarea { .div-textarea {
display: inline-block; display: inline-block;
} }
} }
} }
@@ -25,7 +25,7 @@
<!-- 是否签署 --> <!-- 是否签署 -->
<el-form-item :label="$t('trials:self-attachment:table:isSign')"> <el-form-item :label="$t('trials:self-attachment:table:isSign')">
<el-select v-model="searchData.IsSign" clearable style="width:120px;"> <el-select v-model="searchData.IsSign" clearable style="width:120px;">
<template v-for="item of $d.YesOrNo"> <template v-for="item of $d.TrainingStatusEnum">
<el-option v-if="item.raw.ValueCN !== '无'" :label="item.label" :value="item.value" :key="item.id"/> <el-option v-if="item.raw.ValueCN !== '无'" :label="item.label" :value="item.value" :key="item.id"/>
</template> </template>
</el-select> </el-select>
@@ -77,8 +77,8 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsDeleted" type="danger">{{ $fd('YesOrNo', scope.row.IsDeleted) }}</el-tag> <el-tag v-if="scope.row.IsDeleted" type="danger">{{ $fd('TrainingStatus', scope.row.IsDeleted) }}</el-tag>
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsDeleted) }}</el-tag> <el-tag v-else type="primary">{{ $fd('TrainingStatus', scope.row.IsDeleted) }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 上传时间 --> <!-- 上传时间 -->
@@ -96,8 +96,8 @@
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsConfirmed" type="primary">{{ $fd('YesOrNo', scope.row.IsConfirmed) }}</el-tag> <el-tag v-if="scope.row.IsConfirmed" type="primary">{{ $fd('TrainingStatusEnum', scope.row.IsConfirmed) }}</el-tag>
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsConfirmed) }}</el-tag> <el-tag v-else type="danger">{{ $fd('TrainingStatusEnum', scope.row.IsConfirmed) }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<!-- 签署时间 --> <!-- 签署时间 -->
@@ -270,7 +270,7 @@
v-hasPermi="[ v-hasPermi="[
'trials:trials-panel:attachments:site-research:auidt', 'trials:trials-panel:attachments:site-research:auidt',
]" ]"
:disabled="scope.row.State === 0 || scope.row.State === 3" :disabled="scope.row.State === 0 || scope.row.State === 3 || scope.row.IsDeleted"
circle circle
:title="$t('trials:researchRecord:action:view')" :title="$t('trials:researchRecord:action:view')"
icon="el-icon-s-check" icon="el-icon-s-check"
@@ -332,13 +332,12 @@
<template slot="dialog-body"> <template slot="dialog-body">
<div style="width: 100%; display: flex"> <div style="width: 100%; display: flex">
<div class="shareLink"> <div class="shareLink">
<div> <!-- <div>
<i style="color: #428bca" class="el-icon-success" /> <i style="color: #428bca" class="el-icon-success" />
<!-- 成功创建调查表链接 -->
<span>{{ <span>{{
$t('trials:researchRecord:message:createLinkSuccessfully') $t('trials:researchRecord:message:createLinkSuccessfully')
}}</span> }}</span>
</div> </div> -->
<div style="margin: 10px 0"> <div style="margin: 10px 0">
<!-- 链接 --> <!-- 链接 -->
{{ $t('trials:researchRecord:label:link') }} {{ $t('trials:researchRecord:label:link') }}
@@ -203,7 +203,7 @@
</template> </template>
<script> <script>
// import { submitTableQuestion } from '@/api/trials' // import { submitTableQuestion } from '@/api/trials'
import { saveTableQuestionMark, submitTaskRowInfo, deleteTableQuestionMark } from '@/api/reading' import { saveTableQuestionMark, submitTaskRowInfo, deleteTableQuestionMark, deleteSingleTableQuestionMark } from '@/api/reading'
import DicomEvent from './../DicomEvent' import DicomEvent from './../DicomEvent'
import store from '@/store' import store from '@/store'
export default { export default {
@@ -273,7 +273,8 @@ export default {
digitPlaces: 2, digitPlaces: 2,
isMeasurableId: '', isMeasurableId: '',
isExitsMarks: false, isExitsMarks: false,
isDisabledMeasurableRadio: false isDisabledMeasurableRadio: false,
liverSeg: ''
} }
}, },
mounted() { mounted() {
@@ -298,37 +299,40 @@ export default {
if (item.DictionaryCode) { if (item.DictionaryCode) {
val = isNaN(parseInt(this.answers[item.Id])) ? this.answers[item.Id] : parseInt(this.answers[item.Id]) val = isNaN(parseInt(this.answers[item.Id])) ? this.answers[item.Id] : parseInt(this.answers[item.Id])
} }
if (item.Id === this.isMeasurableId && !isNaN(parseInt(this.questionForm[item.Id]))) {
//
console.log(this.questionForm[item.Id])
} else {
this.$set(this.questionForm, item.Id, val) this.$set(this.questionForm, item.Id, val)
}
}) })
this.$set(this.questionForm, 'MeasureData', this.answers.MeasureData ? JSON.parse(this.answers.MeasureData) : '') this.$set(this.questionForm, 'MeasureData', this.answers.MeasureData ? JSON.parse(this.answers.MeasureData) : '')
this.$set(this.questionForm, 'RowIndex', this.answers.RowIndex ? this.answers.RowIndex : '') this.$set(this.questionForm, 'RowIndex', this.answers.RowIndex ? this.answers.RowIndex : '')
this.$set(this.questionForm, 'RowId', this.answers.RowId ? this.answers.RowId : '') this.$set(this.questionForm, 'RowId', this.answers.RowId ? this.answers.RowId : '')
//
if (this.isCurrentTask && this.readingTaskState < 2) {
let arr = JSON.parse(this.answers.TableQuestionMarkList)
let isExitsMarks = arr.findIndex(i=>i.MeasureData) > -1
if (isExitsMarks && parseInt(this.questionForm[this.isMeasurableId]) === 0) {
this.$set(this.questionForm, this.isMeasurableId, 1)
}
}
// saveTypeEnum 01访/2 // saveTypeEnum 01访/2
let isMeasurable = this.getQuestionVal(1105) let isMeasurable = this.getQuestionVal(1105)
if (this.questionForm.saveTypeEnum !== 1) { const mean = this.getQuestionVal(1104)
this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2) if (this.questionForm.saveTypeEnum !== 1 && this.isCurrentTask && this.readingTaskState < 2) {
this.$set(this.questionForm, 'saveTypeEnum', parseInt(isMeasurable) === 1 && isNaN(parseFloat(mean)) ? 1 : 2)
} }
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex) this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
this.lesionMark = this.getLesionName(this.orderMark, 1101) this.lesionMark = this.getLesionName(this.orderMark, 1101)
this.originalQuestionForm = { ...this.questionForm } this.originalQuestionForm = { ...this.questionForm }
this.markList = [] this.markList = []
this.isExitsMarks = false this.isExitsMarks = false
this.isDisabledMeasurableRadio = false this.isDisabledMeasurableRadio = false
let seg = this.getQuestionVal(1106)
this.liverSeg = this.$fd('LiverSegmentation', seg)
if (this.answers.TableQuestionMarkList) { if (this.answers.TableQuestionMarkList) {
let arr = JSON.parse(this.answers.TableQuestionMarkList) let arr = JSON.parse(this.answers.TableQuestionMarkList)
arr.map(i=>{ arr.map(i=>{
if (i.MeasureData) { if (i.MeasureData) {
this.isExitsMarks = true this.isExitsMarks = true
if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1) { if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1 && this.isCurrentTask && this.readingTaskState < 2) {
this.isDisabledMeasurableRadio = true this.isDisabledMeasurableRadio = true
} }
i.MeasureData = JSON.parse(i.MeasureData) i.MeasureData = JSON.parse(i.MeasureData)
@@ -336,12 +340,15 @@ export default {
this.markList.push({tableQuestionId: i.TableQuestionId, measureData: i, saveEnum: 1}) this.markList.push({tableQuestionId: i.TableQuestionId, measureData: i, saveEnum: 1})
}) })
} }
const mean = this.getQuestionVal(1104)
let newMean = this.getMean() let newMean = this.getMean()
if (newMean !== mean) { if (newMean !== mean) {
let meanId = this.getQuestionId(1104) let meanId = this.getQuestionId(1104)
this.$set(this.questionForm, meanId, newMean ? newMean : '') this.$set(this.questionForm, meanId, newMean ? newMean : '')
} }
if (this.questionForm.saveTypeEnum === 1 && this.isCurrentTask && this.readingTaskState < 2) {
this.setQuestions()
}
this.isRender = true this.isRender = true
// loading.close() // loading.close()
}, },
@@ -398,7 +405,11 @@ export default {
} else if (qs.QuestionMark === 1105) { } else if (qs.QuestionMark === 1105) {
if (!v) { if (!v) {
let meanId = this.getQuestionId(1104) let meanId = this.getQuestionId(1104)
this.$set(this.questionForm, meanId, 'NA') this.$set(this.questionForm, meanId, 'NE')
} else {
let mean = this.getMean()
let meanId = this.getQuestionId(1104)
this.$set(this.questionForm, meanId, mean)
} }
} }
this.setQuestions() this.setQuestions()
@@ -413,9 +424,12 @@ export default {
if ( isMeasurable && !isNaN(parseFloat(l1)) && !isNaN(parseFloat(l2)) && !isNaN(parseFloat(l3))) { if ( isMeasurable && !isNaN(parseFloat(l1)) && !isNaN(parseFloat(l2)) && !isNaN(parseFloat(l3))) {
const sum = l1 + l2 + l3 const sum = l1 + l2 + l3
mean = sum / 3 mean = sum / 3
return parseFloat(mean.toFixed(this.digitPlaces))
} else if (isMeasurable === 0) {
return 'NE'
} else {
return ''
} }
return mean ? mean.toFixed(this.digitPlaces) : '';
}, },
setMeasureData(measureData, isInit = false) { setMeasureData(measureData, isInit = false) {
return new Promise(resolve => { return new Promise(resolve => {
@@ -428,7 +442,8 @@ export default {
// //
measureData.data.remark = this.getLesionName(this.orderMark, this.activeQuestionMark) measureData.data.remark = this.getLesionName(this.orderMark, this.activeQuestionMark)
} }
this.$set(this.questionForm, measureData.tableQuestionId, measureData.data.cachedStats.mean) let val = measureData.data.cachedStats.mean / 10
this.$set(this.questionForm, measureData.tableQuestionId, val.toFixed(this.digitPlaces))
data = { data = {
Id: '', Id: '',
StudyId: measureData.studyId, StudyId: measureData.studyId,
@@ -521,6 +536,9 @@ export default {
if (confirm !== 'confirm') return if (confirm !== 'confirm') return
let measureData = Object.assign({}, this.markList[i].measureData) let measureData = Object.assign({}, this.markList[i].measureData)
if (measureData.Id) {
await deleteSingleTableQuestionMark({Id: measureData.Id}, 11)
}
// measureData // measureData
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: measureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, orderMarkName: measureData.OrderMarkName}) await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: measureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, orderMarkName: measureData.OrderMarkName})
DicomEvent.$emit('getMeasureData') DicomEvent.$emit('getMeasureData')
@@ -715,6 +733,7 @@ export default {
return new Blob([bytesCode], { type: imgtype }) return new Blob([bytesCode], { type: imgtype })
}, },
async handleSave() { async handleSave() {
try {
const valid = await this.$refs.measurementForm.validate() const valid = await this.$refs.measurementForm.validate()
if (!valid) return if (!valid) return
if (parseInt(this.questionForm[this.isMeasurableId]) === 1) { if (parseInt(this.questionForm[this.isMeasurableId]) === 1) {
@@ -722,7 +741,8 @@ export default {
let i = this.markList.findIndex(i=>i.saveEnum === 0) let i = this.markList.findIndex(i=>i.saveEnum === 0)
if (i > -1) { if (i > -1) {
// //
this.$message.warning(this.$t('trials:MRIPDFF:message:message1')) this.$alert(this.$t('trials:MRIPDFF:message:message1'))
// this.$message.warning(this.$t('trials:MRIPDFF:message:message1'))
return return
} }
} else { } else {
@@ -743,7 +763,7 @@ export default {
let l3Id = this.getQuestionId(1103) let l3Id = this.getQuestionId(1103)
this.$set(this.questionForm, l3Id, '') this.$set(this.questionForm, l3Id, '')
let meanId = this.getQuestionId(1104) let meanId = this.getQuestionId(1104)
this.$set(this.questionForm, meanId, 'NA') this.$set(this.questionForm, meanId, 'NE')
} }
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
@@ -798,6 +818,9 @@ export default {
console.log(e) console.log(e)
loading.close() loading.close()
} }
} catch (e) {
console.log(e)
}
}, },
async handleClose() { async handleClose() {
this.$emit('close') this.$emit('close')
@@ -839,6 +862,9 @@ export default {
/deep/ .el-button--mini, .el-button--mini.is-round { /deep/ .el-button--mini, .el-button--mini.is-round {
padding: 7px 10px; padding: 7px 10px;
} }
/deep/ .el-input-group__append, .el-input-group__prepend {
padding: 0 10px;
}
.el-form-item__content .el-form-item__content
.el-select{ .el-select{
width: 100%; width: 100%;
@@ -33,13 +33,13 @@
<div class="title">{{ item.QuestionName }}</div> <div class="title">{{ item.QuestionName }}</div>
</div> </div>
<div style="color: #ddd;text-align: left;padding: 5px 10px;border-bottom: 1px solid #5a5a5a; font-size: 15px;"> <div style="color: #ddd;text-align: left;padding: 5px 10px;border-bottom: 1px solid #5a5a5a; font-size: 15px;">
<el-row :gutter="20"> <el-row >
<!-- 分段 --> <!-- 分段 -->
<el-col :span="7">{{$t('trials:MRIPDFF:label:col1')}}</el-col> <el-col :span="14">{{$t('trials:MRIPDFF:label:col1')}}</el-col>
<!-- 是否可测量 --> <!-- 是否可测量 -->
<el-col :span="8">{{$t('trials:MRIPDFF:label:col2')}}</el-col> <!-- <el-col :span="7">{{$t('trials:MRIPDFF:label:col2')}}</el-col> -->
<!-- 平均值 --> <!-- 平均值 -->
<el-col :span="6">{{$t('trials:MRIPDFF:label:col3')}}</el-col> <el-col :span="7">{{$t('trials:MRIPDFF:label:col3')}}</el-col>
</el-row> </el-row>
</div> </div>
@@ -67,14 +67,14 @@
<el-tooltip v-if="readingTaskState<2 && parseInt(item.TableQuestions.Answers[i].saveTypeEnum) ===1" class="item" effect="dark" :content="$t('trials:reading:button:incompleteInfor')" placement="bottom"> <el-tooltip v-if="readingTaskState<2 && parseInt(item.TableQuestions.Answers[i].saveTypeEnum) ===1" class="item" effect="dark" :content="$t('trials:reading:button:incompleteInfor')" placement="bottom">
<i class="el-icon-warning" style="color:#ff9800" /> <i class="el-icon-warning" style="color:#ff9800" />
</el-tooltip> </el-tooltip>
<div style="position: absolute;left: 90px;top: 2px;"> <div style="position: absolute;right: 0px;top: 2px;">
<!-- white-space: nowrap;overflow: hidden;text-overflow: ellipsis; --> <!-- white-space: nowrap;overflow: hidden;text-overflow: ellipsis; -->
<div style="font-size: 13px;width:220px;height: 30px;"> <div style="font-size: 13px;width:110px;height: 30px;">
<div style="display: inline-block;margin-left:10px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:110px"> <!-- <div style="display: inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:95px">
{{ $fd('ReadingYesOrNo', parseInt(item.TableQuestions.Answers[i].isMeasurable)) }} {{ $fd('ReadingYesOrNo', parseInt(item.TableQuestions.Answers[i].isMeasurable)) }}
</div> </div> -->
<div style="display: inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:80px"> <div style="display: inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:50px">
{{ item.TableQuestions.Answers[i].mean }} {{ isNaN(parseFloat(item.TableQuestions.Answers[i].mean)) ? item.TableQuestions.Answers[i].mean : `${item.TableQuestions.Answers[i].mean}%` }}
</div> </div>
</div> </div>
</div> </div>
@@ -513,7 +513,7 @@ export default {
item.TableQuestions.Answers.map(t => { item.TableQuestions.Answers.map(t => {
const refName = `${item.Id}_${t.RowIndex}` const refName = `${item.Id}_${t.RowIndex}`
if (this.$refs[refName] && this.$refs[refName][0] && this.$refs[refName][0].questionForm.saveTypeEnum !== 2) { if (this.$refs[refName] && this.$refs[refName][0] && this.$refs[refName][0].questionForm.saveTypeEnum !== 2) {
var lessionName = this.getLesionName(item.OrderMark, t.RowIndex) var lessionName = this.$refs[refName][0].liverSeg
arr.push({ lessionName: lessionName, rowIndex: t.RowIndex, questionId: item.Id }) arr.push({ lessionName: lessionName, rowIndex: t.RowIndex, questionId: item.Id })
} }
}) })
@@ -57,7 +57,7 @@
:data="taskQuestions" :data="taskQuestions"
row-key="Id" row-key="Id"
border border
default-expand-all :expand-row-keys="expandedRows"
:height="height" :height="height"
:tree-props="{children: 'Childrens', hasChildren: 'hasChildren'}" :tree-props="{children: 'Childrens', hasChildren: 'hasChildren'}"
size="mini" size="mini"
@@ -319,7 +319,8 @@ export default {
assessmentQuestions: [], assessmentQuestions: [],
tLesionCount: null, tLesionCount: null,
ntLesionCount: null, ntLesionCount: null,
openWindow: null openWindow: null,
expandedRows: []
} }
}, },
computed: { computed: {
@@ -458,6 +459,18 @@ export default {
const arr = [] const arr = []
if (questions.length !== 0) { if (questions.length !== 0) {
questions.forEach((item) => { questions.forEach((item) => {
if (this.CriterionType === 21) {
if (!this.isShowDetail) {
if (!item.RowId) {
this.expandedRows.push(item.Id)
}
} else {
this.expandedRows.push(item.Id)
}
} else {
this.expandedRows.push(item.Id)
}
// //
// //
// //
@@ -560,7 +573,7 @@ export default {
return v1.VisitTaskId === v.VisitTaskId return v1.VisitTaskId === v.VisitTaskId
}) })
if (o) { if (o) {
Answers[o.VisitTaskId] = o.Answer Answers[o.VisitTaskId] = isNaN(parseFloat(o.Answer)) ? o.Answer : `${o.Answer}%`
} }
}) })
} }
@@ -11,12 +11,7 @@
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content"> <div class="info-content">
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && (record.MedicalDialogCloseEnum!== null || record.Content)"> <template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
<div v-if="record.Content">{{ $t('trials:medicalFeedback:title:closereasonRemarks') }}{{ record.Content }}</div>
</template>
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
<div> <div>
<!-- 您好根据医学审核反馈该阅片任务的评估有如下问题需要您确认或澄清 --> <!-- 您好根据医学审核反馈该阅片任务的评估有如下问题需要您确认或澄清 -->
{{ $t('trials:medicalFeedback:message:msg1') }} {{ $t('trials:medicalFeedback:message:msg1') }}
@@ -35,7 +30,7 @@
style="margin:0 10px;" style="margin:0 10px;"
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]" :images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
> >
<el-button type="text" @click="previewImage(file.ImagePath)"> <el-button type="text" @click="previewImage(file.ImagePath)" style="width: 400px;white-space: normal; word-wrap: break-word;text-align: left;">
{{ file.FileName }} {{ file.FileName }}
</el-button> </el-button>
<img <img
@@ -60,11 +55,14 @@
{{ $t('trials:medicalFeedback:message:msg4') }} {{ $t('trials:medicalFeedback:message:msg4') }}
</div> </div>
</template> </template>
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt)"> <template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.MedicalDialogCloseEnum!== null">
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
</template>
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Content ">
<div>{{ record.Content }}</div> <div>{{ record.Content }}</div>
</template> </template>
<template v-else-if="[13].includes(record.UserTypeEnumInt)"> <template v-if="[13].includes(record.UserTypeEnumInt)">
<div> <div>
{{ $t('trials:medicalFeedback:title:isEndorse') }}{{ $fd('MedicalReviewDoctorUserIdea', record.DoctorUserIdeaEnum) }} {{ $t('trials:medicalFeedback:title:isEndorse') }}{{ $fd('MedicalReviewDoctorUserIdea', record.DoctorUserIdeaEnum) }}
</div> </div>
@@ -11,12 +11,8 @@
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content"> <div class="info-content">
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && (record.MedicalDialogCloseEnum!== null || record.Content)">
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
<div v-if="record.Content">{{ $t('trials:medicalFeedback:title:closereasonRemarks') }}{{ record.Content }}</div>
</template> <template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
<div> <div>
<!-- 您好根据医学审核反馈该阅片任务的评估有如下问题需要您确认或澄清 --> <!-- 您好根据医学审核反馈该阅片任务的评估有如下问题需要您确认或澄清 -->
{{ $t('trials:medicalFeedback:message:msg1') }} {{ $t('trials:medicalFeedback:message:msg1') }}
@@ -35,7 +31,7 @@
style="margin:0 10px;" style="margin:0 10px;"
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]" :images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
> >
<el-button type="text" @click="previewImage(file.ImagePath)"> <el-button type="text" @click="previewImage(file.ImagePath)" style="width: 400px;white-space: normal; word-wrap: break-word;text-align: left;">
{{ file.FileName }} {{ file.FileName }}
</el-button> </el-button>
<img <img
@@ -60,11 +56,14 @@
{{ $t('trials:medicalFeedback:message:msg4') }} {{ $t('trials:medicalFeedback:message:msg4') }}
</div> </div>
</template> </template>
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt)"> <template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.MedicalDialogCloseEnum!== null">
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
</template>
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Content">
<div>{{ record.Content }}</div> <div>{{ record.Content }}</div>
</template> </template>
<template v-else-if="[13].includes(record.UserTypeEnumInt)"> <template v-if="[13].includes(record.UserTypeEnumInt)">
<div> <div>
{{ $t('trials:medicalFeedback:title:isEndorse') }}{{ $fd('MedicalReviewDoctorUserIdea', record.DoctorUserIdeaEnum) }} {{ $t('trials:medicalFeedback:title:isEndorse') }}{{ $fd('MedicalReviewDoctorUserIdea', record.DoctorUserIdeaEnum) }}
</div> </div>
@@ -260,7 +260,11 @@ export default {
if (Object.keys(this.medicalReviewInfo).length > 0) { if (Object.keys(this.medicalReviewInfo).length > 0) {
for (const k in this.form) { for (const k in this.form) {
if (this.medicalReviewInfo.hasOwnProperty(k)) { if (this.medicalReviewInfo.hasOwnProperty(k)) {
this.form[k] = this.medicalReviewInfo[k]; if (k === 'IsHaveQuestion' && this.medicalReviewInfo.AuditState === 0) {
this.form[k] = null
} else {
this.form[k] = this.medicalReviewInfo[k]
}
} }
} }
this.fileList = []; this.fileList = [];
@@ -1,6 +1,6 @@
/* eslint-disable */ /* eslint-disable */
<template> <template>
<BaseContainer> <BaseContainer class="read-task-allocation">
<el-tabs type="border-card" v-model="TrialReadingCriterionId"> <el-tabs type="border-card" v-model="TrialReadingCriterionId">
<el-tab-pane :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId" v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId"> <el-tab-pane :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId" v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId">
<div v-if="TrialReadingCriterionId === i.TrialReadingCriterionId"> <div v-if="TrialReadingCriterionId === i.TrialReadingCriterionId">
@@ -1013,6 +1013,11 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.read-task-allocation{
/deep/.search {
padding: 0px !important;
}
}
/deep/ .hidden-row{ /deep/ .hidden-row{
display: none; display: none;
} }
@@ -1,9 +1,10 @@
<template> <template>
<div style="text-align: right"> <div style="text-align: right">
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<!-- 报表导出 -->
<el-tab-pane <el-tab-pane
label="报表导出" :label="$t('trials:readingTracking:reviewResult:reportsExport')"
name="report" name="reportsExport"
> >
<el-tabs type="border-card" v-model="reportCriterionId"> <el-tabs type="border-card" v-model="reportCriterionId">
<el-tab-pane <el-tab-pane
@@ -13,35 +14,17 @@
:key="i.TrialReadingCriterionId" :key="i.TrialReadingCriterionId"
> >
<exportList <exportList
v-if="reportCriterionId === i.TrialReadingCriterionId && activeName === 'report'" v-if="reportCriterionId === i.TrialReadingCriterionId && activeName === 'reportsExport'"
:trialReadingCriterionId="i.TrialReadingCriterionId" :trialReadingCriterionId="i.TrialReadingCriterionId"
:data="data" :data="data"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-tab-pane> </el-tab-pane>
<!-- 报表导出配置 -->
<el-tab-pane <el-tab-pane
label="CDISC导出" :label="$t('trials:readingTracking:reviewResult:reportsConfig')"
name="CDISC" name="reportsConfig"
>
<el-tabs type="border-card" v-model="CDISCCriterionId">
<el-tab-pane
:label="i.TrialReadingCriterionName"
:name="i.TrialReadingCriterionId"
v-for="i of trialCriterionList"
:key="i.TrialReadingCriterionId"
>
<exportList
v-if="CDISCCriterionId === i.TrialReadingCriterionId && activeName === 'CDISC'"
:trialReadingCriterionId="i.TrialReadingCriterionId"
:data="data"
/>
</el-tab-pane>
</el-tabs>
</el-tab-pane>
<el-tab-pane
label="报表导出配置"
name="reportConfig"
> >
<el-tabs type="border-card" v-model="reportConfigCriterionId"> <el-tabs type="border-card" v-model="reportConfigCriterionId">
<el-tab-pane <el-tab-pane
@@ -51,28 +34,8 @@
:key="i.TrialReadingCriterionId" :key="i.TrialReadingCriterionId"
> >
<configList <configList
v-if="reportConfigCriterionId === i.TrialReadingCriterionId && activeName === 'reportConfig'" v-if="reportConfigCriterionId === i.TrialReadingCriterionId && activeName === 'reportsConfig'"
:trialReadingCriterionId="i.TrialReadingCriterionId" :trialReadingCriterionId="i.TrialReadingCriterionId"
:exportType="0"
/>
</el-tab-pane>
</el-tabs>
</el-tab-pane>
<el-tab-pane
label="CDISC导出配置"
name="CDISCConfig"
>
<el-tabs type="border-card" v-model="CDISCCriterionId">
<el-tab-pane
:label="i.TrialReadingCriterionName"
:name="i.TrialReadingCriterionId"
v-for="i of trialCriterionList"
:key="i.TrialReadingCriterionId"
>
<configList
v-if="CDISCCriterionId === i.TrialReadingCriterionId && activeName === 'CDISCConfig'"
:trialReadingCriterionId="i.TrialReadingCriterionId"
:exportType="1"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@@ -98,10 +61,8 @@ export default {
trialCriterionList: [], trialCriterionList: [],
reportCriterionId: null, reportCriterionId: null,
trialId: null, trialId: null,
activeName: 'report', activeName: 'reportsExport',
CDISCCriterionId:'', reportConfigCriterionId: ''
reportConfigCriterionId: '',
CDISCCriterionId: ''
} }
}, },
props: { props: {
@@ -123,9 +84,7 @@ export default {
if (res.IsSuccess) { if (res.IsSuccess) {
this.trialCriterionList = res.Result this.trialCriterionList = res.Result
this.reportCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.reportCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
this.CDISCCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
this.reportConfigCriterionId = this.trialCriterionList[0].TrialReadingCriterionId this.reportConfigCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
this.CDISCCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
} }
} catch(e) { } catch(e) {
console.log(e) console.log(e)
@@ -1,6 +1,9 @@
<template> <template>
<div> <div>
<el-button type="primary" size="mini" @click="submit" style="margin-bottom: 5px;">提交</el-button> <!-- 保存 -->
<el-button type="primary" size="mini" @click="submit" style="margin-bottom: 5px;">
{{ $t('common:button:save') }}
</el-button>
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="exportInfo.QuestionList" :data="exportInfo.QuestionList"
@@ -10,33 +13,40 @@
default-expand-all default-expand-all
:tree-props="{ children: 'Children', hasChildren: 'hasChildren' }" :tree-props="{ children: 'Children', hasChildren: 'hasChildren' }"
> >
<!-- 问题名称 -->
<el-table-column <el-table-column
prop="QuestionName" prop="QuestionName"
label="问题名称" :label="$t('trials:readingTracking:config:questionName')"
width="300"> width="300">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-for="item in exportInfo.DicList" v-for="item in exportInfo.DicList"
:key="item.Code" :key="item.Code"
:label="item.ValueCN" > :label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
>
<template v-slot="scope"> <template v-slot="scope">
<el-checkbox <el-checkbox
@change="() => changeState(scope, item.Code)" @change="() => changeState(scope, item.Code)"
:checked="getCheckState(scope, item.Code)"> :checked="getCheckState(scope, item.Code)"
:disabled="getDisabledState(scope.row, item)"
v-show="!scope.row.IsGroup || !scope.row.HasChildren"
>
</el-checkbox> </el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<!-- CDISC编码 -->
<el-table-column <el-table-column
v-if="exportType === 1"
prop="CDISCCode" prop="CDISCCode"
label="CDISC编码" :label="$t('trials:readingTracking:config:code')"
width="500" width="180"
> >
<template v-slot="scope"> <template v-slot="scope">
<el-input <el-input
v-model="scope.row.CDISCCode" v-model="scope.row.CDISCCode"
placeholder="CDISC编码"
size="mini" size="mini"
:disabled="scope.row.HasChildren || scope.row.IsTableQuestion"
v-show="!scope.row.IsGroup || !scope.row.HasChildren"
> >
</el-input> </el-input>
</template> </template>
@@ -54,10 +64,6 @@ export default {
type: String, type: String,
required: true required: true
}, },
exportType: {
type: Number,
required: true
}
}, },
data() { data() {
return { return {
@@ -74,8 +80,7 @@ export default {
this.loading = true this.loading = true
let res = await getTrialQuestionExportResult( let res = await getTrialQuestionExportResult(
{ {
trialReadingCriterionId: this.trialReadingCriterionId, trialReadingCriterionId: this.trialReadingCriterionId
exportType: this.exportType
} }
) )
if (res.IsSuccess) { if (res.IsSuccess) {
@@ -90,30 +95,7 @@ export default {
async submit() { async submit() {
this.loading = true this.loading = true
try { try {
let params= { let params = this.filterQuestions(this.exportInfo.QuestionList)
exportType: this.exportType,
questionList: [],
tableQuestionList: []
}
params.questionList = this.exportInfo.QuestionList.map(i => {
return {
questionId: i.QuestionId,
tableQuestionId: i.TableQuestionId,
exportResult: i.ExportResult,
CDISCCode: i.CDISCCode
}
})
this.exportInfo.QuestionList.forEach(i => {
let childlist = i.Children.map(k => {
return {
questionId: i.QuestionId,
tableQuestionId: k.TableQuestionId,
exportResult: k.ExportResult,
CDISCCode: k.CDISCCode
}
})
params.tableQuestionList = params.tableQuestionList.concat(childlist)
})
let res = await setTrialQuestionExportResult(params) let res = await setTrialQuestionExportResult(params)
if (res.IsSuccess) { if (res.IsSuccess) {
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(this.$t('common:message:savedSuccessfully'))
@@ -124,6 +106,36 @@ export default {
console.log(e) console.log(e)
} }
}, },
filterQuestions(arr) {
let params= {
questionList: [],
tableQuestionList: []
}
for (let i of arr) {
if (!i.IsGroup && !i.IsTableQuestion) {
params.questionList.push({
questionId: i.QuestionId,
tableQuestionId: i.TableQuestionId,
exportResult: i.ExportResult,
CDISCCode: i.CDISCCode
})
}
if (i.TableQuestionId) {
params.tableQuestionList.push({
questionId: i.QuestionId,
tableQuestionId: i.TableQuestionId,
exportResult: i.ExportResult,
CDISCCode: i.CDISCCode
})
}
if (i.Children && i.Children.length > 0) {
const childResults = this.filterQuestions(i.Children)
params.questionList = params.questionList.concat(childResults.questionList)
params.tableQuestionList = params.tableQuestionList.concat(childResults.tableQuestionList)
}
}
return params;
},
// //
getCheckState(item, code) { getCheckState(item, code) {
return item.row.ExportResult.indexOf(code) > -1 return item.row.ExportResult.indexOf(code) > -1
@@ -132,6 +144,25 @@ export default {
changeState(item, code) { changeState(item, code) {
item.row.ExportResult.indexOf(code) > -1 ? item.row.ExportResult.splice(item.row.ExportResult.indexOf(code), 1) : item.row.ExportResult.push(code); item.row.ExportResult.indexOf(code) > -1 ? item.row.ExportResult.splice(item.row.ExportResult.indexOf(code), 1) : item.row.ExportResult.push(code);
}, },
//
getDisabledState(row, item) {
// (1)(2)
if (this.exportInfo.CriterionGroup === 1 && (item.Code === 1 || item.Code === 2)) {
return true
} else if ((this.exportInfo.CriterionGroup === 0 || this.exportInfo.CriterionType === 0 ) && item.Code === 1 && (row.HasChildren || row.IsTableQuestion)) {
// (1)
return true
} else if (item.Code === 8 && (row.HasChildren || row.IsTableQuestion)) {
// CDISC
return true
} else if (item.Code === 2 && row.HasChildren) {
//
return true
} else {
return false
}
}
} }
} }
</script> </script>
@@ -1,10 +1,5 @@
<template> <template>
<el-table <el-table v-loading="loading" :data="list" border stripe height="500">
v-loading="loading"
:data="list"
border
stripe
height="500">
<el-table-column label="" width="50"> <el-table-column label="" width="50">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
@@ -19,11 +14,7 @@
{{ scope.row.FileName }} {{ scope.row.FileName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="" :label="$t('common:action:action')" min-width="80">
prop=""
:label="$t('common:action:action')"
min-width="80"
>
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 下载 --> <!-- 下载 -->
<el-button <el-button
@@ -53,20 +44,20 @@ export default {
props: { props: {
trialReadingCriterionId: { trialReadingCriterionId: {
type: String, type: String,
required: true required: true,
}, },
data: { data: {
type: Object, type: Object,
default() { default() {
return {} return {}
} },
} },
}, },
data() { data() {
return { return {
loading: false, loading: false,
trialId: null, trialId: null,
list: [] list: [],
} }
}, },
mounted() { mounted() {
@@ -140,7 +131,8 @@ export default {
}) })
break break
case 8: case 8:
getCommonJudgeRatioList_Export(searchData) searchData.ReadingExportType = 8
getCommonEvaluationList_Export(searchData)
.then((res) => {}) .then((res) => {})
.catch(() => { .catch(() => {
this.loading = false this.loading = false
@@ -110,6 +110,10 @@
<el-button type="primary" icon="el-icon-download" @click="handleExport"> <el-button type="primary" icon="el-icon-download" @click="handleExport">
{{ $t('common:button:export') }} {{ $t('common:button:export') }}
</el-button> </el-button>
<!-- 阅片结果 -->
<el-button type="primary" icon="el-icon-download" @click="handleReviewResults">
{{ $t('trials:readingTracking:button:reviewResults') }}
</el-button>
<el-button type="primary" icon="el-icon-info" @click="handleViewRecord"> <el-button type="primary" icon="el-icon-info" @click="handleViewRecord">
{{ $t('common:button:failureRecord') }} {{ $t('common:button:failureRecord') }}
</el-button> </el-button>
@@ -146,8 +150,8 @@
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag> --> <el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag> -->
<el-tooltip placement="top"> <el-tooltip placement="top">
<div slot="content"> <div slot="content">
<span>{{`加急原因:${$fd('TaskUrgentType',scope.row.TaskUrgentType)}`}}</span><br/> <span>{{`${$t('trials:reviewTrack:label:taskUrgentType')}${$fd('TaskUrgentType',scope.row.TaskUrgentType)}`}}</span><br/>
<span>{{scope.row.TaskUrgentRemake?`备注:${scope.row.TaskUrgentRemake}`:''}}</span> <span>{{scope.row.TaskUrgentRemake?`${$t('trials:reviewTrack:label:taskUrgentRemake')}${scope.row.TaskUrgentRemake}`:''}}</span>
</div> </div>
<div> <div>
<el-button :disabled="!(!scope.row.TaskState && (scope.row.ReadingTaskState === 0 || scope.row.ReadingTaskState === 1)) || !scope.row.IsCanEditUrgentState" v-if="scope.row.IsUrgent" type="danger" size="mini" @click="changeUrgentStatus(scope.row)">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-button> <el-button :disabled="!(!scope.row.TaskState && (scope.row.ReadingTaskState === 0 || scope.row.ReadingTaskState === 1)) || !scope.row.IsCanEditUrgentState" v-if="scope.row.IsUrgent" type="danger" size="mini" @click="changeUrgentStatus(scope.row)">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-button>
@@ -943,6 +947,9 @@
<script> <script>
import { getTrialSiteSelect,setTaskUrgent } from '@/api/trials' import { getTrialSiteSelect,setTaskUrgent } from '@/api/trials'
import { getTrialCriterionList, PMSetTaskBack, getInfluencedTaskList, getReReadingOrBackInfluenceTaskList, getReadingTaskList, configTrialReadingTaskViewRule, getDoctorUserSelectList, applyReReading } from '@/api/trials/reading' import { getTrialCriterionList, PMSetTaskBack, getInfluencedTaskList, getReReadingOrBackInfluenceTaskList, getReadingTaskList, configTrialReadingTaskViewRule, getDoctorUserSelectList, applyReReading } from '@/api/trials/reading'
import {
getReadingTaskList_Export
} from '@/api/export'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { changeURLStatic } from '@/utils/history.js' import { changeURLStatic } from '@/utils/history.js'
import BaseContainer from '@/components/BaseContainer' import BaseContainer from '@/components/BaseContainer'
@@ -1089,7 +1096,16 @@ export default {
} }
}) })
}, },
handleExport() { async handleExport() {
this.loading = true
try {
await getReadingTaskList_Export(this.searchData)
this.loading = false
} catch(e) {
this.loading = false
}
},
handleReviewResults() {
this.exportVisible = true this.exportVisible = true
}, },
handleView(row) { handleView(row) {
@@ -33,7 +33,7 @@
v-for="item of $d.TrainingStatus" v-for="item of $d.TrainingStatus"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="!item.value" :value="item.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -136,10 +136,10 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsDeleted" type="danger">{{ <el-tag v-if="scope.row.IsDeleted" type="danger">{{
$fd('TrainingStatus', !scope.row.IsDeleted) $fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag> }}</el-tag>
<el-tag v-else type="primary">{{ <el-tag v-else type="primary">{{
$fd('TrainingStatus', !scope.row.IsDeleted) $fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@@ -236,11 +236,11 @@ export default {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
} }
>>>.el-collapse-item__header{ /deep/.el-collapse-item__header{
background:#e5ecef; background:#e5ecef;
padding-left:10px; padding-left:10px;
} }
>>>.el-collapse-item__content{ /deep/.el-collapse-item__content{
padding: 10px; padding: 10px;
} }
.bottom{ .bottom{
@@ -1,5 +1,5 @@
<template> <template>
<box-content v-loading="loading" style="height: 100%;background: #fff;padding: 10px;box-sizing: border-box"> <box-content v-loading="loading" class="medical-audit-setting">
<!-- 搜索框 --> <!-- 搜索框 -->
<el-tabs v-model="trialReadingCriterionId" type="border-card"> <el-tabs v-model="trialReadingCriterionId" type="border-card">
<el-tab-pane v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId" :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId"> <el-tab-pane v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId" :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId">
@@ -130,7 +130,7 @@
</div> </div>
<el-table <el-table
v-if="isShow" v-if="isShow"
v-adaptive="{bottomOffset:85}" v-adaptive="{bottomOffset:65}"
:data="list" :data="list"
stripe stripe
height="100" height="100"
@@ -556,3 +556,17 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped>
.medical-audit-setting {
height: 100%;
background: #fff;
padding: 0px 10px;
box-sizing: border-box;
/deep/.search {
padding: 0px !important;
}
/deep/ .el-tabs--border-card>.el-tabs__content {
padding: 0px 15px;
}
}
</style>
@@ -353,7 +353,7 @@
<!-- 修改参与者人员状态 --> <!-- 修改参与者人员状态 -->
<base-model v-if="status_model.visible" :config="status_model"> <base-model v-if="status_model.visible" :config="status_model">
<template slot="dialog-body"> <template slot="dialog-body">
<span>{{ $t('trials:internalStaff:table:status') }}:</span> <span style="margin-right: 5px;">{{ $t('trials:internalStaff:table:status') }}:</span>
<el-radio-group v-model="staffStatus"> <el-radio-group v-model="staffStatus">
<el-radio <el-radio
v-for="item of $d.IsUserExitTrial" v-for="item of $d.IsUserExitTrial"
@@ -154,7 +154,8 @@
<el-button <el-button
v-if=" v-if="
Array.isArray(scope.row.TrialUserRoleList) && Array.isArray(scope.row.TrialUserRoleList) &&
scope.row.TrialUserRoleList.length > 0 scope.row.TrialUserRoleList.length > 0 &&
hasPermi(['trials:trials-panel:setting:personnel-manage:status'])
" "
type="text" type="text"
@click.stop="openRoleList(scope.row)" @click.stop="openRoleList(scope.row)"
@@ -179,6 +180,32 @@
).join(', ') ).join(', ')
}}</span> }}</span>
</el-button> </el-button>
<div
v-else-if="
Array.isArray(scope.row.TrialUserRoleList) &&
scope.row.TrialUserRoleList.length > 0
"
>
<el-tooltip
class="item"
effect="dark"
:content="$t('trials:staff:tip:userTypeDisabled')"
placement="top"
style="margin-right: 2px"
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>
</div>
</template> </template>
</el-table-column> </el-table-column>
<!-- 联系电话 --> <!-- 联系电话 -->
@@ -289,6 +316,14 @@
" "
@click="handleStatus(scope.row)" @click="handleStatus(scope.row)"
/> />
<!---v-if="!scope.row.UserName"-->
<el-button
v-if="!scope.row.UserName"
circle
:title="$t('trials:staff:action:email')"
icon="el-icon-message"
@click="handleSendEmail(scope.row)"
/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -407,7 +442,7 @@
<el-tooltip <el-tooltip
class="item" class="item"
effect="dark" effect="dark"
:content="$t('trials:staff:tip:userTypeDisabled')" :content="$t('trials:staff:tip:userTypeSysDisabled')"
placement="top" placement="top"
style="margin-right: 3px" style="margin-right: 3px"
v-if="scope.row.IsUserRoleDisabled" v-if="scope.row.IsUserRoleDisabled"
@@ -438,7 +473,7 @@
" "
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span> {{ $fd('IsEnable', !scope.row.IsDeleted) }}</span> <span> {{ $fd('IsDisable', scope.row.IsDeleted) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -471,7 +506,10 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common:action:action')" width="120px"> <el-table-column
:label="$t('common:action:action')"
min-width="120px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@@ -479,7 +517,7 @@
:disabled="scope.row.IsDeleted || scope.row.UserTypeEnum === 1" :disabled="scope.row.IsDeleted || scope.row.UserTypeEnum === 1"
@click.stop="changeRoleStatus(scope.row, true)" @click.stop="changeRoleStatus(scope.row, true)"
> >
{{ $fd('IsEnable', false) }} {{ $fd('IsDisable', true) }}
</el-button> </el-button>
<el-button <el-button
size="mini" size="mini"
@@ -487,7 +525,7 @@
:disabled="!scope.row.IsDeleted || scope.row.UserTypeEnum === 1" :disabled="!scope.row.IsDeleted || scope.row.UserTypeEnum === 1"
@click.stop="changeRoleStatus(scope.row, false)" @click.stop="changeRoleStatus(scope.row, false)"
> >
{{ $fd('IsEnable', true) }} {{ $fd('IsDisable', false) }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -503,6 +541,7 @@ import {
updateTrialUser, updateTrialUser,
trialUserListExport, trialUserListExport,
updateTrialUserRole, updateTrialUserRole,
trialUserSendJoinEmail,
} from '@/api/trials' } from '@/api/trials'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import StaffForm from './staffForm' import StaffForm from './staffForm'
@@ -583,12 +622,39 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
//
async handleSendEmail(row) {
try {
let confirm = await this.$confirm(
this.$t('trials:staff:confirm:sendEmail')
)
if (!confirm) return false
let data = {
TrialId: this.$route.query.trialId,
IdentityUserId: row.IdentityUserId,
BaseUrl: `${location.protocol}//${location.host}/login`,
RouteUrl: `${location.protocol}//${location.host}/email-recompose`,
}
this.listLoading = true
let res = await trialUserSendJoinEmail(data)
this.listLoading = false
if (res.IsSuccess) {
this.$message.success(
this.$t('trials:staff:message:sendEmailSuccess')
)
this.getList()
}
} catch (err) {
this.listLoading = false
console.log(err)
}
},
// //
async changeRoleStatus(row, status) { async changeRoleStatus(row, status) {
try { try {
let message = this.$t('trials:staff:comfirm:changeRoleStatus').replace( let message = this.$t('trials:staff:comfirm:changeRoleStatus').replace(
'xxx', 'xxx',
this.$fd('IsEnable', !status) this.$fd('IsDisable', status)
) )
let comfirm = await this.$confirm(message) let comfirm = await this.$confirm(message)
if (!comfirm) return false if (!comfirm) return false
@@ -24,6 +24,7 @@
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
style="margin-right: 10px"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="handleReset" @click="handleReset"
> >
@@ -172,7 +173,7 @@
:model="permission" :model="permission"
:rules="permissionRole" :rules="permissionRole"
ref="permissionForm" ref="permissionForm"
label-width="140px" label-width="230px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item <el-form-item
@@ -491,6 +492,7 @@ export default {
.participant-container { .participant-container {
height: 100%; height: 100%;
.el-header { .el-header {
padding-right: 5px;
.filter-container { .filter-container {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -4,7 +4,7 @@
<div class="search"> <div class="search">
<el-form :inline="true" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<!-- 审核问题 --> <!-- 审核问题 -->
<el-form-item :label="$t('trials:qcCfg:table:questionName')" style="margin-top: 10px"> <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;" />
</el-form-item> </el-form-item>
<!-- 语言类型 --> <!-- 语言类型 -->
@@ -26,22 +26,22 @@
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- 类型 --> <!-- 类型 -->
<el-form-item :label="$t('trials:qcCfg:table:type')" style="margin-top: 10px"> <el-form-item :label="$t('trials:qcCfg:table:type')">
<el-select v-model="searchData.Type" clearable style="width:120px;"> <el-select v-model="searchData.Type" clearable style="width:120px;">
<el-option v-for="item of $d.QcType" :key="item.label" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.QcType" :key="item.label" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:qcCfg:table:isEnable')" style="margin-top: 10px"> <el-form-item :label="$t('trials:qcCfg:table:isEnable')">
<el-select v-model="searchData.IsEnable" clearable style="width:120px;"> <el-select v-model="searchData.IsEnable" clearable style="width:120px;">
<el-option v-for="item of $d.YesOrNo" :key="item.label" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.YesOrNo" :key="item.label" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('trials:qcCfg:table:isRequired')" style="margin-top: 10px"> <el-form-item :label="$t('trials:qcCfg:table:isRequired')">
<el-select v-model="searchData.IsRequired" clearable style="width:120px;"> <el-select v-model="searchData.IsRequired" clearable style="width:120px;">
<el-option v-for="item of $d.YesOrNo" :key="`IsRequired${item.label}`" :value="item.value" :label="item.label" /> <el-option v-for="item of $d.YesOrNo" :key="`IsRequired${item.label}`" :value="item.value" :label="item.label" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item style="margin-top: 10px"> <el-form-item >
<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>
@@ -232,7 +232,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- 导出标识 --> <!-- 导出标识 -->
<el-form-item <!-- <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification" :label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'" v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
> >
@@ -251,9 +251,12 @@
>{{ item.label }} >{{ item.label }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
<!-- 导出结果 --> <!-- 导出结果 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')" v-if="form.ExportIdentification" prop="ExportResult"> <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
<el-select v-model="form.ExportResult" multiple> <el-select v-model="form.ExportResult" multiple>
<el-option <el-option
v-for="item in $d.ExportResult" v-for="item in $d.ExportResult"
@@ -1064,7 +1067,7 @@ export default {
ClassifyAlgorithms: null, ClassifyAlgorithms: null,
LimitShow: 0, LimitShow: 0,
HighlightAnswerList: [], HighlightAnswerList: [],
ExportIdentification: 0, // ExportIdentification: 0,
ExportResult: [], ExportResult: [],
ClassifyType: null, ClassifyType: null,
ClassifyEditType: null, ClassifyEditType: null,
@@ -1093,12 +1096,12 @@ export default {
}], }],
GroupName: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']}, GroupName: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
{max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}], {max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
ExportIdentification: [ // ExportIdentification: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }, // { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
], // ],
ExportResult: [ // ExportResult: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }, // { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
] // ]
}, },
loading: false, loading: false,
dicList: [], dicList: [],
@@ -1543,7 +1546,7 @@ export default {
form.ClassifyQuestionId = null form.ClassifyQuestionId = null
form.ClassifyAlgorithms = null form.ClassifyAlgorithms = null
form.HighlightAnswerList = [] form.HighlightAnswerList = []
form.ExportIdentification = 0 // form.ExportIdentification = 0
form.ExportResult = [] form.ExportResult = []
form.ClassifyType = null form.ClassifyType = null
form.ClassifyShowType = null form.ClassifyShowType = null
@@ -19,7 +19,7 @@
> >
<template v-for="item of $d.Criterion_Question_Type"> <template v-for="item of $d.Criterion_Question_Type">
<el-option <el-option
v-if="item.value !== 'calculation' && item.value !== 'increment' && item.value !== 'table' && item.value !== 'basicTable' && item.value !== 'group'" v-if="item.value !== 'increment' && item.value !== 'table' && item.value !== 'basicTable' && item.value !== 'group'"
:key="item.value" :key="item.value"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
@@ -114,9 +114,9 @@
<el-select v-model="form.ParentTriggerValueList" clearable multiple> <el-select v-model="form.ParentTriggerValueList" clearable multiple>
<el-option <el-option
v-for="item of parentTriggerValOptions" v-for="item of parentTriggerValOptions"
:key="item" :key="item.id"
:label="item" :label="item.label"
:value="item" :value="String(item.value)"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -148,14 +148,14 @@
<el-select v-model="form.RelevanceValueList" clearable multiple> <el-select v-model="form.RelevanceValueList" clearable multiple>
<el-option <el-option
v-for="item of reParentTriggerValOptions" v-for="item of reParentTriggerValOptions"
:key="item" :key="item.id"
:label="item" :label="item.label"
:value="item" :value="String(item.value)"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 导出标识 --> <!-- 导出标识 -->
<el-form-item <!-- <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification" :label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'" v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
> >
@@ -174,9 +174,12 @@
>{{ item.label }} >{{ item.label }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
<!-- 导出结果 --> <!-- 导出结果 -->
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')" v-if="form.ExportIdentification" prop="ExportResult"> <el-form-item
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
>
<el-select v-model="form.ExportResult" multiple> <el-select v-model="form.ExportResult" multiple>
<el-option <el-option
v-for="item in $d.ExportResult" v-for="item in $d.ExportResult"
@@ -887,7 +890,7 @@ export default {
MaxAnswerLength: null, MaxAnswerLength: null,
ClassifyTableQuestionId: null, ClassifyTableQuestionId: null,
ClassifyAlgorithms: null, ClassifyAlgorithms: null,
ExportIdentification: 0, // ExportIdentification: 0,
ExportResult: [], ExportResult: [],
ImageCount: 0, ImageCount: 0,
ClassifyType: null, ClassifyType: null,
@@ -917,12 +920,12 @@ export default {
DataTableName: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }], DataTableName: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
DataTableColumn: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }], DataTableColumn: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
DependParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }], DependParentId: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
ExportIdentification: [ // ExportIdentification: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }, // { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
], // ],
ExportResult: [ // ExportResult: [
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }, // { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
] // ]
}, },
loading: false, loading: false,
parentOptions: [], parentOptions: [],
@@ -964,6 +967,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.$d.Criterion_Question_Type)
this.validateTypeVal = (rule, value, callback) => { this.validateTypeVal = (rule, value, callback) => {
if (value === '' && this.form.Type !== 'number') { if (value === '' && this.form.Type !== 'number') {
callback(new Error(this.$t('common:ruleMessage:specify'))) callback(new Error(this.$t('common:ruleMessage:specify')))
@@ -1127,7 +1131,22 @@ export default {
return item.QuestionId === this.form.ParentId return item.QuestionId === this.form.ParentId
}) })
if (index !== -1) { if (index !== -1) {
this.parentTriggerValOptions = this.parentOptions[index].TypeValue.split('|') if (this.parentOptions[index].QuestionGenre === 3) {
// this.parentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
options.push({ id: index, label: item, value: item })
})
this.parentTriggerValOptions = options
}
} }
} }
if (this.form.RelevanceId) { if (this.form.RelevanceId) {
@@ -1135,7 +1154,21 @@ export default {
return item.QuestionId === this.form.RelevanceId return item.QuestionId === this.form.RelevanceId
}) })
if (i !== -1) { if (i !== -1) {
this.reParentTriggerValOptions = this.parentOptions[i].TypeValue.split('|') // this.reParentTriggerValOptions = this.parentOptions[i].TypeValue.split('|')
if (this.parentOptions[i].QuestionGenre === 3) {
// this.reParentTriggerValOptions = this.$d[this.parentOptions[i].DictionaryCode]
let dicCode = this.parentOptions[i].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[i].TypeValue.split('|').forEach((item, index) => {
options.push({ id: i, label: item, value: item })
})
this.reParentTriggerValOptions = options
}
} }
} }
} }
@@ -1231,24 +1264,53 @@ export default {
form.RelevanceValueList = [] form.RelevanceValueList = []
} }
}, },
parentQuestionChange(val, form) { async parentQuestionChange(val, form) {
if (val) { if (val) {
var index = this.parentOptions.findIndex(item => { var index = this.parentOptions.findIndex(item => {
return item.QuestionId === val return item.QuestionId === val
}) })
if (index !== -1) { if (index !== -1) {
this.parentTriggerValOptions = this.parentOptions[index].TypeValue.split('|') if (this.parentOptions[index].QuestionGenre === 3) {
// this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.parentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
options.push({ id: index, label: item, value: item })
})
this.parentTriggerValOptions = options
}
} }
} }
form.ParentTriggerValueList = [] form.ParentTriggerValueList = []
}, },
relevanceQuestionChange(val, form) { async relevanceQuestionChange(val, form) {
if (val) { if (val) {
var index = this.parentOptions.findIndex(item => { var index = this.parentOptions.findIndex(item => {
return item.QuestionId === val return item.QuestionId === val
}) })
if (index !== -1) { if (index !== -1) {
this.reParentTriggerValOptions = this.parentOptions[index].TypeValue.split('|') // this.reParentTriggerValOptions = this.parentOptions[index].TypeValue.split('|')
if (this.parentOptions[index].QuestionGenre === 3) {
// this.reParentTriggerValOptions = this.$d[this.parentOptions[index].DictionaryCode]
let dicCode = this.parentOptions[index].DictionaryCode
let res = await getCriterionDictionary({ReadingCriterionId: this.criterionId, DictionaryCode: dicCode})
this.reParentTriggerValOptions = res.Result[dicCode].map(i=>{
return {id: i.Id, label: this.$i18n.locale === 'zh' ? i.ValueCN : i.Value, value: i.Code}
})
} else {
const options = []
this.parentOptions[index].TypeValue.split('|').forEach((item, index) => {
options.push({ id: index, label: item, value: item })
})
this.reParentTriggerValOptions = options
}
} }
} }
form.RelevanceValueList = [] form.RelevanceValueList = []
@@ -1305,7 +1367,7 @@ export default {
form.HighlightAnswerList = [] form.HighlightAnswerList = []
form.ClassifyTableQuestionId = null form.ClassifyTableQuestionId = null
form.ClassifyAlgorithms = null form.ClassifyAlgorithms = null
form.ExportIdentification = 0 // form.ExportIdentification = 0
form.ExportResult = [] form.ExportResult = []
form.ImageCount = 0 form.ImageCount = 0
form.ClassifyType = null form.ClassifyType = null
@@ -8,14 +8,14 @@
:label="item.TrialReadingCriterionName" :label="item.TrialReadingCriterionName"
:name="item.TrialReadingCriterionId" :name="item.TrialReadingCriterionId"
> >
<div style="text-align: right; padding-bottom: 10px"> <div style="text-align: right; padding: 5px 0px" v-if="!hasPermi(['role:admin'])">
<!-- 同步当前标准 --> <!-- 同步当前标准 -->
<el-button <el-button
type="primary" type="primary"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
:loading="loading" :loading="loading"
size="mini" size="mini"
v-if="!hasPermi(['role:admin'])"
@click="syncSign" @click="syncSign"
> >
{{ $t("trials:readingUnit:button:sync") }} {{ $t("trials:readingUnit:button:sync") }}
@@ -525,6 +525,9 @@ export default {
background: #e5ecef; background: #e5ecef;
padding-left: 10px; padding-left: 10px;
} }
/deep/ .el-tabs--border-card>.el-tabs__content {
padding: 0px 15px;
}
/deep/ .el-collapse-item__content { /deep/ .el-collapse-item__content {
padding: 10px; padding: 10px;
} }
@@ -771,6 +771,7 @@
<el-button <el-button
v-if="scope.row.FileName && scope.row.ClinicalUploadType" v-if="scope.row.FileName && scope.row.ClinicalUploadType"
circle circle
:title="$t('common:button:download')"
icon="el-icon-download" icon="el-icon-download"
@click="handleDownloadTpl(scope.row)" @click="handleDownloadTpl(scope.row)"
> >
@@ -778,6 +779,7 @@
<el-button <el-button
v-if="scope.row.FileName && !scope.row.ClinicalUploadType" v-if="scope.row.FileName && !scope.row.ClinicalUploadType"
circle circle
:title="$t('common:button:preview')"
icon="el-icon-view" icon="el-icon-view"
@click="handlePreviewTpl(scope.row)" @click="handlePreviewTpl(scope.row)"
> >
@@ -785,6 +787,7 @@
<el-button <el-button
v-if="scope.row.ClinicalUploadType === 2" v-if="scope.row.ClinicalUploadType === 2"
circle circle
:title="$t('common:button:preview')"
icon="el-icon-view" icon="el-icon-view"
@click="handlePreview(scope.row)" @click="handlePreview(scope.row)"
> >
+100 -58
View File
@@ -29,7 +29,7 @@
<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">
{{ $t("common:button:search") }} {{ $t('common:button:search') }}
</el-button> </el-button>
<!-- 重置 --> <!-- 重置 -->
<el-button <el-button
@@ -37,7 +37,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>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -83,7 +83,18 @@
:label="$t('trials:site:table:subjects')" :label="$t('trials:site:table:subjects')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> >
<template slot-scope="scope">
<el-button
v-if="scope.row.SubjectCount > 0 && hasSubjectRoute"
type="text"
@click="jumpToSubjectList(scope.row.TrialSiteId)"
>
{{ scope.row.SubjectCount }}
</el-button>
<span v-else> {{ scope.row.SubjectCount }}</span>
</template>
</el-table-column>
<!-- Visits --> <!-- Visits -->
<el-table-column <el-table-column
prop="VisitCount" prop="VisitCount"
@@ -91,25 +102,31 @@
:label="$t('trials:site:table:visits')" :label="$t('trials:site:table:visits')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> >
<template slot-scope="scope">
<el-button
v-if="scope.row.VisitCount > 0 && hasVisitRoute"
type="text"
@click="jumpToVisitList(scope.row.TrialSiteId)"
>
{{ scope.row.VisitCount }}
</el-button>
<span v-else> {{ scope.row.VisitCount }}</span>
</template>
</el-table-column>
<!-- Staff --> <!-- Staff -->
<el-table-column <el-table-column
prop="UserCount" prop="UserCount"
min-width="150" min-width="150"
:label="$t('trials:site:table:staff')" :label="$t('trials:site:table:staff')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button type="text" @click="getStaffList(scope.row)">
v-if="scope.row.UserCount > 0"
type="text"
@click="getStaffList(scope.row)"
>
{{ {{
scope.row.UserNameList.length > 0 scope.row.UserNameList.length > 0
? scope.row.UserNameList.join(", ") ? scope.row.UserNameList.join(', ')
: "" : ''
}} }}
</el-button> </el-button>
</template> </template>
@@ -129,7 +146,7 @@
<el-table v-loading="userListLoading" :data="userList" height="400"> <el-table v-loading="userListLoading" :data="userList" height="400">
<!-- Name --> <!-- Name -->
<el-table-column <el-table-column
prop="UserRealName" prop="FullName"
:label="$t('trials:site:table:name')" :label="$t('trials:site:table:name')"
width="150" width="150"
/> />
@@ -164,10 +181,10 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.IsDeleted" type="danger">{{ <el-tag v-if="scope.row.IsDeleted" type="danger">{{
$fd("IsUserExitTrial", scope.row.IsDeleted) $fd('IsUserExitTrial', scope.row.IsDeleted)
}}</el-tag> }}</el-tag>
<el-tag v-else>{{ <el-tag v-else>{{
$fd("IsUserExitTrial", scope.row.IsDeleted) $fd('IsUserExitTrial', scope.row.IsDeleted)
}}</el-tag> }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@@ -193,23 +210,23 @@
</BaseContainer> </BaseContainer>
</template> </template>
<script> <script>
import { getSiteCRCList, getTrialSiteCRCList } from "@/api/trials"; import { getSiteCRCList, getTrialSiteCRCList } from '@/api/trials'
import BaseContainer from "@/components/BaseContainer"; import BaseContainer from '@/components/BaseContainer'
import BaseModel from "@/components/BaseModel"; import BaseModel from '@/components/BaseModel'
import Pagination from "@/components/Pagination"; import Pagination from '@/components/Pagination'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
UserRealName: "", UserRealName: '',
SiteName: "", SiteName: '',
SortField: "TrialSiteCode", SortField: 'TrialSiteCode',
Asc: true, Asc: true,
PageIndex: 1, PageIndex: 1,
PageSize: 20, PageSize: 20,
TrialSiteCode: null, TrialSiteCode: null,
}; }
}; }
export default { export default {
name: "SiteList", name: 'SiteList',
components: { BaseContainer, BaseModel, Pagination }, components: { BaseContainer, BaseModel, Pagination },
data() { data() {
return { return {
@@ -219,65 +236,90 @@ export default {
loading: false, loading: false,
crc_model: { crc_model: {
visible: false, visible: false,
title: this.$t("trials:site:dialogTitle:staff"), title: this.$t('trials:site:dialogTitle:staff'),
width: "60%", width: '60%',
}, },
userListLoading: "", userListLoading: '',
userList: [], userList: [],
trialId: "", trialId: '',
}; hasSubjectRoute: false,
hasVisitRoute: false
}
}, },
mounted() { mounted() {
this.trialId = this.$route.query.trialId; this.trialId = this.$route.query.trialId
const trialsRouter = this.$store.getters.routes.find(r => { return r.name === 'Trials' })
this.getList(); const trialsPanelRouter = trialsRouter.children.find(r => { return r.name === 'TrialsPanel' }).children
this.hasSubjectRoute = this.hasRoute('subject-list', trialsPanelRouter)
this.hasVisitRoute = this.hasRoute('crc-upload', trialsPanelRouter)
this.getList()
}, },
methods: { methods: {
getList() { getList() {
this.loading = true; this.loading = true
this.searchData.TrialId = this.trialId; this.searchData.TrialId = this.trialId
getSiteCRCList(this.searchData) getSiteCRCList(this.searchData)
.then((res) => { .then((res) => {
this.loading = false; this.loading = false
this.list = res.Result.CurrentPageData; this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount; this.total = res.Result.TotalCount
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false
}); })
}, },
getStaffList(row) { getStaffList(row) {
this.currentRow = { ...row }; this.currentRow = { ...row }
this.crc_model.visible = true; this.crc_model.visible = true
this.userListLoading = true; this.userListLoading = true
getTrialSiteCRCList(this.trialId, this.currentRow.TrialSiteId) getTrialSiteCRCList(this.trialId, this.currentRow.TrialSiteId)
.then((res) => { .then((res) => {
this.userListLoading = false; this.userListLoading = false
this.userList = res.Result; this.userList = res.Result
}) })
.catch(() => { .catch(() => {
this.userListLoading = false; this.userListLoading = false
}); })
}, },
handleSearch() { handleSearch() {
this.searchData.PageIndex = 1; this.searchData.PageIndex = 1
this.getList(); this.getList()
}, },
handleReset() { handleReset() {
this.searchData = searchDataDefault(); this.searchData = searchDataDefault()
this.getList(); this.getList()
}, },
// //
handleSortChange(column) { handleSortChange(column) {
if (column.order === "ascending") { if (column.order === 'ascending') {
this.searchData.Asc = true; this.searchData.Asc = true
} else { } else {
this.searchData.Asc = false; this.searchData.Asc = false
} }
this.searchData.SortField = column.prop; this.searchData.SortField = column.prop
this.searchData.PageIndex = 1; this.searchData.PageIndex = 1
this.getList(); this.getList()
}, },
jumpToSubjectList(trialSiteId) {
this.$router.push({ path: `/trials/trials-panel/subject/subject-list?trialId=${this.$route.query.trialId}&trialCode=${this.$route.query.trialCode}&researchProgramNo=${this.$route.query.researchProgramNo}&trialSiteId=${trialSiteId}` })
}, },
}; jumpToVisitList(trialSiteId) {
this.$router.push({ path: `/trials/trials-panel/visit/crc-upload?trialId=${this.$route.query.trialId}&trialCode=${this.$route.query.trialCode}&researchProgramNo=${this.$route.query.researchProgramNo}&trialSiteId=${trialSiteId}` })
},
hasRoute(name, routeList) {
for (let i = 0; i < routeList.length; i++) {
if (routeList[i].name === name) {
return true
}
if (routeList[i].children) {
const flag = this.hasRoute(name, routeList[i].children)
if (flag) {
return flag
}
}
}
return false
}
},
}
</script> </script>
@@ -1,5 +1,5 @@
<template> <template>
<BaseContainer> <BaseContainer class="reading-period">
<el-tabs v-model="TrialReadingCriterionId" type="border-card"> <el-tabs v-model="TrialReadingCriterionId" type="border-card">
<el-tab-pane v-for="criterion of trialCriterionList" :key="criterion.TrialReadingCriterionId" :label="criterion.TrialReadingCriterionName" :name="criterion.TrialReadingCriterionId"> <el-tab-pane v-for="criterion of trialCriterionList" :key="criterion.TrialReadingCriterionId" :label="criterion.TrialReadingCriterionName" :name="criterion.TrialReadingCriterionId">
<div v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId"> <div v-if="TrialReadingCriterionId === criterion.TrialReadingCriterionId">
@@ -217,10 +217,9 @@
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-if="(otherInfo.IsReadingPeriod || otherInfo.IsClinicalReading) && ReadingInfoSignTime && hasPermi(['trials:trials-panel:subject:readingPeriod:edit'])" :fixed="(otherInfo.IsReadingPeriod || otherInfo.IsClinicalReading) && ReadingInfoSignTime && hasPermi(['trials:trials-panel:subject:readingPeriod:edit']) ? 'right':false"
fixed="right" :label="(otherInfo.IsReadingPeriod || otherInfo.IsClinicalReading) && ReadingInfoSignTime && hasPermi(['trials:trials-panel:subject:readingPeriod:edit']) ? $t('common:action:action') : ''"
:label="$t('common:action:action')" :width="(otherInfo.IsReadingPeriod || otherInfo.IsClinicalReading) && ReadingInfoSignTime && hasPermi(['trials:trials-panel:subject:readingPeriod:edit']) ? '150px' : '80px' "
width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@@ -577,6 +576,11 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.reading-period{
/deep/.search {
padding: 0px !important;
}
}
/deep/ .hidden-row{ /deep/ .hidden-row{
display: none; display: none;
} }
@@ -291,6 +291,7 @@ import SubjectsForm from './components/SubjectsForm'
import SubjectStatusForm from './components/SubjectStatusForm' import SubjectStatusForm from './components/SubjectStatusForm'
import MessageTable from './components/MessageTable' import MessageTable from './components/MessageTable'
import moment from 'moment' import moment from 'moment'
import { changeURLStatic } from '@/utils/history.js'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
Code: '', Code: '',
@@ -339,6 +340,10 @@ export default {
this.hasCrcRoute = this.hasRoute('crc-upload', trialsPanelRouter) this.hasCrcRoute = this.hasRoute('crc-upload', trialsPanelRouter)
this.hasQCRoute = this.hasRoute('qc-check', trialsPanelRouter) this.hasQCRoute = this.hasRoute('qc-check', trialsPanelRouter)
this.trialId = this.$route.query.trialId this.trialId = this.$route.query.trialId
if (this.$route.query.trialSiteId) {
this.searchData.TrialSiteId = this.$route.query.trialSiteId
changeURLStatic('trialSiteId', '')
}
this.getSite() this.getSite()
this.getList() this.getList()
}, },
@@ -62,13 +62,13 @@
<div> <div>
<!-- 功能模块 --> <!-- 功能模块 -->
<el-form-item :label="$t('trials:auditRecord:table:funcModule')"> <el-form-item :label="$t('trials:auditRecord:table:funcModule')">
<el-select v-model="searchData.ModuleType" style="width:120px" clearable @change="getModuleTypeDescriptionList"> <el-select v-model="searchData.ModuleType" style="width:120px" filterable clearable @change="getModuleTypeDescriptionList">
<el-option v-for="item of $d.ModuleType" :value="item.id" :label="item.label" :key="`ModuleType${item.value}`"/> <el-option v-for="item of $d.ModuleType" :value="item.id" :label="item.label" :key="`ModuleType${item.value}`"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 操作名 --> <!-- 操作名 -->
<el-form-item :label="$t('trials:auditRecord:table:operationName')"> <el-form-item :label="$t('trials:auditRecord:table:operationName')">
<el-select v-model="searchData.Description" style="width:120px" clearable> <el-select v-model="searchData.Description" style="width:120px" filterable clearable>
<el-option v-for="item of DescriptionOptions" :value="item" :label="item" :key="item"/> <el-option v-for="item of DescriptionOptions" :value="item" :label="item" :key="item"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -311,7 +311,7 @@ export default {
this.loading = true this.loading = true
this.searchData.TrialId = this.$route.query.trialId this.searchData.TrialId = this.$route.query.trialId
if (this.isMine) { if (this.isMine) {
this.searchData.UserId = this.id this.searchData.IdentityUserId = this.id
} }
getUserLogList(this.searchData) getUserLogList(this.searchData)
.then((res) => { .then((res) => {
@@ -29,7 +29,7 @@
/> />
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight: 700">{{ record.CreateUserName }} </span> <span style="font-weight: 700">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div <div
@@ -42,7 +42,7 @@
<div v-else class="word-my"> <div v-else class="word-my">
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight: 700">{{ record.CreateUserName }} </span> <span style="font-weight: 700">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div <div
@@ -371,6 +371,7 @@ export default {
TalkContent: content, TalkContent: content,
CreateTime: this.data.CreateTime, CreateTime: this.data.CreateTime,
CreateUserName: this.data.CreateUserName, CreateUserName: this.data.CreateUserName,
CreateUserFullName: this.data.CreateUserFullName,
CreateUserId: this.data.CreateUserId, CreateUserId: this.data.CreateUserId,
UserTypeEnum: this.data.UserTypeEnum, UserTypeEnum: this.data.UserTypeEnum,
}) })
@@ -421,6 +422,7 @@ export default {
TalkContent: content, TalkContent: content,
CreateTime: this.data.CreateTime, CreateTime: this.data.CreateTime,
CreateUserName: this.data.CreateUserName, CreateUserName: this.data.CreateUserName,
CreateUserFullName: this.data.CreateUserFullName,
CreateUserId: this.data.CreateUserId, CreateUserId: this.data.CreateUserId,
UserTypeEnum: this.data.UserTypeEnum, UserTypeEnum: this.data.UserTypeEnum,
}) })
@@ -17,7 +17,7 @@
<img v-else-if="record.UserTypeEnum*1 === 3" :src="qcAvatar" alt="QC"> <img v-else-if="record.UserTypeEnum*1 === 3" :src="qcAvatar" alt="QC">
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight:700;">{{ record.CreateUserName }} </span> <span style="font-weight:700;">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content" v-html="record.TalkContent" /> <div class="info-content" v-html="record.TalkContent" />
@@ -27,7 +27,7 @@
<div v-else class="word-my"> <div v-else class="word-my">
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight:700;">{{ record.CreateUserName }} </span> <span style="font-weight:700;">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content" v-html="record.TalkContent" /> <div class="info-content" v-html="record.TalkContent" />
@@ -288,6 +288,7 @@ export default {
TalkContent: content, TalkContent: content,
CreateTime: item.CreateTime, CreateTime: item.CreateTime,
CreateUserName: item.CreateUserName, CreateUserName: item.CreateUserName,
CreateUserFullName: item.CreateUserFullName,
CreateUserId: item.CreateUserId, CreateUserId: item.CreateUserId,
UserTypeEnum: item.UserTypeEnum, UserTypeEnum: item.UserTypeEnum,
}); });
@@ -1680,8 +1680,13 @@ export default {
this.getSite() this.getSite()
if (this.$route.query.subjectCode) { if (this.$route.query.subjectCode) {
this.searchData.SubjectInfo = this.$route.query.subjectCode this.searchData.SubjectInfo = this.$route.query.subjectCode
}
changeURLStatic('subjectCode', '') changeURLStatic('subjectCode', '')
}
if (this.$route.query.trialSiteId) {
this.searchData.TrialSiteId = this.$route.query.trialSiteId
changeURLStatic('trialSiteId', '')
}
this.TrialCode = this.$route.query.trialCode this.TrialCode = this.$route.query.trialCode
this.getList() this.getList()
this.getVisitPlanOptions() this.getVisitPlanOptions()
@@ -10,7 +10,7 @@
<img v-else-if="record.UserTypeEnum*1 === 3" :src="qcAvatar" alt="QC"> <img v-else-if="record.UserTypeEnum*1 === 3" :src="qcAvatar" alt="QC">
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight:700;">{{ record.CreateUserFullName }} </span> <span style="font-weight:700;">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content" v-html="formattedText(record.TalkContent)" /> <div class="info-content" v-html="formattedText(record.TalkContent)" />
@@ -20,7 +20,7 @@
<div v-else class="word-my"> <div v-else class="word-my">
<div class="info"> <div class="info">
<p class="user-info"> <p class="user-info">
<span style="font-weight:700;">{{ record.CreateUserName }} </span> <span style="font-weight:700;">{{ record.CreateUserFullName || record.CreateUserName }} </span>
<span>({{ record.CreateTime }}) </span> <span>({{ record.CreateTime }}) </span>
</p> </p>
<div class="info-content" v-html="formattedText(record.TalkContent)" /> <div class="info-content" v-html="formattedText(record.TalkContent)" />
@@ -184,6 +184,7 @@ export default {
TalkContent: content, TalkContent: content,
CreateTime: this.data.CreateTime, CreateTime: this.data.CreateTime,
CreateUserName: this.data.CreateUserName, CreateUserName: this.data.CreateUserName,
CreateUserFullName: this.data.CreateUserFullName,
CreateUserId: this.data.CreateUserId, CreateUserId: this.data.CreateUserId,
UserTypeEnum: this.data.UserTypeEnum UserTypeEnum: this.data.UserTypeEnum
} }
@@ -223,6 +224,7 @@ export default {
TalkContent: content, TalkContent: content,
CreateTime: this.data.CreateTime, CreateTime: this.data.CreateTime,
CreateUserName: this.data.CreateUserName, CreateUserName: this.data.CreateUserName,
CreateUserFullName: this.data.CreateUserFullName,
CreateUserId: this.data.CreateUserId, CreateUserId: this.data.CreateUserId,
UserTypeEnum: this.data.UserTypeEnum UserTypeEnum: this.data.UserTypeEnum
} }
@@ -121,7 +121,19 @@
:label="$t('trials:audit:table:bodyPart')" :label="$t('trials:audit:table:bodyPart')"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ getBodyPart(scope.row.BodyPartForEdit) }} <el-tooltip
class="item"
effect="dark"
:content="$t('trials:audit:message:noBodyPartForEdit')"
placement="bottom"
v-if="!scope.row.BodyPartForEdit"
>
<i
class="el-icon-warning"
style="color: #f44336; font-size: 16px"
/>
</el-tooltip>
<span v-else>{{ getBodyPart(scope.row.BodyPartForEdit) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- 序列数量 --> <!-- 序列数量 -->

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