diff --git a/src/views/configManage/configParamTreeTable/index.vue b/src/views/configManage/configParamTreeTable/index.vue
index 97eec590..2f77656f 100644
--- a/src/views/configManage/configParamTreeTable/index.vue
+++ b/src/views/configManage/configParamTreeTable/index.vue
@@ -43,7 +43,7 @@ let treeState: TreeStateType = reactive({
selectNode: {
topDisplay: '' as string,
topTag: '' as string,
- method: '' as string,
+ method: [] as string[],
//
title: '' as string,
key: '' as string,
@@ -57,7 +57,11 @@ function fnSelectConfigNode(_: any, info: any) {
const { title, key, method } = info.node;
treeState.selectNode.topDisplay = title;
treeState.selectNode.topTag = key;
- treeState.selectNode.method = method;
+ if (method) {
+ treeState.selectNode.method = method.split(',');
+ } else {
+ treeState.selectNode.method = ['post', 'put', 'delete'];
+ }
treeState.selectNode.title = title;
treeState.selectNode.key = key;
fnActiveConfigNode(key);
@@ -1349,7 +1353,9 @@ onMounted(() => {
@@ -1363,7 +1369,7 @@ onMounted(() => {
{
type="primary"
@click.prevent="arrayAdd()"
size="small"
- v-if="treeState.selectNode.method !== 'get'"
+ v-if="treeState.selectNode.method.includes('post')"
>
{{ t('common.addText') }}
@@ -1388,7 +1394,7 @@ onMounted(() => {
@@ -1398,13 +1404,17 @@ onMounted(() => {
-
+
{{ t('common.editText') }}
-
+
{{ t('common.deleteText') }}
@@ -1509,9 +1519,9 @@ onMounted(() => {
- {{
- t('common.deleteText')
- }}
+
+ {{ t('common.deleteText') }}
+