diff --git a/frontend/src/api/requrls/setting/orgnization.ts b/frontend/src/api/requrls/setting/orgnization.ts
index 45c46c373a..e301a86d21 100644
--- a/frontend/src/api/requrls/setting/orgnization.ts
+++ b/frontend/src/api/requrls/setting/orgnization.ts
@@ -1,2 +1,2 @@
-export const GetAllOrgUrl = '/system/organization/list-all';
+export const GetAllOrgUrl = '/system/organization/option/all';
export const Other = '';
diff --git a/frontend/src/views/setting/system/pluginManager/components/pluginTable.vue b/frontend/src/views/setting/system/pluginManager/components/pluginTable.vue
index 5cb96b90f1..e4627a2e66 100644
--- a/frontend/src/views/setting/system/pluginManager/components/pluginTable.vue
+++ b/frontend/src/views/setting/system/pluginManager/components/pluginTable.vue
@@ -7,14 +7,16 @@
- {{ item.label }}
+ {{ t(item.label) }}
@@ -31,7 +33,7 @@
- {{ record.name }} ({{ record.pluginForms.length }})
+ {{ record.name }} ({{ (record.pluginForms || []).length }})
@@ -63,11 +65,11 @@
{{ org.name }}
- +{{ record.organizations.length - 2 }}
+ +{{ (record.organizations || []).length - 2 }}
@@ -93,16 +95,16 @@
{{
t('system.plugin.tableDisable')
}}
- {{ t('system.plugin.tableEnable') }}
+ {{ t('system.plugin.tableEnable') }}
-
-
@@ -111,18 +113,29 @@
>{{ t('system.plugin.totalNum') }}{{ totalNum }}{{ t('system.plugin.dataList') }}
-
-
-
+
+
+
diff --git a/frontend/src/views/setting/system/pluginManager/components/scriptDetailDrawer.vue b/frontend/src/views/setting/system/pluginManager/components/scriptDetailDrawer.vue
index 464f2ff2b2..5fa8460562 100644
--- a/frontend/src/views/setting/system/pluginManager/components/scriptDetailDrawer.vue
+++ b/frontend/src/views/setting/system/pluginManager/components/scriptDetailDrawer.vue
@@ -5,6 +5,7 @@
:mask="false"
:footer="false"
:title="t('system.plugin.showScriptTitle', { name: props.config.title })"
+ @close="handleClose"
>
@@ -27,6 +29,8 @@
visible: boolean;
value: string;
config: DrawerConfig;
+ defaultVal?: string | null;
+ readOnly?: boolean;
}>();
const emit = defineEmits(['update:value', 'update:visible']);
@@ -41,6 +45,14 @@
showScriptDrawer.value = val;
}
);
+ watch(
+ () => props.value,
+ (val) => {
+ if (val) {
+ jobDefinition.value = val;
+ }
+ }
+ );
watch(
() => showScriptDrawer.value,
@@ -48,6 +60,9 @@
emit('update:visible', val);
}
);
+ function handleClose() {
+ emit('update:value', jobDefinition.value);
+ }
diff --git a/frontend/src/views/setting/system/pluginManager/components/updatePluginModal.vue b/frontend/src/views/setting/system/pluginManager/components/updatePluginModal.vue
index b0089bbe09..2611b603d1 100644
--- a/frontend/src/views/setting/system/pluginManager/components/updatePluginModal.vue
+++ b/frontend/src/views/setting/system/pluginManager/components/updatePluginModal.vue
@@ -1,10 +1,15 @@
- {{ t('system.plugin.updateTitle', { name: form.name }) }}
+ {{ t('system.plugin.updateTitle', { name: title }) }}