项目添加课题组相关
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
15adb3611a
commit
15e8a8edc2
|
@ -356,4 +356,12 @@ export function getGAUserList() {
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 修改检查课题组
|
||||||
|
export function modifySCPStudyHospitalGroup(data) {
|
||||||
|
return request({
|
||||||
|
url: `/Patient/modifySCPStudyHospitalGroup`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,44 +1,23 @@
|
||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog :visible.sync="visible" :close-on-click-modal="false" :fullscreen="true" custom-class="upload-dialog"
|
||||||
:visible.sync="visible"
|
:before-close="beforeCloseStudyDig">
|
||||||
:close-on-click-modal="false"
|
<span slot="title">{{ $t('trials:inspection:message:viewStudy') }}({{
|
||||||
:fullscreen="true"
|
|
||||||
custom-class="upload-dialog"
|
|
||||||
:before-close="beforeCloseStudyDig"
|
|
||||||
>
|
|
||||||
<span slot="title"
|
|
||||||
>{{ $t('trials:inspection:message:viewStudy') }}({{
|
|
||||||
$t('trials:uploadDicomList:table:patientInfo')
|
$t('trials:uploadDicomList:table:patientInfo')
|
||||||
}}:{{ Patient.PatientIdStr }},{{ Patient.PatientName }})</span
|
}}:{{ Patient.PatientIdStr }},{{ Patient.PatientName }})</span>
|
||||||
>
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<el-form :inline="true" class="base-search-form">
|
<el-form :inline="true" class="base-search-form">
|
||||||
<!-- 检查类型 -->
|
<!-- 检查类型 -->
|
||||||
<el-form-item :label="$t('trials:audit:table:modality')">
|
<el-form-item :label="$t('trials:audit:table:modality')">
|
||||||
<el-select
|
<el-select v-model="searchData.Modalities" clearable style="width: 140px">
|
||||||
v-model="searchData.Modalities"
|
<el-option v-for="item of $d.modalType" :key="item.id" :label="item.label" :value="item.label">
|
||||||
clearable
|
|
||||||
style="width: 140px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.modalType"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.label"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 检查日期 -->
|
<!-- 检查日期 -->
|
||||||
<el-form-item :label="$t('trials:uploadedDicoms:table:studyDate')">
|
<el-form-item :label="$t('trials:uploadedDicoms:table:studyDate')">
|
||||||
<el-date-picker
|
<el-date-picker v-model="dateValue" type="datetimerange" range-separator="-"
|
||||||
v-model="dateValue"
|
|
||||||
type="datetimerange"
|
|
||||||
range-separator="-"
|
|
||||||
:start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
:start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
||||||
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')"
|
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')" :default-time="['00:00:00', '23:59:59']">
|
||||||
:default-time="['00:00:00', '23:59:59']"
|
|
||||||
>
|
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -47,143 +26,111 @@
|
||||||
{{ $t('common:button:search') }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 重置 -->
|
<!-- 重置 -->
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||||
type="primary"
|
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
@click="handleReset"
|
|
||||||
>
|
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 选择课题组 -->
|
||||||
|
<el-button type="primary" :disabled="multipleSelection.length <= 0" @click="openGroup">
|
||||||
|
{{ $t('trials:inspection:button:checkGroupId') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!--检查列表-->
|
<!--检查列表-->
|
||||||
<el-table
|
<el-table ref="viewStudyList" v-loading="loading" v-adaptive="{ bottomOffset: 60 }" :data="list" stripe height="100"
|
||||||
ref="viewStudyList"
|
@sort-change="handleSortByColumn" :default-sort="{ prop: 'StudyTime', order: 'descending' }"
|
||||||
v-loading="loading"
|
@selection-change="handleSelectionChange">
|
||||||
v-adaptive="{ bottomOffset: 60 }"
|
<!-- <el-table-column type="index" width="40" /> -->
|
||||||
:data="list"
|
<el-table-column type="selection" width="55" />
|
||||||
stripe
|
|
||||||
height="100"
|
|
||||||
@sort-change="handleSortByColumn"
|
|
||||||
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
|
|
||||||
>
|
|
||||||
<el-table-column type="index" width="40" />
|
|
||||||
<!--检查申请号-->
|
<!--检查申请号-->
|
||||||
<el-table-column
|
<el-table-column align="center" prop="AccessionNumber" :label="$t('trials:inspection:table:AccessionNumber')"
|
||||||
align="center"
|
show-overflow-tooltip min-width="120" sortable="custom"></el-table-column>
|
||||||
prop="AccessionNumber"
|
|
||||||
:label="$t('trials:inspection:table:AccessionNumber')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="120"
|
|
||||||
sortable="custom"
|
|
||||||
></el-table-column>
|
|
||||||
<!--检查描述-->
|
<!--检查描述-->
|
||||||
<el-table-column
|
<el-table-column align="center" prop="Description" :label="$t('trials:inspection:table:studyDescription')"
|
||||||
align="center"
|
show-overflow-tooltip min-width="120" sortable="custom"></el-table-column>
|
||||||
prop="Description"
|
|
||||||
:label="$t('trials:inspection:table:studyDescription')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="120"
|
|
||||||
sortable="custom"
|
|
||||||
></el-table-column>
|
|
||||||
<!--检查类型-->
|
<!--检查类型-->
|
||||||
<el-table-column
|
<el-table-column align="center" prop="Modalities" :label="$t('trials:audit:table:modality')" show-overflow-tooltip
|
||||||
align="center"
|
min-width="120" sortable="custom"></el-table-column>
|
||||||
prop="Modalities"
|
|
||||||
:label="$t('trials:audit:table:modality')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="120"
|
|
||||||
sortable="custom"
|
|
||||||
></el-table-column>
|
|
||||||
<!--Called AE-->
|
<!--Called AE-->
|
||||||
<el-table-column
|
<el-table-column prop="CalledAE" :label="$t('trials:inspection:table:CalledAE')" show-overflow-tooltip
|
||||||
prop="CalledAE"
|
min-width="120">
|
||||||
:label="$t('trials:inspection:table:CalledAE')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="120"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--Calling AE-->
|
<!--Calling AE-->
|
||||||
<el-table-column
|
<el-table-column prop="CallingAE" :label="$t('trials:inspection:table:CallingAE')" show-overflow-tooltip
|
||||||
prop="CallingAE"
|
min-width="120">
|
||||||
:label="$t('trials:inspection:table:CallingAE')"
|
</el-table-column>
|
||||||
show-overflow-tooltip
|
<!--课题组-->
|
||||||
min-width="120"
|
<el-table-column prop="ViewHospitalGroupList" :label="$t('trials:inspection:table:ViewHospitalGroupList')"
|
||||||
>
|
show-overflow-tooltip min-width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{
|
||||||
|
scope.row.ViewHospitalGroupList && scope.row.ViewHospitalGroupList.length > 0 ?
|
||||||
|
scope.row.ViewHospitalGroupList.map(item => item.Name).join(', ') : ''}}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--序列数量-->
|
<!--序列数量-->
|
||||||
<el-table-column
|
<el-table-column align="center" prop="SeriesCount" :label="$t('trials:audit:table:seriesCount')"
|
||||||
align="center"
|
show-overflow-tooltip min-width="100" sortable="custom"></el-table-column>
|
||||||
prop="SeriesCount"
|
|
||||||
:label="$t('trials:audit:table:seriesCount')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="100"
|
|
||||||
sortable="custom"
|
|
||||||
></el-table-column>
|
|
||||||
<!--图像数量-->
|
<!--图像数量-->
|
||||||
<el-table-column
|
<el-table-column align="center" prop="InstanceCount" :label="$t('trials:audit:table:instanceCount')"
|
||||||
align="center"
|
show-overflow-tooltip min-width="100" sortable="custom"></el-table-column>
|
||||||
prop="InstanceCount"
|
|
||||||
:label="$t('trials:audit:table:instanceCount')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="100"
|
|
||||||
sortable="custom"
|
|
||||||
></el-table-column>
|
|
||||||
<!--检查日期-->
|
<!--检查日期-->
|
||||||
<el-table-column
|
<el-table-column align="center" prop="StudyTime" :label="$t('trials:audit:table:studyDate')" show-overflow-tooltip
|
||||||
align="center"
|
min-width="180" sortable="custom"></el-table-column>
|
||||||
prop="StudyTime"
|
|
||||||
:label="$t('trials:audit:table:studyDate')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="180"
|
|
||||||
sortable="custom"
|
|
||||||
></el-table-column>
|
|
||||||
<!--操作-->
|
<!--操作-->
|
||||||
<el-table-column :label="$t('common:action:action')" min-width="150">
|
<el-table-column :label="$t('common:action:action')" min-width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 影像 -->
|
<!-- 影像 -->
|
||||||
<el-button
|
<el-button circle icon="el-icon-view" :title="$t('trials:inspection:button:image')"
|
||||||
circle
|
@click.stop="image(scope.row)" />
|
||||||
icon="el-icon-view"
|
|
||||||
:title="$t('trials:inspection:button:image')"
|
|
||||||
@click.stop="image(scope.row)"
|
|
||||||
/>
|
|
||||||
<!--删除-->
|
<!--删除-->
|
||||||
<el-button
|
<el-button circle v-hasPermi="['trials:trialsInspection:delStudy']" icon="el-icon-delete"
|
||||||
circle
|
:title="$t('trials:inspection:button:delete')" @click.stop="deletePatientStudy(scope.row)" />
|
||||||
v-hasPermi="['trials:trialsInspection:delStudy']"
|
|
||||||
icon="el-icon-delete"
|
|
||||||
:title="$t('trials:inspection:button:delete')"
|
|
||||||
@click.stop="deletePatientStudy(scope.row)"
|
|
||||||
/>
|
|
||||||
<!-- 诊断报告 -->
|
<!-- 诊断报告 -->
|
||||||
<el-button
|
<el-button circle icon="el-icon-document" @click.stop="report(scope.row)"
|
||||||
circle
|
:title="$t('trials:inspection:button:diagnosticReport')" disabled />
|
||||||
icon="el-icon-document"
|
|
||||||
@click.stop="report(scope.row)"
|
|
||||||
:title="$t('trials:inspection:button:diagnosticReport')"
|
|
||||||
disabled
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<pagination
|
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||||
class="page"
|
@pagination="getList" />
|
||||||
:total="total"
|
<base-model v-if="group_model.visible" :config="group_model">
|
||||||
:page.sync="searchData.PageIndex"
|
<template slot="dialog-body">
|
||||||
:limit.sync="searchData.PageSize"
|
<el-form ref="anonymizationFrom" :model="form" :rules="rules" label-width="100px" size="small">
|
||||||
@pagination="getList"
|
<el-form-item :label="$t('trials:externalStaff:table:lastName')" prop="LastName" v-show="false">
|
||||||
/>
|
<el-input clearable />
|
||||||
|
</el-form-item>
|
||||||
|
<!-- 用户类型 -->
|
||||||
|
<el-form-item :label="$t('trials:externalStaff:table:hospitalGroupIdList')" prop="hospitalGroupIdList">
|
||||||
|
<el-select v-model="form.hospitalGroupIdList" style="width: 100%" multiple clearable>
|
||||||
|
<el-option v-for="item of hospitalGroupList" :key="item.Id" :label="item.Name" :value="item.Id">
|
||||||
|
<!-- <span>{{ item.UserType }}</span> -->
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
<template slot="dialog-footer">
|
||||||
|
<!-- 取消 -->
|
||||||
|
<el-button size="small" type="primary" :disabled="btnLoading" @click="handleCancelGroup">
|
||||||
|
{{ $t("common:button:cancel") }}
|
||||||
|
</el-button>
|
||||||
|
<!-- 保存 -->
|
||||||
|
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSaveGroup">
|
||||||
|
{{ $t("common:button:save") }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</base-model>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { getPatientStudyList, deletePatientStudy } from '@/api/inspection.js'
|
import { getPatientStudyList, deletePatientStudy } from '@/api/inspection.js'
|
||||||
|
import { modifySCPStudyHospitalGroup, getHospitalGroupList } from '@/api/admin.js'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
import BaseModel from '@/components/BaseModel'
|
||||||
const defaultSearchData = () => {
|
const defaultSearchData = () => {
|
||||||
return {
|
return {
|
||||||
Modalities: null,
|
Modalities: null,
|
||||||
|
@ -198,7 +145,7 @@ const defaultSearchData = () => {
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'viewStudyList',
|
name: 'viewStudyList',
|
||||||
components: { Pagination },
|
components: { Pagination, BaseModel },
|
||||||
props: {
|
props: {
|
||||||
visible: {
|
visible: {
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -220,12 +167,69 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
list: [],
|
list: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
|
multipleSelection: [],
|
||||||
|
group_model: {
|
||||||
|
visible: false,
|
||||||
|
title: this.$t('trials:inspection:dialogTitle:add'),
|
||||||
|
width: '400px',
|
||||||
|
appendToBody: true
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
HospitalGroupIdList: [],
|
||||||
|
},
|
||||||
|
rules: {},
|
||||||
|
btnLoading: false,
|
||||||
|
hospitalGroupList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async getHospitalGroupList() {
|
||||||
|
try {
|
||||||
|
let res = await getHospitalGroupList({})
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.hospitalGroupList = res.Result
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
openGroup() {
|
||||||
|
this.form.hospitalGroupIdList = []
|
||||||
|
this.getHospitalGroupList()
|
||||||
|
this.group_model.visible = true
|
||||||
|
},
|
||||||
|
handleCancelGroup() {
|
||||||
|
this.form.hospitalGroupIdList = []
|
||||||
|
this.group_model.visible = false
|
||||||
|
},
|
||||||
|
async handleSaveGroup() {
|
||||||
|
try {
|
||||||
|
if (this.multipleSelection.length <= 0) return false
|
||||||
|
let ScPstudyIdList = this.multipleSelection.map(item => item.SCPStudyId)
|
||||||
|
let data = {
|
||||||
|
ScPstudyIdList,
|
||||||
|
AddOrDelete: 1,
|
||||||
|
HospitalGroupIdList: this.form.HospitalGroupIdList
|
||||||
|
}
|
||||||
|
this.btnLoading = true
|
||||||
|
let res = await modifySCPStudyHospitalGroup(data)
|
||||||
|
this.btnLoading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
this.handleCancelGroup()
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
this.btnLoading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
this.multipleSelection = val;
|
||||||
|
},
|
||||||
// 删除检查
|
// 删除检查
|
||||||
async deletePatientStudy(item) {
|
async deletePatientStudy(item) {
|
||||||
try {
|
try {
|
||||||
|
@ -315,7 +319,7 @@ export default {
|
||||||
this.$setOpenWindow(newWindow)
|
this.$setOpenWindow(newWindow)
|
||||||
},
|
},
|
||||||
// 查看报告
|
// 查看报告
|
||||||
report() {},
|
report() { },
|
||||||
// 表格排序
|
// 表格排序
|
||||||
handleSortByColumn(sort) {
|
handleSortByColumn(sort) {
|
||||||
this.searchData.SortField = sort.prop
|
this.searchData.SortField = sort.prop
|
||||||
|
@ -327,5 +331,4 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped></style>
|
||||||
</style>
|
|
|
@ -30,8 +30,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 最新接收时间 -->
|
<!-- 最新接收时间 -->
|
||||||
<el-form-item :label="$t('trials:inspection:table:latestReceiveTime')">
|
<el-form-item :label="$t('trials:inspection:table:latestReceiveTime')">
|
||||||
<el-date-picker v-model="dateValue" type="datetimerange" range-separator="-" :start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
<el-date-picker v-model="dateValue" type="datetimerange" range-separator="-"
|
||||||
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')" :default-time="['00:00:00', '23:59:59']" clearable>
|
:start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
||||||
|
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')" :default-time="['00:00:00', '23:59:59']"
|
||||||
|
clearable>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -116,6 +118,15 @@
|
||||||
<!-- <span v-else>{{ scope.row.VisitName }}</span> -->
|
<!-- <span v-else>{{ scope.row.VisitName }}</span> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<!--课题组-->
|
||||||
|
<el-table-column prop="StudyHospitalGroupList" :label="$t('trials:trials-myinfo:form:StudyHospitalGroupList')"
|
||||||
|
show-overflow-tooltip min-width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{
|
||||||
|
scope.row.StudyHospitalGroupList && scope.row.StudyHospitalGroupList.length > 0 ?
|
||||||
|
scope.row.StudyHospitalGroupList.map(item => item.Name).join(', '):'' }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- 检查数 -->
|
<!-- 检查数 -->
|
||||||
<el-table-column prop="StudyCount" :label="$t('trials:studyList:table:count')" show-overflow-tooltip
|
<el-table-column prop="StudyCount" :label="$t('trials:studyList:table:count')" show-overflow-tooltip
|
||||||
min-width="100" sortable="custom">
|
min-width="100" sortable="custom">
|
||||||
|
|
|
@ -1,66 +1,28 @@
|
||||||
<!-- eslint-disable -->
|
<!-- eslint-disable -->
|
||||||
<template>
|
<template>
|
||||||
<el-form
|
<el-form ref="trialForm" v-loading="loading" label-width="250px" :rules="trialFormRules"
|
||||||
ref="trialForm"
|
class="demo-ruleForm trial-Form" :model="trialForm" label-position="right" :inline="true">
|
||||||
v-loading="loading"
|
|
||||||
label-width="250px"
|
|
||||||
:rules="trialFormRules"
|
|
||||||
class="demo-ruleForm trial-Form"
|
|
||||||
:model="trialForm"
|
|
||||||
label-position="right"
|
|
||||||
:inline="true"
|
|
||||||
>
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<!-- 项目码 -->
|
<!-- 项目码 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:table:trialId')" prop="TrialCode" v-if="trialForm.Id !== ''">
|
||||||
:label="$t('trials:trials-list:table:trialId')"
|
|
||||||
prop="TrialCode"
|
|
||||||
v-if="trialForm.Id !== ''"
|
|
||||||
>
|
|
||||||
<el-input v-model="trialForm.TrialCode" disabled />
|
<el-input v-model="trialForm.TrialCode" disabled />
|
||||||
<!-- <el-input v-model="trialForm.TrialCode" /> -->
|
<!-- <el-input v-model="trialForm.TrialCode" /> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 项目类型 -->
|
<!-- 项目类型 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:form:trialType')" prop="TrialType">
|
||||||
:label="$t('trials:trials-list:form:trialType')"
|
<el-radio-group v-model="trialForm.TrialType" :disabled="trialForm.Id !== ''">
|
||||||
prop="TrialType"
|
<el-radio v-for="item of $d.TrialType" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
|
||||||
>
|
|
||||||
<el-radio-group
|
|
||||||
v-model="trialForm.TrialType"
|
|
||||||
:disabled="trialForm.Id !== ''"
|
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.TrialType"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.value"
|
|
||||||
>{{ item.label }}</el-radio
|
|
||||||
>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<!-- 研究方案号 -->
|
<!-- 研究方案号 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:form:researchNumber')" prop="ResearchProgramNo">
|
||||||
:label="$t('trials:trials-list:form:researchNumber')"
|
<el-input v-model="trialForm.ResearchProgramNo" clearable :disabled="TrialStatusStr === 'Ongoing'" />
|
||||||
prop="ResearchProgramNo"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="trialForm.ResearchProgramNo"
|
|
||||||
clearable
|
|
||||||
:disabled="TrialStatusStr === 'Ongoing'"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 研究名称 -->
|
<!-- 研究名称 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:table:researchName')" prop="ExperimentName">
|
||||||
:label="$t('trials:trials-list:table:researchName')"
|
<el-input v-model="trialForm.ExperimentName" type="textarea" :autosize="{ minRows: 1, maxRows: 4 }" clearable />
|
||||||
prop="ExperimentName"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="trialForm.ExperimentName"
|
|
||||||
type="textarea"
|
|
||||||
:autosize="{ minRows: 1, maxRows: 4 }"
|
|
||||||
clearable
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
|
@ -69,34 +31,19 @@
|
||||||
<el-input v-model="trialForm.MedicineName" clearable />
|
<el-input v-model="trialForm.MedicineName" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 申办方 -->
|
<!-- 申办方 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:form:sponsor')" prop="Sponsor">
|
||||||
:label="$t('trials:trials-list:form:sponsor')"
|
|
||||||
prop="Sponsor"
|
|
||||||
>
|
|
||||||
<el-input v-model="trialForm.Sponsor" maxlength="200" clearable />
|
<el-input v-model="trialForm.Sponsor" maxlength="200" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<!-- 研究者 -->
|
<!-- 研究者 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:form:investigator')" prop="HeadPI">
|
||||||
:label="$t('trials:trials-list:form:investigator')"
|
|
||||||
prop="HeadPI"
|
|
||||||
>
|
|
||||||
<el-input v-model="trialForm.HeadPI" clearable />
|
<el-input v-model="trialForm.HeadPI" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 临床分期 -->
|
<!-- 临床分期 -->
|
||||||
<el-form-item :label="$t('trials:trials-list:form:phase')" prop="PhaseId">
|
<el-form-item :label="$t('trials:trials-list:form:phase')" prop="PhaseId">
|
||||||
<el-select
|
<el-select v-model="trialForm.PhaseId" @change="handlePhaseChange" clearable>
|
||||||
v-model="trialForm.PhaseId"
|
<el-option v-for="item of $d.Trial_Phase" :key="item.id" :label="item.label" :value="item.id" />
|
||||||
@change="handlePhaseChange"
|
|
||||||
clearable
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of $d.Trial_Phase"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -106,37 +53,30 @@
|
||||||
<el-input v-model="trialForm.Indication" clearable />
|
<el-input v-model="trialForm.Indication" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 阅片标准 -->
|
<!-- 阅片标准 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:form:criterion')" prop="CriterionTypeList">
|
||||||
:label="$t('trials:trials-list:form:criterion')"
|
<el-select v-model="trialForm.CriterionTypeList" multiple clearable :disabled="TrialStatusStr === 'Ongoing'">
|
||||||
prop="CriterionTypeList"
|
<el-option v-for="item of CriterionTypeList" :key="item.Id" :label="item.CriterionName"
|
||||||
>
|
:value="item.CriterionType" :title="item.Description" />
|
||||||
<el-select
|
|
||||||
v-model="trialForm.CriterionTypeList"
|
|
||||||
multiple
|
|
||||||
clearable
|
|
||||||
:disabled="TrialStatusStr === 'Ongoing'"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item of CriterionTypeList"
|
|
||||||
:key="item.Id"
|
|
||||||
:label="item.CriterionName"
|
|
||||||
:value="item.CriterionType"
|
|
||||||
:title="item.Description"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
|
<!-- 课题组 -->
|
||||||
|
<el-form-item :label="$t('trials:trials-list:form:HospitalGroupId')" prop="HospitalGroupId">
|
||||||
|
<el-select v-model="trialForm.HospitalGroupId" clearable :disabled="TrialStatusStr === 'Ongoing'">
|
||||||
|
<el-option v-for="item of hospitalGroupList" :key="item.Id" :label="item.Name" :value="item.Id" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<!-- CRO -->
|
<!-- CRO -->
|
||||||
<el-form-item :label="$t('trials:trials-list:form:cro')" prop="Cro">
|
<el-form-item :label="$t('trials:trials-list:form:cro')" prop="Cro">
|
||||||
<el-input v-model="trialForm.CRO" maxlength="200" clearable />
|
<el-input v-model="trialForm.CRO" maxlength="200" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
<!-- 联系人 -->
|
<!-- 联系人 -->
|
||||||
<el-form-item :label="$t('trials:researchForm:form:contactor')">
|
<el-form-item :label="$t('trials:researchForm:form:contactor')">
|
||||||
<el-input v-model="trialForm.ContactUser" clearable />
|
<el-input v-model="trialForm.ContactUser" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<!-- 电话 -->
|
<!-- 电话 -->
|
||||||
<el-form-item :label="$t('trials:trials-myinfo:form:phone')">
|
<el-form-item :label="$t('trials:trials-myinfo:form:phone')">
|
||||||
<el-input v-model="trialForm.ContactPhone" type="number" clearable />
|
<el-input v-model="trialForm.ContactPhone" type="number" clearable />
|
||||||
|
@ -144,32 +84,15 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<!-- 项目周期 -->
|
<!-- 项目周期 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:form:projectCycle')" prop="AuthorizationDuration">
|
||||||
:label="$t('trials:trials-list:form:projectCycle')"
|
|
||||||
prop="AuthorizationDuration"
|
|
||||||
>
|
|
||||||
<div style="position: relative">
|
<div style="position: relative">
|
||||||
<el-input
|
<el-input v-model.number="trialForm.AuthorizationDuration" type="number" clearable :max="200" :min="1" />
|
||||||
v-model.number="trialForm.AuthorizationDuration"
|
|
||||||
type="number"
|
|
||||||
clearable
|
|
||||||
:max="200"
|
|
||||||
:min="1"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 到期日 -->
|
<!-- 到期日 -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:trials-list:table:dateAuthorized')" prop="visitNumberAuthorized">
|
||||||
:label="$t('trials:trials-list:table:dateAuthorized')"
|
<el-date-picker v-model="trialForm.AuthorizationDate" value-format="yyyy-MM-dd" type="date" placeholder=""
|
||||||
prop="visitNumberAuthorized"
|
disabled>
|
||||||
>
|
|
||||||
<el-date-picker
|
|
||||||
v-model="trialForm.AuthorizationDate"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
type="date"
|
|
||||||
placeholder=""
|
|
||||||
disabled
|
|
||||||
>
|
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -193,6 +116,9 @@ import {
|
||||||
addOrUpdateTrialHir,
|
addOrUpdateTrialHir,
|
||||||
getSystemConfirmedCreiterionList,
|
getSystemConfirmedCreiterionList,
|
||||||
} from "@/api/trials";
|
} from "@/api/trials";
|
||||||
|
import {
|
||||||
|
getHospitalGroupList
|
||||||
|
} from '@/api/admin.js'
|
||||||
import { getBasicDataSelects } from "@/api/dictionary/dictionary";
|
import { getBasicDataSelects } from "@/api/dictionary/dictionary";
|
||||||
export default {
|
export default {
|
||||||
name: "TrialForm",
|
name: "TrialForm",
|
||||||
|
@ -222,9 +148,18 @@ export default {
|
||||||
ContactPhone: "",
|
ContactPhone: "",
|
||||||
AuthorizationDuration: null,
|
AuthorizationDuration: null,
|
||||||
AuthorizationDate: null,
|
AuthorizationDate: null,
|
||||||
|
HospitalGroupId: null
|
||||||
},
|
},
|
||||||
indicationGrouping: null,
|
indicationGrouping: null,
|
||||||
trialFormRules: {
|
trialFormRules: {
|
||||||
|
// 项目码
|
||||||
|
HospitalGroupId: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("common:ruleMessage:specify"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
// 项目码
|
// 项目码
|
||||||
TrialCode: [
|
TrialCode: [
|
||||||
{
|
{
|
||||||
|
@ -350,6 +285,7 @@ export default {
|
||||||
dictionaryList: {},
|
dictionaryList: {},
|
||||||
CriterionTypeList: [], // 阅片标准列表
|
CriterionTypeList: [], // 阅片标准列表
|
||||||
TrialStatusStr: null, // 项目状态
|
TrialStatusStr: null, // 项目状态
|
||||||
|
hospitalGroupList: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -360,6 +296,16 @@ export default {
|
||||||
this.initPage();
|
this.initPage();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async getHospitalGroupList() {
|
||||||
|
try {
|
||||||
|
let res = await getHospitalGroupList({})
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.hospitalGroupList = res.Result
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
// 获取阅片标准
|
// 获取阅片标准
|
||||||
async getSystemConfirmedCreiterionList() {
|
async getSystemConfirmedCreiterionList() {
|
||||||
try {
|
try {
|
||||||
|
@ -519,6 +465,7 @@ export default {
|
||||||
.trial-Form .el-textarea {
|
.trial-Form .el-textarea {
|
||||||
width: 340px;
|
width: 340px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.trial-Form .el-col .el-input {
|
.trial-Form .el-col .el-input {
|
||||||
width: 165px;
|
width: 165px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
|
|
@ -90,9 +90,10 @@
|
||||||
<el-table-column prop="ResearchProgramNo" :label="$t('trials:trials-list:table:researchNumber')"
|
<el-table-column prop="ResearchProgramNo" :label="$t('trials:trials-list:table:researchNumber')"
|
||||||
show-overflow-tooltip min-width="120" sortable="custom" />
|
show-overflow-tooltip min-width="120" sortable="custom" />
|
||||||
|
|
||||||
<el-table-column prop="ExperimentName" :label="$t('trials:trials-list:table:experimentName')"
|
<el-table-column prop="HospitalGroupName" :label="$t('trials:trials-list:table:HospitalGroupName')"
|
||||||
|
show-overflow-tooltip min-width="120" sortable="custom" />
|
||||||
|
<el-table-column prop="ResearchProgramNo" :label="$t('trials:trials-list:table:researchNumber')"
|
||||||
show-overflow-tooltip min-width="120" sortable="custom" />
|
show-overflow-tooltip min-width="120" sortable="custom" />
|
||||||
|
|
||||||
<el-table-column prop="Sponsor" :label="$t('trials:trials-list:table:sponsor')" min-width="90"
|
<el-table-column prop="Sponsor" :label="$t('trials:trials-list:table:sponsor')" min-width="90"
|
||||||
show-overflow-tooltip sortable="custom" />
|
show-overflow-tooltip sortable="custom" />
|
||||||
<el-table-column prop="TrialStatusStr" :label="$t('trials:trials-list:table:status')" show-overflow-tooltip
|
<el-table-column prop="TrialStatusStr" :label="$t('trials:trials-list:table:status')" show-overflow-tooltip
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
<!-- 用户类型 -->
|
<!-- 用户类型 -->
|
||||||
<el-form-item :label="$t('trials:staff:table:userType')">
|
<el-form-item :label="$t('trials:staff:table:userType')">
|
||||||
<el-select v-model="listQuery.UserTypeId" clearable class="mr">
|
<el-select v-model="listQuery.UserTypeId" clearable class="mr">
|
||||||
<el-option
|
<el-option v-for="item of userTypeOptions" v-show="item.UserTypeEnum !== 8 &&
|
||||||
v-for="item of userTypeOptions"
|
item.UserTypeEnum !== 31 &&
|
||||||
:key="item.Id"
|
item.UserTypeEnum !== 26 &&
|
||||||
:label="item.UserType"
|
item.UserTypeEnum !== 27
|
||||||
:value="item.Id"
|
" :key="item.Id" :label="item.UserTypeShortName" :value="item.Id">
|
||||||
>
|
<span>{{ item.UserType }}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -27,172 +27,143 @@
|
||||||
<el-form-item :label="$t('trials:staff:table:organization')">
|
<el-form-item :label="$t('trials:staff:table:organization')">
|
||||||
<el-input v-model="listQuery.OrganizationName" class="mr" clearable />
|
<el-input v-model="listQuery.OrganizationName" class="mr" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 邮箱 -->
|
|
||||||
<el-form-item :label="$t('trials:staff:table:email')">
|
|
||||||
<el-input v-model="listQuery.Email" class="mr" clearable />
|
|
||||||
</el-form-item>
|
|
||||||
<!-- 状态 -->
|
<!-- 状态 -->
|
||||||
<el-form-item :label="$t('trials:staff:table:status')">
|
<el-form-item :label="$t('trials:staff:table:status')">
|
||||||
<el-select v-model="listQuery.IsDeleted" clearable class="mr">
|
<el-select v-model="listQuery.IsDeleted" clearable class="mr">
|
||||||
<el-option
|
<el-option v-for="item of $d.IsUserExitTrial" :label="item.label" :value="item.value" :key="item.id" />
|
||||||
v-for="item of $d.IsUserExitTrial"
|
<!-- <el-option label="加入" :value="false" />-->
|
||||||
:key="`IsDeleted${item.label}`"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<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") }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 重置 -->
|
<!-- 重置 -->
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||||
type="primary"
|
{{ $t('common:button:reset') }}
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
@click="handleReset"
|
|
||||||
>
|
|
||||||
{{ $t("common:button:reset") }}
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 添加用户 -->
|
<!-- 添加用户 -->
|
||||||
<el-button
|
<el-button v-hasPermi="[
|
||||||
v-hasPermi="[
|
|
||||||
'trials:trials-panel:setting:personnel-manage:add-internal-staff',
|
'trials:trials-panel:setting:personnel-manage:add-internal-staff',
|
||||||
]"
|
]" type="primary" style="margin-left: 10px" icon="el-icon-plus" @click="handleAdd('Add')">
|
||||||
type="primary"
|
{{ $t('trials:staff:button:addStaff') }}
|
||||||
style="margin-left: 10px"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAdd('Add')"
|
|
||||||
>
|
|
||||||
{{ $t("trials:staff:button:addStaff") }}
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 添加新用户 -->
|
|
||||||
<!-- <el-button
|
|
||||||
v-hasPermi="['trials:trials-panel:setting:personnel-manage:add-external-staff']"
|
|
||||||
type="primary"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
@click="handleAdd('External')"
|
|
||||||
>
|
|
||||||
{{ $t('trials:staff:button:addExternalStaff') }}
|
|
||||||
</el-button> -->
|
|
||||||
<!-- 导出 -->
|
<!-- 导出 -->
|
||||||
<!-- <el-button
|
<!-- <el-button type="primary" icon="el-icon-download" :disabled="list.length === 0" @click="handleExport">
|
||||||
type="primary"
|
{{ $t('common:button:export') }}
|
||||||
icon="el-icon-download"
|
|
||||||
:disabled="list.length === 0"
|
|
||||||
@click="handleExport"
|
|
||||||
>
|
|
||||||
{{ $t("common:button:export") }}
|
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 项目参与人员列表 -->
|
<!-- 项目参与人员列表 -->
|
||||||
<el-table
|
<el-table ref="settingList" v-loading="listLoading" :data="list" v-adaptive="{ bottomOffset: 60 }" stripe
|
||||||
ref="settingList"
|
@sort-change="handleSortByColumn">
|
||||||
v-adaptive="{ bottomOffset: 60 }"
|
<el-table-column type="index" width="60">
|
||||||
v-loading="listLoading"
|
<template slot-scope="scope">
|
||||||
:data="list"
|
<span style="
|
||||||
stripe
|
display: flex;
|
||||||
@sort-change="handleSortByColumn"
|
align-items: center;
|
||||||
>
|
justify-content: flex-end;
|
||||||
<el-table-column type="index" width="50" />
|
">
|
||||||
|
<el-tooltip class="item" effect="dark" :content="$t('trials:staff:tip:userDisabled')" placement="top"
|
||||||
|
style="margin-right: 3px" v-if="!scope.row.Status">
|
||||||
|
<i v-if="!scope.row.Status" class="el-icon-warning icon-i"></i>
|
||||||
|
</el-tooltip>
|
||||||
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- 姓名 -->
|
<!-- 姓名 -->
|
||||||
<el-table-column
|
<el-table-column prop="FullName" :label="$t('trials:staff:table:name')" show-overflow-tooltip sortable
|
||||||
prop="UserRealName"
|
min-width="40" />
|
||||||
:label="$t('trials:staff:table:name')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
min-width="40"
|
|
||||||
/>
|
|
||||||
<!-- 用户名 -->
|
<!-- 用户名 -->
|
||||||
<el-table-column
|
<el-table-column prop="UserName" :label="$t('trials:staff:table:uid')" show-overflow-tooltip sortable
|
||||||
prop="UserName"
|
min-width="50" />
|
||||||
:label="$t('trials:staff:table:uid')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
min-width="50"
|
|
||||||
/>
|
|
||||||
<!-- 用户类型 -->
|
<!-- 用户类型 -->
|
||||||
<el-table-column
|
<el-table-column prop="UserType" :label="$t('trials:staff:table:userType')" show-overflow-tooltip sortable
|
||||||
prop="UserType"
|
width="160">
|
||||||
:label="$t('trials:staff:table:userType')"
|
<template slot-scope="scope">
|
||||||
show-overflow-tooltip
|
<el-button v-if="
|
||||||
sortable
|
Array.isArray(scope.row.TrialUserRoleList) &&
|
||||||
width="140"
|
scope.row.TrialUserRoleList.length > 0 &&
|
||||||
/>
|
hasPermi(['trials:trials-panel:setting:personnel-manage:status'])
|
||||||
|
" type="text" @click.stop="openRoleList(scope.row)">
|
||||||
|
<el-tooltip class="item" effect="dark" :content="$t('trials:staff:tip:userTypeDisabled')" placement="top"
|
||||||
|
style="margin-right: 2px" v-if="
|
||||||
|
scope.row.TrialUserRoleList.some(
|
||||||
|
(item) => item.IsDeleted || item.IsUserRoleDisabled
|
||||||
|
)
|
||||||
|
">
|
||||||
|
<i class="el-icon-warning icon-i"></i>
|
||||||
|
</el-tooltip>
|
||||||
|
<span>{{
|
||||||
|
scope.row.TrialUserRoleList.map(
|
||||||
|
(item) => item.UserTypeShortName
|
||||||
|
).join(', ')
|
||||||
|
}}</span>
|
||||||
|
</el-button>
|
||||||
|
<div v-else-if="
|
||||||
|
Array.isArray(scope.row.TrialUserRoleList) &&
|
||||||
|
scope.row.TrialUserRoleList.length > 0
|
||||||
|
">
|
||||||
|
<el-tooltip class="item" effect="dark" :content="$t('trials:staff:tip:userTypeDisabled')" placement="top"
|
||||||
|
style="margin-right: 2px" v-if="
|
||||||
|
scope.row.TrialUserRoleList.some(
|
||||||
|
(item) => item.IsDeleted || item.IsUserRoleDisabled
|
||||||
|
)
|
||||||
|
">
|
||||||
|
<i class="el-icon-warning icon-i"></i>
|
||||||
|
</el-tooltip>
|
||||||
|
<span>{{
|
||||||
|
scope.row.TrialUserRoleList.map(
|
||||||
|
(item) => item.UserTypeShortName
|
||||||
|
).join(', ')
|
||||||
|
}}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- 联系电话 -->
|
<!-- 联系电话 -->
|
||||||
<el-table-column
|
<el-table-column prop="Phone" :label="$t('trials:staff:table:phone')" show-overflow-tooltip sortable
|
||||||
prop="Phone"
|
min-width="40" />
|
||||||
:label="$t('trials:staff:table:phone')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
min-width="40"
|
|
||||||
/>
|
|
||||||
<!-- 邮箱 -->
|
<!-- 邮箱 -->
|
||||||
<el-table-column
|
<el-table-column prop="EMail" :label="$t('trials:staff:table:email')" show-overflow-tooltip sortable
|
||||||
prop="EMail"
|
min-width="40" />
|
||||||
:label="$t('trials:staff:table:email')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
min-width="40"
|
|
||||||
/>
|
|
||||||
<!-- 单位 -->
|
<!-- 单位 -->
|
||||||
<el-table-column
|
<el-table-column prop="OrganizationName" :label="$t('trials:staff:table:organization')" sortable
|
||||||
prop="OrganizationName"
|
show-overflow-tooltip min-width="50" />
|
||||||
:label="$t('trials:staff:table:organization')"
|
|
||||||
sortable
|
|
||||||
show-overflow-tooltip
|
|
||||||
min-width="50"
|
|
||||||
/>
|
|
||||||
<!-- 状态 -->
|
<!-- 状态 -->
|
||||||
<el-table-column
|
<el-table-column prop="IsDeleted" :label="$t('trials:staff:table:status')" show-overflow-tooltip sortable
|
||||||
prop="IsDeleted"
|
min-width="40">
|
||||||
:label="$t('trials:staff:table:status')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
min-width="40"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
||||||
$fd("IsUserExitTrial", scope.row.IsDeleted)
|
$fd('IsUserExitTrial', scope.row.IsDeleted)
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
<el-tag v-else>{{
|
<el-tag v-else>{{
|
||||||
$fd("IsUserExitTrial", scope.row.IsDeleted)
|
$fd('IsUserExitTrial', scope.row.IsDeleted)
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 加入日期 -->
|
<!-- 加入日期 -->
|
||||||
<el-table-column
|
<el-table-column prop="JoinTime" :label="$t('trials:staff:table:joinTime')" show-overflow-tooltip sortable
|
||||||
prop="JoinTime"
|
width="160">
|
||||||
:label="$t('trials:staff:table:joinTime')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
width="160"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{
|
{{
|
||||||
scope.row.JoinTime
|
scope.row.JoinTime
|
||||||
? moment(scope.row.JoinTime).format("YYYY-MM-DD")
|
? moment(scope.row.JoinTime).format('YYYY-MM-DD')
|
||||||
: ""
|
: ''
|
||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 退出日期 -->
|
<!-- 退出日期 -->
|
||||||
<el-table-column
|
<el-table-column prop="RemoveTime" :label="$t('trials:staff:table:exitTime')" show-overflow-tooltip sortable
|
||||||
prop="RemoveTime"
|
width="160">
|
||||||
:label="$t('trials:staff:table:exitTime')"
|
|
||||||
show-overflow-tooltip
|
|
||||||
sortable
|
|
||||||
width="160"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{
|
{{
|
||||||
scope.row.RemoveTime
|
scope.row.RemoveTime
|
||||||
? moment(scope.row.RemoveTime).format("YYYY-MM-DD")
|
? moment(scope.row.RemoveTime).format('YYYY-MM-DD')
|
||||||
: ""
|
: ''
|
||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -213,126 +184,133 @@
|
||||||
min-width="60"
|
min-width="60"
|
||||||
/> -->
|
/> -->
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column v-if="hasPermi(['trials:trials-panel:setting:personnel-manage:status'])"
|
||||||
v-if="hasPermi(['trials:trials-panel:setting:personnel-manage:status'])"
|
:label="$t('common:action:action')" width="150">
|
||||||
:label="$t('common:action:action')"
|
|
||||||
width="150"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button v-hasPermi="['trials:trials-panel:setting:personnel-manage:status']" circle
|
||||||
v-hasPermi="['trials:trials-panel:setting:personnel-manage:status']"
|
:title="$t('trials:staff:action:status')" icon="el-icon-edit-outline" :disabled="!!scope.row.TrialUserRoleList.find(
|
||||||
circle
|
(item) => item.UserTypeEnum === 1
|
||||||
:title="$t('trials:staff:action:status')"
|
)
|
||||||
icon="el-icon-edit-outline"
|
" @click="handleStatus(scope.row)" />
|
||||||
:disabled="scope.row.UserTypeEnum * 1 === 3"
|
<!---v-if="!scope.row.UserName"-->
|
||||||
@click="handleStatus(scope.row)"
|
<el-button v-if="!scope.row.UserName" circle :title="$t('trials:staff:action:email')" icon="el-icon-message"
|
||||||
/>
|
@click="handleSendEmail(scope.row)" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<div class="pagination" style="text-align: right">
|
<div class="pagination" style="text-align: right">
|
||||||
<pagination
|
<pagination :total="total" :page.sync="listQuery.PageIndex" :limit.sync="listQuery.PageSize"
|
||||||
:total="total"
|
@pagination="getList" />
|
||||||
:page.sync="listQuery.PageIndex"
|
|
||||||
:limit.sync="listQuery.PageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 分配参与人员模态框 -->
|
<!-- 分配参与人员模态框 -->
|
||||||
<base-model v-if="staff_model.visible" :config="staff_model">
|
<base-model v-if="staff_model.visible" :config="staff_model">
|
||||||
<template slot="dialog-body">
|
<template slot="dialog-body">
|
||||||
<StaffForm
|
<StaffForm v-if="isAdd == 'Add'" @closeDialog="closeDialog" />
|
||||||
v-if="isAdd == 'Add'"
|
<StaffExternalForm v-else @closeDialog="closeDialog" @getList="getList" />
|
||||||
:userTypeOptions="userTypeOptions"
|
|
||||||
@closeDialog="closeDialog"
|
|
||||||
/>
|
|
||||||
<StaffExternalForm
|
|
||||||
v-else
|
|
||||||
@closeDialog="closeDialog"
|
|
||||||
@getList="getList"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
|
|
||||||
<!-- 修改参与者人员状态 -->
|
<!-- 修改参与者人员状态 -->
|
||||||
<base-model v-if="status_model.visible" :config="status_model">
|
<base-model v-if="status_model.visible" :config="status_model">
|
||||||
<template slot="dialog-body">
|
<template slot="dialog-body">
|
||||||
<el-form
|
<el-form ref="statusForm" :model="statusForm" label-width="110px" size="small" :rules="statusRules">
|
||||||
ref="statusForm"
|
|
||||||
:model="statusForm"
|
|
||||||
label-width="110px"
|
|
||||||
size="small"
|
|
||||||
:rules="statusRules"
|
|
||||||
>
|
|
||||||
<!-- Status -->
|
<!-- Status -->
|
||||||
<el-form-item
|
<el-form-item :label="$t('trials:staff:table:status')" prop="isDeleted">
|
||||||
:label="$t('trials:staff:table:status')"
|
<el-radio-group v-model="statusForm.isDeleted" @change="handleIsDeletedChanged">
|
||||||
prop="isDeleted"
|
<el-radio v-for="item of $d.IsUserExitTrial" :label="item.value" :key="item.id">{{ item.label
|
||||||
>
|
}}</el-radio>
|
||||||
<el-radio-group
|
|
||||||
v-model="statusForm.isDeleted"
|
|
||||||
@change="handleIsDeletedChanged"
|
|
||||||
>
|
|
||||||
<el-radio
|
|
||||||
v-for="item of $d.IsUserExitTrial"
|
|
||||||
:key="`statusForm.isDeleted${item.value}`"
|
|
||||||
:label="item.value"
|
|
||||||
>{{ item.label }}</el-radio
|
|
||||||
>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 退出日期 -->
|
<!-- 退出日期 -->
|
||||||
<el-form-item
|
<el-form-item v-if="statusForm.isDeleted" :label="$t('trials:staff:table:exitTime')" prop="removeTime">
|
||||||
v-if="statusForm.isDeleted"
|
<el-date-picker v-model="statusForm.removeTime" type="date" :picker-options="pickerOption"
|
||||||
:label="$t('trials:staff:table:exitTime')"
|
value-format="yyyy-MM-dd" format="yyyy-MM-dd" />
|
||||||
prop="removeTime"
|
|
||||||
>
|
|
||||||
<el-date-picker
|
|
||||||
v-model="statusForm.removeTime"
|
|
||||||
type="date"
|
|
||||||
:picker-options="pickerOption"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
format="yyyy-MM-dd"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 加入日期 -->
|
<!-- 加入日期 -->
|
||||||
<el-form-item
|
<el-form-item v-else :label="$t('trials:staff:table:joinTime')" prop="joinTime">
|
||||||
v-else
|
<el-date-picker v-model="statusForm.joinTime" type="date" :picker-options="pickerOption"
|
||||||
:label="$t('trials:staff:table:joinTime')"
|
value-format="yyyy-MM-dd" format="yyyy-MM-dd" />
|
||||||
prop="joinTime"
|
|
||||||
>
|
|
||||||
<el-date-picker
|
|
||||||
v-model="statusForm.joinTime"
|
|
||||||
type="date"
|
|
||||||
:picker-options="pickerOption"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
format="yyyy-MM-dd"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template slot="dialog-footer">
|
<template slot="dialog-footer">
|
||||||
<el-button
|
<el-button :disabled="btnLoading" size="small" type="primary" @click="status_model.visible = false">
|
||||||
:disabled="btnLoading"
|
{{ $t('common:button:cancel') }}
|
||||||
size="small"
|
|
||||||
type="primary"
|
|
||||||
@click="status_model.visible = false"
|
|
||||||
>
|
|
||||||
{{ $t("common:button:cancel") }}
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button size="small" type="primary" :loading="btnLoading" @click="saveStatus">
|
||||||
size="small"
|
{{ $t('common:button:save') }}
|
||||||
type="primary"
|
|
||||||
:loading="btnLoading"
|
|
||||||
@click="saveStatus"
|
|
||||||
>
|
|
||||||
{{ $t("common:button:save") }}
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
|
<!-- 修改参与者人员角色 -->
|
||||||
|
<base-model v-if="role_model.visible" :config="role_model">
|
||||||
|
<template slot="dialog-body">
|
||||||
|
<el-table :data="roleList" style="width: 100%" max-height="300px">
|
||||||
|
<el-table-column type="index" width="60">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span style="
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
">
|
||||||
|
<el-tooltip class="item" effect="dark" :content="$t('trials:staff:tip:userTypeSysDisabled')"
|
||||||
|
placement="top" style="margin-right: 3px" v-if="scope.row.IsUserRoleDisabled">
|
||||||
|
<i v-if="scope.row.IsUserRoleDisabled" class="el-icon-warning icon-i"></i>
|
||||||
|
</el-tooltip>
|
||||||
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="UserTypeShortName" :label="$t(
|
||||||
|
'trials:trials-panel:setting:personnel-manage:table:UserTypeShortName'
|
||||||
|
)
|
||||||
|
" />
|
||||||
|
<el-table-column prop="IsDeleted" :label="$t(
|
||||||
|
'trials:trials-panel:setting:personnel-manage:table:IsUserRoleDisabled'
|
||||||
|
)
|
||||||
|
">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span> {{ $fd('IsDisable', scope.row.IsDeleted) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="IsDeleted" :label="$t(
|
||||||
|
'trials:trials-panel:setting:personnel-manage:table:enableTime'
|
||||||
|
)
|
||||||
|
" min-width="120px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>
|
||||||
|
{{ scope.row.CreateTime }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="IsDeleted" :label="$t(
|
||||||
|
'trials:trials-panel:setting:personnel-manage:table:forbiddenTime'
|
||||||
|
)
|
||||||
|
" min-width="120px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.IsDeleted">
|
||||||
|
{{ scope.row.UpdateTime }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column :label="$t('common:action:action')" min-width="120px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" :disabled="scope.row.IsDeleted || scope.row.UserTypeEnum === 1"
|
||||||
|
@click.stop="changeRoleStatus(scope.row, true)">
|
||||||
|
{{ $fd('IsDisable', true) }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="mini" type="text" :disabled="!scope.row.IsDeleted || scope.row.UserTypeEnum === 1"
|
||||||
|
@click.stop="changeRoleStatus(scope.row, false)">
|
||||||
|
{{ $fd('IsDisable', false) }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</template>
|
||||||
|
</base-model>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -341,27 +319,27 @@ import {
|
||||||
getTrialUserTypeList,
|
getTrialUserTypeList,
|
||||||
updateTrialUser,
|
updateTrialUser,
|
||||||
trialUserListExport,
|
trialUserListExport,
|
||||||
} from "@/api/trials";
|
updateTrialUserRole,
|
||||||
import { getUserTypeListByUserType } from "@/api/admin";
|
trialUserSendJoinEmail,
|
||||||
import Pagination from "@/components/Pagination";
|
} from '@/api/trials'
|
||||||
import StaffForm from "./staffForm";
|
import Pagination from '@/components/Pagination'
|
||||||
import StaffExternalForm from "./staffExternalForm";
|
import StaffForm from './staffForm'
|
||||||
import BaseModel from "@/components/BaseModel";
|
import StaffExternalForm from './staffExternalForm'
|
||||||
import moment from "moment";
|
import BaseModel from '@/components/BaseModel'
|
||||||
|
import moment from 'moment'
|
||||||
const getListQueryDefault = () => {
|
const getListQueryDefault = () => {
|
||||||
return {
|
return {
|
||||||
UserRealName: "",
|
UserRealName: '',
|
||||||
UserName: "",
|
UserName: '',
|
||||||
UserTypeId: "",
|
UserTypeId: '',
|
||||||
OrganizationName: "",
|
OrganizationName: '',
|
||||||
Email: "",
|
|
||||||
IsDeleted: null,
|
IsDeleted: null,
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
export default {
|
export default {
|
||||||
name: "Staff",
|
name: 'Staff',
|
||||||
components: { Pagination, StaffForm, BaseModel, StaffExternalForm },
|
components: { Pagination, StaffForm, BaseModel, StaffExternalForm },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -371,162 +349,221 @@ export default {
|
||||||
total: 0,
|
total: 0,
|
||||||
staff_model: {
|
staff_model: {
|
||||||
visible: false,
|
visible: false,
|
||||||
title: this.$t("trials:staff:dialogTitle:add"),
|
title: this.$t('trials:staff:dialogTitle:add'),
|
||||||
width: "1200px",
|
width: '1200px',
|
||||||
},
|
},
|
||||||
status_model: {
|
status_model: {
|
||||||
visible: false,
|
visible: false,
|
||||||
title: this.$t("trials:staff:dialogTitle:status"),
|
title: this.$t('trials:staff:dialogTitle:status'),
|
||||||
width: "500px",
|
width: '500px',
|
||||||
},
|
},
|
||||||
userTypeOptions: [],
|
userTypeOptions: [],
|
||||||
isAdd: "Add",
|
isAdd: 'Add',
|
||||||
staffStatus: null,
|
staffStatus: null,
|
||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
currentRow: {},
|
currentRow: {},
|
||||||
trialId: "",
|
trialId: '',
|
||||||
moment,
|
moment,
|
||||||
statusForm: { isDeleted: false, removeTime: "", joinTime: "" },
|
statusForm: { isDeleted: false, removeTime: '', joinTime: '' },
|
||||||
statusRules: {
|
statusRules: {
|
||||||
removeTime: [
|
removeTime: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("common:ruleMessage:select"),
|
message: this.$t('common:ruleMessage:select'),
|
||||||
trigger: ["blur"],
|
trigger: ['blur'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
joinTime: [
|
joinTime: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("common:ruleMessage:select"),
|
message: this.$t('common:ruleMessage:select'),
|
||||||
trigger: ["blur"],
|
trigger: ['blur'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
pickerOption: {
|
pickerOption: {
|
||||||
disabledDate: (time) => {
|
disabledDate: (time) => {
|
||||||
return time.getTime() > Date.now();
|
return time.getTime() > Date.now()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
|
||||||
|
roleList: [],
|
||||||
|
role_model: {
|
||||||
|
visible: false,
|
||||||
|
title: this.$t('trials:staff:dialogTitle:role'),
|
||||||
|
width: '800px',
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.trialId = this.$route.query.trialId;
|
this.trialId = this.$route.query.trialId
|
||||||
this.getUserType();
|
this.getUserType()
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 发送邮件
|
||||||
|
async handleSendEmail(row) {
|
||||||
|
try {
|
||||||
|
let confirm = await this.$confirm(
|
||||||
|
this.$t('trials:staff:confirm:sendEmail')
|
||||||
|
)
|
||||||
|
if (!confirm) return false
|
||||||
|
let data = {
|
||||||
|
TrialId: this.$route.query.trialId,
|
||||||
|
IdentityUserId: row.IdentityUserId,
|
||||||
|
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||||
|
RouteUrl: `${location.protocol}//${location.host}/email-recompose`,
|
||||||
|
}
|
||||||
|
this.listLoading = true
|
||||||
|
let res = await trialUserSendJoinEmail(data)
|
||||||
|
this.listLoading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(
|
||||||
|
this.$t('trials:staff:message:sendEmailSuccess')
|
||||||
|
)
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.listLoading = false
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 修改角色状态
|
||||||
|
async changeRoleStatus(row, status) {
|
||||||
|
try {
|
||||||
|
let message = this.$t('trials:staff:comfirm:changeRoleStatus').replace(
|
||||||
|
'xxx',
|
||||||
|
this.$fd('IsDisable', status)
|
||||||
|
)
|
||||||
|
let comfirm = await this.$confirm(message)
|
||||||
|
if (!comfirm) return false
|
||||||
|
let data = {
|
||||||
|
IdList: [row.Id],
|
||||||
|
IsDeleted: status,
|
||||||
|
}
|
||||||
|
let res = await updateTrialUserRole(data)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
row.IsDeleted = status
|
||||||
|
this.$message.success(
|
||||||
|
this.$t('trials:trials-myinfo:message:updateSuccessfully')
|
||||||
|
)
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
openRoleList(row) {
|
||||||
|
this.roleList = row.TrialUserRoleList
|
||||||
|
this.role_model.visible = true
|
||||||
|
},
|
||||||
// 分页获取项目参与人员列表
|
// 分页获取项目参与人员列表
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true;
|
this.listLoading = true
|
||||||
this.listQuery.TrialId = this.trialId;
|
this.listQuery.TrialId = this.trialId
|
||||||
getMaintenanceList(this.listQuery)
|
getMaintenanceList(this.listQuery)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.listLoading = false;
|
this.listLoading = false
|
||||||
this.list = res.Result.CurrentPageData;
|
this.list = res.Result.CurrentPageData
|
||||||
this.total = res.Result.TotalCount;
|
this.total = res.Result.TotalCount
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.listLoading = false;
|
this.listLoading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 新增项目参与者
|
// 新增项目参与者
|
||||||
handleAdd(type) {
|
handleAdd(type) {
|
||||||
if (type === "Add") {
|
if (type === 'Add') {
|
||||||
this.staff_model.title = this.$t("trials:staff:button:addStaff");
|
this.staff_model.title = this.$t('trials:staff:button:addInternalStaff')
|
||||||
} else {
|
} else {
|
||||||
this.staff_model.title = this.$t(
|
this.staff_model.title = this.$t('trials:staff:button:addExternalStaff')
|
||||||
"trials:staff:button:addExternalStaff"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
this.staff_model.visible = true;
|
this.staff_model.visible = true
|
||||||
this.isAdd = type;
|
this.isAdd = type
|
||||||
},
|
},
|
||||||
handleStatus(row) {
|
handleStatus(row) {
|
||||||
const { IsDeleted, RemoveTime, JoinTime } = { ...row };
|
const { IsDeleted, RemoveTime, JoinTime } = { ...row }
|
||||||
this.currentRow = { ...row };
|
this.currentRow = { ...row }
|
||||||
this.statusForm.isDeleted = IsDeleted;
|
this.statusForm.isDeleted = IsDeleted
|
||||||
this.statusForm.removeTime = RemoveTime;
|
this.statusForm.removeTime = RemoveTime
|
||||||
this.statusForm.joinTime = JoinTime;
|
this.statusForm.joinTime = JoinTime
|
||||||
this.status_model.visible = true;
|
this.status_model.visible = true
|
||||||
},
|
},
|
||||||
// 修改参与者状态
|
// 修改参与者状态
|
||||||
saveStatus() {
|
saveStatus() {
|
||||||
this.$refs.statusForm.validate((valid) => {
|
this.$refs.statusForm.validate((valid) => {
|
||||||
if (!valid) return;
|
if (!valid) return
|
||||||
this.btnLoading = true;
|
this.btnLoading = true
|
||||||
const param = {
|
const param = {
|
||||||
id: this.currentRow.Id,
|
id: this.currentRow.Id,
|
||||||
trialId: this.trialId,
|
trialId: this.trialId,
|
||||||
isDeleted: this.statusForm.isDeleted,
|
isDeleted: this.statusForm.isDeleted,
|
||||||
removeTime: this.statusForm.removeTime,
|
removeTime: this.statusForm.removeTime,
|
||||||
joinTime: this.statusForm.joinTime,
|
joinTime: this.statusForm.joinTime,
|
||||||
};
|
}
|
||||||
updateTrialUser(param)
|
updateTrialUser(param)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.status_model.visible = false;
|
this.status_model.visible = false
|
||||||
this.getList();
|
this.getList()
|
||||||
this.$message.success(
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$t("common:message:savedSuccessfully")
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleIsDeletedChanged(val) {
|
handleIsDeletedChanged(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.statusForm.joinTime = "";
|
// this.statusForm.joinTime = ''
|
||||||
} else {
|
} else {
|
||||||
this.statusForm.removeTime = "";
|
this.statusForm.removeTime = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.listQuery.PageIndex = 1;
|
this.listQuery.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.listQuery = getListQueryDefault();
|
this.listQuery = getListQueryDefault()
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 排序
|
// 排序
|
||||||
handleSortByColumn(column) {
|
handleSortByColumn(column) {
|
||||||
if (column.order === "ascending") {
|
if (column.order === 'ascending') {
|
||||||
this.listQuery.Asc = true;
|
this.listQuery.Asc = true
|
||||||
} else {
|
} else {
|
||||||
this.listQuery.Asc = false;
|
this.listQuery.Asc = false
|
||||||
}
|
}
|
||||||
this.listQuery.SortField = column.prop;
|
this.listQuery.SortField = column.prop
|
||||||
this.listQuery.PageIndex = 1;
|
this.listQuery.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 关闭模态框并更新列表
|
// 关闭模态框并更新列表
|
||||||
closeDialog() {
|
closeDialog() {
|
||||||
this.staff_model.visible = false;
|
this.staff_model.visible = false
|
||||||
this.$message.success(this.$t("common:message:savedSuccessfully"));
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 导出
|
// 导出
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.listLoading = true;
|
this.listLoading = true
|
||||||
this.listQuery.TrialId = this.trialId;
|
this.listQuery.TrialId = this.trialId
|
||||||
trialUserListExport({ ...this.listQuery })
|
trialUserListExport({ ...this.listQuery })
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.listLoading = false;
|
this.listLoading = false
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.listLoading = false;
|
this.listLoading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 获取用户类型下拉数据
|
// 获取用户类型下拉数据
|
||||||
getUserType() {
|
getUserType() {
|
||||||
getUserTypeListByUserType(0).then((res) => {
|
getTrialUserTypeList().then((res) => {
|
||||||
let arr = [];
|
let arr = [];
|
||||||
if (this.hasPermi(["role:admin"])) {
|
if (this.hasPermi(["role:admin"])) {
|
||||||
arr = [1];
|
arr = [1];
|
||||||
|
@ -542,31 +579,40 @@ export default {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
}).filter((item) => item);
|
}).filter((item) => item);
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.participant-list {
|
.participant-list {
|
||||||
.filter-box {
|
.filter-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|
||||||
.base-search-form {
|
.base-search-form {
|
||||||
.el-form-item {
|
.el-form-item {
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr {
|
.mr {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__header {
|
.el-dialog__header {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__body {
|
.el-dialog__body {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-i {
|
||||||
|
color: #e6a23c;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -297,6 +297,7 @@ export default {
|
||||||
if (selectedUserType.length > 0) {
|
if (selectedUserType.length > 0) {
|
||||||
this.form.UserTypeEnum = selectedUserType[0].UserTypeEnum;
|
this.form.UserTypeEnum = selectedUserType[0].UserTypeEnum;
|
||||||
}
|
}
|
||||||
|
this.form.TrialId = this.$route.query.trialId
|
||||||
addUser(this.form, true)
|
addUser(this.form, true)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false;
|
||||||
|
|
Loading…
Reference in New Issue