@@ -14,7 +14,8 @@ const { t } = useI18n()
1414const   props =  defineProps ({
1515  name: String , 
1616  suite: String , 
17-   store: String  
17+   store: String , 
18+   kindName: String , 
1819}) 
1920const   emit =  defineEmits ([' updated'  ])
2021
@@ -357,7 +358,7 @@ watch(currentCodeGenerator, () => {
357358}) 
358359
359360const   options =  GetHTTPMethods ()
360- const   activeName =  ref (' second '  )
361+ const   activeName =  ref (' body '  )
361362
362363function  bodyFiledExpectChange() {
363364  const   data =  testCaseWithSuite .value .data .response .bodyFieldsExpect  
@@ -411,7 +412,7 @@ function formChange() {
411412  } 
412413} 
413414
414- const   bodyType =  ref (1 )
415+ const   bodyType =  ref (5 )
415416function  bodyTypeChange(e :  number ) {
416417  let  contentType =  " "  
417418  switch  (e ) { 
@@ -491,6 +492,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
491492          <el-button  type =" primary"   @click =" openCodeDialog"  >{{ t('button.generateCode') }}</el-button >
492493        </div >
493494        <el-select 
495+           v-if =" props.kindName !== 'tRPC' && props.kindName !== 'gRPC'" 
494496          v-model =" testCaseWithSuite.data.request.method" 
495497          class =" m-2" 
496498          placeholder =" Method" 
@@ -528,7 +530,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
528530
529531      <el-main >
530532        <el-tabs  v-model =" activeName"   class =" demo-tabs"  >
531-           <el-tab-pane  label =" Query"   name =" query"  >
533+           <el-tab-pane  label =" Query"   name =" query"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
532534            <el-table  :data =" testCaseWithSuite.data.request.query"   style =" width  : 100%  "  >
533535              <el-table-column  label =" Key"   width =" 180"  >
534536                <template  #default =" scope " >
@@ -549,7 +551,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
549551            </el-table >
550552          </el-tab-pane >
551553
552-           <el-tab-pane  label =" Headers"   name =" second"  >
554+           <el-tab-pane  label =" Headers"   name =" second"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
553555            <el-table  :data =" testCaseWithSuite.data.request.header"   style =" width  : 100%  "  >
554556              <el-table-column  label =" Key"   width =" 180"  >
555557                <template  #default =" scope " >
@@ -571,7 +573,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
571573            </el-table >
572574          </el-tab-pane >
573575
574-           <el-tab-pane  label =" Body"   name =" third "  >
576+           <el-tab-pane  label =" Body"   name =" body "  >
575577            <el-radio-group  v-model =" bodyType"   @change =" bodyTypeChange"  >
576578              <el-radio  :label =" 1"  >none</el-radio >
577579              <el-radio  :label =" 2"  >form-data</el-radio >
@@ -604,7 +606,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
604606            </el-table >
605607          </el-tab-pane >
606608
607-           <el-tab-pane  label =" Expected"   name =" expected"  >
609+           <el-tab-pane  label =" Expected"   name =" expected"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
608610            <el-row  :gutter =" 20"  >
609611              <span 
610612                class =" ml-3 w-50 text-gray-600 inline-flex items-center" 
@@ -626,7 +628,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
626628            />
627629          </el-tab-pane >
628630
629-           <el-tab-pane  label =" Expected Headers"   name =" expected-headers"  >
631+           <el-tab-pane  label =" Expected Headers"   name =" expected-headers"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
630632            <el-table  :data =" testCaseWithSuite.data.response.header"   style =" width  : 100%  "  >
631633              <el-table-column  label =" Key"   width =" 180"  >
632634                <template  #default =" scope " >
@@ -647,7 +649,7 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
647649            </el-table >
648650          </el-tab-pane >
649651
650-           <el-tab-pane  label =" BodyFiledExpect"   name =" fourth"  >
652+           <el-tab-pane  label =" BodyFiledExpect"   name =" fourth"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
651653            <el-table  :data =" testCaseWithSuite.data.response.bodyFieldsExpect"   style =" width  : 100%  "  >
652654              <el-table-column  label =" Key"   width =" 180"  >
653655                <template  #default =" scope " >
@@ -670,13 +672,13 @@ const queryPupularHeaders = (queryString: string, cb: (arg: any) => void) => {
670672            </el-table >
671673          </el-tab-pane >
672674
673-           <el-tab-pane  label =" Verify"   name =" fifth"  >
675+           <el-tab-pane  label =" Verify"   name =" fifth"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
674676            <div  v-for =" verify in testCaseWithSuite.data.response.verify"   :key =" verify"  >
675677              <el-input  :value =" verify"   />
676678            </div >
677679          </el-tab-pane >
678680
679-           <el-tab-pane  label =" Schema"   name =" schema"  >
681+           <el-tab-pane  label =" Schema"   name =" schema"   v-if = " props.kindName !== 'tRPC' && props.kindName !== 'gRPC' "  >
680682            <el-input 
681683              v-model =" testCaseWithSuite.data.response.schema" 
682684              :autosize =" { minRows: 4, maxRows: 20 }" 
0 commit comments