项目配置新增邮件模板添加查询条件
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2a11d3f012
commit
4400d31bca
|
@ -3,16 +3,14 @@
|
|||
<box-content v-loading="loading">
|
||||
<!-- 搜索框 -->
|
||||
<div class="search">
|
||||
<el-form
|
||||
:inline="true"
|
||||
size="mini"
|
||||
class="base-search-form"
|
||||
>
|
||||
<el-form :inline="true" size="mini" class="base-search-form">
|
||||
<!-- 审核问题 -->
|
||||
<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"
|
||||
|
@ -20,11 +18,34 @@
|
|||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-bottom:10px" :label="$t('trials:reviewTrack:table:criterionName')">
|
||||
<el-select v-model="searchData.CriterionTypeEnum" clearable style="width:120px;">
|
||||
<el-form-item
|
||||
style="margin-bottom: 10px"
|
||||
:label="$t('trials:emailManageCfg:table:BusinessModuleEnum')"
|
||||
>
|
||||
<el-select
|
||||
v-model="searchData.BusinessModuleEnum"
|
||||
clearable
|
||||
style="width: 120px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.BusinessModule"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
style="margin-bottom: 10px"
|
||||
:label="$t('trials:reviewTrack:table:criterionName')"
|
||||
>
|
||||
<el-select
|
||||
v-model="searchData.CriterionTypeEnum"
|
||||
clearable
|
||||
style="width: 120px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.CriterionType"
|
||||
:key="item.id"
|
||||
|
@ -34,14 +55,12 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleSearch"
|
||||
>{{ $t('common:button:search') }}</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="handleReset"
|
||||
>{{ $t('common:button:reset') }}</el-button>
|
||||
<el-button type="primary" @click="handleSearch">{{
|
||||
$t('common:button:search')
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="handleReset">{{
|
||||
$t('common:button:reset')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left: auto">
|
||||
|
@ -135,7 +154,13 @@
|
|||
width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.ToUserTypeList.length > 0?scope.row.ToUserTypeList.map(v => $fd('UserType', v)).join('、'):'' }}
|
||||
{{
|
||||
scope.row.ToUserTypeList.length > 0
|
||||
? scope.row.ToUserTypeList.map((v) => $fd('UserType', v)).join(
|
||||
'、'
|
||||
)
|
||||
: ''
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 抄送人 -->
|
||||
|
@ -146,7 +171,13 @@
|
|||
width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.CopyUserTypeList.length > 0?scope.row.CopyUserTypeList.map(v => $fd('UserType', v)).join('、'):'' }}
|
||||
{{
|
||||
scope.row.CopyUserTypeList.length > 0
|
||||
? scope.row.CopyUserTypeList.map((v) => $fd('UserType', v)).join(
|
||||
'、'
|
||||
)
|
||||
: ''
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -175,7 +206,11 @@
|
|||
width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.AttachCNPath" type="text" @click="handlePreview(scope.row.AttachCNPath)">
|
||||
<el-button
|
||||
v-if="scope.row.AttachCNPath"
|
||||
type="text"
|
||||
@click="handlePreview(scope.row.AttachCNPath)"
|
||||
>
|
||||
{{ scope.row.AttachNameCN }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
@ -189,7 +224,11 @@
|
|||
width="100"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<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 }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
@ -206,7 +245,9 @@
|
|||
<el-tag v-if="scope.row.IsReturnRequired" type="danger">
|
||||
{{ $fd('YesOrNo', scope.row.IsReturnRequired) }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsReturnRequired) }}</el-tag>
|
||||
<el-tag v-else type="primary">{{
|
||||
$fd('YesOrNo', scope.row.IsReturnRequired)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 是否自动发送 -->
|
||||
|
@ -221,7 +262,9 @@
|
|||
<el-tag v-if="scope.row.IsAutoSend" type="danger">
|
||||
{{ $fd('YesOrNo', scope.row.IsAutoSend) }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsAutoSend) }}</el-tag>
|
||||
<el-tag v-else type="primary">{{
|
||||
$fd('YesOrNo', scope.row.IsAutoSend)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -235,7 +278,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>
|
||||
<!-- 更新时间 -->
|
||||
|
@ -255,11 +300,20 @@
|
|||
width="160"
|
||||
/>
|
||||
</el-table>
|
||||
<Pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
|
||||
<Pagination
|
||||
class="page"
|
||||
:total="total"
|
||||
:page.sync="searchData.PageIndex"
|
||||
:limit.sync="searchData.PageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</box-content>
|
||||
</template>
|
||||
<script>
|
||||
import { getSysEmailNoticeConfigList, batchAddSysEmailConfig } from '@/api/dictionary'
|
||||
import {
|
||||
getSysEmailNoticeConfigList,
|
||||
batchAddSysEmailConfig,
|
||||
} from '@/api/dictionary'
|
||||
import Pagination from '@/components/Pagination'
|
||||
// import { addTrialDataFromSystem } from '@/api/trials'
|
||||
import BoxContent from '@/components/BoxContent'
|
||||
|
@ -268,7 +322,7 @@ const searchDataDefault = () => {
|
|||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
BusinessScenarioEnum: null,
|
||||
CriterionTypeEnum: null
|
||||
CriterionTypeEnum: null,
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
@ -279,20 +333,20 @@ export default {
|
|||
type: String,
|
||||
default() {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
},
|
||||
currentCriterionType: {
|
||||
type: Number,
|
||||
default() {
|
||||
return 0
|
||||
}
|
||||
},
|
||||
},
|
||||
isDistinguishCriteria: {
|
||||
type: Boolean,
|
||||
default() {
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -301,7 +355,7 @@ export default {
|
|||
list: [],
|
||||
loading: false,
|
||||
selectArr: [],
|
||||
total: 0
|
||||
total: 0,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -314,11 +368,15 @@ export default {
|
|||
this.searchData.TrialId = this.trialId
|
||||
this.searchData.CurrentCriterionType = this.CurrentCriterionType
|
||||
this.searchData.IsDistinguishCriteria = this.isDistinguishCriteria
|
||||
getSysEmailNoticeConfigList(this.searchData).then(res => {
|
||||
getSysEmailNoticeConfigList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
}).catch(() => { this.loading = false })
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
handleSelectChange(val) {
|
||||
// console.log(val)
|
||||
|
@ -331,18 +389,22 @@ export default {
|
|||
},
|
||||
handleSubmit() {
|
||||
this.loading = true
|
||||
this.selectArr.map(v => {
|
||||
this.selectArr.map((v) => {
|
||||
v.TrialId = this.trialId
|
||||
return v
|
||||
})
|
||||
batchAddSysEmailConfig(this.selectArr).then(res => {
|
||||
batchAddSysEmailConfig(this.selectArr)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.$emit('getList')
|
||||
this.$emit('close')
|
||||
}
|
||||
}).catch(() => { this.loading = false })
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 查询
|
||||
handleSearch() {
|
||||
|
@ -360,7 +422,7 @@ export default {
|
|||
handleReset() {
|
||||
this.searchData = searchDataDefault()
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue