fix(ui): update builtIn params

This commit is contained in:
songlh 2024-08-26 16:02:05 +08:00
parent 3c1a2fe3e4
commit dec7435e9b
3 changed files with 6 additions and 17 deletions

View File

@ -246,7 +246,6 @@
<a-icon <a-icon
style="position:absolute;top:2px;left:-17px;color:#A5A9BC;" style="position:absolute;top:2px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()
@ -281,7 +280,7 @@
<a-col :span="6" v-if="!['6', '7', '10'].includes(currentValueType)"> <a-col :span="6" v-if="!['6', '7', '10'].includes(currentValueType)">
<a-form-item <a-form-item
:label-col="currentValueType === '2' ? { span: 8 } : horizontalFormItemLayout.labelCol" :label-col="horizontalFormItemLayout.labelCol"
:wrapper-col="horizontalFormItemLayout.wrapperCol" :wrapper-col="horizontalFormItemLayout.wrapperCol"
> >
<template slot="label"> <template slot="label">
@ -292,7 +291,6 @@
<a-icon <a-icon
style="position:absolute;top:3px;left:-17px;color:#A5A9BC;" style="position:absolute;top:3px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()
@ -324,7 +322,6 @@
<a-icon <a-icon
style="position:absolute;top:3px;left:-17px;color:#A5A9BC;" style="position:absolute;top:3px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()
@ -383,7 +380,6 @@
<a-icon <a-icon
style="position:absolute;top:3px;left:-17px;color:#A5A9BC;" style="position:absolute;top:3px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()

View File

@ -237,7 +237,6 @@
<a-icon <a-icon
style="position:absolute;top:2px;left:-17px;color:#A5A9BC;" style="position:absolute;top:2px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()
@ -272,7 +271,7 @@
<a-col :span="6" v-if="!['6', '7', '10'].includes(currentValueType)"> <a-col :span="6" v-if="!['6', '7', '10'].includes(currentValueType)">
<a-form-item <a-form-item
:label-col="currentValueType === '2' ? { span: 8 } : horizontalFormItemLayout.labelCol" :label-col="horizontalFormItemLayout.labelCol"
:wrapper-col="horizontalFormItemLayout.wrapperCol" :wrapper-col="horizontalFormItemLayout.wrapperCol"
> >
<template slot="label"> <template slot="label">
@ -283,7 +282,6 @@
<a-icon <a-icon
style="position:absolute;top:3px;left:-17px;color:#A5A9BC;" style="position:absolute;top:3px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()
@ -316,7 +314,6 @@
<a-icon <a-icon
style="position:absolute;top:3px;left:-17px;color:#A5A9BC;" style="position:absolute;top:3px;left:-17px;color:#A5A9BC;"
type="info-circle" type="info-circle"
theme="filled"
@click=" @click="
(e) => { (e) => {
e.stopPropagation() e.stopPropagation()

View File

@ -354,10 +354,9 @@ export default {
getData() { getData() {
if (this.activeKey === 'builtin') { if (this.activeKey === 'builtin') {
return { return {
choice_value: this.valueList, choice_value: [],
choice_web_hook: null, choice_web_hook: null,
choice_other: null, choice_other: null,
choice_builtin: null,
} }
} else if (this.activeKey === 'define') { } else if (this.activeKey === 'define') {
if (this.validateDefine()) { if (this.validateDefine()) {
@ -369,18 +368,16 @@ export default {
return { return {
choice_value: this.valueList.filter((item) => item?.[0]), choice_value: this.valueList.filter((item) => item?.[0]),
choice_web_hook: null, choice_web_hook: null,
choice_other: null, choice_other: null
choice_builtin: null
} }
} else if (this.activeKey === 'webhook') { } else if (this.activeKey === 'webhook') {
const choice_web_hook = this.$refs.webhook.getParams() const choice_web_hook = this.$refs.webhook.getParams()
choice_web_hook.ret_key = this.form.ret_key choice_web_hook.ret_key = this.form.ret_key
return { choice_value: [], choice_web_hook, choice_other: null, choice_builtin: null } return { choice_value: [], choice_web_hook, choice_other: null }
} else if (this.activeKey === 'script') { } else if (this.activeKey === 'script') {
return { return {
choice_value: [], choice_value: [],
choice_web_hook: null, choice_web_hook: null,
choice_builtin: null,
choice_other: { choice_other: {
script: this.script, script: this.script,
cascade_attributes: this.cascade_attributes, cascade_attributes: this.cascade_attributes,
@ -395,8 +392,7 @@ export default {
return { return {
choice_value: [], choice_value: [],
choice_web_hook: null, choice_web_hook: null,
choice_other, choice_other
choice_builtin: null,
} }
} }
}, },