授权更新修改
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() { mounted() {
console.log(this.trialsRouter); // console.log(this.trialsRouter);
var query = ``; var query = ``;
var url = window.location.href; var url = window.location.href;
if (~url.indexOf("?")) { if (~url.indexOf("?")) {

View File

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