fix(系统设置): 修改插件接口路径
This commit is contained in:
parent
bad0b6332e
commit
19c0a28a5e
|
@ -39,7 +39,7 @@
|
|||
"@7polo/kityminder-core": "1.4.53",
|
||||
"@arco-design/web-vue": "^2.49.2",
|
||||
"@arco-themes/vue-ms-theme-default": "^0.0.25",
|
||||
"@form-create/arco-design": "^3.1.21",
|
||||
"@form-create/arco-design": "^3.1.22",
|
||||
"@types/color": "^3.0.3",
|
||||
"@vueuse/core": "^10.2.1",
|
||||
"ace-builds": "^1.22.0",
|
||||
|
|
|
@ -21,5 +21,5 @@ export function deletePluginReq(id: string) {
|
|||
return MSR.get<PluginItem>({ url: DeletePluginUrl, params: id });
|
||||
}
|
||||
export function getScriptDetail(pluginId: string, scriptId: string) {
|
||||
return MSR.get({ url: GetScriptUrl, params: `/${pluginId}/${scriptId}` });
|
||||
return MSR.get({ url: GetScriptUrl, params: `${pluginId}/${scriptId}` });
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ export type PluginItem = Partial<{
|
|||
scenario: string; // 应用场景
|
||||
organizations: OrganizationsItemList; // 组织列表
|
||||
pluginForms: PluginForms[]; // 插件步骤
|
||||
expand?: any;
|
||||
}>;
|
||||
// 插件管理列表
|
||||
export type PluginList = PluginItem[];
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
</div>
|
||||
<a-input-search
|
||||
v-model="keyword"
|
||||
:max-length="250"
|
||||
:placeholder="t('organization.member.searchMember')"
|
||||
class="w-[230px]"
|
||||
@search="searchHandler"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
@close="handleClose"
|
||||
>
|
||||
<MsCodeEditor
|
||||
v-model:model-value="jobDefinition"
|
||||
v-model:model-value="pluginScript"
|
||||
title="YAML"
|
||||
width="100%"
|
||||
height="calc(100vh - 155px)"
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
const { t } = useI18n();
|
||||
const showScriptDrawer = ref(props.visible);
|
||||
const jobDefinition = ref(props.value);
|
||||
const pluginScript = ref(props.value);
|
||||
|
||||
watch(
|
||||
() => props.visible,
|
||||
|
@ -49,7 +49,7 @@
|
|||
() => props.value,
|
||||
(val) => {
|
||||
if (val) {
|
||||
jobDefinition.value = val;
|
||||
pluginScript.value = val;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -61,7 +61,7 @@
|
|||
}
|
||||
);
|
||||
function handleClose() {
|
||||
emit('update:value', jobDefinition.value);
|
||||
emit('update:value', pluginScript.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue