部分问题修复
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-05-08 11:45:19 +08:00
parent f8fa8f470d
commit f9b6e984e8
6 changed files with 112 additions and 80 deletions

View File

@ -4,7 +4,7 @@
ref="mar"
hspace="0"
direction="left"
max-width="500"
width="500"
@mouseout="start()"
@mouseover="stop()"
>

View File

@ -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: [

View File

@ -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>{{

View File

@ -222,11 +222,11 @@ 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 {
// if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
// this.$alert(row.NoticeContent, currentNoticeType, {
// showConfirmButton: false,
// });
// } else {
const h = this.$createElement;
let _this = this;
this.$msgbox({
@ -280,7 +280,7 @@ export default {
}
},
});
}
// }
},
downLoadFile(filePath) {
if (!filePath) return;

View File

@ -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,
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;
})
.catch(() => {
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() {

View File

@ -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,