检查及加入项目模块点击详情查看影像

main
caiyiling 2024-04-16 11:04:19 +08:00
parent 82c33f4fce
commit 7524c3b495
4 changed files with 33 additions and 5 deletions

View File

@ -149,7 +149,6 @@
type="text" type="text"
@click.stop="detail(scope.row)" @click.stop="detail(scope.row)"
class="detail" class="detail"
disabled
>{{ $t("trials:trials-list:action:panel") }}</el-button >{{ $t("trials:trials-list:action:panel") }}</el-button
> >
</template> </template>
@ -169,6 +168,7 @@
<script> <script>
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import visitSelect from "@/components/visitSelect"; import visitSelect from "@/components/visitSelect";
import { getToken } from "@/utils/auth";
import { import {
getVisitPatientStudyList, getVisitPatientStudyList,
getSubjectVisitSelectList, getSubjectVisitSelectList,
@ -362,7 +362,14 @@ export default {
this.getList(); this.getList();
}, },
// //
detail() {}, detail(row) {
var token = getToken();
const routeData = this.$router.resolve({
path: `/showdicom?studyId=${row.SCPStudyId}&TokenKey=${token}&type=Patient`,
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
},
// //
async confirm() { async confirm() {
let fd = await this.formatData(); let fd = await this.formatData();

View File

@ -144,7 +144,7 @@ export default {
}); });
var newWindow = window.open(routeData.href, "_blank"); var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow); this.$emit("setOpenWindow", newWindow);
}, }
}, },
}; };
</script> </script>

View File

@ -226,6 +226,7 @@ import {
getPatientOtherStudyList, getPatientOtherStudyList,
updateSubjectVisitStudyBinding, updateSubjectVisitStudyBinding,
} from "@/api/trials/visit.js"; } from "@/api/trials/visit.js";
import { getToken } from "@/utils/auth";
const defaultSearchData = () => { const defaultSearchData = () => {
return { return {
EarliestStudyTime: null, EarliestStudyTime: null,
@ -362,7 +363,14 @@ export default {
// //
submit() {}, submit() {},
// //
detail(item, key) {}, detail(item, key) {
var token = getToken();
const routeData = this.$router.resolve({
path: `/showdicom?studyId=${item.SCPStudyId}&TokenKey=${token}&type=Patient`,
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
},
// //
remove(item) { remove(item) {
this.setRelation(item, false); this.setRelation(item, false);

View File

@ -281,7 +281,6 @@
type="text" type="text"
@click="handleViewStudy(scope.row)" @click="handleViewStudy(scope.row)"
v-hasPermi="['trials:trials-panel:study:view']" v-hasPermi="['trials:trials-panel:study:view']"
disabled
>{{ $t("trials:studyList:button:view") }}</el-button >{{ $t("trials:studyList:button:view") }}</el-button
> >
<!-- 修改访视 --> <!-- 修改访视 -->
@ -321,6 +320,7 @@
import BaseContainer from "@/components/BaseContainer"; import BaseContainer from "@/components/BaseContainer";
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
import editVisit from "./edit-visit"; import editVisit from "./edit-visit";
import { getToken } from "@/utils/auth";
import { import {
getPatientStudyBeforeConfirmList, getPatientStudyBeforeConfirmList,
getTrialPatientStudyList, getTrialPatientStudyList,
@ -432,6 +432,19 @@ export default {
console.log(err); console.log(err);
} }
}, },
//
handleViewStudy(row) {
let type ='Study'
if (this.activeName === 'notSubmit') {
type = 'Patient'
}
var token = getToken();
const routeData = this.$router.resolve({
path: `/showdicom?studyId=${row.StudyId}&TokenKey=${token}&type=${type}`,
});
var newWindow = window.open(routeData.href, "_blank");
this.$emit("setOpenWindow", newWindow);
},
// //
handleSearch() { handleSearch() {
this.searchData.PageIndex = 1; this.searchData.PageIndex = 1;