Skip to content

Commit

Permalink
feat:代码库优化一期功能点-触发器 #9347
Browse files Browse the repository at this point in the history
  • Loading branch information
vhwweng committed Oct 23, 2023
1 parent 95f953d commit 3d6197c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<accordion show-checkbox :show-content="enableThirdFilter" key="customTriggerControl" :is-version="true">
<header class="var-header" style="height: 16px;" slot="header">
<span>
{{ $t('editPage.customTriggerControl') }}
<i class="bk-icon icon-info-circle ml5" v-bk-tooltips="$t('editPage.customTriggerControlTips')"></i>
<a class="title-link" target="blink" :href="customTriggerDocsLink">{{ $t('editPage.customTriggerLinkDesc') }}</a>
{{ $t('codelib.自定义触发控制') }}
<i class="bk-icon icon-info-circle ml5" v-bk-tooltips="$t('codelib.满足基础过滤条件后,根据第三方接口返回判断是否能够触发')"></i>
<a class="title-link" target="blink" :href="customTriggerDocsLink">{{ $t('codelib.查看使用指引和示例') }}</a>
</span>
<input class="accordion-checkbox" disabled :checked="enableThirdFilter" type="checkbox" @click.stop @change="toggleEnableThirdFilter" />
<input class="accordion-checkbox" disabled :checked="enableThirdFilter" type="checkbox" />
</header>
<div slot="content" class="bk-form bk-form-vertical">
<template v-for="(obj, key) in customTriggerControlModel">
Expand Down Expand Up @@ -50,12 +50,11 @@
data () {
return {
customTriggerControlModel: {},
enableThirdFilter: false,
enableThirdFilter: true,
customTriggerDocsLink: 'https://github.com/Tencent/bk-ci/issues/7743#issue-1391717634'
}
},
created () {
this.enableThirdFilter = this.element.enableThirdFilter || false
this.customTriggerControlModel = {}
const { thirdUrl, thirdSecretToken } = this.atomPropsModel
if (thirdUrl && thirdSecretToken) {
Expand All @@ -64,11 +63,6 @@
this.atomPropsModel.thirdUrl.hidden = true
this.atomPropsModel.thirdSecretToken.hidden = true
}
},
methods: {
toggleEnableThirdFilter () {
this.enableThirdFilter = !this.enableThirdFilter
}
}
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
},
render (h) {
const { inputType, value, name, handleInput, readOnly, handleBlur, title, placeholder, maxLength } = this
const { inputType, value, name, handleInput, handleBlur, title, placeholder, maxLength } = this
return (
<input placeholder={placeholder} title={title} disabled type={inputType} class='bk-form-input pointer-events-auto' maxlength={maxLength} name={name} value={value} onBlur={handleBlur} onInput={handleInput} />
Expand Down
5 changes: 4 additions & 1 deletion src/frontend/locale/codelib/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,8 @@
"触发条件": "触发条件",
",": ",",
"确认以此事件重新触发流水线 X 吗?": "确认以此事件重新触发流水线 {0} 吗?",
"确认重放此事件吗?": "确认重放此事件吗?"
"确认重放此事件吗?": "确认重放此事件吗?",
"自定义触发控制": "自定义触发控制",
"满足基础过滤条件后,根据第三方接口返回判断是否能够触发": "满足基础过滤条件后,根据第三方接口返回判断是否能够触发",
"查看使用指引和示例": "查看使用指引和示例"
}
5 changes: 4 additions & 1 deletion src/frontend/locale/codelib/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,8 @@
"触发条件": "触发条件",
",": "",
"确认以此事件重新触发流水线 X 吗?": "确认以此事件重新触发流水线 {0} 吗?",
"确认重放此事件吗?": "确认重放此事件吗?"
"确认重放此事件吗?": "确认重放此事件吗?",
"自定义触发控制": "自定义触发控制",
"满足基础过滤条件后,根据第三方接口返回判断是否能够触发": "满足基础过滤条件后,根据第三方接口返回判断是否能够触发",
"查看使用指引和示例": "查看使用指引和示例"
}

0 comments on commit 3d6197c

Please sign in to comment.