Files
ZERO_CODE/ZeroCodeProject/main/client/node_modules/.cache/babel-loader/9f9d291eed84fd29b6d71e460cbcb80ba0c8276d5e43643060c862045e9d617d.json

1 line
21 KiB
JSON
Raw Normal View History

2026-01-11 00:11:34 +08:00
{"ast":null,"code":"import { 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 };\n};\nasync function mounted() {\n await this.get_interaction_data();\n await this.get_api_data();\n this.fetch_data();\n await this.get_page_data();\n await this.get_later_operation_list();\n}\nconst methods = {\n fetch_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 ZeroCodeAxios({\n method: \"POST\",\n url: \":10004/ApiClass/base_api_control/api_url/\",\n data: {\n submit_data: {\n data: {\n model_name: \"f_framework_table\",\n return_type: \"True\",\n relations: [\"re_table_428fd2\"],\n filter_context: {}\n }\n }\n }\n }).then(res => {\n this.options = res.data.return_data.data.data.table_data;\n });\n ZeroCodeAxios({\n method: \"POST\",\n url: \":10093/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.project_router = res.data.return_data.data.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_context: {}\n }\n }\n }\n }).then(res => {\n this.interaction_columns = res.data.return_data.data.data.table_columns;\n });\n },\n async get_api_data() {\n await ZeroCodeAxios({\n url: \":10004/ApiClass/base_api_co