1 line
25 KiB
JSON
1 line
25 KiB
JSON
|
|
{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport axios from 'axios';\nconst components = {};\nconst props = ['table_data'];\nconst data = function () {\n return {\n step_list: [{\n type: \"coustom\",\n content: \"\",\n api_content: \"\",\n judge_content: [],\n loop_content: []\n }],\n loop_list: [{\n type: \"for\",\n algorithm: \"\",\n for_value: \"\",\n for_loop_value: [],\n term_list: [{\n api_param: \"\",\n operators: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }]\n }],\n judge_list: [{\n term_list: [{\n api_param: \"\",\n operators: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }],\n algorithm: \"\"\n }, {\n term_list: [{\n api_param: \"\",\n operators: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }],\n algorithm: \"\"\n }, {\n term_list: [{\n api_param: \"\",\n operators: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }],\n algorithm: \"\"\n }],\n if_ifelse_else: false,\n loop_dialog: false,\n show_loop_selection: false,\n last_step_return_data: {},\n now_select_step: 0\n };\n};\nfunction mounted() {}\nconst methods = {\n add_if_content() {\n this.step_list[this.now_select_step].judge_content = this.judge_list;\n this.judge_list = [{\n term_list: [{\n api_param: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }],\n algorithm: \"\"\n }, {\n term_list: [{\n api_param: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }],\n algorithm: \"\"\n }, {\n term_list: [{\n api_param: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }],\n algorithm: \"\"\n }];\n this.if_ifelse_else = false;\n },\n add_loop_content() {\n this.step_list[this.now_select_step].loop_content = this.loop_list;\n this.loop_list = [{\n type: \"for\",\n algorithm: \"\",\n for_value: \"\",\n for_loop_value: [],\n term_list: [{\n api_param: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n }]\n }];\n this.loop_dialog = false;\n },\n get_api_info_to_judge(value, item) {\n // this.last_step_return_data = JSON.parse(this.table_data[value].output_data_format)\n item.api_content = this.table_data[value].sign;\n },\n select_loop_type(value) {\n if (value === 'for') {\n this.show_loop_selection = false;\n } else if (value === 'while') {\n this.show_loop_selection = true;\n }\n },\n loop_term_add_func(index, index2) {\n let item = {\n api_param: \"\",\n judge_term1: \"\",\n judge_term2: \"\",\n judge_value1: \"\",\n judge_value2: \"\",\n with_lest_relation: \"\",\n show_equ: true\n };\n this.loop_list[index].term_list.splice(index2, 0, item);\n },\n loop_term_del_func(index, index2) {\n this.loop_list[index].term_list.splice(index2, 1);\n },\n del_loop_item(index) {\n this.loop_list
|