授权更新修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-11-29 14:39:54 +08:00
parent 0f57c44f45
commit afafce3dc9
2 changed files with 64 additions and 37 deletions

View File

@ -144,7 +144,7 @@ export default {
},
},
mounted() {
console.log(this.trialsRouter);
// console.log(this.trialsRouter);
var query = ``;
var url = window.location.href;
if (~url.indexOf("?")) {

View File

@ -4,7 +4,7 @@
<el-descriptions :column="2" border style="width: 1200px">
<!--项目类型-->
<el-descriptions-item :label="$t('trials:trials-list:form:trialType')">
{{ $fd("TrialType", trialInfo.TrialType) }}
{{ $fd('TrialType', trialInfo.TrialType) }}
</el-descriptions-item>
<!--项目编号-->
<el-descriptions-item :label="$t('trials:trials-list:form:TrialCode')">
@ -36,20 +36,23 @@
</el-descriptions-item>
<!--临床分期-->
<el-descriptions-item :label="$t('trials:trials-list:form:phase')">
{{ $fd("Trial_Phase", trialInfo.PhaseId, "id") }}
{{ $fd('Trial_Phase', trialInfo.PhaseId, 'id') }}
</el-descriptions-item>
<!--适应症-->
<el-descriptions-item :label="$t('trials:trials-list:form:indication')">
{{ trialInfo.Indication }}
</el-descriptions-item>
<!--阅片标准-->
<el-descriptions-item :span="4" :label="$t('trials:trials-list:form:criterion')">
<el-descriptions-item
:span="4"
:label="$t('trials:trials-list:form:criterion')"
>
{{
trialInfo.CriterionTypeList
? trialInfo.CriterionTypeList.map((item) =>
$fd("CriterionType", item)
).join(", ")
: ""
$fd('CriterionType', item)
).join(', ')
: ''
}}
</el-descriptions-item>
<!--CRO-->
@ -81,7 +84,7 @@
</el-descriptions>
</div>
<div
v-if="otherInfo && otherInfo.TrialId"
v-if="otherInfo && otherInfo.TrialId && isRight"
v-hasPermi="['trials:trials-list:activate']"
>
<el-descriptions :column="2" border style="width: 1200px">
@ -102,8 +105,8 @@
>
{{
otherInfo.CriterionTypeList.map((item) =>
$fd("CriterionType", Number(item))
).join(",")
$fd('CriterionType', Number(item))
).join(',')
}}
</el-descriptions-item>
<!--授权时长-->
@ -125,7 +128,7 @@
{{ otherInfo.AuthorizationDeadLineDate }}
</el-descriptions-item>
</el-descriptions>
<div slot="extra">
<!-- <div slot="extra">
<el-button
type="primary"
size="small"
@ -133,7 +136,16 @@
@click.stop="putActivate"
>{{ $t("trials:activate:renewalAuthorization") }}</el-button
>
</div>
</div> -->
</div>
<div>
<el-button
type="primary"
size="small"
style="margin-top: 10px"
@click.stop="putActivate"
>{{ $t('trials:activate:renewalAuthorization') }}</el-button
>
</div>
<activate-project
v-if="activateVisible"
@ -144,58 +156,73 @@
</div>
</template>
<script>
import { getTrialInfoHir } from "@/api/trials";
import activateProject from "@/views/trials/trials-list/components/activate-project.vue";
import { getTrialInfoHir } from '@/api/trials'
import activateProject from '@/views/trials/trials-list/components/activate-project.vue'
export default {
components: { "activate-project": activateProject },
components: { 'activate-project': activateProject },
data() {
return {
trialInfo: {},
trialId: "",
trialStatus: "",
trialId: '',
trialStatus: '',
formLoading: false,
otherInfo: {},
isRight: true,
activateVisible: false,
};
}
},
mounted() {
this.trialId = this.$route.query.trialId;
this.initForm();
this.trialId = this.$route.query.trialId
this.initForm()
},
methods: {
//
putActivate() {
this.activateVisible = true;
this.activateVisible = true
console.log(this.activateVisible)
},
initForm() {
this.formLoading = true;
this.formLoading = true
getTrialInfoHir(this.trialId)
.then((res) => {
this.formLoading = false;
this.otherInfo = res.OtherInfo;
this.trialInfo = res.Result;
this.formLoading = false
this.isRight = true
this.otherInfo = res.OtherInfo
if (!res.OtherInfo) {
this.isRight = false
this.otherInfo = {
TrialId: this.$route.query.trialId,
}
}
this.trialInfo = res.Result
this.trialInfo.ReviewTypeList =
this.trialInfo.ReviewTypeList.length > 0
? this.trialInfo.ReviewTypeList.join(", ")
: "";
var modalityArr = [];
? this.trialInfo.ReviewTypeList.join(', ')
: ''
var modalityArr = []
res.Result.ModalityIds.map((i) => {
modalityArr.push(this.$fd("Modality", i, "id"));
});
this.trialInfo.ModalityList = modalityArr.join(", ");
modalityArr.push(this.$fd('Modality', i, 'id'))
})
this.trialInfo.ModalityList = modalityArr.join(', ')
this.trialInfo.Criterion =
res.Result.CriterionList && res.Result.CriterionList.length > 0
? res.Result.CriterionList.join(", ")
: "";
? res.Result.CriterionList.join(', ')
: ''
// this.trialInfo.Expedited = this.$fd('Trial_BasicInfo', res.Result.Expedited)
// this.trialInfo.AttendedReviewerType = this.$fd('Trial_BasicInfo', res.Result.AttendedReviewerType)
})
.catch(() => {
this.formLoading = false;
});
.catch((error) => {
this.formLoading = false
if (error.Code === 2) {
this.isRight = false
this.otherInfo = {
TrialId: this.$route.query.trialId,
}
}
})
},
},
};
}
</script>
<style lang="scss">
.trial-information {