| 
...
 | 
...
 | 
@@ -46,15 +46,6 @@ | 
| 
46
 | 
46
 | 
           />
 | 
| 
47
 | 
47
 | 
         </a-space>
 | 
| 
48
 | 
48
 | 
       </a-form-item>
 | 
| 
49
 | 
 
 | 
-      <a-form-item
 | 
| 
50
 | 
 
 | 
-        label="保存原始数据"
 | 
| 
51
 | 
 
 | 
-        name="saveOriginalData"
 | 
| 
52
 | 
 
 | 
-        :rules="[{ required: true, message: '请选择保存原始数据' }]"
 | 
| 
53
 | 
 
 | 
-      >
 | 
| 
54
 | 
 
 | 
-        <a-space direction="vertical">
 | 
| 
55
 | 
 
 | 
-          <a-radio-group v-model:value="scriptForm.saveOriginalData" :options="originalOptions" />
 | 
| 
56
 | 
 
 | 
-        </a-space>
 | 
| 
57
 | 
 
 | 
-      </a-form-item>
 | 
| 
58
 | 
49
 | 
       <a-form-item label="脚本内容" :name="ifAdd ? 'convertJs' : 'script'">
 | 
| 
59
 | 
50
 | 
         <Card title="脚本内容" :bodyStyle="{ padding: 0, height: '280px' }">
 | 
| 
60
 | 
51
 | 
           <template #extra>
 | 
| 
...
 | 
...
 | 
@@ -111,7 +102,7 @@ | 
| 
111
 | 
102
 | 
   </div>
 | 
| 
112
 | 
103
 | 
 </template>
 | 
| 
113
 | 
104
 | 
 <script setup lang="ts">
 | 
| 
114
 | 
 
 | 
-  import { ref, unref, reactive, onMounted, toRefs, nextTick, computed } from 'vue';
 | 
| 
 
 | 
105
 | 
+  import { ref, unref, reactive, onMounted, toRefs, computed } from 'vue';
 | 
| 
115
 | 
106
 | 
   import ace from 'ace-builds';
 | 
| 
116
 | 
107
 | 
   import { Card, Button, Tooltip } from 'ant-design-vue';
 | 
| 
117
 | 
108
 | 
   import 'ace-builds/src-noconflict/theme-chrome'; // 默认设置的主题
 | 
| 
...
 | 
...
 | 
@@ -149,15 +140,13 @@ | 
| 
149
 | 
140
 | 
     params: '',
 | 
| 
150
 | 
141
 | 
     output: '',
 | 
| 
151
 | 
142
 | 
     scriptType: 'TRANSPORT_TCP_UP',
 | 
| 
152
 | 
 
 | 
-    saveOriginalData: 'true',
 | 
| 
153
 | 
143
 | 
   });
 | 
| 
154
 | 
144
 | 
 
 | 
| 
155
 | 
145
 | 
   const reportTypeOptions = reactive({
 | 
| 
156
 | 
 
 | 
-    originalOptions: [],
 | 
| 
157
 | 
146
 | 
     scriptTypeOptions: [],
 | 
| 
158
 | 
147
 | 
   });
 | 
| 
159
 | 
148
 | 
 
 | 
| 
160
 | 
 
 | 
-  const { originalOptions, scriptTypeOptions } = toRefs(reportTypeOptions);
 | 
| 
 
 | 
149
 | 
+  const { scriptTypeOptions } = toRefs(reportTypeOptions);
 | 
| 
161
 | 
150
 | 
 
 | 
| 
162
 | 
151
 | 
   const { createMessage } = useMessage();
 | 
| 
163
 | 
152
 | 
 
 | 
| 
...
 | 
...
 | 
@@ -171,8 +160,7 @@ | 
| 
171
 | 
160
 | 
 
 | 
| 
172
 | 
161
 | 
   const getAceClass = computed((): string => userStore.getDarkMode);
 | 
| 
173
 | 
162
 | 
 
 | 
| 
174
 | 
 
 | 
-  const setDefaultRadio = (p2, p3) => {
 | 
| 
175
 | 
 
 | 
-    scriptForm.saveOriginalData = p2;
 | 
| 
 
 | 
163
 | 
+  const setDefaultRadio = (p3) => {
 | 
| 
176
 | 
164
 | 
     scriptForm.scriptType = p3;
 | 
| 
177
 | 
165
 | 
   };
 | 
| 
178
 | 
166
 | 
 
 | 
| 
...
 | 
...
 | 
@@ -186,7 +174,6 @@ | 
| 
186
 | 
174
 | 
   };
 | 
| 
187
 | 
175
 | 
 
 | 
| 
188
 | 
176
 | 
   onMounted(async () => {
 | 
| 
189
 | 
 
 | 
-    reportTypeOptions.originalOptions = (await getDictValue('original_data')) as never as any;
 | 
| 
190
 | 
177
 | 
     reportTypeOptions.scriptTypeOptions = (await getDictValue('script_type')) as never as any;
 | 
| 
191
 | 
178
 | 
   });
 | 
| 
192
 | 
179
 | 
 
 | 
| 
...
 | 
...
 | 
@@ -273,7 +260,6 @@ | 
| 
273
 | 
260
 | 
       ...value,
 | 
| 
274
 | 
261
 | 
       ...{ convertJs: props.ifAdd ? scriptForm.convertJs : null },
 | 
| 
275
 | 
262
 | 
       ...{ script: !props.ifAdd ? scriptForm.script : null },
 | 
| 
276
 | 
 
 | 
-      ...{ saveOriginalData: scriptForm.saveOriginalData === 'false' ? false : true },
 | 
| 
277
 | 
263
 | 
     };
 | 
| 
278
 | 
264
 | 
   };
 | 
| 
279
 | 
265
 | 
 
 | 
| 
...
 | 
...
 | 
@@ -293,11 +279,6 @@ | 
| 
293
 | 
279
 | 
       for (let i in scriptForm) {
 | 
| 
294
 | 
280
 | 
         Reflect.set(scriptForm, i, v[i]);
 | 
| 
295
 | 
281
 | 
       }
 | 
| 
296
 | 
 
 | 
-      nextTick(() => {
 | 
| 
297
 | 
 
 | 
-        setTimeout(() => {
 | 
| 
298
 | 
 
 | 
-          scriptForm.saveOriginalData = v.saveOriginalData === false ? 'false' : 'true';
 | 
| 
299
 | 
 
 | 
-        }, 10);
 | 
| 
300
 | 
 
 | 
-      });
 | 
| 
301
 | 
282
 | 
       aceEditor.value.setValue(v.convertJs);
 | 
| 
302
 | 
283
 | 
       handleFormat();
 | 
| 
303
 | 
284
 | 
     }
 | 
...
 | 
...
 | 
 |