Files
ZERO_CODE/ZeroCodeProject/main/client/node_modules/.cache/babel-loader/7315f0adc8814b687197e7cbf936a101dabf97c81b6149a2a7aac7048b246e80.json

1 line
23 KiB
JSON
Raw Normal View History

2026-01-11 00:11:34 +08:00
{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport { ZeroCodeAxios } from \"@/request/request.js\";\nimport vueJsonEditor from 'vue-json-editor';\nconst components = {\n vueJsonEditor\n};\nconst props = [\"above_page_data\"];\nconst data = function () {\n return {\n tableData: [],\n interaction_data: [],\n interaction_columns: [],\n api_data: [],\n open_edit_dialog: false,\n collapseActiveNames: \"\",\n now_edit_page: {},\n now_select: {},\n hasJsonFlag: true,\n //json是否验证通过\n //json数据\n resultInfo: {\n 'employees': [{\n 'firstName': 'Bill',\n 'lastName': 'Gates'\n }, {\n 'firstName': 'George',\n 'lastName': 'Bush'\n }, {\n 'firstName': 'Thomas',\n 'lastName': 'Carter'\n }]\n },\n dialogVisable_one: false,\n component_value_notions: [],\n component_value_notion_name: \"\",\n component_value_notion_visible: false,\n later_operation_list: [],\n url_select: [{\n label: \"\",\n url: \"zero_code_base/zero_code_main/api/\"\n }, {\n label: \"\",\n url: \"zero_code_base/zero_code_main/detail/\"\n }, {\n label: \"\",\n url: \"zero_code_base/zero_code_main/settings_detail/\"\n }, {\n label: \"\",\n url: \"zero_code_base/zero_code_main/model/\"\n }, {\n label: \"登陆\",\n url: \"token/\"\n }]\n };\n};\nasync function mounted() {\n this.fetch_data();\n}\nconst methods = {\n fetch_data() {\n ZeroCodeAxios({\n method: \"POST\",\n url: \"/zero_code_base/zero_code_main/use_api/\",\n data: {\n api_name: \"read_project_config\",\n model: \"api_infos\",\n process_data: {\n project_info: this.above_page_data\n }\n }\n }).then(res => {\n this.project_config_info = JSON.parse(res.data.data);\n this.tableData = JSON.parse(res.data.data).pages;\n });\n ZeroCodeAxios({\n method: \"GET\",\n url: \"/zero_code_base/zero_code_main/record/operate/\",\n params: {\n search_data: [{\n model: \"html_interaction\",\n Q: {}\n }]\n }\n }).then(res => {\n this.interaction_columns = res.data.data.return_data_columns;\n });\n ZeroCodeAxios({\n method: \"GET\",\n url: \"/zero_code_base/zero_code_main/record/operate/\",\n params: {\n search_data: [{\n model: \"api_infos\",\n Q: {}\n }]\n }\n }).then(res => {\n this.api_data = res.data.data.return_data;\n });\n },\n update_input_template(value) {\n this.api_data.forEach(item => {\n if (item.sign === value) {\n // this.now_select.input_data = JSON.parse(item.input_data_format)\n this.now_select.input_data = item.input_data_format;\n }\n });\n },\n get_component_value_notions() {},\n get_later_operation_list() {\n ZeroCodeAxios({\n url: \":10004/ApiClass/base_api_control/api_url/\",\n method: \"POST\",\n data: {\n submit_data: {\n data: {\n model_name: \"front_end_behavior_table\",\n return_type: \"True\",\n filter_context: {}\n }\n }\n }\n }).then(res => {\n console.log(\"later_option_lsit\", res);\n this.later_operation_list = res.data.return_data.data.data.table_data;\n });\n },\n get_page_data() {\n ZeroCodeAxios({\n method: \"POST\",\n url: \":10090/ApiClass/base_api_control/api_url/\",\n data: {\n submit_data: {\n data: {\n project_sign: this.above_page_data.sign\n }\n }\n }\n }).then(res => {\n this.tableData = res.data.return_data.data.data;\n });\n },\n async get_interaction_data() {\n await ZeroCodeAxios({\n url: \":10004/ApiClass/base_api_control/api_url/\",\n method: \"POST\",\n data: {\n submit_data: {\n data: {\n model_name: \"app_interaction_point_table\",\n return_type: \"True\",\n filter