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

main
wangxiaoshuang 2024-05-08 15:14:06 +08:00
parent f31ffb4b5e
commit fdf6ae36b7
8 changed files with 325 additions and 304 deletions

View File

@ -29,11 +29,12 @@ export function getInstitutionList(typeId) {
})
}
export function addUser(param) {
export function addUser(param, confirm = false) {
return request({
url: `/user/addUser`,
method: 'post',
data: param
data: param,
confirm
})
}

View File

@ -55,7 +55,7 @@ service.interceptors.response.use(
isConfirm = true
return Promise.resolve(res)
} else if (res.IsSuccess === false) {
if (res.Code !== 5) {
if (res.Code !== 5 && !response.config.confirm) {
MessageBox.confirm(res.ErrorMessage, {
type: 'warning',
showCancelButton: false,

View File

@ -154,7 +154,7 @@
type="number"
clearable
:max="200"
:min="0"
:min="1"
/>
</div>
</el-form-item>
@ -242,6 +242,13 @@ export default {
),
trigger: "blur",
},
{
pattern: /^[1-9]\d*$/,
message: this.$t(
"trials:trials-list:formRule:notDecimalsAuthorized"
),
trigger: "blur",
},
{
type: "number",
min: 1,
@ -249,24 +256,6 @@ 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: [
@ -284,7 +273,7 @@ export default {
trigger: "blur",
},
{
pattern: "^[\u4e00-\u9fa5a-zA-Z]+$",
pattern: /^[\u4e00-\u9fa5a-zA-Z]+$/,
message: this.$t("trisals:trials-list:formRule:onlyEN"),
trigger: "blur",
},

View File

@ -210,7 +210,10 @@ export default {
document.body.removeChild(eleLink);
},
downloadXmlFile() {
fileDownload(this.form.code, "_Activation_Code.lic");
fileDownload(
this.form.code,
this.data.TrialCode + "_Activation_Code.lic"
);
},
},
};

View File

@ -318,7 +318,10 @@ export default {
},
//
async getCode() {
fileDownload(this.form.Authorization, "_Request_Code.req");
fileDownload(
this.form.Authorization,
this.form.TrialCode + "_Request_Code.req"
);
},
//
uploadFile(file) {

View File

@ -3,10 +3,18 @@
v-loading="loading"
style="height: 100%; background-color: #fff"
>
<el-tabs v-model="TrialReadingCriterionId" type="border-card">
<el-tab-pane
v-for="i in trialCriterionList"
:key="i.TrialReadingCriterionId"
:label="i.TrialReadingCriterionName"
:name="i.TrialReadingCriterionId"
>
<div v-if="TrialReadingCriterionId === i.TrialReadingCriterionId">
<div slot="search-container" style="position: relative">
<el-form :inline="true">
<!-- 阅片标准 -->
<el-form-item :label="$t('trials:processCfg:form:criterion')">
<!-- <el-form-item :label="$t('trials:processCfg:form:criterion')">
<el-select
v-model="searchData.TrialReadingCriterionId"
clearable
@ -20,7 +28,7 @@
:value="item.TrialReadingCriterionId"
/>
</el-select>
</el-form-item>
</el-form-item> -->
<!-- 受试者编号 -->
<el-form-item :label="$t('trials:reviewTrack:table:subjectCode')">
<el-input
@ -38,7 +46,9 @@
/>
</el-form-item>
<!-- 患者姓名 -->
<el-form-item :label="$t('trials:uploadDicomList:table:patientName')">
<el-form-item
:label="$t('trials:uploadDicomList:table:patientName')"
>
<el-input
v-model="searchData.PatientName"
style="width: 140px"
@ -107,7 +117,11 @@
</el-form-item>
<el-form-item>
<!-- 查询 -->
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
<el-button
type="primary"
icon="el-icon-search"
@click="handleSearch"
>
{{ $t("common:button:search") }}
</el-button>
<!-- 重置 -->
@ -326,6 +340,9 @@
@pagination="getList"
/>
</div>
</div>
</el-tab-pane>
</el-tabs>
<el-dialog
v-if="ApplyforReasonVisible"
:title="$t('trials:readTask:dagTitle:apply')"
@ -714,7 +731,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"

View File

@ -291,7 +291,13 @@ export default {
this.form.BaseUrl = `${location.protocol}//${location.host}/login`;
this.form.RouteUrl = `${location.protocol}//${location.host}/email-recompose`;
}
addUser(this.form)
const selectedUserType = this.userTypeOptions.filter(
(item) => item.Id === this.form.UserTypeId
);
if (selectedUserType.length > 0) {
this.form.UserTypeEnum = selectedUserType[0].UserTypeEnum;
}
addUser(this.form, true)
.then((res) => {
this.btnLoading = false;
this.$message.success(
@ -305,8 +311,8 @@ export default {
// this.$set(this.form, "LastName", res.Result.LastName);
// this.$set(this.form, "FirstName", res.Result.FirstName);
// this.$set(this.form, "Phone", res.Result.Phone);
this.errorMsg = res.ErrorMessage;
}
this.errorMsg = res.ErrorMessage;
this.btnLoading = false;
});
}

View File

@ -11,12 +11,14 @@
clearable
style="width: 120px"
>
<template v-for="item of $d.UserOptType">
<el-option
v-for="item of $d.UserOptType"
:key="'UserOptType' + item.label"
:value="item.value"
:label="item.label"
v-if="item.value !== 9 && item.value !== 10"
/>
</template>
</el-select>
</el-form-item>
<el-form-item label="IP" prop="IP">