Sfoglia il codice sorgente

取消逆向解析 'RAW_TEXT', 'RAW_XML', 'RAW_HTML'

CzRger 5 mesi fa
parent
commit
41638b060d
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      src/views/manage/service/detail.vue

+ 5 - 5
src/views/manage/service/detail.vue

@@ -169,7 +169,7 @@
                 @change="onChangeRequestBodyType"
               />
               <CusFormColumn
-                v-if="['RAW_JSON', 'RAW_TEXT', 'RAW_XML', 'RAW_HTML'].includes(state.params.requestBody.type)"
+                v-if="['RAW_JSON'].includes(state.params.requestBody.type)"
                 :span="24"
                 required
                 type="textarea"
@@ -193,7 +193,7 @@
             <template v-if="state.params.requestBody.type !== 'NONE'">
               <div style="margin-bottom: 10px; display: flex">
                 <CusButton type="main" title="新增" style="margin-right: auto;" @click="state.params.requestBody.data.push({key: '', type: '1', value: '', valueTable: []})"/>
-                <template v-if="['RAW_JSON', 'RAW_TEXT', 'RAW_XML', 'RAW_HTML'].includes(state.params.requestBody.type)">
+                <template v-if="['RAW_JSON'].includes(state.params.requestBody.type)">
                   <div class="tips" style="margin: 0 10px">
                     为了保证数据结构准确,提交时将默认触发“<span style="color: var(--cus-main-color)">逆向生成JSON结构</span>”
                   </div>
@@ -220,7 +220,7 @@
                       :span="24"
                       v-model:param="scope.row.type"
                       link="select"
-                      :options="['RAW_JSON', 'RAW_TEXT', 'RAW_XML', 'RAW_HTML'].includes(state.params.requestBody.type) ? DictionaryStore.requestParamsList.filter(v => v.dictValue != 3) : DictionaryStore.requestParamsList"
+                      :options="['RAW_JSON'].includes(state.params.requestBody.type) ? DictionaryStore.requestParamsList.filter(v => v.dictValue != 3) : DictionaryStore.requestParamsList"
                       :clearable="false"
                       @change="(val) => (scope.row.value = '', scope.row.valueTable = [])"
                     />
@@ -716,7 +716,7 @@ const onSubmit = () => {
           return
         }
       }
-      if (['RAW_JSON', 'RAW_TEXT', 'RAW_XML', 'RAW_HTML'].includes(state.params.requestBody.type) && state.params.requestBody.data.length > 0) {
+      if (['RAW_JSON'].includes(state.params.requestBody.type) && state.params.requestBody.data.length > 0) {
         try {
           tableToJson()
         } catch (e) {
@@ -902,7 +902,7 @@ const tableToJson = () => {
   state.params.requestBody.str = JSON.stringify(obj)
 }
 const onChangeRequestBodyType = (val) => {
-  if (['RAW_JSON', 'RAW_TEXT', 'RAW_XML', 'RAW_HTML'].includes(val)) {
+  if (['RAW_JSON'].includes(val)) {
     state.params.requestBody.data.forEach(v => {
       if (v.type == 3) {
         v.type = ''