@@ -112,8 +112,12 @@ const { t } = useI18n()
112112// Constants
113113const isHa = import .meta .env .MODE === ' ha'
114114const baseType = [
115- {value: ' number' , label: ' number' },
116- {value: ' string' , label: ' string' },
115+ {
116+ value: ' number' , label: ' number'
117+ },
118+ {
119+ value: ' string' , label: ' string'
120+ },
117121 {value: ' boolean' , label: ' boolean' },
118122 {value: ' date' , label: ' date' },
119123 {value: ' datetime' , label: ' datetime' },
@@ -123,10 +127,6 @@ const typeOptions = [... baseType, {value: 'array', label: 'array', children: ba
123127
124128const operatorOptions = [' >' , ' ==' , ' <' , ' >=' , ' <=' , ' !=' , ' like' , ' in' ]
125129const conditionOptions = [' and' , ' or' ]
126- const apiTypeMap = {
127- defaultApi: t (' packages_business_data_server_drawer_morenchaxun' ),
128- customerQuery: t (' packages_business_data_server_drawer_zidingyichaxun' ),
129- }
130130const apiTypeOptions = [
131131 {
132132 label: t (' packages_business_data_server_drawer_morenchaxun' ),
@@ -974,7 +974,7 @@ watch(visible, (v) => {
974974})
975975
976976// Event handlers
977- const tabChanged = (tab : string ) => {
977+ const tabChanged = (tab : string | number ) => {
978978 if (tab === ' debug' ) {
979979 isEdit .value = false
980980 const newDebugParams: Record <string , any > = {}
@@ -1900,15 +1900,20 @@ provide('encryptions', encryptions)
19001900 >
19011901 <template #default =" { row , $index } " >
19021902 <div v-if =" isEdit && row.defaultvalue !== undefined" >
1903- <ElInput v-model =" form .params [$index ].defaultvalue " />
1903+ <ElInput
1904+ v-model =" form .params [$index ].defaultvalue "
1905+ :type =" row .type === ' object' || (Array .isArray (row .type ) && row .type .length > 1 ) ? ' textarea' : ' input' "
1906+ :autosize =" { minRows: 2 } "
1907+ />
19041908 </div >
19051909 <div v-else >{{ row.defaultvalue }}</div >
19061910 </template >
19071911 </ElTableColumn >
19081912 <ElTableColumn
1909- :label =" $t (' packages_business_data_server_drawer_required' )"
1910- prop="required"
1911- min-width="40"
1913+ :label =" $t (' packages_business_data_server_drawer_required' )"
1914+ prop="required"
1915+ min-width="60"
1916+ align="center"
19121917 >
19131918 <template #default =" { row , $index } " >
19141919 <div
@@ -1936,7 +1941,7 @@ provide('encryptions', encryptions)
19361941 <div
19371942 v-if =" isEdit && $index > 1 && form.apiType === 'customerQuery'"
19381943 >
1939- <ElInput v-model =" form .params [$index ].description " />
1944+ <ElInput v-model =" form .params [$index ].description " type="textarea" autosize />
19401945 </div >
19411946 <div v-else >{{ row.description }}</div >
19421947 </template >
0 commit comments