1
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
c02308dd23
commit
b8baa1b5d8
|
@ -237,13 +237,11 @@ export function downloadByAttachmentId(doctorId, attachmentIds) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDetail(doctorId) {
|
export function getDetail(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/doctor/getDetail`,
|
url: `/doctor/getDetail`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data
|
||||||
DoctorId: doctorId
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,14 @@ export default {
|
||||||
try {
|
try {
|
||||||
let id = this.$route.query.Id || this.reviewerId
|
let id = this.$route.query.Id || this.reviewerId
|
||||||
if (!id) return false
|
if (!id) return false
|
||||||
|
let data = {
|
||||||
|
DoctorId: id,
|
||||||
|
}
|
||||||
|
if (this.$route.query.trialId) {
|
||||||
|
data.TrialId = this.$route.query.trialId
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await getDetail(id)
|
let res = await getDetail(data)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
Object.keys(this.form).forEach((key) => {
|
Object.keys(this.form).forEach((key) => {
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
v-if="isDistinguishCriteria"
|
||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
:label="$t('trials:reviewTrack:table:criterionName')"
|
:label="$t('trials:reviewTrack:table:criterionName')"
|
||||||
>
|
>
|
||||||
|
@ -54,6 +55,33 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('trials:emailManageCfg:title:toUserTypeList')"
|
||||||
|
prop="ToUserTypeList"
|
||||||
|
>
|
||||||
|
<el-select v-model="searchData.ToUserTypeList" clearable class="mr">
|
||||||
|
<el-option
|
||||||
|
v-for="item of $d.UserType"
|
||||||
|
:key="`ToUserTypeList${item.label}`"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('trials:emailManageCfg:table:EmailUrgentEnum')"
|
||||||
|
prop="EmailUrgentEnum"
|
||||||
|
v-if="!isDistinguishCriteria"
|
||||||
|
>
|
||||||
|
<el-select v-model="searchData.EmailUrgentEnum" clearable class="mr">
|
||||||
|
<el-option
|
||||||
|
v-for="item of $d.EmailUrgent"
|
||||||
|
:key="`ToUserTypeList${item.label}`"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="handleSearch">{{
|
<el-button type="primary" @click="handleSearch">{{
|
||||||
$t('common:button:search')
|
$t('common:button:search')
|
||||||
|
@ -61,6 +89,13 @@
|
||||||
<el-button type="primary" @click="handleReset">{{
|
<el-button type="primary" @click="handleReset">{{
|
||||||
$t('common:button:reset')
|
$t('common:button:reset')
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="handleAdd"
|
||||||
|
class="el-icon-plus"
|
||||||
|
v-if="!isDistinguishCriteria"
|
||||||
|
>{{ $t('trials:reviewTrack:button:addDefault') }}</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left: auto">
|
<span style="margin-left: auto">
|
||||||
|
@ -90,14 +125,15 @@
|
||||||
/>
|
/>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<!-- Code -->
|
<!-- Code -->
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
:label="$t('trials:emailManageCfg:title:code')"
|
:label="$t('trials:emailManageCfg:title:code')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="100"
|
width="100"
|
||||||
/>
|
/> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
v-if="isDistinguishCriteria"
|
||||||
prop="TrialReadingCriterionId"
|
prop="TrialReadingCriterionId"
|
||||||
:label="$t('trials:reviewTrack:table:criterionName')"
|
:label="$t('trials:reviewTrack:table:criterionName')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
@ -196,7 +232,11 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="160"
|
width="160"
|
||||||
/>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ getEmailCron(scope.row.EmailCron) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!-- 附件 -->
|
<!-- 附件 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="$i18n.locale === 'zh'"
|
v-if="$i18n.locale === 'zh'"
|
||||||
|
@ -323,6 +363,8 @@ const searchDataDefault = () => {
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
BusinessScenarioEnum: null,
|
BusinessScenarioEnum: null,
|
||||||
CriterionTypeEnum: null,
|
CriterionTypeEnum: null,
|
||||||
|
ToUserTypeList: null,
|
||||||
|
EmailUrgentEnum: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
@ -378,6 +420,14 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getEmailCron(str) {
|
||||||
|
let a = str.split(' ')
|
||||||
|
if (a[3].indexOf('/') > -1) {
|
||||||
|
return a[3].split('/')[1]
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
},
|
||||||
|
handleAdd() {},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
// console.log(val)
|
// console.log(val)
|
||||||
// const arr = []
|
// const arr = []
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<el-form :inline="true" size="small">
|
<el-form :inline="true" size="small">
|
||||||
<!-- 业务场景 -->
|
<!-- 业务场景 -->
|
||||||
<el-form-item :label="$t('trials:emailManageCfg:title:businessScenario')">
|
<el-form-item
|
||||||
|
:label="$t('trials:emailManageCfg:title:businessScenario')"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchData.BusinessScenarioEnum"
|
v-model="searchData.BusinessScenarioEnum"
|
||||||
style="width:150px;"
|
style="width: 150px"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.Email_BusinessScenario"
|
v-for="item of $d.Email_BusinessScenario"
|
||||||
|
@ -14,12 +16,58 @@
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="isDistinguishCriteria" style="margin-bottom:10px" :label="$t('trials:reviewTrack:table:criterionName')">
|
<el-form-item
|
||||||
<el-select v-model="searchData.TrialReadingCriterionId" clearable style="width:120px;">
|
v-if="isDistinguishCriteria"
|
||||||
<el-option v-for="item of trialCriterionList" :key="'TrialReadingCriterionId' + item.TrialReadingCriterionId" :value="item.TrialReadingCriterionId" :label="item.TrialReadingCriterionName" />
|
style="margin-bottom: 10px"
|
||||||
|
:label="$t('trials:reviewTrack:table:criterionName')"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="searchData.TrialReadingCriterionId"
|
||||||
|
clearable
|
||||||
|
style="width: 120px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item of trialCriterionList"
|
||||||
|
:key="'TrialReadingCriterionId' + item.TrialReadingCriterionId"
|
||||||
|
:value="item.TrialReadingCriterionId"
|
||||||
|
:label="item.TrialReadingCriterionName"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('trials:emailManageCfg:title:toUserTypeList')"
|
||||||
|
prop="ToUserTypeList"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="searchData.ToUserTypeList"
|
||||||
|
clearable
|
||||||
|
class="mr"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item of $d.UserType"
|
||||||
|
:key="`ToUserTypeList${item.label}`"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
:label="$t('trials:emailManageCfg:table:IsEnable')"
|
||||||
|
prop="IsEnable"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="searchData.IsEnable"
|
||||||
|
clearable
|
||||||
|
class="mr"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item of $d.YesOrNo"
|
||||||
|
:key="`ToUserTypeList${item.label}`"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
@ -28,7 +76,11 @@
|
||||||
{{ $t('common:button:search') }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 重置 -->
|
<!-- 重置 -->
|
||||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-refresh-left"
|
||||||
|
@click="handleReset"
|
||||||
|
>
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -54,13 +106,13 @@
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
<!-- Code -->
|
<!-- Code -->
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="Code"
|
prop="Code"
|
||||||
:label="$t('trials:emailManageCfg:title:code')"
|
:label="$t('trials:emailManageCfg:title:code')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="100"
|
width="100"
|
||||||
/>
|
/> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="isDistinguishCriteria"
|
v-if="isDistinguishCriteria"
|
||||||
prop="TrialReadingCriterionId"
|
prop="TrialReadingCriterionId"
|
||||||
|
@ -94,9 +146,10 @@
|
||||||
:label="$t('trials:emailManageCfg:table:BusinessModuleEnum')"
|
:label="$t('trials:emailManageCfg:table:BusinessModuleEnum')"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="100">
|
min-width="100"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('BusinessModule',scope.row.BusinessModuleEnum) }}
|
{{ $fd('BusinessModule', scope.row.BusinessModuleEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -107,7 +160,7 @@
|
||||||
min-width="100"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ $fd('Email_BusinessScenario',scope.row.BusinessScenarioEnum) }}
|
{{ $fd('Email_BusinessScenario', scope.row.BusinessScenarioEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 收件人 -->
|
<!-- 收件人 -->
|
||||||
|
@ -118,7 +171,11 @@
|
||||||
min-width="100"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.ToUserTypeNameList.length>0?scope.row.ToUserTypeNameList.join('、'):'' }}
|
{{
|
||||||
|
scope.row.ToUserTypeNameList.length > 0
|
||||||
|
? scope.row.ToUserTypeNameList.join('、')
|
||||||
|
: ''
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 抄送人 -->
|
<!-- 抄送人 -->
|
||||||
|
@ -129,7 +186,11 @@
|
||||||
min-width="100"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.CopyUserTypeNameList.length>0?scope.row.CopyUserTypeNameList.join('、'):'' }}
|
{{
|
||||||
|
scope.row.CopyUserTypeNameList.length > 0
|
||||||
|
? scope.row.CopyUserTypeNameList.join('、')
|
||||||
|
: ''
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
|
@ -142,23 +203,28 @@
|
||||||
{{ $fd('EmailUrgent',scope.row.EmailUrgentEnum) }}
|
{{ $fd('EmailUrgent',scope.row.EmailUrgentEnum) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<!-- <el-table-column-->
|
<!-- <el-table-column-->
|
||||||
<!-- prop="EmailCron"-->
|
<!-- prop="EmailCron"-->
|
||||||
<!-- :label="$t('trials:emailManageCfg:table:EmailCron')"-->
|
<!-- :label="$t('trials:emailManageCfg:table:EmailCron')"-->
|
||||||
<!-- sortable="custom"-->
|
<!-- sortable="custom"-->
|
||||||
<!-- show-overflow-tooltip-->
|
<!-- show-overflow-tooltip-->
|
||||||
<!-- width="160"-->
|
<!-- width="160"-->
|
||||||
<!-- />-->
|
<!-- />-->
|
||||||
<!-- 附件 -->
|
<!-- 附件 -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="$i18n.locale === 'zh'"
|
v-if="$i18n.locale === 'zh' && isDistinguishCriteria"
|
||||||
prop="AttachNameCN"
|
prop="AttachNameCN"
|
||||||
:label="$t('trials:emailManageCfg:title:fileName')"
|
:label="$t('trials:emailManageCfg:title:fileName')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="140"
|
min-width="140"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.AttachCNPath" @click="handlePreview(scope.row.AttachCNPath)" style="cursor: pointer;color: #428bca;">{{ scope.row.AttachNameCN }}</span>
|
<span
|
||||||
|
v-if="scope.row.AttachCNPath"
|
||||||
|
@click="handlePreview(scope.row.AttachCNPath)"
|
||||||
|
style="cursor: pointer; color: #428bca"
|
||||||
|
>{{ scope.row.AttachNameCN }}</span
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -172,7 +238,12 @@
|
||||||
<!-- <el-button v-if="scope.row.AttachPath" type="text" @click="handlePreview(scope.row.AttachPath)">
|
<!-- <el-button v-if="scope.row.AttachPath" type="text" @click="handlePreview(scope.row.AttachPath)">
|
||||||
{{ scope.row.AttachName }}
|
{{ scope.row.AttachName }}
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
<span v-if="scope.row.AttachPath" @click="handlePreview(scope.row.AttachPath)" style="cursor: pointer;color: #428bca;">{{ scope.row.AttachName }}</span>
|
<span
|
||||||
|
v-if="scope.row.AttachPath"
|
||||||
|
@click="handlePreview(scope.row.AttachPath)"
|
||||||
|
style="cursor: pointer; color: #428bca"
|
||||||
|
>{{ scope.row.AttachName }}</span
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 是否需要回执 -->
|
<!-- 是否需要回执 -->
|
||||||
|
@ -217,7 +288,9 @@
|
||||||
<el-tag v-if="scope.row.IsEnable" type="danger">
|
<el-tag v-if="scope.row.IsEnable" type="danger">
|
||||||
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsEnable) }}</el-tag>
|
<el-tag v-else type="primary">{{
|
||||||
|
$fd('YesOrNo', scope.row.IsEnable)
|
||||||
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 更新时间 -->
|
<!-- 更新时间 -->
|
||||||
|
@ -237,7 +310,12 @@
|
||||||
min-width="100"
|
min-width="100"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column v-if="hasPermi(['trials:trials-panel:setting:email-manage:edit'])" width="120" :label="$t('common:action:action')" fixed="right">
|
<el-table-column
|
||||||
|
v-if="hasPermi(['trials:trials-panel:setting:email-manage:edit'])"
|
||||||
|
width="120"
|
||||||
|
:label="$t('common:action:action')"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 编辑 -->
|
<!-- 编辑 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -280,13 +358,17 @@
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-if="addVisible"
|
v-if="addVisible"
|
||||||
:visible.sync="addVisible"
|
:visible.sync="addVisible"
|
||||||
width="1200px"
|
width="1300px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
custom-class="base-dialog-wrapper"
|
custom-class="base-dialog-wrapper"
|
||||||
:title="$t('trials:emailManageCfg:button:Default')"
|
:title="$t('trials:emailManageCfg:button:Default')"
|
||||||
>
|
>
|
||||||
<div class="base-dialog-body">
|
<div class="base-dialog-body">
|
||||||
<DefaultQS @getList="getList" :is-distinguish-criteria="isDistinguishCriteria" @close="addVisible = false" />
|
<DefaultQS
|
||||||
|
@getList="getList"
|
||||||
|
:is-distinguish-criteria="isDistinguishCriteria"
|
||||||
|
@close="addVisible = false"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
@ -303,7 +385,9 @@ const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
BusinessScenarioEnum: null,
|
BusinessScenarioEnum: null,
|
||||||
CriterionTypeEnum: null,
|
CriterionTypeEnum: null,
|
||||||
TrialReadingCriterionId: null
|
TrialReadingCriterionId: null,
|
||||||
|
ToUserTypeList: null,
|
||||||
|
IsEnable: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
@ -314,14 +398,14 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default() {
|
default() {
|
||||||
return false
|
return false
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
isEdit: {
|
isEdit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default() {
|
default() {
|
||||||
return false
|
return false
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -334,7 +418,7 @@ export default {
|
||||||
trialId: '',
|
trialId: '',
|
||||||
trialCriterionList: [],
|
trialCriterionList: [],
|
||||||
criterionType: null,
|
criterionType: null,
|
||||||
addVisible: false
|
addVisible: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -342,7 +426,7 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.emailList.doLayout()
|
this.$refs.emailList.doLayout()
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.trialId = this.$route.query.trialId
|
this.trialId = this.$route.query.trialId
|
||||||
|
@ -355,7 +439,7 @@ export default {
|
||||||
},
|
},
|
||||||
deleteTrialEmailNoticeConfig(row) {
|
deleteTrialEmailNoticeConfig(row) {
|
||||||
this.$confirm(this.$t('trials:emailManageCfg:message:msg2')).then(() => {
|
this.$confirm(this.$t('trials:emailManageCfg:message:msg2')).then(() => {
|
||||||
deleteTrialEmailNoticeConfig(row.Id).then(res => {
|
deleteTrialEmailNoticeConfig(row.Id).then((res) => {
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
@ -363,58 +447,64 @@ export default {
|
||||||
},
|
},
|
||||||
getTrialCriterionList() {
|
getTrialCriterionList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getTrialCriterionList(this.trialId).then(res => {
|
getTrialCriterionList(this.trialId)
|
||||||
this.trialCriterionList = res.Result
|
.then((res) => {
|
||||||
// this.activeTab = this.trialCriterionList[0].TrialReadingCriterionId
|
this.trialCriterionList = res.Result
|
||||||
this.loading = false
|
// this.activeTab = this.trialCriterionList[0].TrialReadingCriterionId
|
||||||
}).catch(() => {
|
this.loading = false
|
||||||
this.loading = false
|
})
|
||||||
})
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.searchData.TrialId = this.trialId
|
this.searchData.TrialId = this.trialId
|
||||||
this.searchData.IsDistinguishCriteria = this.isDistinguishCriteria
|
this.searchData.IsDistinguishCriteria = this.isDistinguishCriteria
|
||||||
getTrialEmailNoticeConfigList(this.searchData).then(res => {
|
getTrialEmailNoticeConfigList(this.searchData)
|
||||||
this.loading = false
|
.then((res) => {
|
||||||
res.Result.forEach(item => {
|
this.loading = false
|
||||||
// item.FromUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 1)
|
res.Result.forEach((item) => {
|
||||||
// item.FromUserList = this.getUserList(item.TrialEmailNoticeUserList, 1)
|
// item.FromUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 1)
|
||||||
// item.ToUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 2)
|
// item.FromUserList = this.getUserList(item.TrialEmailNoticeUserList, 1)
|
||||||
// item.ToUserList = this.getUserList(item.TrialEmailNoticeUserList, 2)
|
// item.ToUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 2)
|
||||||
// item.CopyUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 3)
|
// item.ToUserList = this.getUserList(item.TrialEmailNoticeUserList, 2)
|
||||||
// item.CopyUserList = this.getUserList(item.TrialEmailNoticeUserList, 3)
|
// item.CopyUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 3)
|
||||||
item.ToUserTypeNameList = this.getUserTypeName(item.ToUserTypeList)
|
// item.CopyUserList = this.getUserList(item.TrialEmailNoticeUserList, 3)
|
||||||
item.CopyUserTypeNameList = this.getUserTypeName(item.CopyUserTypeList)
|
item.ToUserTypeNameList = this.getUserTypeName(item.ToUserTypeList)
|
||||||
|
item.CopyUserTypeNameList = this.getUserTypeName(
|
||||||
|
item.CopyUserTypeList
|
||||||
|
)
|
||||||
|
})
|
||||||
|
this.list = res.Result
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
})
|
})
|
||||||
this.list = res.Result
|
|
||||||
}).catch(() => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getUserTypeName(userTypeList) {
|
getUserTypeName(userTypeList) {
|
||||||
var userTypes = userTypeList.map(i => this.$fd('UserType', i))
|
var userTypes = userTypeList.map((i) => this.$fd('UserType', i))
|
||||||
return userTypes
|
return userTypes
|
||||||
},
|
},
|
||||||
getUserList(userList, type) {
|
getUserList(userList, type) {
|
||||||
return userList.filter(i => i.EmailUserType === type)
|
return userList.filter((i) => i.EmailUserType === type)
|
||||||
},
|
},
|
||||||
getUsersByType(userList, type) {
|
getUsersByType(userList, type) {
|
||||||
var users = userList.filter(i => i.EmailUserType === type)
|
var users = userList.filter((i) => i.EmailUserType === type)
|
||||||
var usersName = users.map(obj => {
|
var usersName = users.map((obj) => {
|
||||||
return obj.RealName
|
return obj.RealName
|
||||||
})
|
})
|
||||||
return usersName.join('、')
|
return usersName.join('、')
|
||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.editDialog.title = this.$t('common:button:new')// '新增'
|
this.editDialog.title = this.$t('common:button:new') // '新增'
|
||||||
this.currentRow = { CriterionTypeEnum: this.criterionType }
|
this.currentRow = { CriterionTypeEnum: this.criterionType }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.editDialog.title = this.$t('common:button:edit')// '编辑'
|
this.editDialog.title = this.$t('common:button:edit') // '编辑'
|
||||||
this.currentRow = { ...row }
|
this.currentRow = { ...row }
|
||||||
this.editDialog.visible = true
|
this.editDialog.visible = true
|
||||||
},
|
},
|
||||||
|
@ -444,7 +534,7 @@ export default {
|
||||||
this.searchData.SortField = column.prop
|
this.searchData.SortField = column.prop
|
||||||
this.searchData.PageIndex = 1
|
this.searchData.PageIndex = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue