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({
|
||||
url: `/doctor/getDetail`,
|
||||
method: 'post',
|
||||
data: {
|
||||
DoctorId: doctorId
|
||||
}
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -108,8 +108,14 @@ export default {
|
|||
try {
|
||||
let id = this.$route.query.Id || this.reviewerId
|
||||
if (!id) return false
|
||||
let data = {
|
||||
DoctorId: id,
|
||||
}
|
||||
if (this.$route.query.trialId) {
|
||||
data.TrialId = this.$route.query.trialId
|
||||
}
|
||||
this.loading = true
|
||||
let res = await getDetail(id)
|
||||
let res = await getDetail(data)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
Object.keys(this.form).forEach((key) => {
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="isDistinguishCriteria"
|
||||
style="margin-bottom: 10px"
|
||||
:label="$t('trials:reviewTrack:table:criterionName')"
|
||||
>
|
||||
|
@ -54,6 +55,33 @@
|
|||
/>
|
||||
</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: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-button type="primary" @click="handleSearch">{{
|
||||
$t('common:button:search')
|
||||
|
@ -61,6 +89,13 @@
|
|||
<el-button type="primary" @click="handleReset">{{
|
||||
$t('common:button:reset')
|
||||
}}</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>
|
||||
<span style="margin-left: auto">
|
||||
|
@ -90,14 +125,15 @@
|
|||
/>
|
||||
<el-table-column type="index" width="40" />
|
||||
<!-- Code -->
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
prop="Code"
|
||||
:label="$t('trials:emailManageCfg:title:code')"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip
|
||||
width="100"
|
||||
/>
|
||||
/> -->
|
||||
<el-table-column
|
||||
v-if="isDistinguishCriteria"
|
||||
prop="TrialReadingCriterionId"
|
||||
:label="$t('trials:reviewTrack:table:criterionName')"
|
||||
show-overflow-tooltip
|
||||
|
@ -196,7 +232,11 @@
|
|||
sortable="custom"
|
||||
show-overflow-tooltip
|
||||
width="160"
|
||||
/>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ getEmailCron(scope.row.EmailCron) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 附件 -->
|
||||
<el-table-column
|
||||
v-if="$i18n.locale === 'zh'"
|
||||
|
@ -323,6 +363,8 @@ const searchDataDefault = () => {
|
|||
PageSize: 20,
|
||||
BusinessScenarioEnum: null,
|
||||
CriterionTypeEnum: null,
|
||||
ToUserTypeList: null,
|
||||
EmailUrgentEnum: null,
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
@ -378,6 +420,14 @@ export default {
|
|||
this.loading = false
|
||||
})
|
||||
},
|
||||
getEmailCron(str) {
|
||||
let a = str.split(' ')
|
||||
if (a[3].indexOf('/') > -1) {
|
||||
return a[3].split('/')[1]
|
||||
}
|
||||
return ''
|
||||
},
|
||||
handleAdd() {},
|
||||
handleSelectChange(val) {
|
||||
// console.log(val)
|
||||
// const arr = []
|
||||
|
|
|
@ -3,10 +3,12 @@
|
|||
<template slot="search-container">
|
||||
<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
|
||||
v-model="searchData.BusinessScenarioEnum"
|
||||
style="width:150px;"
|
||||
style="width: 150px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.Email_BusinessScenario"
|
||||
|
@ -14,12 +16,58 @@
|
|||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="isDistinguishCriteria" 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-form-item
|
||||
v-if="isDistinguishCriteria"
|
||||
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-form-item>
|
||||
<el-form-item>
|
||||
|
@ -28,7 +76,11 @@
|
|||
{{ $t('common:button:search') }}
|
||||
</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') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
|
@ -54,13 +106,13 @@
|
|||
>
|
||||
<el-table-column type="index" width="40" />
|
||||
<!-- Code -->
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
prop="Code"
|
||||
:label="$t('trials:emailManageCfg:title:code')"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip
|
||||
width="100"
|
||||
/>
|
||||
/> -->
|
||||
<el-table-column
|
||||
v-if="isDistinguishCriteria"
|
||||
prop="TrialReadingCriterionId"
|
||||
|
@ -94,7 +146,8 @@
|
|||
:label="$t('trials:emailManageCfg:table:BusinessModuleEnum')"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip
|
||||
min-width="100">
|
||||
min-width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('BusinessModule', scope.row.BusinessModuleEnum) }}
|
||||
</template>
|
||||
|
@ -118,7 +171,11 @@
|
|||
min-width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.ToUserTypeNameList.length>0?scope.row.ToUserTypeNameList.join('、'):'' }}
|
||||
{{
|
||||
scope.row.ToUserTypeNameList.length > 0
|
||||
? scope.row.ToUserTypeNameList.join('、')
|
||||
: ''
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 抄送人 -->
|
||||
|
@ -129,7 +186,11 @@
|
|||
min-width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.CopyUserTypeNameList.length>0?scope.row.CopyUserTypeNameList.join('、'):'' }}
|
||||
{{
|
||||
scope.row.CopyUserTypeNameList.length > 0
|
||||
? scope.row.CopyUserTypeNameList.join('、')
|
||||
: ''
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
|
@ -151,14 +212,19 @@
|
|||
<!-- />-->
|
||||
<!-- 附件 -->
|
||||
<el-table-column
|
||||
v-if="$i18n.locale === 'zh'"
|
||||
v-if="$i18n.locale === 'zh' && isDistinguishCriteria"
|
||||
prop="AttachNameCN"
|
||||
:label="$t('trials:emailManageCfg:title:fileName')"
|
||||
show-overflow-tooltip
|
||||
min-width="140"
|
||||
>
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -172,7 +238,12 @@
|
|||
<!-- <el-button v-if="scope.row.AttachPath" type="text" @click="handlePreview(scope.row.AttachPath)">
|
||||
{{ scope.row.AttachName }}
|
||||
</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>
|
||||
</el-table-column>
|
||||
<!-- 是否需要回执 -->
|
||||
|
@ -217,7 +288,9 @@
|
|||
<el-tag v-if="scope.row.IsEnable" type="danger">
|
||||
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
||||
</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>
|
||||
</el-table-column>
|
||||
<!-- 更新时间 -->
|
||||
|
@ -237,7 +310,12 @@
|
|||
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">
|
||||
<!-- 编辑 -->
|
||||
<el-button
|
||||
|
@ -280,13 +358,17 @@
|
|||
<el-dialog
|
||||
v-if="addVisible"
|
||||
:visible.sync="addVisible"
|
||||
width="1200px"
|
||||
width="1300px"
|
||||
:close-on-click-modal="false"
|
||||
custom-class="base-dialog-wrapper"
|
||||
:title="$t('trials:emailManageCfg:button:Default')"
|
||||
>
|
||||
<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>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
@ -303,7 +385,9 @@ const searchDataDefault = () => {
|
|||
return {
|
||||
BusinessScenarioEnum: null,
|
||||
CriterionTypeEnum: null,
|
||||
TrialReadingCriterionId: null
|
||||
TrialReadingCriterionId: null,
|
||||
ToUserTypeList: null,
|
||||
IsEnable: null,
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
@ -314,14 +398,14 @@ export default {
|
|||
type: Boolean,
|
||||
default() {
|
||||
return false
|
||||
}
|
||||
},
|
||||
},
|
||||
isEdit: {
|
||||
type: Boolean,
|
||||
default() {
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -334,7 +418,7 @@ export default {
|
|||
trialId: '',
|
||||
trialCriterionList: [],
|
||||
criterionType: null,
|
||||
addVisible: false
|
||||
addVisible: false,
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -342,7 +426,7 @@ export default {
|
|||
this.$nextTick(() => {
|
||||
this.$refs.emailList.doLayout()
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.trialId = this.$route.query.trialId
|
||||
|
@ -355,7 +439,7 @@ export default {
|
|||
},
|
||||
deleteTrialEmailNoticeConfig(row) {
|
||||
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.getList()
|
||||
})
|
||||
|
@ -363,11 +447,13 @@ export default {
|
|||
},
|
||||
getTrialCriterionList() {
|
||||
this.loading = true
|
||||
getTrialCriterionList(this.trialId).then(res => {
|
||||
getTrialCriterionList(this.trialId)
|
||||
.then((res) => {
|
||||
this.trialCriterionList = res.Result
|
||||
// this.activeTab = this.trialCriterionList[0].TrialReadingCriterionId
|
||||
this.loading = false
|
||||
}).catch(() => {
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
@ -375,9 +461,10 @@ export default {
|
|||
this.loading = true
|
||||
this.searchData.TrialId = this.trialId
|
||||
this.searchData.IsDistinguishCriteria = this.isDistinguishCriteria
|
||||
getTrialEmailNoticeConfigList(this.searchData).then(res => {
|
||||
getTrialEmailNoticeConfigList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
res.Result.forEach(item => {
|
||||
res.Result.forEach((item) => {
|
||||
// item.FromUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 1)
|
||||
// item.FromUserList = this.getUserList(item.TrialEmailNoticeUserList, 1)
|
||||
// item.ToUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 2)
|
||||
|
@ -385,23 +472,26 @@ export default {
|
|||
// item.CopyUsers = this.getUsersByType(item.TrialEmailNoticeUserList, 3)
|
||||
// item.CopyUserList = this.getUserList(item.TrialEmailNoticeUserList, 3)
|
||||
item.ToUserTypeNameList = this.getUserTypeName(item.ToUserTypeList)
|
||||
item.CopyUserTypeNameList = this.getUserTypeName(item.CopyUserTypeList)
|
||||
item.CopyUserTypeNameList = this.getUserTypeName(
|
||||
item.CopyUserTypeList
|
||||
)
|
||||
})
|
||||
this.list = res.Result
|
||||
}).catch(() => {
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
getUserTypeName(userTypeList) {
|
||||
var userTypes = userTypeList.map(i => this.$fd('UserType', i))
|
||||
var userTypes = userTypeList.map((i) => this.$fd('UserType', i))
|
||||
return userTypes
|
||||
},
|
||||
getUserList(userList, type) {
|
||||
return userList.filter(i => i.EmailUserType === type)
|
||||
return userList.filter((i) => i.EmailUserType === type)
|
||||
},
|
||||
getUsersByType(userList, type) {
|
||||
var users = userList.filter(i => i.EmailUserType === type)
|
||||
var usersName = users.map(obj => {
|
||||
var users = userList.filter((i) => i.EmailUserType === type)
|
||||
var usersName = users.map((obj) => {
|
||||
return obj.RealName
|
||||
})
|
||||
return usersName.join('、')
|
||||
|
@ -444,7 +534,7 @@ export default {
|
|||
this.searchData.SortField = column.prop
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue