Method and device for determining display page through identification instruction, equipment and medium

By validating and segmenting the initial commands, constructing the command set, and rendering the page, the mismatch between SGUI and Eterm interface was resolved, achieving efficient command interaction and an intuitive user experience.

CN121008795APending Publication Date: 2025-11-25TRAVELSKY TECHNOLOGY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511053682.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-29
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

The design principles of SGUI do not match the command interaction style of the Eterm interface, resulting in a poor user experience.

Method used

By validating the initial commands based on the preset command set, constructing the command set and determining the display page, the commands of the Eterm interface can be quickly connected to the graphical user interface. The commands are corrected or completed using preset character segmentation and validation rules, and the page is rendered by obtaining data from the API interface.

Benefits of technology

It enables quick access to the graphical user interface from the Eterm interface's command interaction, improving user operation efficiency and experience, and resolving the incompatibility issue between the SGUI and the Eterm interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121008795A_ABST
    Figure CN121008795A_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and equipment for determining a display page through an identification instruction and a medium, and relates to the technical field of data processing.The method comprises the steps that an obtained initial instruction is verified based on a preset instruction set, and an input confirmation instruction is obtained; when it is detected that the format of the instruction is correct, an instruction set is constructed based on the instruction, and a display page is determined; and when the target instruction corresponding to the instruction control component exists in the constructed instruction set, determining a display page based on the target instruction. By means of the method and device, the technical problem that in the related technology, the design principle of the graphical user interface is not matched with the instruction interaction style of the electronic terminal interface, so that the instruction of the electronic terminal interface cannot be used at the front end of the graphical user interface, and the user experience feeling is poor is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, device, and medium for determining the display page by recognizing instructions. Background Technology

[0002] Currently, intuitiveness and interactivity of the user interface have become key factors in improving user experience. Eterm's interface, with its unique front-end command interaction style, is highly favored by users; this style not only improves operational efficiency but also conforms to users' operating habits.

[0003] However, the design philosophy of SGUI emphasizes intuitive graphical operation, while the Eterm interface relies on rapid input and response of commands. A mismatch exists between the traditional graphical user interface (SGUI) design principles and the command interaction style of the electronic terminal (Eterm) interface, making Eterm commands unusable in the SGUI front end. This results in a poor user experience. Therefore, there is an urgent need for a technical solution that can seamlessly connect command recognition with graphical user interface interaction. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and medium for determining the display page by recognizing instructions. It can solve the technical problem in the prior art where the design principles of SGUI and the instruction interaction style of Eterm interface are mismatched, making it impossible for instructions of electronic terminal interface to be used on the front end of graphical user interface, resulting in a poor user experience.

[0005] To achieve the above objectives, the present invention provides the following technical solution: In a first aspect, embodiments of the present invention provide a method for determining a display page by recognizing an instruction, the method comprising: The initial command obtained is verified based on the preset command set to obtain the command that is confirmed to be entered. When the format of the instruction is detected to be correct, an instruction set is constructed based on the instruction and the display page is determined. When a target instruction corresponding to an instruction control component exists in the constructed instruction set, the display page is determined based on the target instruction.

[0006] In one embodiment, the step of verifying the acquired initial instruction based on a preset instruction set to obtain a confirmed input instruction includes: Based on the first preset character in the acquired initial instruction, determine the initial instruction for each line; For each line of initial instructions, a second preset character is used to divide it to obtain each line of initial instructions after division. The content before the second preset character of each line of initial instructions after division is the instruction type, and the content after the second preset character is the instruction parameters. Each line of initial instructions after segmentation is checked to see if it matches the preset instruction set. Each initial instruction after the segmentation is matched is denoted as the instruction to confirm input; For each mismatched initial instruction after segmentation, correction or completion is performed based on instructions in a preset instruction set. The corrected or completed initial instruction after segmentation is recorded as the confirmation input instruction.

[0007] In one embodiment, after verifying the acquired initial instruction based on a preset instruction set to obtain a confirmed input instruction, the process includes: Check whether there are multiple instruction types on the same line in the input instructions; If it exists, the second preset character is used to split the line of instructions so that each line of instructions has only one type of instruction. If it does not exist, then the format of the instruction is correct.

[0008] In one embodiment, constructing an instruction set based on the instructions includes: Step S201: For any line of instructions that has not been verified, match the corresponding verification rule in the preset rule table based on the instruction parameters corresponding to the instruction type of that line of instructions. Step S202: Based on the verification rules, verify the line of instructions to obtain the verification result; Step S203: If the verification result is a failure, an error alarm is generated and the process returns to step S201. Step S204: If the verification result is successful, then after clearing the instruction mapping relationship in the global state management module, write the successfully verified instruction type and its corresponding instruction parameters into the global state management module. Step S205: Return to step S201 and continue until each line of instructions in the instruction has been verified to obtain the constructed instruction set.

[0009] In one embodiment, determining the display page based on the instruction includes: The route of the current page is compared with the route of the page corresponding to the instruction to obtain the comparison result; If the comparison results are the same, then the current page is determined to be the display page; If the comparison results are different, the current page is redirected to the page corresponding to the instruction, and the page corresponding to the instruction is determined to be the display page.

[0010] In one embodiment, determining the display page based on the target instruction includes: The API interface to be called is determined based on the instruction parameters corresponding to the target instruction; Data is obtained through the API interface to be called, and the page is rendered based on the obtained data and the instruction parameters corresponding to the target instruction to obtain the display page.

[0011] Secondly, embodiments of the present invention provide an apparatus for determining a display page by recognizing an instruction, the apparatus comprising: The verification module is configured to verify the acquired initial command based on a preset command set to obtain a confirmed input command. An instruction set construction module is configured to construct an instruction set based on the instruction and determine the display page when the format of the instruction is detected to be correct. The page display module is configured to determine the display page based on the target instruction when there is a target instruction corresponding to the instruction control component in the constructed instruction set.

[0012] In one embodiment, the verification module is configured to: Based on the first preset character in the acquired initial instruction, determine the initial instruction for each line; For each line of initial instructions, a second preset character is used to divide it to obtain each line of initial instructions after division. The content before the second preset character of each line of initial instructions after division is the instruction type, and the content after the second preset character is the instruction parameters. Each line of initial instructions after segmentation is checked to see if it matches the preset instruction set. Each initial instruction after the segmentation is matched is denoted as the instruction to confirm input; For each mismatched initial instruction after segmentation, correction or completion is performed based on instructions in a preset instruction set. The corrected or completed initial instruction after segmentation is recorded as the confirmation input instruction.

[0013] Thirdly, embodiments of the present invention also provide an electronic device, including: a memory and a processor; the processor is configured to read and execute a computer program stored in the memory to implement the steps of the aforementioned method for determining a display page by recognizing instructions.

[0014] Fourthly, embodiments of the present invention also provide a computer storage medium storing computer-executable instructions, which, when executed, implement the steps of the aforementioned method for determining a display page by recognizing instructions.

[0015] The beneficial effects of the technical solutions provided by the embodiments of the present invention include: The initial command is validated based on a preset command set to obtain a confirmed input command. When the command format is found to be correct, a command set is constructed based on the command, and the display page is determined. When a target command corresponding to a command control component exists in the constructed command set, the display page is determined based on the target command. Through this invention, the command interaction of the electronic terminal interface can quickly access the graphical user interface, realizing the function of quickly generating a page to be operated by recognizing the input command. It retains both the rapid input and response characteristics of the electronic terminal interface and the intuitiveness and interactivity of the graphical user interface, greatly improving the user's operational efficiency and experience. It solves the technical problem in related technologies where the design principles of the graphical user interface and the command interaction style of the electronic terminal interface are mismatched, making it impossible for commands from the electronic terminal interface to be used on the front end of the graphical user interface, resulting in a poor user experience. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the first embodiment of the method for determining the display page by recognizing instructions according to the present invention; Figure 2 This is a schematic diagram of the overall architecture of the present invention; Figure 3 for Figure 1 A detailed flowchart illustrating the process of constructing the instruction set in step S20; Figure 4 This is a schematic diagram of the functional modules of an embodiment of the device for determining the display page by recognizing instructions according to the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0020] In a first aspect, embodiments of the present invention provide a method for determining the display page by recognizing instructions.

[0021] In one embodiment, reference is made to Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the method for determining the display page by recognizing instructions according to the present invention. Figure 1 As shown, the methods for determining the display page by recognizing instructions include: Step S10: Verify the acquired initial instruction based on the preset instruction set to obtain the confirmed input instruction; In some specific embodiments, step S10 includes: Based on the first preset character in the acquired initial instruction, determine the initial instruction for each line; For each line of initial instructions, a second preset character is used to divide it to obtain each line of initial instructions after division. The content before the second preset character of each line of initial instructions after division is the instruction type, and the content after the second preset character is the instruction parameters. Each segmented initial instruction is checked to see if it matches the instructions in the preset instruction set; Each initial instruction after the segmentation is matched is denoted as the instruction to confirm input; For each mismatched initial instruction after segmentation, correction or completion is performed based on instructions in a preset instruction set. The corrected or completed initial instruction after segmentation is recorded as the confirmation input instruction.

[0022] In this embodiment, refer to Figure 2 , Figure 2 This is a schematic diagram of the overall architecture of the present invention. Figure 2 As shown, the initial command entered in the input box is obtained through a simulated terminal component. If it cannot be displayed on one line, a first preset character, such as "-", is used to concatenate the subsequent command parameters when wrapping to a new line. The simulated terminal component identifies the first preset character in the initial command to determine the initial command for each line.

[0023] For each line of initial instructions, a second preset character, such as a space, is used to split each line of initial instructions, so that the content before the second preset character of each split line of initial instructions is the instruction type, and the content after the second preset character is the instruction parameters.

[0024] Each segmented initial instruction is matched against a preset instruction set. For example, the preset instruction set is shown in Table 1.

[0025] Table 1

[0026] Exemplarily, if the initial instruction of a certain line after segmentation is NM 1 test, then check whether there is an NM 1 test instruction in the preset instruction set; If there is, determine that the initial instruction after segmentation: NM 1 test matches the instruction in the preset instruction set, and then record NM1 test as the confirmed input instruction.

[0027] In another embodiment, if the initial instruction of a certain line after segmentation is NM 2 test, then check whether there is an NM 2 test instruction in the preset instruction set; if not, based on the instruction in the preset instruction set: NM 1 test, correct the initial instruction of this line after segmentation: NM 2 test to NM 1 test, and then record the initial instruction of this line after segmentation corrected to NM 1 test as the confirmed input instruction.

[0028] In another embodiment, if the initial instruction of a certain line after segmentation is AV PEKSHA, then check whether there is an AV PEKSHA instruction in the preset instruction set; if not, determine that the initial instruction of this line after segmentation: AV PEKSHA is incomplete, and then complete the initial instruction of this line after segmentation: AV PEKSHA based on the instruction in the preset instruction set: AV PEKSHA / 15MAR, and then record the initial instruction of this line after segmentation completed to AV PEKSHA / 15MAR instruction as the confirmed input instruction.

[0029] The specific implementation code is as follows: const suggestionsAll = 'SS CA1351 Y 11OCT PEKCAN NN1', 'NM 1 test', 'NM 1 test CHD', 'NM 1ZHANG / SAN', 'NM 1ZHANG / SAN 1 Zhang Si', 'SSR FOID 3U HK / NI1231113 / P1', 'SSR DOCS CZ HK1 P / CN / 123456789 / CN / 17FEB80 / M / 20DEC22 / TEST / TT / P1', 'OSI 3U CTCT11', 'OSI 3U CTCM111 / P1', 'CT 84018401', 'TK TL / 1200 / 10DEC / PEK099', 'GN:15GROUP', 'GN 15GROUP / TEST', 'RMK TESTAB 999-1111111111', 'RMK CA TESTABCD / P1', 'RMK:CA 131-231Q-WEWQE / P1', '@' ]; / Prompt box display / const showDropdown = () =>{ clearValidateError(); const { lines, cursorLine} = getCursorLine(); const inputTextCursorLine = lines[cursorLine]; / / Matching suggestion if (inputTextCursorLine) { suggestions.value = suggestionsAll.filter((item) =>item.startsWith(inputTextCursorLine?.toLocaleUpperCase())); dropdownVisible.value = suggestions.value.length>0; } else { dropdownVisible.value = false; } }; In one embodiment, after step S10, the following steps are included: Check whether there are multiple instruction types on the same line in the input instructions; If it exists, the second preset character is used to split the line of instructions so that each line of instructions has only one type of instruction. If it does not exist, then the format of the instruction is correct.

[0030] In this embodiment, we continue to refer to... Figure 2After receiving the confirmation input instruction, the confirmation input instruction is entered into the instruction preprocessor. The instruction preprocessor checks whether there are multiple instruction types on the same line in the confirmation input instruction.

[0031] For example, if it is confirmed that a certain line of input instructions is AV PEKSHA / 15MAR NM 1 test CHD, the detection result is that the line of instructions has multiple instruction types, namely, instruction type AV and instruction type NM. Then, a second preset character (e.g., space) is used to split the line of instructions into two lines of instructions, namely AV PEKSHA / 15MAR and NM 1 test CHD, so that each line of instructions has only one instruction type.

[0032] If it is confirmed that each line of the input instructions contains only one instruction type, then the format of the input instructions is correct.

[0033] Step S20: When the format of the instruction is detected to be correct, an instruction set is constructed based on the instruction and the display page is determined; In some specific embodiments, reference is made to Figure 3 Constructing an instruction set based on the instructions includes: Step S201: For any line of instructions that has not been verified, match the corresponding verification rule in the preset rule table based on the instruction parameters corresponding to the instruction type of that line of instructions. Step S202: Based on the verification rules, verify the line of instructions to obtain the verification result; Step S203: If the verification result is a failure, an error alarm is generated and the process returns to step S201. Step S204: If the verification result is successful, then after clearing the instruction mapping relationship in the global state management module, write the successfully verified instruction type and its corresponding instruction parameters into the global state management module. Step S205: Return to step S201 and continue until each line of instructions in the instruction has been verified to obtain the constructed instruction set.

[0034] In this embodiment, for any unvalidated instruction in the input command, the instruction preprocessor matches the corresponding validation rule in a preset rule table based on the instruction parameters corresponding to the instruction type of that instruction. For example, in one embodiment, if an instruction is AV PEKSHA / 15MAR, then based on the instruction parameter PEKSHA / 15MAR, the corresponding validation rule matched in the preset rule table is: starting with AV, followed by a space, where PEKSHA is the originating and arriving airport, consisting of six letters, and a date format consisting of numbers followed by three alphanumeric characters after a slash ( / ).

[0035] In another embodiment, if a certain instruction is NM 1ZHANG / SAN, then based on the instruction parameter 1ZHANG / SAN in the preset rule table, the corresponding verification rule is: starting with NM, followed by a space and then a number + ZHANG / SAN, which is the name and can support the first letter of English or Chinese characters, and English letters must be separated by / .

[0036] Based on the matched validation rules, the command line is validated. If the command line does not conform to the validation rules during the validation process, the validation result is failure; if the command line conforms to the validation rules during the validation process, the validation result is success.

[0037] If the verification result is unsuccessful, an error alarm will be generated, and the process will return to step S201, which means that any line of input instructions that has not been verified will be re-verified.

[0038] If the verification result is successful, the instruction mapping relationship in the global state management module is cleared, and the successfully verified instruction types and their corresponding instruction parameters are written into the global state management module. Then, the process returns to step S201, that is, any line of unverified instructions in the input instructions is re-verified until every line of instructions in the input instructions has been verified, thus obtaining the constructed instruction set. The global state management module is used for global information of the entire application (including the main application and sub-applications) and can be used for global communication of state changes. The main application is the base application of the micro-frontend, the entry point of the entire application, and is responsible for the scheduling, rendering, and application routing control of sub-applications; a sub-application is an executable front-end application. Typically, each functional module in a product is treated as an independent application system. Micro-frontends are an architecture similar to microservices, applying the microservice concept to the browser, transforming a web application from a single monolithic application into an application aggregating multiple small front-end applications. Each front-end application can run, be developed, and deployed independently. Micro-frontends are not simply a front-end framework or tool, but an architectural system.

[0039] In some specific embodiments, determining the display page based on the instructions includes: The route of the current page is compared with the route of the page corresponding to the instruction to obtain the comparison result; If the comparison results are the same, then the current page is determined to be the display page; If the comparison results are different, the current page is redirected to the page corresponding to the instruction, and the page corresponding to the instruction is determined to be the display page.

[0040] In this embodiment, we continue to refer to... Figure 2The command preprocessor compares the route of the current page with the route of the page corresponding to the input command. If the route of the current page is the same as the route of the page corresponding to the input command, no redirection is performed, and the current page is determined to be the display page. If the route of the current page is different from the route of the page corresponding to the input command, Vue Router controls the current page to redirect to the page corresponding to the input command, thus determining the page corresponding to the input command as the display page.

[0041] It should be noted that in this embodiment, when comparing routes, the route path is compared. Vue Router is the navigation hub of modern SPAs (Single Page Applications). By comparing and navigating through intelligent routes, it can ensure correct view rendering while avoiding unnecessary performance loss.

[0042] The specific implementation code for step S20 above is shown below.

[0043] /

[0044] Integrate all input instructions @param inputStr @returns instruction array / const formatLineCmd = (inputStr: string): string[ ] =>{ / / Separate strings by newline character (remove leading and trailing blank lines and empty strings) const lineStrs = inputStr?.trim()?.split('\n') ??[ ]; const commands: string[ ] = [ ]; let cmd = ''; / / 1. Integrate each line of instructions for (let i = 0; i <lineStrs.length; i++) { const line = lineStrs[i]?.trim()?.toUpperCase(); / / If the newline starts with '-', it will be appended to the previous instruction. if (line.startsWith('- ')) { cmd += line.replace('-', ''); } else { / / If the concatenation instruction is not empty, store the previous complete instruction. if (cmd !== '') { commands.push(cmd); } / / Make any instruction in the current line that does not begin with a hyphen the beginning of the new instruction. cmd = line; } / / When the last line of the code if (i === lineStrs.length - 1) { commands.push(cmd); } } return commands; }; /

[0045] Press Enter to save etermInputSubmit / const enterClick = () =>{ handleCmdStore(formatLineCmd(formData.value.etermInput?.trim().toUpperCase() ?? '')); currentOrder.value.commands.set('commandPassed', false); errorTip.value = ''; formRef.value.validate(async (valid: boolean) =>{ if (!valid) return; / / An error occurred because a non-existent instruction was written. if(hasNotExistCMD()) return; / / This section checks the results of all instruction verifications. isAllValidate.value = await isAllComsValidate(); if (!isAllValidate.value) { errorTip.value || (errorTip.value = t('app.imitateEterm.errorTip')); return; } currentOrder.value.commands.set('commandPassed', true); / / After all checks pass, parse the instructions and store them. makePnrInfo(); }); }; /

[0046] Cache instruction sets by category @param commands @returns / const handleCmdStore = (commands: string[ ]) =>{ / / No data was parsed for the instruction, so no action was taken. if (commands?.length<1) return; / / 1. The cache only stores instructions for the current operation and clears past operations. if (currentOrder.value.commands) { currentOrder.value.commands.clear(); } else { currentOrder.value.commands = new Map<string, string> (); } / / 2. Store all complete instructions, according to their headers, into the buffer. (commands ?? [ ]).forEach((item: string) =>{ / / Command Category const cmdKey = getCmdKey(item); / / This type of instruction set const cmdList = currentOrder.value.commands?.get(cmdKey) ?? [ ]; cmdList.push(item); / / Set cache value currentOrder.value.commands.set(cmdKey, cmdList); }); }; /

[0047] Press Enter to navigate to the corresponding function page. / const enterClick = (cmdValue: string) =>{ const cmdPre = modifyCMDCut(cmdValue); if (cmdValue.startsWith('TSL')) { actions.setLink(` / rpt / salesDaily?cmd=${cmdValue}-${new Date().getTime()}`); } if (etCMD.includes(cmdPre)) { if (route.path.includes(' / agentSell')) { emits('etermEnterClick', `${cmdValue}-${new Date().getTime()}`); } else { const cmd = encodeURIComponent(`${cmdValue}-${new Date().getTime()}`); actions.setLink(` / et / agentSell?cmd=${cmd}}`); } } / / RT and RTC conflict, RT is handled separately if (cmdValue.startsWith('RT:')) { actions.setLink(` / sor / pnrEtQuery?cmd=${cmdValue}-${new Date().getTime()}`); } / / RTKT requires detr in RTKT first if (cmdValue.startsWith('RTKT') || cmdValue.startsWith('DETR:')) { actions.setLink(` / tc / ticketQuery?cmd=${cmdValue}^${new Date().getTime()}`); } if (sorJumpCMD.includes(cmdPre)) { actions.setLink(` / sor / pnrEtQuery?cmd=${cmdValue}-${new Date().getTime()}`); } }; Step S30: When there is a target instruction corresponding to the instruction control component in the constructed instruction set, the display page is determined based on the target instruction.

[0048] In some specific embodiments, step S30 includes: The API interface to be called is determined based on the instruction parameters corresponding to the target instruction; Data is obtained through the API interface to be called, and the page is rendered based on the obtained data and the instruction parameters corresponding to the target instruction to obtain the display page.

[0049] In this embodiment, we continue to refer to... Figure 2 The instruction preprocessor writes the successfully verified instruction types and their corresponding instruction parameters into the global state management module. After obtaining the constructed instruction set, Vue's reactive system is used to check whether the target instruction corresponding to the instruction control component exists in the instruction set constructed in the global state management module.

[0050] If the constructed instruction set contains a target instruction corresponding to an instruction control component, the API interface to be called is determined based on the instruction parameters corresponding to the target instruction, and data is obtained through the API interface to be called. The page is then rendered based on the obtained data and the instruction parameters corresponding to the target instruction to obtain the display page. Specifically, if the constructed instruction set contains a target instruction one corresponding to instruction control component one, the API interface to be called is determined based on the instruction parameters corresponding to target instruction one, and data is obtained through the API interface to be called. Subpage one is then rendered based on the obtained data and the instruction parameters corresponding to target instruction one to obtain the display page. If the constructed instruction set contains a target instruction two corresponding to instruction control component two, the API interface to be called is determined based on the instruction parameters corresponding to target instruction two, and data is obtained through the API interface to be called. Subpage two is then rendered based on the obtained data and the instruction parameters corresponding to target instruction two to obtain the display page.

[0051] For example, taking the instruction control component as the flight information display component, the Vue's `watch` method is used to detect whether the target instruction corresponding to the flight information display component exists in the instruction set built in the global state management module. If it exists, the flight query interface is called and the query result is returned. Based on the returned query result and the instruction parameters corresponding to the target instruction, the current page is rendered to obtain the display page. This realizes the rapid access of the instruction interaction of the Electronic Terminal (Eterm) interface to the graphical user interface (SGUI), thereby quickly generating a pending operation page for querying flight information and greatly improving the efficiency of users querying flight information. Among them, SGUI (AirlineSelling GUI) is the airline sales front end. SGUI is based on the SAT service interface provided by the managed service software in the PSS product sales field. It integrates the workflow of actual business scenarios such as ticket control, sales processing, query statistics, etc. of air tickets and their ancillary services, and provides a graphical management and operation interface to airline sales personnel and sales managers.

[0052] The specific implementation code for step S30 above is shown below.

[0053] / / Placeholder black screen command const ssCommands = computed(() =>{ const commands = orderInfo.value.get(activeTag.value).commands; return JSON.stringify(commands ? commands.get('SS') : ''); }); watch([() =>ssCommands.value, () =>commandsSeatCheckSuccess.value],([commandsNew, checkNew]) =>{ if (!commandsNew || !checkNew) return; / / Command verification set to false store.setCommandsSeatCheckSuccess(activeTag.value, false); const newSsList = JSON.parse(commandsNew) ? JSON.parse(commandsNew) :''; if (newSsList&&commandsNew) { / / Change the placeholder flag to false before placing the placeholder. store.setCommandsSeatSuccess(activeTag.value, false); / / Parse the string, SS CA1351 Y 11MAY PEKCAN NN1 newSsList.forEach((ssStr: string) =>{ / / The separator may be a space or a / const inputList = ssStr.slice(3)?.split( / [\s / ]+ / ).filter(str =>str); / / Black screen flight segment information const seg = makeSsSegment(inputList); store.setFlight(activeTag.value, (makeSsListToFlight(seg asISegment))); }); } }); In this embodiment, the acquired initial instruction is verified based on a preset instruction set to obtain a confirmed input instruction. When the format of the instruction is found to be correct, an instruction set is constructed based on the instruction, and a display page is determined. When a target instruction corresponding to an instruction control component exists in the constructed instruction set, a display page is determined based on the target instruction. Through this embodiment, the instruction interaction of the electronic terminal interface can quickly access the graphical user interface, realizing the function of quickly generating a page to be operated by recognizing the input instruction. It retains both the characteristics of fast instruction input and response of the electronic terminal interface and the intuitiveness and interactivity of the graphical user interface, greatly improving the user's operational efficiency and experience. It solves the technical problem in related technologies where the design principles of the graphical user interface and the instruction interaction style of the electronic terminal interface are mismatched, making it impossible for the instructions of the electronic terminal interface to be used on the front end of the graphical user interface, resulting in a poor user experience.

[0054] Secondly, embodiments of the present invention also provide an apparatus for determining the display page by recognizing instructions.

[0055] In one embodiment, reference is made to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of the device for determining the display page by recognizing instructions according to the present invention. Figure 4 As shown, the device for determining the display page by recognizing instructions includes: The verification module 10 is configured to verify the acquired initial instruction based on a preset instruction set to obtain a confirmed input instruction. The instruction set construction module 20 is configured to construct an instruction set based on the instruction and determine the display page when the format of the instruction is detected to be correct. The page display module 30 is configured to determine the display page based on the target instruction when there is a target instruction corresponding to the instruction control component in the constructed instruction set.

[0056] Optionally, in one embodiment, the verification module 10 is configured to: Based on the first preset character in the acquired initial instruction, determine the initial instruction for each line; For each line of initial instructions, a second preset character is used to divide it to obtain each line of initial instructions after division. The content before the second preset character of each line of initial instructions after division is the instruction type, and the content after the second preset character is the instruction parameters. Each line of initial instructions after segmentation is checked to see if it matches the preset instruction set. Each initial instruction after the segmentation is matched is denoted as the instruction to confirm input; For each mismatched initial instruction after segmentation, correction or completion is performed based on instructions in a preset instruction set. The corrected or completed initial instruction after segmentation is recorded as the confirmation input instruction.

[0057] Optionally, in one embodiment, the apparatus for determining the displayed page by recognizing the instruction further includes a detection module, used for: Check whether there are multiple instruction types on the same line in the input instructions; If it exists, the second preset character is used to split the line of instructions so that each line of instructions has only one type of instruction. If it does not exist, then the format of the instruction is correct.

[0058] Optionally, in one embodiment, the instruction set construction module 20 is configured to: Step S201: For any line of instructions that has not been verified, match the corresponding verification rule in the preset rule table based on the instruction parameters corresponding to the instruction type of that line of instructions. Step S202: Based on the verification rules, verify the line of instructions to obtain the verification result; Step S203: If the verification result is a failure, an error alarm is generated and the process returns to step S201. Step S204: If the verification result is successful, then after clearing the instruction mapping relationship in the global state management module, write the successfully verified instruction type and its corresponding instruction parameters into the global state management module. Step S205: Return to step S201 and continue until each line of instructions in the instruction has been verified to obtain the constructed instruction set.

[0059] Optionally, in one embodiment, the instruction set construction module 20 is further configured to: The route of the current page is compared with the route of the page corresponding to the instruction to obtain the comparison result; If the comparison results are the same, then the current page is determined to be the display page; If the comparison results are different, the current page is redirected to the page corresponding to the instruction, and the page corresponding to the instruction is determined to be the display page.

[0060] Optionally, in one embodiment, the page display module 30 is configured to: The API interface to be called is determined based on the instruction parameters corresponding to the target instruction; Data is obtained through the API interface to be called, and the page is rendered based on the obtained data and the instruction parameters corresponding to the target instruction to obtain the display page.

[0061] The functions of each module in the device for determining the display page by recognizing instructions correspond to the steps in the method embodiment for determining the display page by recognizing instructions. Their functions and implementation processes will not be described in detail here.

[0062] Thirdly, embodiments of the present invention also provide an electronic device, the structure of which is as follows: Figure 5 As shown, it includes: a memory and a processor, wherein the processor is used to read and execute a computer program stored in the memory to implement the aforementioned method of determining the display page by recognizing instructions.

[0063] Fourthly, embodiments of the present invention also provide a computer storage medium storing computer-executable instructions, which, when executed, implement the aforementioned method for determining a display page by recognizing instructions.

[0064] Finally, it should be noted that while some processes described in the embodiments of the present invention include multiple operations or steps that appear in a specific order, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of the present invention, or may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.

[0065] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for determining the display page by recognizing instructions, characterized in that, The method includes: The initial command obtained is verified based on the preset command set to obtain the command that is confirmed to be entered. When the format of the instruction is detected to be correct, an instruction set is constructed based on the instruction and the display page is determined. When a target instruction corresponding to an instruction control component exists in the constructed instruction set, the display page is determined based on the target instruction.

2. The method for determining the display page by recognizing instructions according to claim 1, characterized in that, The step of verifying the acquired initial instruction based on a preset instruction set to obtain a confirmed input instruction includes: Based on the first preset character in the acquired initial instruction, determine the initial instruction for each line; For each line of initial instructions, a second preset character is used to divide it to obtain each line of initial instructions after division. The content before the second preset character of each line of initial instructions after division is the instruction type, and the content after the second preset character is the instruction parameters. Each line of initial instructions after segmentation is checked to see if it matches the preset instruction set. Each initial instruction after the segmentation is matched is denoted as the instruction to confirm input; For each mismatched initial instruction after segmentation, correction or completion is performed based on instructions in a preset instruction set. The corrected or completed initial instruction after segmentation is recorded as the confirmation input instruction.

3. The method for determining the display page by recognizing instructions according to claim 2, characterized in that, After verifying the acquired initial instruction based on the preset instruction set and obtaining a confirmed input instruction, the process includes: Check whether there are multiple instruction types on the same line in the input instructions; If it exists, the second preset character is used to split the line of instructions so that each line of instructions has only one type of instruction. If it does not exist, then the format of the instruction is correct.

4. The method for determining the display page by recognizing instructions according to claim 1, characterized in that, Constructing an instruction set based on the aforementioned instructions includes: Step S201: For any line of instructions that has not been verified, match the corresponding verification rule in the preset rule table based on the instruction parameters corresponding to the instruction type of that line of instructions. Step S202: Based on the verification rules, verify the line of instructions to obtain the verification result; Step S203: If the verification result is a failure, an error alarm is generated and the process returns to step S201. Step S204: If the verification result is successful, then after clearing the instruction mapping relationship in the global state management module, write the successfully verified instruction type and its corresponding instruction parameters into the global state management module. Step S205: Return to step S201 and continue until each line of instructions in the instruction has been verified to obtain the constructed instruction set.

5. The method for determining the display page by recognizing instructions according to claim 1, characterized in that, Determining the display page based on the instructions includes: The route of the current page is compared with the route of the page corresponding to the instruction to obtain the comparison result; If the comparison results are the same, then the current page is determined to be the display page; If the comparison results are different, the current page is redirected to the page corresponding to the instruction, and the page corresponding to the instruction is determined to be the display page.

6. The method for determining the display page by recognizing instructions according to claim 1, characterized in that, Determining the display page based on the target instruction includes: The API interface to be called is determined based on the instruction parameters corresponding to the target instruction; Data is obtained through the API interface to be called, and the page is rendered based on the obtained data and the instruction parameters corresponding to the target instruction to obtain the display page.

7. A device for determining the display page by recognizing instructions, characterized in that, The device includes: The verification module is configured to verify the acquired initial command based on a preset command set to obtain a confirmed input command. An instruction set construction module is configured to construct an instruction set based on the instruction and determine the display page when the format of the instruction is detected to be correct. The page display module is configured to determine the display page based on the target instruction when there is a target instruction corresponding to the instruction control component in the constructed instruction set.

8. The apparatus for determining the display page by recognizing instructions according to claim 7, characterized in that, The verification module is configured to: Based on the first preset character in the acquired initial instruction, determine the initial instruction for each line; For each line of initial instructions, a second preset character is used to divide it to obtain each line of initial instructions after division. The content before the second preset character of each line of initial instructions after division is the instruction type, and the content after the second preset character is the instruction parameters. Each line of initial instructions after segmentation is checked to see if it matches the preset instruction set. Each initial instruction after the segmentation is matched is denoted as the instruction to confirm input; For each mismatched initial instruction after segmentation, correction or completion is performed based on instructions in a preset instruction set. The corrected or completed initial instruction after segmentation is recorded as the confirmation input instruction.

9. An electronic device, characterized in that, include: Memory and processor; The processor is configured to read and execute the computer program stored in the memory to implement the steps of the method for determining the display page by recognizing instructions as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed, implement the steps of the method for determining a display page by recognizing instructions as described in any one of claims 1-6.