部分问题修复
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" ref="mar"
hspace="0" hspace="0"
direction="left" direction="left"
max-width="500" width="500"
@mouseout="start()" @mouseout="start()"
@mouseover="stop()" @mouseover="stop()"
> >

View File

@ -249,6 +249,24 @@ export default {
message: this.$t("trials:trials-list:formRule:minMaxAuthorized"), message: this.$t("trials:trials-list:formRule:minMaxAuthorized"),
trigger: "blur", 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: [ CriterionTypeList: [

View File

@ -160,7 +160,7 @@
prop="ExperimentName" prop="ExperimentName"
:label="$t('trials:trials-list:table:experimentName')" :label="$t('trials:trials-list:table:experimentName')"
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="140"
sortable="custom" sortable="custom"
/> />
@ -206,6 +206,7 @@
:label="$t('trials:trials-list:table:CriterionTypeList')" :label="$t('trials:trials-list:table:CriterionTypeList')"
show-overflow-tooltip show-overflow-tooltip
v-if="hasPermi(['role:pm', 'role:pi', 'role:sr'])" v-if="hasPermi(['role:pm', 'role:pi', 'role:sr'])"
min-width="140"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{

View File

@ -222,65 +222,65 @@ export default {
}, },
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;
let _this = this; let _this = this;
this.$msgbox({ this.$msgbox({
title: currentNoticeType, title: currentNoticeType,
message: h("div", null, [ message: h("div", null, [
h("span", null, row.NoticeContent), h("span", null, row.NoticeContent),
row.Path row.Path
? h( ? h(
"div", "div",
{ {
style: { style: {
marginTop: "10px", marginTop: "10px",
},
}, },
_this.$t("trials:notice:message:tipTitle") },
) _this.$t("trials:notice:message:tipTitle")
: "", )
row.Path : "",
? h( row.Path
"a", ? h(
{ "a",
attrs: { {
href: _this.OSSclientConfig.basePath + row.Path, attrs: {
target: "_blank", href: _this.OSSclientConfig.basePath + row.Path,
}, target: "_blank",
style: {
color: "#428bca",
},
}, },
row.FileName style: {
) color: "#428bca",
: "", },
]), },
beforeClose: (action, instance, done) => { row.FileName
if (action === "confirm") { )
instance.confirmButtonLoading = true; : "",
setSystemNoticeHaveRead(row.Id) ]),
.then(async (res) => { beforeClose: (action, instance, done) => {
if (res.IsSuccess) { if (action === "confirm") {
await this.$store.dispatch("global/getNoticeList"); instance.confirmButtonLoading = true;
this.getList(); setSystemNoticeHaveRead(row.Id)
} .then(async (res) => {
instance.confirmButtonLoading = false; if (res.IsSuccess) {
done(); await this.$store.dispatch("global/getNoticeList");
}) this.getList();
.catch(() => { }
instance.confirmButtonLoading = false; instance.confirmButtonLoading = false;
}); done();
} else { })
done(); .catch(() => {
} instance.confirmButtonLoading = false;
}, });
}); } else {
} done();
}
},
});
// }
}, },
downLoadFile(filePath) { downLoadFile(filePath) {
if (!filePath) return; if (!filePath) return;

View File

@ -274,13 +274,13 @@
@click="handleReadImage(scope.row)" @click="handleReadImage(scope.row)"
/> />
<!-- 重阅 --> <!-- 重阅 -->
<!-- <el-button <el-button
v-hasPermi="['trials:readTask:reread']" v-hasPermi="['trials:readTask:reread']"
circle circle
:title="$t('trials:readTask:button:reread')" :title="$t('trials:readTask:button:reread')"
icon="el-icon-collection" icon="el-icon-collection"
@click="openApplyReReading(scope.row)" @click="openApplyReReading(scope.row)"
/> --> />
<!-- 下载报告 --> <!-- 下载报告 -->
<!-- <el-button <!-- <el-button
v-hasPermi="['trials:readTask:report']" v-hasPermi="['trials:readTask:report']"
@ -697,7 +697,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
this.searchData.TrialId = this.trialId; this.searchData.TrialId = this.trialId;
this.searchData.TrialReadingCriterionId = this.TrialReadingCriterionId; // this.searchData.TrialReadingCriterionId = this.TrialReadingCriterionId;
if (this.dateValue && this.dateValue[0] && this.dateValue[1]) { if (this.dateValue && this.dateValue[0] && this.dateValue[1]) {
this.searchData.BeginSignDate = this.$moment(this.dateValue[0]).format( this.searchData.BeginSignDate = this.$moment(this.dateValue[0]).format(
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
@ -751,22 +751,35 @@ export default {
var routeData = this.$router.resolve({ path }); var routeData = this.$router.resolve({ path });
this.openWindow = window.open(routeData.href, "_blank"); this.openWindow = window.open(routeData.href, "_blank");
}, },
openApplyReReading(row) { async openApplyReReading(row) {
this.rowData = { ...row }; try {
this.loading = true; let confirm = await this.$confirm(
getReReadingOrBackInfluenceTaskList(row.Id, true) this.$t("trials:readTask:message:msg2"),
.then((res) => { {
this.InfluenceTaskList = res.Result; type: "warning",
this.ApplyforReasonVisible = true; distinguishCancelAndClose: true,
this.ApplyforReasonForm = { }
Type: null, );
Remake: null, if (!confirm) return;
}; let params = {
this.loading = false; TrialId: row.TrialId,
}) TrialReadingCriterionId: row.TrialReadingCriterionId,
.catch(() => { VisitTaskId: row.Id,
this.loading = false; };
}); 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() { applyReReading() {

View File

@ -136,7 +136,7 @@
stripe stripe
height="100" height="100"
:default-sort="{ :default-sort="{
prop: 'TrialReadingCriterionName', prop: 'CreateTime',
order: 'descending', order: 'descending',
}" }"
> >
@ -1245,7 +1245,7 @@ export default {
data() { data() {
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
SortField: "TrialReadingCriterionName", SortField: "CreateTime",
Asc: false, Asc: false,
PageIndex: 1, PageIndex: 1,
PageSize: 20, PageSize: 20,