Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
443ee66e33
|
@ -1,14 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<div style="margin-left:auto;">
|
<div style="margin-left: auto">
|
||||||
<!-- Approve -->
|
<!-- Approve -->
|
||||||
<el-button
|
<el-button
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="approveIdArr.length==0"
|
:disabled="approveIdArr.length == 0"
|
||||||
@click="handleApprove()"
|
@click="handleApprove()"
|
||||||
v-hasPermi="['trials:trials-panel:attachments:SPMEnrollment:button-agree']"
|
v-hasPermi="[
|
||||||
|
'trials:trials-panel:attachments:SPMEnrollment:button-agree',
|
||||||
|
]"
|
||||||
>
|
>
|
||||||
{{ $t('trials:seletctedReviews:button:approve') }}
|
{{ $t('trials:seletctedReviews:button:approve') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -17,7 +19,7 @@
|
||||||
<template slot="main-container">
|
<template slot="main-container">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
v-adaptive="{bottomOffset:65}"
|
v-adaptive="{ bottomOffset: 65 }"
|
||||||
height="100"
|
height="100"
|
||||||
:data="list"
|
:data="list"
|
||||||
class="table"
|
class="table"
|
||||||
|
@ -51,7 +53,13 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.SpecialityId === otherId?(scope.row.SpecialityOther?scope.row.SpecialityOther:'Other'): scope.row.Speciality }}
|
{{
|
||||||
|
scope.row.SpecialityId === otherId
|
||||||
|
? scope.row.SpecialityOther
|
||||||
|
? scope.row.SpecialityOther
|
||||||
|
: 'Other'
|
||||||
|
: scope.row.Speciality
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 亚专业 -->
|
<!-- 亚专业 -->
|
||||||
|
@ -62,7 +70,11 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.SubspecialityIds.map(v => {return $fd('Subspeciality', v, 'id')}).join(", ") }}
|
{{
|
||||||
|
scope.row.SubspecialityIds.map((v) => {
|
||||||
|
return $fd('Subspeciality', v, 'id')
|
||||||
|
}).join(', ')
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -111,7 +123,9 @@
|
||||||
/>
|
/>
|
||||||
<!-- 同意 -->
|
<!-- 同意 -->
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPermi="['trials:trials-panel:attachments:SPMEnrollment:button-agree']"
|
v-hasPermi="[
|
||||||
|
'trials:trials-panel:attachments:SPMEnrollment:button-agree',
|
||||||
|
]"
|
||||||
:disabled="scope.row.DoctorTrialState === 8"
|
:disabled="scope.row.DoctorTrialState === 8"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
circle
|
circle
|
||||||
|
@ -121,14 +135,23 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination class="page" :total="total" :page.sync="listQuery.PageIndex" :limit.sync="listQuery.PageSize" @pagination="getList" />
|
<pagination
|
||||||
|
class="page"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="listQuery.PageIndex"
|
||||||
|
:limit.sync="listQuery.PageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</BaseContainer>
|
</BaseContainer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import BaseContainer from '@/components/BaseContainer'
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { getSubmissionOrApprovalReviewerList, approveReviewer } from '@/api/trials'
|
import {
|
||||||
|
getSubmissionOrApprovalReviewerList,
|
||||||
|
approveReviewer,
|
||||||
|
} from '@/api/trials'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
const enrollState = 4
|
const enrollState = 4
|
||||||
export default {
|
export default {
|
||||||
|
@ -143,16 +166,18 @@ export default {
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
Asc: false,
|
Asc: false,
|
||||||
SortField: ''
|
SortField: '',
|
||||||
},
|
},
|
||||||
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
|
otherId: 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5',
|
||||||
total: 0,
|
total: 0,
|
||||||
listLoading: false,
|
listLoading: false,
|
||||||
approveIdArr: [],
|
approveIdArr: [],
|
||||||
token: store.getters.token
|
token: store.getters.token,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() {
|
||||||
|
this.initPage()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
lookResumeInfo(row) {
|
lookResumeInfo(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
|
@ -164,12 +189,16 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listQuery.TrialId = this.$route.query.trialId
|
this.listQuery.TrialId = this.$route.query.trialId
|
||||||
getSubmissionOrApprovalReviewerList(this.listQuery).then(res => {
|
getSubmissionOrApprovalReviewerList(this.listQuery)
|
||||||
this.listLoading = false
|
.then((res) => {
|
||||||
this.list = res.Result.CurrentPageData
|
this.listLoading = false
|
||||||
this.total = res.Result.TotalCount
|
this.list = res.Result.CurrentPageData
|
||||||
// eslint-disable-next-line handle-callback-err
|
this.total = res.Result.TotalCount
|
||||||
}).catch(() => { this.listLoading = false })
|
// eslint-disable-next-line handle-callback-err
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleApprove(row) {
|
handleApprove(row) {
|
||||||
// Confirm the approval?
|
// Confirm the approval?
|
||||||
|
@ -181,18 +210,22 @@ export default {
|
||||||
}
|
}
|
||||||
// '是否确认审核?'
|
// '是否确认审核?'
|
||||||
this.$confirm(this.$t('trials:spmEnroll:title:msg1'), {
|
this.$confirm(this.$t('trials:spmEnroll:title:msg1'), {
|
||||||
type: 'warning'
|
type: 'warning',
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
const trialId = this.$route.query.trialId
|
const trialId = this.$route.query.trialId
|
||||||
approveReviewer(trialId, params, 1).then(res => {
|
approveReviewer(trialId, params, 1)
|
||||||
if (res.IsSuccess) {
|
.then((res) => {
|
||||||
this.getList()
|
if (res.IsSuccess) {
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.getList()
|
||||||
// this.$emit('nextStep', 'confirmation')
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
}
|
// this.$emit('nextStep', 'confirmation')
|
||||||
this.listLoading = false
|
}
|
||||||
}).catch(() => { this.listLoading = false })
|
this.listLoading = false
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
|
@ -217,14 +250,16 @@ export default {
|
||||||
return 'selected'
|
return 'selected'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
|
handleSelectTable(row) {
|
||||||
|
return row.DoctorTrialState !== 8
|
||||||
|
},
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
const { href } = this.$router.resolve({
|
const { href } = this.$router.resolve({
|
||||||
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
|
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}&blindState=1`,
|
||||||
})
|
})
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue