mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
chore:
This commit is contained in:
@@ -149,14 +149,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
|
||||
}),
|
||||
component: {
|
||||
name: "api-test",
|
||||
type: "notification",
|
||||
typeName: compute(({ form }) => {
|
||||
return form.type;
|
||||
}),
|
||||
action: "TestRequest",
|
||||
form: compute(({ form }) => {
|
||||
return form;
|
||||
})
|
||||
action: "TestRequest"
|
||||
},
|
||||
order: 999
|
||||
},
|
||||
|
||||
+8
-6
@@ -86,13 +86,13 @@
|
||||
},
|
||||
rules: [{ required: true, message: '此项必填' }]
|
||||
}"
|
||||
:get-context-fn="blankFn"
|
||||
:get-context-fn="getScopeFunc"
|
||||
/>
|
||||
<template v-for="(item, key) in currentPlugin.input" :key="key">
|
||||
<fs-form-item v-if="item.show !== false" v-model="currentStep.input[key]" :item="item" :get-context-fn="blankFn" />
|
||||
<fs-form-item v-if="item.show !== false" v-model="currentStep.input[key]" :item="item" :get-context-fn="getScopeFunc" />
|
||||
</template>
|
||||
|
||||
<fs-form-item v-model="currentStep.strategy.runStrategy" :item="runStrategyProps" :get-context-fn="blankFn" />
|
||||
<fs-form-item v-model="currentStep.strategy.runStrategy" :item="runStrategyProps" :get-context-fn="getScopeFunc" />
|
||||
</a-form>
|
||||
</div>
|
||||
<template #footer>
|
||||
@@ -305,8 +305,10 @@ export default {
|
||||
stepDrawerClose();
|
||||
};
|
||||
|
||||
const blankFn = () => {
|
||||
return {};
|
||||
const getScopeFunc = () => {
|
||||
return {
|
||||
form: currentStep.value
|
||||
};
|
||||
};
|
||||
|
||||
const pluginSearch = ref({
|
||||
@@ -362,7 +364,7 @@ export default {
|
||||
stepSave,
|
||||
stepDelete,
|
||||
rules,
|
||||
blankFn,
|
||||
getScopeFunc,
|
||||
stepCopy,
|
||||
fullscreen
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user