From 55cc1492b66be25225911dd3151600bb6bf89372 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Thu, 25 Apr 2024 14:23:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main.js | 7 +-
src/permission.js | 12 +++-
src/views/recompose/index.vue | 2 +-
.../system/dicomAE/components/edit-dicom.vue | 1 +
src/views/system/dicomAE/index.vue | 3 +-
src/views/system/user/components/UserInfo.vue | 13 +++-
.../components/confirm-visit-list.vue | 1 +
.../components/view-study-list.vue | 4 +-
.../trials-list/components/TrialForm.vue | 4 +-
src/views/trials/trials-myinfo/account.vue | 2 +-
.../hirVisit/components/current-study.vue | 2 +
.../hirVisit/components/edit-study-list.vue | 2 +
.../hirVisit/components/studyInfo.vue | 2 +
.../components/staffExternalAdd.vue | 69 ++++++++++++++++---
.../personnel-manage/components/staffForm.vue | 20 +++---
.../trials-panel/study/components/list.vue | 41 +----------
.../trial-summary/audit-record/index.vue | 8 +++
17 files changed, 116 insertions(+), 77 deletions(-)
diff --git a/src/main.js b/src/main.js
index 7f9011b..b16b28d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,12 +2,10 @@
import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
-import ElementUI, { MessageBox } from 'element-ui'
+import ElementUI from 'element-ui'
import { getBasicDataAllSelect, getFrontInternationalizationList } from '@/api/dictionary/dictionary'
-// import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/theme-blue/index.css' // 浅绿色主题
import './assets/css/iconfont/index.css' // 阿里巴巴图标库
-// import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import i18n from './lang'
import '@/styles/index.scss' // global css
@@ -23,10 +21,7 @@ import '@/permission' // permission control
import md5 from 'js-md5'
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
-// import htmlToPdf from './utils/htmlToPdf'
-// Vue.use(htmlToPdf)
import permission from './utils/permission'
-import { OSSclient } from './utils/oss'
Vue.use(permission)
import Viewer from 'v-viewer'
diff --git a/src/permission.js b/src/permission.js
index ebfd678..e68f7d2 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -10,10 +10,18 @@ import { OSSclient } from './utils/oss'
NProgress.configure({ showSpinner: false })
-const whiteList = ['/activate','/ReviewersResearch', '/login', '/error', '/resetpassword', '/recompose', '/email-recompose', '/trialStats', '/showdicom', '/imagesShare', '/audit', '/preview', '/researchLogin', '/blindResumeInfo', '/trialsResume', '/joinVerify', '/showNoneDicoms', '/noneDicomReading', '/clinicalData', '/readingDicoms', '/readingPage', '/visitDicomReview', '/visitNondicomReview', '/globalReview', '/adReview', '/oncologyReview', '/nonedicoms']
-
+const whiteList = ['/activate', '/ReviewersResearch', '/login', '/error', '/resetpassword', '/recompose', '/email-recompose', '/trialStats', '/showdicom', '/imagesShare', '/audit', '/preview', '/researchLogin', '/blindResumeInfo', '/trialsResume', '/joinVerify', '/showNoneDicoms', '/noneDicomReading', '/clinicalData', '/readingDicoms', '/readingPage', '/visitDicomReview', '/visitNondicomReview', '/globalReview', '/adReview', '/oncologyReview', '/nonedicoms']
+// 影像页关闭
+Vue.prototype.$openWindow = null
+Vue.prototype.$setOpenWindow = (openWindow) => {
+ if (Vue.prototype.$openWindow) {
+ Vue.prototype.$openWindow.close();
+ }
+ Vue.prototype.$openWindow = openWindow;
+}
router.beforeEach(async (to, from, next) => {
NProgress.start()
+ Vue.prototype.$setOpenWindow();
// 设置页面标题
// document.title = getPageTitle(to.meta.title)
diff --git a/src/views/recompose/index.vue b/src/views/recompose/index.vue
index 6b04452..2a07c5e 100644
--- a/src/views/recompose/index.vue
+++ b/src/views/recompose/index.vue
@@ -68,7 +68,7 @@
diff --git a/src/views/system/dicomAE/components/edit-dicom.vue b/src/views/system/dicomAE/components/edit-dicom.vue
index be1f931..1eebc8d 100644
--- a/src/views/system/dicomAE/components/edit-dicom.vue
+++ b/src/views/system/dicomAE/components/edit-dicom.vue
@@ -6,6 +6,7 @@
width="500px"
custom-class="base-dialog-wrapper"
append-to-body
+ :before-close="handleCancel"
>
@@ -212,7 +211,9 @@ export default {
},
// 测试连通性
async test(item) {
+ this.loading = true;
let res = await testConnect(item.Id);
+ this.loading = false;
if (res.IsSuccess && res.Result) {
this.$message.success(this.$t("system:dicomAE:connect:success"));
} else {
diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue
index 7e188fc..aaa71d3 100644
--- a/src/views/system/user/components/UserInfo.vue
+++ b/src/views/system/user/components/UserInfo.vue
@@ -76,13 +76,12 @@
ref="userType"
v-model="user.UserTypeId"
size="small"
- placeholder="Please select"
+ placeholder=""
style="width: 100%"
:disabled="user.CanEditUserType === false"
>
{
if (res.IsSuccess) {
- this.userTypeOptions = res.Result;
+ let arr = [2, 4, 5, 8, 9, 12, 14];
+ if (this.hasPermi(["role:oa"])) {
+ arr = [4, 5, 8, 9, 12, 14];
+ }
+ this.userTypeOptions = res.Result.map((item) => {
+ if (arr.includes(item.UserTypeEnum)) {
+ return item;
+ }
+ }).filter((item) => item);
}
});
},
diff --git a/src/views/trials/trials-inspection/components/confirm-visit-list.vue b/src/views/trials/trials-inspection/components/confirm-visit-list.vue
index 80e127e..201edb4 100644
--- a/src/views/trials/trials-inspection/components/confirm-visit-list.vue
+++ b/src/views/trials/trials-inspection/components/confirm-visit-list.vue
@@ -456,6 +456,7 @@ export default {
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
+ this.$setOpenWindow(newWindow);
},
// 确认提交
async confirmSubmit() {
diff --git a/src/views/trials/trials-inspection/components/view-study-list.vue b/src/views/trials/trials-inspection/components/view-study-list.vue
index e5c0a27..0e68253 100644
--- a/src/views/trials/trials-inspection/components/view-study-list.vue
+++ b/src/views/trials/trials-inspection/components/view-study-list.vue
@@ -207,6 +207,7 @@ export default {
methods: {
// 关闭弹框
beforeCloseStudyDig() {
+ this.$setOpenWindow();
this.$emit("update:visible", false);
},
// 获取列表
@@ -256,7 +257,8 @@ export default {
const routeData = this.$router.resolve({
path: `/showdicom?studyId=${item.SCPStudyId}&TokenKey=${token}&type=Patient`,
});
- window.open(routeData.href, "_blank");
+ let newWindow = window.open(routeData.href, "_blank");
+ this.$setOpenWindow(newWindow);
},
// 查看报告
report() {},
diff --git a/src/views/trials/trials-list/components/TrialForm.vue b/src/views/trials/trials-list/components/TrialForm.vue
index e52c5af..e0cb1ca 100644
--- a/src/views/trials/trials-list/components/TrialForm.vue
+++ b/src/views/trials/trials-list/components/TrialForm.vue
@@ -110,7 +110,7 @@
v-model="trialForm.CriterionTypeList"
multiple
clearable
- :disabled="trialForm.Id !== ''"
+ :disabled="TrialStatusStr === 'Ongoing'"
>
{
diff --git a/src/views/trials/trials-myinfo/account.vue b/src/views/trials/trials-myinfo/account.vue
index 478e0e1..40720e7 100644
--- a/src/views/trials/trials-myinfo/account.vue
+++ b/src/views/trials/trials-myinfo/account.vue
@@ -42,7 +42,7 @@
diff --git a/src/views/trials/trials-panel/hirVisit/components/current-study.vue b/src/views/trials/trials-panel/hirVisit/components/current-study.vue
index b323bee..df284ec 100644
--- a/src/views/trials/trials-panel/hirVisit/components/current-study.vue
+++ b/src/views/trials/trials-panel/hirVisit/components/current-study.vue
@@ -150,6 +150,7 @@ export default {
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
+ this.$setOpenWindow(newWindow);
},
// 预览影像
handleViewStudy(row) {
@@ -159,6 +160,7 @@ export default {
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
+ this.$setOpenWindow(newWindow);
},
},
};
diff --git a/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue b/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue
index 2d0a389..b90a29f 100644
--- a/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue
+++ b/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue
@@ -376,6 +376,7 @@ export default {
},
// 关闭弹框
beforeCloseStudyDig() {
+ this.$setOpenWindow();
this.$emit("update:visible", false);
},
// 预览
@@ -390,6 +391,7 @@ export default {
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
+ this.$setOpenWindow(newWindow);
},
// 当前检查移除
remove(item) {
diff --git a/src/views/trials/trials-panel/hirVisit/components/studyInfo.vue b/src/views/trials/trials-panel/hirVisit/components/studyInfo.vue
index fb6c438..4934fef 100644
--- a/src/views/trials/trials-panel/hirVisit/components/studyInfo.vue
+++ b/src/views/trials/trials-panel/hirVisit/components/studyInfo.vue
@@ -184,6 +184,7 @@ export default {
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
+ this.$setOpenWindow(newWindow);
},
// 预览影像
handleViewStudy(row) {
@@ -193,6 +194,7 @@ export default {
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
+ this.$setOpenWindow(newWindow);
},
getBodyPart(bodyPart) {
if (!bodyPart) return "";
diff --git a/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalAdd.vue b/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalAdd.vue
index e88dd1e..1fc1472 100644
--- a/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalAdd.vue
+++ b/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalAdd.vue
@@ -91,19 +91,25 @@