Skip to content

Commit

Permalink
fix: 共享到商店侧栏风险等级字段错误问题修复 --story=121000017 (#7658)
Browse files Browse the repository at this point in the history
* fix: 共享到商店侧栏风险等级字段错误问题修复 --story=121000017
# Reviewed, transaction id: 28007

* fix: 公共流程创建周期任务--切换公共流程列表接口 --bug=120737215
# Reviewed, transaction id: 28008
  • Loading branch information
ywywZhou authored Dec 27, 2024
1 parent bea1f39 commit 8090bd0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/desktop/src/config/i18n/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ const cn = {
'共享到SRE商店': '共享到SRE商店',
'帮助文档': '帮助文档',
'SRE商店': 'SRE商店',
'templateSharedTips': '注意事项:共享的流程不包含敏感信息,支持在 {0} 预览',
'templateSharedTips': '共享的流程支持在 {0} 预览并导入其他业务,请勿包含敏感信息',
'templateSharedSuccessTips': '共享成功,请前往 {0} 查看',
'更新': '更新',
'共享类型': '共享类型',
Expand Down
2 changes: 1 addition & 1 deletion frontend/desktop/src/config/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@ const en = {
'共享到SRE商店': 'Shared to the SRE Store',
'帮助文档': 'Help Doc',
'SRE商店': 'SRE Store',
'templateSharedTips': 'Note: The shared process does not contain sensitive information and can be previewed at {0}',
'templateSharedTips': 'The shared process can be previewed in {0} and imported into other businesses. Please do not include sensitive information',
'templateSharedSuccessTips': 'Shared successfully, please go to {0} to view',
'更新': 'Updated',
'共享类型': 'Sharing Type',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@
'modifyPeriodicConstants',
'updatePeriodicTask',
'updatePeriodicPartial',
'createPeriodic'
'createPeriodic',
'loadCommonTemplateList'
]),
...mapActions('template/', [
'loadTemplateData'
Expand Down Expand Up @@ -539,7 +540,9 @@
try {
this.templateDataLoading = true
const params = { templateId: id, common: this.isCommon }
const templateData = await this.loadTemplateData(params)
const templateData = this.isCommon
? await this.loadCommonTemplateList(params)
: await this.loadTemplateData(params)
// 获取流程模板的通知配置
const { notify_receivers, notify_type } = templateData
this.notifyType = [notify_type.success.slice(0), notify_type.fail.slice(0)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<bk-radio
v-for="item in riskLevelList"
:key="item.risk_level"
:value="item.risk_level">
:value="item.unique_id">
{{ item.risk_name }}
</bk-radio>
</bk-radio-group>
Expand Down
4 changes: 4 additions & 0 deletions frontend/desktop/src/store/modules/periodic.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ const periodic = {
// 修改周期任务部分配置
updatePeriodicPartial ({ commit }, data) {
return axios.patch(`api/v3/periodic_task/${data.taskId}/`, data).then(response => response.data)
},
// 公共流程列表
loadCommonTemplateList ({ commit }, params) {
return axios.get('api/v3/common_template/list_for_periodic_task/', { params }).then(response => response.data.data)
}
}
}
Expand Down

0 comments on commit 8090bd0

Please sign in to comment.