部分问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f8fa8f470d
commit
f9b6e984e8
|
@ -4,7 +4,7 @@
|
|||
ref="mar"
|
||||
hspace="0"
|
||||
direction="left"
|
||||
max-width="500"
|
||||
width="500"
|
||||
@mouseout="start()"
|
||||
@mouseover="stop()"
|
||||
>
|
||||
|
|
|
@ -249,6 +249,24 @@ export default {
|
|||
message: this.$t("trials:trials-list:formRule:minMaxAuthorized"),
|
||||
trigger: "blur",
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (
|
||||
value &&
|
||||
(String(value).includes(".") ||
|
||||
new RegExp(/\D/g).test(String(value)))
|
||||
) {
|
||||
callback(
|
||||
new Error(
|
||||
this.$t("trials:trials-list:formRule:notDecimalsAuthorized")
|
||||
)
|
||||
);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
},
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
// 阅片标准
|
||||
CriterionTypeList: [
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
prop="ExperimentName"
|
||||
:label="$t('trials:trials-list:table:experimentName')"
|
||||
show-overflow-tooltip
|
||||
min-width="100"
|
||||
min-width="140"
|
||||
sortable="custom"
|
||||
/>
|
||||
|
||||
|
@ -206,6 +206,7 @@
|
|||
:label="$t('trials:trials-list:table:CriterionTypeList')"
|
||||
show-overflow-tooltip
|
||||
v-if="hasPermi(['role:pm', 'role:pi', 'role:sr'])"
|
||||
min-width="140"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
|
|
|
@ -222,65 +222,65 @@ export default {
|
|||
},
|
||||
showDetail(row) {
|
||||
var currentNoticeType = this.$fd("NoteType", row.NoticeTypeEnum);
|
||||
if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
|
||||
this.$alert(row.NoticeContent, currentNoticeType, {
|
||||
showConfirmButton: false,
|
||||
});
|
||||
} else {
|
||||
const h = this.$createElement;
|
||||
let _this = this;
|
||||
this.$msgbox({
|
||||
title: currentNoticeType,
|
||||
message: h("div", null, [
|
||||
h("span", null, row.NoticeContent),
|
||||
row.Path
|
||||
? h(
|
||||
"div",
|
||||
{
|
||||
style: {
|
||||
marginTop: "10px",
|
||||
},
|
||||
// if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
|
||||
// this.$alert(row.NoticeContent, currentNoticeType, {
|
||||
// showConfirmButton: false,
|
||||
// });
|
||||
// } else {
|
||||
const h = this.$createElement;
|
||||
let _this = this;
|
||||
this.$msgbox({
|
||||
title: currentNoticeType,
|
||||
message: h("div", null, [
|
||||
h("span", null, row.NoticeContent),
|
||||
row.Path
|
||||
? h(
|
||||
"div",
|
||||
{
|
||||
style: {
|
||||
marginTop: "10px",
|
||||
},
|
||||
_this.$t("trials:notice:message:tipTitle")
|
||||
)
|
||||
: "",
|
||||
row.Path
|
||||
? h(
|
||||
"a",
|
||||
{
|
||||
attrs: {
|
||||
href: _this.OSSclientConfig.basePath + row.Path,
|
||||
target: "_blank",
|
||||
},
|
||||
style: {
|
||||
color: "#428bca",
|
||||
},
|
||||
},
|
||||
_this.$t("trials:notice:message:tipTitle")
|
||||
)
|
||||
: "",
|
||||
row.Path
|
||||
? h(
|
||||
"a",
|
||||
{
|
||||
attrs: {
|
||||
href: _this.OSSclientConfig.basePath + row.Path,
|
||||
target: "_blank",
|
||||
},
|
||||
row.FileName
|
||||
)
|
||||
: "",
|
||||
]),
|
||||
beforeClose: (action, instance, done) => {
|
||||
if (action === "confirm") {
|
||||
instance.confirmButtonLoading = true;
|
||||
setSystemNoticeHaveRead(row.Id)
|
||||
.then(async (res) => {
|
||||
if (res.IsSuccess) {
|
||||
await this.$store.dispatch("global/getNoticeList");
|
||||
this.getList();
|
||||
}
|
||||
instance.confirmButtonLoading = false;
|
||||
done();
|
||||
})
|
||||
.catch(() => {
|
||||
instance.confirmButtonLoading = false;
|
||||
});
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
style: {
|
||||
color: "#428bca",
|
||||
},
|
||||
},
|
||||
row.FileName
|
||||
)
|
||||
: "",
|
||||
]),
|
||||
beforeClose: (action, instance, done) => {
|
||||
if (action === "confirm") {
|
||||
instance.confirmButtonLoading = true;
|
||||
setSystemNoticeHaveRead(row.Id)
|
||||
.then(async (res) => {
|
||||
if (res.IsSuccess) {
|
||||
await this.$store.dispatch("global/getNoticeList");
|
||||
this.getList();
|
||||
}
|
||||
instance.confirmButtonLoading = false;
|
||||
done();
|
||||
})
|
||||
.catch(() => {
|
||||
instance.confirmButtonLoading = false;
|
||||
});
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
},
|
||||
});
|
||||
// }
|
||||
},
|
||||
downLoadFile(filePath) {
|
||||
if (!filePath) return;
|
||||
|
|
|
@ -274,13 +274,13 @@
|
|||
@click="handleReadImage(scope.row)"
|
||||
/>
|
||||
<!-- 重阅 -->
|
||||
<!-- <el-button
|
||||
<el-button
|
||||
v-hasPermi="['trials:readTask:reread']"
|
||||
circle
|
||||
:title="$t('trials:readTask:button:reread')"
|
||||
icon="el-icon-collection"
|
||||
@click="openApplyReReading(scope.row)"
|
||||
/> -->
|
||||
/>
|
||||
<!-- 下载报告 -->
|
||||
<!-- <el-button
|
||||
v-hasPermi="['trials:readTask:report']"
|
||||
|
@ -697,7 +697,7 @@ export default {
|
|||
getList() {
|
||||
this.loading = true;
|
||||
this.searchData.TrialId = this.trialId;
|
||||
this.searchData.TrialReadingCriterionId = this.TrialReadingCriterionId;
|
||||
// this.searchData.TrialReadingCriterionId = this.TrialReadingCriterionId;
|
||||
if (this.dateValue && this.dateValue[0] && this.dateValue[1]) {
|
||||
this.searchData.BeginSignDate = this.$moment(this.dateValue[0]).format(
|
||||
"YYYY-MM-DD HH:mm:ss"
|
||||
|
@ -751,22 +751,35 @@ export default {
|
|||
var routeData = this.$router.resolve({ path });
|
||||
this.openWindow = window.open(routeData.href, "_blank");
|
||||
},
|
||||
openApplyReReading(row) {
|
||||
this.rowData = { ...row };
|
||||
this.loading = true;
|
||||
getReReadingOrBackInfluenceTaskList(row.Id, true)
|
||||
.then((res) => {
|
||||
this.InfluenceTaskList = res.Result;
|
||||
this.ApplyforReasonVisible = true;
|
||||
this.ApplyforReasonForm = {
|
||||
Type: null,
|
||||
Remake: null,
|
||||
};
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
async openApplyReReading(row) {
|
||||
try {
|
||||
let confirm = await this.$confirm(
|
||||
this.$t("trials:readTask:message:msg2"),
|
||||
{
|
||||
type: "warning",
|
||||
distinguishCancelAndClose: true,
|
||||
}
|
||||
);
|
||||
if (!confirm) return;
|
||||
let params = {
|
||||
TrialId: row.TrialId,
|
||||
TrialReadingCriterionId: row.TrialReadingCriterionId,
|
||||
VisitTaskId: row.Id,
|
||||
};
|
||||
this.loading = true;
|
||||
let res = await aIRReReading(params);
|
||||
this.loading = false;
|
||||
if (res.IsSuccess) {
|
||||
this.getList();
|
||||
this.$message({
|
||||
message: this.$t("trials:readTask:message:msg3"),
|
||||
type: "success",
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
// 申请重阅
|
||||
applyReReading() {
|
||||
|
|
|
@ -136,7 +136,7 @@
|
|||
stripe
|
||||
height="100"
|
||||
:default-sort="{
|
||||
prop: 'TrialReadingCriterionName',
|
||||
prop: 'CreateTime',
|
||||
order: 'descending',
|
||||
}"
|
||||
>
|
||||
|
@ -1245,7 +1245,7 @@ export default {
|
|||
data() {
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
SortField: "TrialReadingCriterionName",
|
||||
SortField: "CreateTime",
|
||||
Asc: false,
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
|
|
Loading…
Reference in New Issue