fix(系统设置): 修改插件接口路径

This commit is contained in:
xinxin.wu 2023-08-08 22:58:07 +08:00 committed by fit2-zhao
parent bad0b6332e
commit 19c0a28a5e
5 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@
"@7polo/kityminder-core": "1.4.53", "@7polo/kityminder-core": "1.4.53",
"@arco-design/web-vue": "^2.49.2", "@arco-design/web-vue": "^2.49.2",
"@arco-themes/vue-ms-theme-default": "^0.0.25", "@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", "@types/color": "^3.0.3",
"@vueuse/core": "^10.2.1", "@vueuse/core": "^10.2.1",
"ace-builds": "^1.22.0", "ace-builds": "^1.22.0",

View File

@ -21,5 +21,5 @@ export function deletePluginReq(id: string) {
return MSR.get<PluginItem>({ url: DeletePluginUrl, params: id }); return MSR.get<PluginItem>({ url: DeletePluginUrl, params: id });
} }
export function getScriptDetail(pluginId: string, scriptId: string) { export function getScriptDetail(pluginId: string, scriptId: string) {
return MSR.get({ url: GetScriptUrl, params: `/${pluginId}/${scriptId}` }); return MSR.get({ url: GetScriptUrl, params: `${pluginId}/${scriptId}` });
} }

View File

@ -46,7 +46,6 @@ export type PluginItem = Partial<{
scenario: string; // 应用场景 scenario: string; // 应用场景
organizations: OrganizationsItemList; // 组织列表 organizations: OrganizationsItemList; // 组织列表
pluginForms: PluginForms[]; // 插件步骤 pluginForms: PluginForms[]; // 插件步骤
expand?: any;
}>; }>;
// 插件管理列表 // 插件管理列表
export type PluginList = PluginItem[]; export type PluginList = PluginItem[];

View File

@ -8,6 +8,7 @@
</div> </div>
<a-input-search <a-input-search
v-model="keyword" v-model="keyword"
:max-length="250"
:placeholder="t('organization.member.searchMember')" :placeholder="t('organization.member.searchMember')"
class="w-[230px]" class="w-[230px]"
@search="searchHandler" @search="searchHandler"

View File

@ -8,7 +8,7 @@
@close="handleClose" @close="handleClose"
> >
<MsCodeEditor <MsCodeEditor
v-model:model-value="jobDefinition" v-model:model-value="pluginScript"
title="YAML" title="YAML"
width="100%" width="100%"
height="calc(100vh - 155px)" height="calc(100vh - 155px)"
@ -37,7 +37,7 @@
const { t } = useI18n(); const { t } = useI18n();
const showScriptDrawer = ref(props.visible); const showScriptDrawer = ref(props.visible);
const jobDefinition = ref(props.value); const pluginScript = ref(props.value);
watch( watch(
() => props.visible, () => props.visible,
@ -49,7 +49,7 @@
() => props.value, () => props.value,
(val) => { (val) => {
if (val) { if (val) {
jobDefinition.value = val; pluginScript.value = val;
} }
} }
); );
@ -61,7 +61,7 @@
} }
); );
function handleClose() { function handleClose() {
emit('update:value', jobDefinition.value); emit('update:value', pluginScript.value);
} }
</script> </script>