CN112149393B - Data processing method, data processing equipment and computer readable storage medium - Google Patents

Data processing method, data processing equipment and computer readable storage medium Download PDF

Info

Publication number
CN112149393B
CN112149393B CN202011008967.6A CN202011008967A CN112149393B CN 112149393 B CN112149393 B CN 112149393B CN 202011008967 A CN202011008967 A CN 202011008967A CN 112149393 B CN112149393 B CN 112149393B
Authority
CN
China
Prior art keywords
text
condition
topic
result
logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011008967.6A
Other languages
Chinese (zh)
Other versions
CN112149393A (en
Inventor
廖静欣
杨名远
刘泽森
周仪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011008967.6A priority Critical patent/CN112149393B/en
Publication of CN112149393A publication Critical patent/CN112149393A/en
Application granted granted Critical
Publication of CN112149393B publication Critical patent/CN112149393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data processing method, data processing equipment and a computer readable storage medium, wherein the method comprises the following steps: responding to the trigger operation aiming at the setting result control in the logic combination page, and outputting a setting result text sub-page independently displayed on the logic combination page; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, determining at least one selected topic text as a result text; responding to the trigger operation aiming at the setting condition control, and outputting a setting condition text sub-page independently displayed on the logic combination page; responding to the selection operation aiming at the set condition text list, and generating a condition text according to the selected at least one title text; responding to the trigger operation aiming at the logic combination control, and creating a conditional logic combination relation; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation. By adopting the method and the device, the efficiency of the questioner in setting the questionnaire logic can be improved.

Description

Data processing method, data processing equipment and computer readable storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data processing method, device, and computer readable storage medium.
Background
With the gradual deepening of various researches in the market and the gradual refinement of the research method, the functional requirements of users on the research platform are gradually improved.
The problem maker needs to set a display rule of a question in a questionnaire system before putting a questionnaire and collecting research data, if the questionnaire system on the existing market is used, the problem maker needs to edit a logic script aiming at the rule when setting one display rule so that the questionnaire system generates the display rule according to the logic script, obviously, the threshold of the existing method for the problem maker is high, the problem maker needs to be programmed, and secondly, the manual writing of the logic script needs a long time, so that the efficiency is low when the questionnaire logic is set.
Disclosure of Invention
Embodiments of the present application provide a data processing method, device, and computer-readable storage medium, which can improve efficiency of a subject when setting a questionnaire logic.
An embodiment of the present application provides a data processing method, including:
responding to the trigger operation aiming at the setting result control in the logic combination page, and outputting a setting result text sub-page independently displayed on the logic combination page; setting a result text sub-page to comprise at least two subject texts in the original text;
if the selection operation aiming at least two subject texts in the set result text sub-page is responded, determining at least one selected subject text as a result text;
responding to the trigger operation aiming at the condition setting control in the logic combination page, and outputting a condition setting text sub-page independently displayed on the logic combination page; the set condition text sub page comprises a set condition text list aiming at the result text; setting the subject texts in the condition text list to belong to at least two subject texts;
responding to the selection operation aiming at the set condition text list, and generating a condition text according to at least one topic text selected in the set condition text list; the logical composition page includes a logical composition control for the conditional text;
responding to the trigger operation aiming at the logic combination control, and creating a first conditional logic combination relation for the conditional text; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation.
An embodiment of the present application provides a data processing apparatus, including:
the first display module is used for responding to the triggering operation aiming at the setting result control in the logic combination page and outputting a setting result text sub-page which is independently displayed on the logic combination page; setting a result text sub-page to comprise at least two subject texts in the original text;
the first determining module is used for determining at least one selected topic text as a result text if the selection operation aiming at least two topic texts in the set result text sub-page is responded;
the second display module is used for responding to the triggering operation aiming at the condition setting control in the logic combination page and outputting a condition setting text subpage which is independently displayed on the logic combination page; the set condition text sub-page includes a set condition text list for the result text; setting the topic texts in the condition text list to belong to at least two topic texts;
the first generation module is used for responding to the selection operation aiming at the set condition text list and generating a condition text according to at least one topic text selected in the set condition text list; the logical composition page includes a logical composition control for the conditional text;
the relation creating module is used for responding to the triggering operation aiming at the logic combination control and creating a first conditional logic combination relation for the conditional text; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation.
The logic combination control comprises a logic self-defining control, a logic or relation control and a logic and relation control; the first conditional logic combination relation comprises a conditional logic self-defining relation, a conditional logic OR relation and a conditional logic AND relation;
a create relationship module comprising:
the first creating unit is used for activating a logic custom area in the logic combination page if the triggering operation aiming at the logic custom control is responded;
the first creating unit is also used for responding to the logic input operation aiming at the logic self-defining area and creating a condition logic self-defining relation for the condition text;
the second creating unit is used for creating conditional logic or relation for the conditional text if the triggering operation aiming at the logic or relation control is responded;
and the third creating unit is used for creating the conditional logic and relation for the conditional text if the triggering operation aiming at the logic and relation control is responded.
Wherein, the first creating unit includes:
the first display subunit is used for responding to the logic input operation aiming at the logic self-defining area and displaying the self-defining logic text in the logic self-defining area;
the first determining subunit is used for determining the legality of the user-defined logic text according to the regular expression and the text quantity corresponding to the conditional text;
the second display subunit is used for displaying the logic text illegal prompt information aiming at the self-defined logic text in the logic combination page if the self-defined logic text belongs to the illegal text;
and the creating relation subunit is used for creating a conditional logic custom relation for the conditional text according to the custom logic text if the custom logic text belongs to a legal text.
Wherein, the first determining module comprises:
the first determining unit is used for determining at least one selected topic text as a result text to be confirmed if the selection operation aiming at least two topic texts in the setting result text sub-page is responded;
the second determining unit is used for acquiring the question text identification corresponding to the text of the result to be confirmed and determining the question text identification corresponding to the text of the result to be confirmed as the question identification to be confirmed;
the comparison identification unit is used for comparing the title identification to be confirmed with the confirmed title identification; the confirmed question mark is used for representing a question text mark corresponding to the confirmed result text; the confirmed result text is the question text which is associated with the second condition logic combination relation;
and the third determining unit is used for determining the result text to be confirmed as the result text according to the comparison result.
The setting result text sub-page comprises a first confirmation control;
a third validation unit comprising:
the second determining subunit is used for determining the text to be confirmed as a result text if the question mark to be confirmed is different from the confirmed question mark;
the second determining subunit is further configured to determine, if a question identifier that is the same as the question identifier to be determined exists in the determined question identifiers, the question identifier to be determined that is the same as the determined question identifier as a repeated question identifier;
the repeated deleting subunit is used for deleting the question text corresponding to the repeated question mark from the result text to be confirmed to obtain a result text;
and the adding result sub-unit is used for responding to the triggering operation aiming at the first confirmation control, canceling the display setting result text sub-page and adding the result text to the result text area in the logic combination page.
Wherein, the second display module includes:
the first acquisition unit is used for responding to the trigger operation aiming at the condition control arranged in the logic combination page and acquiring the question identification corresponding to the result text;
a fourth determining unit, configured to determine a topic text to be set with a condition from the at least two topic texts according to the topic identifier corresponding to the result text;
the first generating unit is used for generating a set condition text subpage according to the question text to be set with the condition; setting a question text in the condition text list as a condition question text to be set;
and the first display unit is used for outputting the setting condition text subpage which is independently displayed on the logic combination page.
Wherein the fourth determination unit includes:
the first obtaining subunit is used for obtaining a topic serial number corresponding to the topic identifier of each topic text in at least two topic texts;
the second obtaining subunit is configured to determine a question identifier corresponding to the result text as a result question identifier, and obtain a result question sequence number corresponding to the result question identifier;
and the third determining subunit is used for determining the minimum result topic serial number from the result topic serial numbers, filtering the topic texts of which the topic serial numbers are equal to or greater than the minimum result topic serial number in at least two topic texts, and determining the filtered topic texts as the topic texts to be set with the conditions.
Wherein the set condition text list comprises a title text T i Question text T i Corresponding confirmation control K i Question text T i+1 And topic text T i+1 Corresponding confirmation control K i+1 I is a positive integer and is less than the total number of the title texts in the set condition text list;
a first generation module comprising:
a first adding unit for responding to the title text T i Corresponding confirmation control K i Trigger operation of (2) to display the title text T i Adding the data to a condition set to be confirmed;
a second adding unit for responding to the title text T i+1 Corresponding confirmation control K i+1 Trigger operation of (2) to subject the text T i+1 Adding the condition to be confirmed into a condition set to be confirmed; the setting condition text list comprises a second confirmation control;
and the second generating unit is used for responding to the triggering operation aiming at the second confirmation control, generating a condition text according to the condition set to be confirmed, canceling the display of the condition text subpage, and adding the condition text to a condition text area in the logic combination page.
The set condition text list comprises a title text list and a condition selection list; the topic text list includes a topic text M i I is a positive integer, and i is less than or equal to the total number of the topic texts in the topic text list;
a first generation module comprising:
a second obtaining unit for responding to the topic text M in the topic text list i To obtain a topic text M i The type of the subject to which it belongs; the topic texts in the topic text list belong to at least two topic texts;
a third obtaining unit for if the title text M i If the belonging topic type is a first topic type, acquiring a first type control, and generating a condition selection list according to the first type control;
a second display unit for displaying the condition selection list, responding to the trigger operation of the first type control in the condition selection list, and according to the title text M i And the triggered first type control generates conditional text.
Wherein, the first generation module further comprises:
a third obtaining unit, further configured to obtain the title text M i If the topic type is a second topic type, acquiring a first type control and a second type control;
the third generating unit is used for generating a condition selection list according to the first type control and the second type control;
and the fourth generating unit is used for displaying the condition selection list, responding to the triggering operation aiming at the condition selection list and generating the condition text according to the control triggered in the condition selection list.
The setting condition text list also comprises an option text list;
a fourth generation unit comprising:
a first generating subunit, configured to, if a trigger operation for a first type control in the condition selection list is responded, generate a text M according to the title i The triggered first type control generates a condition text;
a third display subunit, configured to display the title text M if a trigger operation for a second type control in the condition selection list is responded i The option text list of (1); the option text list comprises at least two option texts;
a fourth determining subunit, configured to determine, in response to a selection operation for at least two option texts in the option text list, the selected at least one option text as a target option text;
a second generation subunit, configured to generate a text M according to the title i And the triggered second type control and the target option text generate a condition text.
The logic combination page comprises a storage control, and the original text comprises option texts respectively corresponding to at least two question texts;
a data processing apparatus, further comprising:
the acquisition identification module is used for responding to the trigger operation aiming at the storage control, and acquiring a result topic identification corresponding to the result text, a condition topic identification corresponding to the topic text in the condition text and an option identification corresponding to the option text; the option text refers to a text corresponding to a title text in the condition text;
a second generating module, configured to generate an answer logic file according to the first conditional logic combination relationship, the result question identifier corresponding to the result text, the conditional question identifier corresponding to the question text in the conditional text, and the option identifier corresponding to the option text; and the answer logic file is used for indicating the answer terminal to display a result text indicated by the result question mark when the selected condition question mark and the option mark meet the first condition logic combination relation.
The setting result text sub-page comprises a normal ending control and an abnormal ending control;
a data processing apparatus, further comprising:
the second determining module is used for determining the normal ending text as the result text if the triggering operation aiming at the ending normal control in the setting result text sub-page is responded;
and the second determining module is further used for determining the abnormal ending text as the result text if the triggering operation aiming at the ending abnormal control in the setting result text sub-page is responded.
One aspect of the present application provides a computer device, comprising: a processor, a memory, a network interface;
the processor is connected to the memory and the network interface, wherein the network interface is used for providing a data communication function, the memory is used for storing a computer program, and the processor is used for calling the computer program to execute the method in the embodiment of the present application.
In one aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, perform a method in embodiments of the present application.
An aspect of an embodiment of the present application provides a computer program product or a computer program, where the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method in the embodiment of the present application.
In the embodiment of the application, by responding to the trigger operation aiming at the result setting control in the logic combination page, a result setting text sub-page can be independently displayed on the logic combination page, and the result setting text sub-page can display all topic texts in the system, namely at least two topic texts in the original text; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, one or more selected topic texts can be determined as result texts; after determining the result text, further setting a conditional text for the result text, where the specific process may be: responding to the trigger operation aiming at the condition control set in the logic combination page, and independently displaying a condition setting text sub-page in the logic combination page, wherein the condition setting text sub-page comprises a condition setting text list aiming at a result text, and similarly, the topic texts in the condition setting text list belong to the at least two topic texts; responding to the selection operation aiming at the setting condition text list, and generating a condition text according to one or more selected topic texts in the setting condition text list; after the condition text aiming at the result text is determined, responding to the triggering operation aiming at the logic combination control in the logic combination page, and establishing a first condition logic combination relation for the condition text; subsequently, the result text is triggered to be displayed when the condition text meets the first condition logic combination relation. According to the method, after the text logic is newly built by the question maker, the result texts can be set in the result text setting sub-page in an efficient selection mode, and the condition texts can be set in the condition text setting sub-page in an efficient selection mode, so that the efficiency of designing the question logic is improved, and the efficiency of research is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a system architecture diagram according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 4a is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 4b is a schematic diagram of a data processing scenario provided in an embodiment of the present application;
fig. 5a is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 5b is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 5c is a schematic diagram of a data processing scenario provided in an embodiment of the present application;
fig. 5d is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 7a is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 7b is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 8 is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 9a is a schematic view of a data processing scenario provided in an embodiment of the present application;
fig. 9b is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 9c is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For ease of understanding and description, some key terms are first defined.
1. Logic conditions are as follows: and controlling the condition that the title is displayed and hidden, and selecting option1 in question 1.
2. The display logic: and setting logic conditions at a management end of the questionnaire system, and displaying a corresponding result question when the answer of an answer end meets the logic conditions. In the answering process of the answering user, the question can be hidden or displayed according to the answering condition and the display logic of the answering user. For example, the display logic set by the management end is "question 1 selects option1, and question 2 is displayed", and if the answer user selects option 2 when answering question 1, then question 2 is hidden, that is, question 2 is not displayed by the answer end.
3. Rule relationship: such as and, means "all conditions are satisfied", or (or), means "any condition is satisfied", and when there are a plurality of logical conditions, these logical conditions create a logical combination relationship by a logical rule.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present disclosure. As shown in fig. 1, the system may include a server 10a and a user terminal cluster, and the user terminal cluster may include: a user terminal 10b, a user terminal 10c, a user terminal 10d, wherein there may be a communication connection between the user terminal clusters, for example, there may be a communication connection between the user terminal 10b and the user terminal 10c, and a communication connection between the user terminal 10b and the user terminal 10 d. Meanwhile, any user terminal in the user terminal cluster may have a communication connection with the server 10a, for example, a communication connection exists between the user terminal 10b and the server 10a, and a communication connection exists between the user terminal 10c and the server 10a, where the communication connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, may also be directly or indirectly connected through a wireless communication manner, and may also be through other manners, which is not limited herein.
The server 10a provides service for the user terminal cluster through the communication connection function, the server 10a is a background server of the research platform, and the user terminal 10b, the user terminal 10c, \ 8230and the user terminal 10d can access the research platform through the communication connection function. In the embodiment of the present application, the user terminal 10b is used as a question end, i.e., a terminal for making a question and answering a question, and the user terminal 10c is used as an answering end, i.e., a terminal for answering an answer. When the user terminal 10b acquires at least two question texts and needs to process the at least two question texts, for example, a questionnaire answer is generated according to the at least two question texts, and an answer logic relationship is set for the questionnaire answer, the user terminal 10b may first send the at least two question texts and option texts corresponding to the at least two question texts to the server 10a. When the server 10a receives the at least two topic texts and the at least two option texts sent by the user terminal 10b, a questionnaire is generated according to the at least two topic texts and the at least two option texts, and the server 10a can store the questionnaire in a questionnaire database.
Then, the user terminal 10b may send a result text generated according to the at least two topic texts, a condition text generated according to the at least two topic texts and the at least two option texts, and a condition logic combination relationship for the condition text to the server 10a, when the server 10a receives the result text, the condition text, and the condition logic combination relationship sent by the user terminal 10b, the server first checks the validity of the condition logic combination relationship, and if the condition logic combination relationship is valid, an answer logic file for a questionnaire may be generated according to the result text, the condition text, and the condition logic combination relationship. Meanwhile, the server 10a may store the answer logic file in association with the questionnaire.
Subsequently, when the server 10a receives the response to the questionnaire sent by the user terminal 10c, the server may push a question text suitable for the answerer to the user terminal 10c according to the response and the answer logic file, so as to display different questions in the questionnaire according to different answer situations of the answerer.
Alternatively, the user terminal 10b may generate an answer logic file for the questionnaire according to the result text, the condition text, and the condition logic combination relationship, and then send the answer logic file to the server 10a for storage.
It is understood that the questionnaire database may be a local database of the server 10a, or may be a separate data server, which is not limited herein. The questionnaire database may be regarded as an electronic file cabinet, which is a place for storing electronic files, in an embodiment of the present application, the electronic files may refer to at least two topic texts, at least two option texts, a result text, a condition logic combination relationship, and an answer logic file, and may also refer to topic identifications corresponding to at least two topic texts, option identifications corresponding to at least two option texts, a condition logic combination relationship, and an answer logic file, which are not limited herein and may vary according to actual application scenarios. The server 10a may perform operations such as adding, querying, updating, and deleting on the electronic file. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application.
It is understood that the method provided by the embodiment of the present application can be executed by a computer device, which includes but is not limited to a terminal (also includes the above-mentioned user terminal) or a server (also includes the above-mentioned server 10 a). The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platforms. The terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like, but is not limited thereto. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The server 10a, the user terminal 10b, the user terminal 10c, and the user terminal 10d in fig. 1 may include a mobile phone, a tablet computer, a notebook computer, and a palm computer.
Further, please refer to fig. 2, and fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application. As shown in fig. 2, the data processing method may be executed by the computer device shown in fig. 1, and the process of the data processing method includes the steps of:
step S101, responding to the trigger operation aiming at the setting result control in the logic combination page, and outputting a setting result text sub-page independently displayed on the logic combination page; the set result text sub-page includes at least two title texts in the original text.
Specifically, when the questionnaire creator wants to construct an electronic questionnaire, the questionnaire system of the platform can be viewed by accessing the research platform through a computer device (for convenience of description and understanding, the following is described with the user terminal 10b in fig. 1), and the questionnaire creator first accesses an edit page for the questionnaire in the questionnaire system to add the subject text and the option text of the questionnaire. Referring to fig. 3, fig. 3 is a schematic view of a data processing scenario according to an embodiment of the present disclosure. As shown in fig. 3, a questionnaire creator may edit the question and the option of a questionnaire in a questionnaire system, create a logical combination of the edited question and the option of the questionnaire, set the questionnaire, deliver the set questionnaire, count the response data of the questionnaire, and the like.
In the embodiment of the present application, the title 5 is taken as an example to describe a process of creating a title text and an option text, and a process of creating other title texts and corresponding option texts in at least two title texts can be referred to the following description, which is not repeated in this application. As shown in edit page 30a, the questionnaire creator can name the newly created questionnaire by clicking on name area 300a, such as "questionnaire survey"; by clicking on the title area 300b, a title text corresponding to title 5 can be input in the title area 300b, such as "ask your sex is? "; the questionnaire creator sets option texts such as "male" and "female" for the newly created topic text by clicking on option area 300c and option area 300 d. Notably, the editing page 30a supports the addition of a single option as well as a batch modification option. After the questionnaire creator inputs the topic text and the option text of topic 5, the editing page 30a may display the topic setting for topic 5, where the topic setting may include two parts, one of which is an entire topic setting, such as whether topic 5 is a required answer and the question type of topic 5, as shown in fig. 3, in the embodiment of the present application, topic 5 is set as a required answer, and the question type of topic 5 is set as a single choice question. The second is option setting, as shown in fig. 3, in the option setting, the option text of the title 5 can be set, such as "option randomly ordered", "option randomly positive and negative order", and "option group display".
It is understood that the present application describes the above process by taking the topic 5 as an example in page 2, and in practical applications, page 2 may include multiple topics (which may correspond to the topic text). When the questionnaire creator completes editing the topic 5 on page 2 in the editing page 30a, the add control 300e can be clicked to add page 3, thereby editing more topic text and its corresponding option text.
In the embodiment of the present application, a questionnaire creator is exemplified to edit topic texts and option texts in a questionnaire system one by one in an online manner, optionally, the questionnaire creator may also edit an original text (including at least two topic texts and option texts corresponding to the at least two topic texts, respectively) online, and then import the original text into the questionnaire system, and meanwhile, the embodiment of the present application further supports the questionnaire creator to import a part of topic texts and corresponding option texts thereof into the questionnaire system, and then input the topic texts and corresponding option texts thereof in an online manner, where editing manners of the topic texts and corresponding option texts thereof are not limited, and may be changed according to an actual application scenario.
When the questionnaire creator adds 1 topic text or 1 option text in the editing page 30a of fig. 3 each time, the questionnaire system accessed by the user terminal 10b will automatically generate 1 topic identifier for the topic text, and similarly, will also automatically generate 1 option identifier for the option text, and the topic identifier and the option identifier are unique in one questionnaire. The generation idea of the title identification and the option identification is as follows: acquiring a first topic text (namely topic 1), wherein the sequence of the topic 1 in the original text is 1, and a questionnaire system converts a decimal number 1 into a specified standard-digit system number, and the specified system number of the questionnaire system is assumed to be 36 and the standard digit is 4. Where 36 may be represented by 1-9, lower case letters a-z, e.g., the decimal number 10 may be represented by a, the decimal number 36 may be represented by z, and the remaining lower case letters each represent a number in 36 in order of small to large. Obviously, the decimal number 1 is less than four digits after being converted to a 36-ary number, and at this time, the prefix may be randomly complemented with capital letters a-Z, for example, 1 is converted to AYB1, where "AYB" is randomly generated.
If the title 1 has options, for example, the title 1 has option a and option B, the order of the option a in the original text is 2, and a specific process of converting the decimal number 2 into the standard binary number can be referred to a specific process of converting the decimal number 1 into the standard binary number, which is not described herein again. If the above topic 1 has no option, the sequence of the topic 2 in the original text is 2, and the subsequent process is consistent with the above process, so it is not described again. It can be seen that the questionnaire system converts the increasing numbers into 1-9,a-Z alphanumeric combinations through 36-system, and if the number is less than four after the 36-system number conversion, the prefix is complemented with capital letters a-Z, and the number system conversion is mainly to simplify the length of the mark (including the title mark and the option mark) and improve the readability of the mark.
After the original text is added, the questionnaire system stores all the topic identifications into an array independently, when the topic texts are modified, the index sequence of the array is also modified, and the sequence of the topic identifications (which can be converted into the sequence numbers of the topic texts, such as topic 1and topic 20) is mapped by using the sequence of the array. The data of the topic can be stored in a data table, where a key (key) of the data table is a topic identifier, a value (value) is data of the topic, and includes detailed configuration information such as the topic text, an option text corresponding to the topic text, and a description, and then the data table is stored in a lightweight data exchange format, such as Object Notation (JSON), please refer to table 1, where table 1 is a pseudo code for implementing the data exchange format provided in this embodiment of the present application.
TABLE 1
Figure GDA0004074582310000131
After determining the topic text and the conditional text, the questionnaire creator can set explicit and implicit rules for all topics in the logical combination page. Referring back to fig. 3, when the questionnaire creator can click the logic control 300f in the editing page 30a after the editing page 30a completes the addition of the at least two title texts and the at least two option texts, the user terminal 10b displays the logic combination page 30b. This step is described by taking the first creation of display logic (i.e., the combinational logic rule) as an example, and since there is no created display logic in the questionnaire system, the logical combination page 30b displays "0 pieces of display logic in total". When the questionnaire creator clicks the newly added logical control 300g in the logical combination page 30b, the user terminal 10b responds to the trigger operation for the newly added logical control 300g to display the logical combination page 30c, as shown in fig. 3, at this time, the logical combination page 30c may display "1 display logic in total", that is, the questionnaire system will newly create 1 rule.
In this embodiment of the present application, a newly created combinational logic rule (e.g., rule 1 in the logically combined page 30 c) needs to set a result text first, and if a questionnaire creator clicks the setting condition control 300h in the logically combined page 30c, please refer to fig. 4a together, where fig. 4a is a scene diagram of data processing provided in this embodiment of the present application. As shown in fig. 4a, the user terminal 10b displays the logical combination page 40a, and obviously, the logical combination page 40a displays an operation error prompt message, such as "please set the display result first" to prompt the questionnaire creator to operate normally. When the questionnaire creator clicks the setting result control in logical combination page 40a (i.e., setting display title control 400a in logical combination page 40 a), user terminal 10b outputs a setting result text sub-page 40b displayed independently on logical combination page 40a, as shown in fig. 4 a.
Step S102, if the selection operation aiming at least two subject texts in the set result text sub-page is responded, determining at least one selected subject text as a result text.
Specifically, if a selection operation for at least two topic texts in a set result text sub-page is responded, determining at least one selected topic text as a result text to be confirmed; acquiring a question text identifier corresponding to a text to be confirmed, and determining the question text identifier corresponding to the text to be confirmed as the question identifier to be confirmed; comparing the title mark to be confirmed with the confirmed title mark; the confirmed question mark is used for representing a question text mark corresponding to the confirmed result text; the confirmed result text is the question text associated with the second conditional logic combination relationship; setting a result text sub-page to comprise a first confirmation control; if the question mark to be confirmed is different from the confirmed question mark, determining the result text to be confirmed as a result text; if the confirmed question mark has a question mark which is the same as the question mark to be confirmed, determining the question mark to be confirmed which is the same as the confirmed question mark as a repeated question mark; deleting the question text corresponding to the repeated question identification from the result text to be confirmed to obtain a result text; and responding to the triggering operation aiming at the first confirmation control, canceling the display of the result text sub-page, and adding the result text to a result text area in the logical combination page.
Optionally, the setting result text sub-page includes a normal ending control and an abnormal ending control; if the trigger operation aiming at the ending normal control in the set result text sub-page is responded, determining the normal ending text as a result text; and if the trigger operation aiming at the abnormal ending control in the set result text sub-page is responded, determining the abnormal ending text as the result text.
In the newly created combinational logic rule, a display result needs to be set first, and according to step S101, please refer to fig. 4a again, as shown in fig. 4a, the setting display result included in the setting result text sub-page 40b is divided into 3 cases, which are respectively a title text, an end page (normal end), and an end page (abnormal end, not recycling data), where the end page (normal end) may correspond to the above-mentioned end normal control, and the end page (abnormal end, not recycling data) may correspond to the above-mentioned end abnormal control. Different display results are set, so that different result texts can be obtained, and the method specifically comprises the following steps:
(1) And setting an end page as a display result.
And after the end page is set as a display result, when the answer returned by the answer terminal meets the specified condition and the answer user clicks the next page control of the current page, the answer terminal can directly display the end page.
Special description:
a. the end page (normal end) and the end page (abnormal end, no data recovery) can be set to display the result only once, if a plurality of conditions are needed to control the end page, the conditions are limited by the rules of or and the like.
b. When the end page (abnormal end, no data recovery) is in accordance with the specified conditions, the answerer clicks the next page of control of the current page and jumps to the end page, and the answer data is not recovered.
Note that after rule 1 sets the end page (normal end) as the display result, rule 2 can no longer set the end page (normal end) as the display result. Similarly, the end page (abnormal end, not recycling data) also does so.
(2) Setting title as display result
And after setting the question text as a display result, when the replied answer accords with the specified condition, the answering terminal displays the question specified by the condition. In the embodiment of the application, batch setting is realized by checking, and one or more topics can be designated as a result text.
Special description:
a. each title text is allowed to be set as a display result (result text) only 1 time, and it is assumed that after rule 1 sets title 2 as a display result, rule 2 can no longer set title 2 as a display result.
Referring back to fig. 4a, the questionnaire creator clicks an end page (normal end) in the set result text sub-page 40b, and the user terminal 10b determines the end page (normal end) (i.e., normal end text) as a result text. Subsequently, when the questionnaire creator clicks the first confirmation control (i.e., the determination control 400 b) in the setting result text sub-page 40b, the user terminal 10b cancels the display of the setting result text sub-page 40b, and adds the result text to the result text area 400c of the logical combination page 40c, as shown in fig. 4a, if the questionnaire creator clicks the setting result control (i.e., the setting display question 400 d) in the logical combination page 40c again, the user terminal 10b may display the setting result text sub-page 40b again, and at this time, the set result text may be modified.
Please refer to fig. 4b together, and fig. 4b is a schematic view of a data processing scenario provided in the embodiment of the present application. As shown in fig. 4b, rule 1 is already set, when the questionnaire creator clicks the newly added logic control 400e of the logic combination page 40d, the user terminal 10b will display the logic combination page 40e, at this time, rule 2 is newly created, similarly, the display result needs to be set for rule 2 first, the questionnaire creator firstly clicks the setting result control (i.e., setting display title control 400 f) in the logic combination page 40e, and the user terminal 10b will output the setting result text sub-page 40f which is independently displayed on the logic combination page 40 e. Obviously, the end page (normal end) in the setting result text sub page 40f is hidden, and at this time, the questionnaire creator cannot select the end page (normal end).
Step S103, responding to the trigger operation aiming at the condition setting control in the logic combination page, and outputting a condition setting text sub-page independently displayed on the logic combination page; the set condition text sub-page includes a set condition text list for the result text; the topic texts in the condition text list are set to belong to at least two topic texts.
Specifically, responding to a trigger operation aiming at a condition control set in a logic combination page, and acquiring a question mark corresponding to a result text; determining a question text to be set with conditions from at least two question texts according to the question identification corresponding to the result text; generating a set condition text sub-page according to the question text to be set with the condition; setting a question text in the condition text list as a condition question text to be set; and outputting the setting condition text sub-page independently displayed on the logic combination page.
Determining a topic text to be set with a condition from at least two topic texts according to the topic identification corresponding to the result text, wherein the method comprises the following steps: acquiring a topic serial number corresponding to the topic identification of each topic text in at least two topic texts; determining a question mark corresponding to the result text as a result question mark, and acquiring a result question serial number corresponding to the result question mark; and determining the minimum result topic serial number from the result topic serial numbers, filtering the topic texts of which the topic serial numbers are equal to or greater than the minimum result topic serial number from at least two topic texts, and determining the filtered topic texts as the topic texts to be set with the conditions.
Since the answering user answers the question starting from the question 1, the question highlighting determination must depend on the question answered by the answering user, and therefore the user terminal 10b needs to put restrictions on the setting of the conditional text. In the embodiment of the application, all result topic identifiers are recorded through the step S102, the serial number represented by each result topic identifier is calculated, the smallest topic serial number in the topic serial numbers represented by each result topic identifier is obtained through JSON data, and only all topic texts smaller than the smallest topic serial number are displayed in the list of the setting conditions.
Referring to fig. 5a, fig. 5a is a schematic view of a data processing scenario according to an embodiment of the present disclosure. As shown in fig. 5a, rule 1 in the logical combination page 50a includes two result texts, one corresponding to topic 5, such as "ask your sex is? ", the topic text can also carry the topic type of the topic, and as can be seen from fig. 5a, the topic type of the topic 5 is a single-choice topic; a text corresponding to topic 7, such as "ask what people you like? Similarly, the question type corresponding to the question 7, i.e. the multiple choice question, is carried.
When the questionnaire creator clicks the setting condition control 500a of the logical combination page 50a, the user terminal 10b obtains the topic identifiers corresponding to the result texts in the rule 1, and the identifiers are referred to as result topic identifiers, and then the topic serial numbers corresponding to the result texts can be obtained according to the result topic identifiers, for example, when adding the topic 5, the topic identifier generated for the user terminal by the questionnaire system is DSCk, and then according to the DSCk, the user terminal 10b can determine the topic serial number to be 5, and in the same way, the topic serial number of the topic 7, that is, 7, is obtained. Meanwhile, the user terminal 10b obtains a topic sequence number corresponding to the topic identifier of each of the at least two topic texts, determines a minimum result topic sequence number from the result topic sequence numbers, obviously, the minimum result topic sequence number of the rule 1 is 5, so that the user terminal 10b filters the topic texts with topic sequence numbers equal to or greater than 5 from the at least two topic texts, the filtered topic texts are respectively topic texts corresponding to the topic 1, the topic 2, the topic 3and the topic 4, and the topic texts corresponding to the topic 1, the topic 2, the topic 3and the topic 4 are determined as the topic texts to be set with conditions. As shown in the setting condition text sub-page 50b in fig. 5a, title texts corresponding to the titles 1, 2, 3, and 4 are displayed.
Step S104, responding to the selection operation aiming at the set condition text list, and generating a condition text according to at least one topic text selected in the set condition text list; the logical composition page includes a logical composition control for the conditional text.
Specifically, the set condition text list includes a title text T i Question text T i Corresponding confirmation control K i Question text T i+1 And topic text T i+1 Corresponding confirmation control K i+1 I is a positive integer and is less than the total number of the topic texts in the set condition text list; responding to topic text T i Corresponding confirmation control K i Trigger operation of (2) to display the title text T i Adding the condition to be confirmed into a condition set to be confirmed; responding to topic text T i+1 Corresponding confirmation control K i+1 Trigger operation of (2) to subject the text T i+1 Adding the data to a condition set to be confirmed; the setting condition text list comprises a second confirmation control; and responding to the triggering operation aiming at the second confirmation control, generating a condition text according to the condition set to be confirmed, canceling the display of a condition text subpage, and adding the condition text to a condition text area in the logic combination page.
The display conditions of the combinational logic rule (e.g., rule 1 shown in fig. 5 a) are set, and the display conditions include a topic (topic text), specific conditions (including selected/unselected/displayed/not displayed), and options (option texts), such as, for example, a topic 1 selected option a, a topic 1 selected option B, a topic 2 displayed, and a topic 3 unselected option C.
Special description:
1. the conditions for setting the single-choice question, the multiple-choice question, the pull-down question, the quantity table question and the matrix single-choice question comprise: whether the title is displayed, and a specified option is selected/unselected.
2. The conditions which can be set for the subjective questions, the information columns and the linkage questions comprise: whether the title is displayed.
Referring back to fig. 5a, when the questionnaire creator clicks the setting condition control 500a of the logical combination page 50a, the user terminal 10b can output the setting condition text sub-page 50b independently displayed on the logical combination page 50a, and obviously, the topic text in the setting condition text sub-page 50b includes only topics 1 to 4, so that only topics 1 to 4 can be selected when setting the condition text. In the embodiment of the present application, a questionnaire creator is supported to select multiple topic texts as conditional texts in a setting condition text sub-page 50b at the same time, as shown in fig. 5a, by checking, topic 1, topic 2, and topic 4 can be quickly selected as conditional texts, and rule 1 has 3 conditional texts. When the questionnaire creator determines the conditional text and can click on the second confirmation control 500b, the user terminal 10b cancels the display of the set conditional text sub-page 50b, and adds 3 conditional texts to the conditional text area 500d in the logical combination page 50 c. As shown in fig. 5a, the specific case of 3 conditions is: condition 1 is topic 1 display; condition 2 is topic 2 display; condition 3 is that topic 4 was not selected. Wherein, "display" characterizes the title text "is your year of birth? "and" do you play with a cell phone often? "the answer text is displayed on the answering terminal, and the answer of the answerer to the question text is not concerned.
Subsequently, when the questionnaire creator wants to modify the condition set by rule 1, the user terminal 10b may click the setting condition control 500c in the logical combination page 50c again, and output a setting condition text sub-page independently displayed on the logical combination page 50c, and the subsequent process is consistent with step S103 and this step, which is not described herein again.
In summary, the questionnaire creator may configure a plurality of conditional texts in a multi-selection manner, and finally generate a rule list, such as the conditional text list shown in the conditional text area 500d in fig. 5a, please refer to fig. 5b together, and fig. 5b is a schematic flow chart of the data processing method provided in the embodiment of the present application. As shown in fig. 5b, the process of the data processing method includes the following steps:
in step S1041, the setting of the condition is started.
Step S1042, selecting the title text.
In step S1043, a condition is selected.
And step S1044, selecting or displaying.
In step S1045, the option text is selected.
In step S1046, a new logic rule is added.
In step S1047, a rule list is generated.
Specifically, the specific processes of step S1041 to step S1047 may refer to step S104 in the embodiment corresponding to fig. 2and step S301 to step S306 in the embodiment corresponding to fig. 8 described below, and are not described again here. Each rule (i.e., conditional text) is represented by a custom Domain Specific Language (DSL) statement, such as that shown in the text area 500d in fig. 5a, and the questionnaire creator selects "topic 1 display", and the questionnaire system converts the operation into the statement "Q1 show", and similarly, the questionnaire system converts "topic 2 display" into the statement "Q2 show", and converts "topic 4 is not selected (assuming that there is no text corresponding to option 1)" into the statement "Q3 unselected option1_ id". The rule list is an array of entries, each entry storing a conditional converted DSL selected by the questionnaire creator. The questionnaire system loops the array according to the array of the rule list selected by the questionnaire creator, indexes each array with an entry + 1and then obtains the sequence numbers from 1 to n, and then obtains condition 1, condition 2, and condition 3 shown in the conditional text area 500 d.
Step S105, responding to the trigger operation aiming at the logic combination control, and establishing a first condition logic combination relation for the condition text; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation.
Specifically, the logic combination control comprises a logic self-defining control, a logic or relation control and a logic and relation control; the first conditional logic composition relation comprises a conditional logic custom relation, a conditional logic OR relation and a conditional logic AND relation. If the trigger operation aiming at the logic custom control is responded, activating a logic custom area in the logic combination page; responding to the logic input operation aiming at the logic self-defining area, and creating a conditional logic self-defining relation for the conditional text; if the trigger operation aiming at the logic or relation control is responded, a condition logic or relation is established for the condition text; and if the trigger operation aiming at the logic and relation control is responded, creating a conditional logic and relation for the conditional text.
Wherein, responding to the logic input operation aiming at the logic self-defining area, and establishing a condition logic self-defining relation for the condition text, comprising: responding to the logic input operation aiming at the logic custom area, and displaying a custom logic text in the logic custom area; determining the legality of the user-defined logic text according to the regular expressions and the text quantity corresponding to the conditional text; if the user-defined logic text belongs to the illegal text, displaying logic text illegal prompt information aiming at the user-defined logic text in the logic combination page; and if the self-defined logic text belongs to a legal text, creating a conditional logic self-defined relation for the conditional text according to the self-defined logic text.
Conditional logic specification:
or: express or relation, i.e. satisfy either condition;
and an d: express and relation, i.e. satisfy a plurality of conditions simultaneously;
() Representing a binding calculation.
The conditional digits and operators (e.g., and or) are separated by spaces, and the operators only support English lowercase, e.g., 1and 2and (3 or 4).
If a plurality of conditional texts are set in step S104, as shown in fig. 5a, the questionnaire system connects the conditional texts by "or" by default, obviously, the logic custom area 500e in the logic combination page 50c shows a conditional logic or relationship, and the logic custom area 500e is not activated, and when the answer replied by the answerer meets any conditional text, the answer terminal displays the result texts, that is, the question 5 and the question 7. If the trigger operation for the logic and relation control (i.e., the "and" control 500f in the logic combination page) is responded, the user terminal 10b creates the condition logic and relation for the 3 condition texts, that is, the answering terminal needs to display the question 1, the question 2, and the question 5 and the question 7 only if the answer is not selected when the answer is answered to the question 4.
In the embodiment of the application, based on the question setting scene of question display controlled by complex rules in the investigation, a questionnaire creator is supported to set custom rules mixed with or conditions to control question display, so as to refine and guide an answerer to answer a questionnaire, and improve the accuracy of the investigation, in addition, the embodiment of the application supports a combination mode of freely editing a plurality of condition texts by the questionnaire creator, so as to realize the purpose of displaying questionnaire questions according to different answer situations of answerers, and the specific process is as follows: referring to fig. 5c together, please refer to fig. 5c when the questionnaire creator clicks the logical custom control (i.e., custom control 500 g) in the logical combination page 50c, and fig. 5c is a scene diagram of data processing provided in this embodiment of the present application. As shown in fig. 5c, the user terminal 10b responds to the trigger operation for the logical custom control to activate the logical custom area 500f in the logical combination page 50d, and the questionnaire creator can input the condition serial number, "and, or", and the bracket in the logical custom area 500f, and freely edit the condition logical combination relationship for the condition text.
It can be understood that the user terminal 10b may check whether the input (i.e. the custom logic text) of the questionnaire creator is legal in real time, for example, firstly, the validity of the whole custom logic text is confirmed through the regular expression, as shown in fig. 5c, when the questionnaire creator inputs "1or" in the logic custom area 500f, the logic combination page 50d may display the illegal prompt information of the logic text, such as "format error, please modify the condition label and the or/and connection format", to prompt the questionnaire creator that the current custom logic text belongs to the illegal text. In addition, the questionnaire system will confirm whether each bracket is closed through the bracket matching algorithm, and if the custom logical text has a single bracket, similarly, the logical combination page 50d will display the illegal prompt information of the logical text, such as "bracket mismatch", to prompt the questionnaire creator that the custom logical text currently lacks brackets. And finally, extracting all numbers in the custom logic text by the questionnaire system through a regular expression, obtaining the maximum number in all numbers through a json primary function, and finally checking whether the maximum number exceeds the length of the condition text. Referring to the logical combination page 50d, it can be seen that the page contains 3 conditional texts, and if the maximum number in the custom logical text input by the questionnaire creator is 4, for example, "1or (2and 3and 4)", the questionnaire system can determine that the custom logical text input by the questionnaire creator is an illegal text.
The rules for the combined display logic are: the question set as the result text is hidden by default and not displayed, and when the answer of the answerer meets the specified condition, the result question text is displayed. Referring again to fig. 5c, the user-defined logical text entered by the questionnaire creator on logical combination page 50e is "1or (2and 3)", indicating that when topic 1 is displayed or when topic 2 is displayed and the response to topic 4 is not selected, topic 5 and topic 7 are displayed, otherwise topic 5 and topic 7 are hidden. Subsequently, the questionnaire creator can click on the delete control in the upper right corner of rule 1 in logical combination page 50e, and then the questionnaire system deletes rule 1.
It can be understood that the questionnaire creator sets up the combined display logic (including the result text, the condition text, and the condition logic combination relationship) in the questionnaire system through the user terminal 10b, and the actual answer effect is reflected at the questionnaire answer end. Please refer to fig. 5d together, and fig. 5d is a schematic view of a data processing scenario provided in the embodiment of the present application. As shown in fig. 5d, the question 1, the question 2and the question 3 are displayed in the answer page 50f, and as can be seen from fig. 4a and 5d, the question 1 in the answer page 50f corresponds to the question 1 in the questionnaire system, the question 2 in the answer page 50f corresponds to the question 2 in the questionnaire system, and the question 3 in the answer page 50f corresponds to the question 3 in the questionnaire system. When the answerer clicks the next page control 500j, the answerer terminal displays an answerer page 50g, obviously, the question 4 in the answerer page 50g corresponds to the question 4 in the questionnaire system, and it is noted that the question set as a result text is hidden by default and is not displayed, and when the answer of the answerer meets the specified conditions, the result question text is displayed; topics that are not set as result text are displayed by default, so topic 4 in the questionnaire system is either not set as a result topic or the answer in answer page 50f conforms to the conditional text set in some rule.
Referring back to fig. 5d, the choice of the question 4 by the answerer is "2000+", and it can be seen from fig. 5c and 5d that, when the combined display logic set by rule 1, that is, "1or (2and 3)" is satisfied, the question 5 and the question 7 are displayed, so when the answerer clicks the next page control 500k in the answer page 50g, the answer page 50h displayed by the answer terminal will include the result text indicated by rule 1 in fig. 5c, that is, the question 5 and the question 7, obviously, the question 5 in the answer page 50h corresponds to the question 5 in the questionnaire system, however, the question 6 in the answer page 50h corresponds to the question 7 in the questionnaire system, at this time, the question 6 in the questionnaire system is hidden and not displayed, that is the answer generated by the answerer when answering the questions 1 to 4, and fails to satisfy the condition text of a certain rule in the questionnaire system, and therefore, the question 6 in the questionnaire system is hidden.
Note that, the numbers in "1or (2and 3)" refer to condition numbers, i.e., condition 1, condition 2, and condition 3, and do not refer to title 1, title 2, and title 3.
In the embodiment of the application, by responding to the trigger operation aiming at the result setting control in the logic combination page, a result setting text sub-page can be independently displayed on the logic combination page, and the result setting text sub-page can display all topic texts in the system, namely at least two topic texts in the original text; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, one or more selected topic texts can be determined as result texts; after determining the result text, further setting a conditional text for the result text, where the specific process may be: responding to the trigger operation aiming at the condition control set in the logic combination page, and independently displaying a condition setting text sub-page in the logic combination page, wherein the condition setting text sub-page comprises a condition setting text list aiming at a result text, and similarly, the topic texts in the condition setting text list belong to the at least two topic texts; responding to the selection operation aiming at the set condition text list, and generating a condition text according to one or more selected subject texts in the set condition text list; after the condition text aiming at the result text is determined, responding to the triggering operation aiming at the logic combination control in the logic combination page, and establishing a first condition logic combination relation for the condition text; subsequently, the result text is used for being triggered and displayed when the condition text meets the first condition logic combination relation. Therefore, according to the embodiment of the application, on the basis of the question setting scene in the questionnaire, question displaying and hiding is controlled by a complex rule, the question setting person is supported to set a conditional logical combination relation for the conditional text according to the logical combination control to control the displaying and hiding of the result text, so that the answering person is guided to answer the questionnaire in a detailed manner, and the accuracy of the investigation is improved. Secondly, after the text logic is newly established by the person setting the question, a plurality of result texts can be set in a result text setting sub-page in an efficient selection mode, and a plurality of condition texts can be set in a condition text setting sub-page in an efficient selection mode, so that the efficiency of designing the question logic is improved, and the efficiency of research is improved.
Further, please refer to fig. 6, where fig. 6 is a schematic flowchart of a data processing method according to an embodiment of the present application. As shown in fig. 6, the process of the data processing method includes the following steps S201 to S204, and the steps S201 to S204 are a specific embodiment of the step S102 in the embodiment corresponding to fig. 2:
s201, if the selection operation aiming at least two topic texts in the set result text sub-page is responded, determining at least one selected topic text as a result text to be confirmed.
Specifically, as shown in step S102 and fig. 4a in the embodiment corresponding to fig. 2, the setting display results included in the setting result text sub-page 40b are divided into 3 cases, which are respectively a title text, an end page (normal end), and an end page (abnormal end, data not collected), so that the questionnaire creator can select the category, title, or end page of the display results, and when the questionnaire creator selects a title, please refer to fig. 7a together, where fig. 7a is a schematic view of a data processing scenario provided in the embodiment of the present application. As shown in fig. 7a, the title selector is a global wide area network (Web) component, and the setting result text sub-page 70a can display all the title texts (i.e., the above-mentioned at least two title texts) through a json data rendering USER INTERFACE (UI) component for all the title texts.
Referring back to fig. 7a, if the questionnaire creator checks and sets the topic 7, the topic 8, and the topic 9 in the result text sub-page 70a, the user terminal 10b (which can also be understood as the questionnaire system accessed by the user terminal 10 b) determines the topic 7, the topic 8, and the topic 9 as the result text to be confirmed.
S202, acquiring a question text identifier corresponding to the result text to be confirmed, and determining the question text identifier corresponding to the result text to be confirmed as the question identifier to be confirmed.
Specifically, as shown in step S101 in the embodiment corresponding to fig. 2, after the original text is added, the questionnaire system separately stores all topic identifiers in one array, and the topic identifiers are generated according to the sequence of the topic texts in the original text, so that the questionnaire system can respectively obtain topic text identifiers corresponding to the topics 7, the topics 8, and the topics 9 (i.e., the texts to be confirmed), determine the topic text identifier corresponding to the topic 7 as the topic identifier 7, determine the topic text identifier corresponding to the topic 8 as the topic identifier 8, and determine the topic text identifier corresponding to the topic 9 as the topic identifier 9.
S203, comparing the title identification to be confirmed with the confirmed title identification; the confirmed question mark is used for representing a question text mark corresponding to the confirmed result text; the confirmed result text is associated with the question text in the second condition logic combination relation
Specifically, assuming that the rule corresponding to fig. 7a is rule 4, 3 rules have been set in the logical combination page, each rule includes a result text, and each result text may include a plurality of topic texts, so that at least two topic texts have a confirmed result text.
And S204, determining the result text to be confirmed as a result text according to the comparison result.
Specifically, the setting result text sub-page comprises a first confirmation control; if the question mark to be confirmed is different from the confirmed question mark, determining the result text to be confirmed as a result text; if the confirmed question mark has a question mark which is the same as the question mark to be confirmed, determining the question mark to be confirmed which is the same as the confirmed question mark as a repeated question mark; deleting the question text corresponding to the repeated question identification from the result text to be confirmed to obtain a result text; and responding to the triggering operation aiming at the first confirmation control, canceling the display of the result text sub-page, and adding the result text to a result text area in the logical combination page.
According to the method and the device, when a questionnaire creator sets questionnaire subject display logic, the display and the hiding of 1or more subjects can be controlled in batch by combining a plurality of conditional texts. In addition, the logic conditions provide 4 rules: and selecting, not selecting, displaying and not displaying, and supporting mixed use of splicing conditions through an or/and relationship, thereby improving the flexibility and convenience of theme display logic setting. By the method and the device, a questionnaire creator can design question logic through more rigorous conditions, and the subsequent data cleaning workload is saved; the number of questions answered by the answerer of the questionnaire can be reduced, and the answering experience of the answerer is improved.
Assuming that the setting result text sub-page 70a is identical to the setting result text sub-page 40f in fig. 4b, the rule corresponding to fig. 7a is rule 2, please refer to fig. 4a again, since the result text in rule 1 is an end page (normal end), the topic identifiers to be confirmed (i.e., topic identifier 7, topic identifier 8, and topic identifier 9) are different from the confirmed topic identifiers (at this time, no confirmed topic identifiers exist), and the questionnaire system can determine the topic 7, the topic 8, and the topic 9 as the result text. In response to a triggering operation for the first confirmation control (i.e., the determination control 700a in the setting result text subpage 70 a), as shown in fig. 7a, the user terminal 10b cancels the display of the setting result text subpage 70a and adds the result text to the result text area 700b in the logical combination page 70 b.
If the confirmed title identifier includes the title identifier 7, the title identifier 8, and the title identifier 9, as described in step S203, assuming that the confirmed title identifier includes the title identifier 3, the title identifier 5, and the title identifier 9, obviously, the title identifier 9 is a repeated title identifier, the questionnaire system deletes the title text (i.e., the title 9) corresponding to the repeated title identifier (i.e., the title identifier 9) from the result text to be confirmed (i.e., the title identifier 7, the title identifier 8, and the title identifier 9), and retains the title 7 and the title 8, please refer to fig. 7a again, and the questionnaire system can display prompt information in a setting result text sub-page 70c, for example, "Q9 has been set as a result title", to prompt the questionnaire creator to set the title 9 as a result text in the previous rule setting. Optionally, when the topic identifier 9 is a repeated topic identifier, the questionnaire creator cannot select the topic 9 successfully when checking the topic 9, or may hide the topic 9, where the method is not limited and may be set according to an actual application scenario.
The subsequent process is consistent with the scenario where the to-be-confirmed title identifier is different from the confirmed title identifier, and therefore, the detailed description thereof is omitted, which can be referred to in the above description.
Fig. 7b is a flowchart illustrating a data processing method according to an embodiment of the present disclosure. As shown in fig. 7b, the process of the data processing method includes the following steps:
step S1021, start; in step S1022, the object score data of all the title texts.
In step S1023, the user interface component is rendered.
Step S1024, whether to select the display end page.
In step S1025, the end page id is recorded.
Step S1026, selecting the title text as the display result.
Step S1027, recording all question marks in the selected state; step S1028, end.
Specifically, the questionnaire creator may select a category of a display result, a topic text, or an end page, when the questionnaire creator selects the topic text, the topic selector is a web component, a UI component corresponding to the user terminal 10b is rendered by json data of all topics, a display result may be set by clicking the topic text, and the questionnaire system finally records all topic identifiers in a selected state for further interactive use. For a specific implementation process, please refer to the description of step S102 in the embodiment corresponding to fig. 2and the description in the embodiment corresponding to fig. 6, which are not repeated herein.
In the embodiment of the application, by responding to the trigger operation aiming at the result setting control in the logic combination page, a result setting text sub-page can be independently displayed on the logic combination page, and the result setting text sub-page can display all topic texts in the system, namely at least two topic texts in the original text; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, one or more selected topic texts can be determined as result texts; after determining the result text, further setting a conditional text for the result text, where the specific process may be: responding to the trigger operation aiming at the condition control set in the logic combination page, and independently displaying a condition setting text sub-page in the logic combination page, wherein the condition setting text sub-page comprises a condition setting text list aiming at a result text, and similarly, the topic texts in the condition setting text list belong to the at least two topic texts; responding to the selection operation aiming at the set condition text list, and generating a condition text according to one or more selected subject texts in the set condition text list; after the condition text aiming at the result text is determined, responding to the triggering operation aiming at the logic combination control in the logic combination page, and establishing a first condition logic combination relation for the condition text; subsequently, the result text is used for being triggered and displayed when the condition text meets the first condition logic combination relation. Therefore, according to the embodiment of the application, on the basis of the question setting scene in the questionnaire, question displaying and hiding is controlled by a complex rule, the question setting person is supported to set a conditional logical combination relation for the conditional text according to the logical combination control to control the displaying and hiding of the result text, so that the answering person is guided to answer the questionnaire in a detailed manner, and the accuracy of the investigation is improved. Secondly, after the text logic is newly established by the question maker, a plurality of result texts can be set in a result text setting sub-page in an efficient selection mode, and a plurality of condition texts can be set in a condition text setting sub-page in an efficient selection mode, so that the efficiency of designing the question logic is improved, and the efficiency of research is improved.
Further, please refer to fig. 8, and fig. 8 is a schematic flowchart of a data processing method according to an embodiment of the present application. As shown in fig. 8, the process of the data processing method includes the following steps S301 to S306, and the steps S301 to S306 are a specific embodiment of the step S104 in the embodiment corresponding to fig. 2:
s301, responding to the topic text M in the topic text list i Is selected byQuestion text M i The type of the subject to which it belongs; the topic text in the topic text list belongs to at least two topic texts.
Specifically, the set condition text list comprises a title text list and a condition selection list; the topic text list includes a topic text M i I is a positive integer, and i is less than or equal to the total number of topic texts in the topic text list.
As can be seen from step S104 in the embodiment corresponding to fig. 2, the display condition of the logic rule (e.g. rule 1 shown in fig. 5 a) includes a topic (topic text), a specific condition (including selected/unselected/displayed/not displayed), and an option (option text), so when the questionnaire creator checks the topic text list (e.g. the topic text list in the conditional text sub-page 50b set in fig. 5a, the list includes topic 1, topic 2, topic 3, and topic 4), the topic text M in the topic text list is selected i Then, the questionnaire system first obtains the question text M i If the subject type to which the subject belongs is not the same as the specific condition corresponding to the different subject types, different condition selection lists are generated (for example, the condition selection list in the conditional text sub-page 50b in fig. 5a is set, and the list includes selected, unselected, displayed, and not displayed).
S302, if the title text M i And if the belonging topic type is a first topic type, acquiring a first type control, and generating a condition selection list according to the first type control.
Specifically, the topic types can be divided into two types, the first topic type can include a subjective topic, an information bar, a linkage topic, and the like, and the settable conditions of the types include: display or not; the second topic type can include a single-choice topic, a multiple-choice topic, a drop-down topic, a quantity table topic, a matrix single-choice topic, and the like, and the type can be set according to conditions including: whether the title is displayed, and a specified option is selected/unselected. It can be understood that the two types of topics can be changed according to scenes when the two types of topics are actually applied.
Topic text M selected by the questionnaire creator in the topic text list i When the topic type of (2) belongs to a first topic type, e.g. topic text M i To "for this matter what you want to express? ", obviously, the subject text M i Belonging to subjective questions, the questionnaire system generates a list of conditional choices based on the presence and absence (i.e., the first type of control).
S303, displaying a condition selection list, responding to the trigger operation aiming at the first type control in the condition selection list, and according to the title text M i And the triggered first type control generates conditional text.
Specifically, according to step S302, the condition selection list displayed in step S303 includes a display and a non-display, and if the questionnaire creator checks that the selection is a display, the question text M is the condition text i Display ".
S304, if the title text M i And if the belonging topic type is a second topic type, acquiring a first type control and a second type control.
S305, generating a condition selection list according to the first type control and the second type control.
Specifically, please refer to FIG. 5a again, if the title text M i Is the topic 2 in the topic text list, i.e., "do you play with the phone often? ", as shown in FIG. 5a, the questionnaire system generates a list based on the selected, unselected, displayed, and undisplayed conditions.
S306, displaying the condition selection list, responding to the trigger operation aiming at the condition selection list, and generating a condition text according to the control triggered in the condition selection list.
Specifically, the set condition text list further includes an option text list; if the trigger operation of the first type control in the condition selection list is responded, the text M is selected according to the title i The triggered first type control generates a condition text; if the triggering operation of the second type control in the condition selection list is responded, the title text M is displayed i The option text list of (1); the option text list comprises at least two option texts; responding to selection operation of at least two option texts in the option text list, and determining at least one selected option text as a target option text; text M according to title i A triggered second type control and a targetThe markup text generates conditional text.
Referring again to fig. 5a, as shown in fig. 5a, if the questionnaire creator checks the display, the questionnaire system generates a conditional text according to the topic 2and the display, as shown by a conditional text area 500d in the logical combination page 50c, the conditional text is "topic 2, display".
Referring to fig. 9a, fig. 9a is a schematic view of a data processing scenario according to an embodiment of the present disclosure. As shown in fig. 9a, the conditional text subpage 90a includes a topic text list 900a and a conditional selection list 900b, and if the questionnaire creator selects the topic 2, the user terminal 10b displays the conditional text subpage 90b, which includes the topic 2 (i.e. topic text M) i ) In the option text list 900c, the user terminal 10b determines the selected option text (assuming that the option text is option 2) as the target option text in response to the selection operation for the option text "occasionally" in the option text list 900c, and then generates a condition text according to the topic 2, the triggered selection and the target option text, that is, "option 2 is selected in topic 2", and the subsequent process refers to step S104 in the corresponding embodiment of fig. 2, which is not described herein again.
It should be understood that the set condition text sub-page 90a and the set condition text sub-page 90b illustrated in the embodiment of the present application are independently displayed in the logical combination page.
Optionally, the questionnaire creator clicks on the topic text M i Self, not the check topic text M i The questionnaire system will also determine the subject text M i The subject type to which the question belongs, then, a condition selection list is displayed according to the subject type, and if a questionnaire creator clicks the condition (for example, clicking selection or not checking selection), the questionnaire system also displays the text M for the question at the moment i If the questionnaire creator checks the option text, please refer to fig. 9a again, and if the questionnaire creator checks "occasionally", at this time, the questionnaire system automatically completes the check of the preamble level, that is, automatically checks the topic 2 in the topic text list 900a and the condition selection list 900 b.
Optionally, in response to a trigger operation for the saving control, obtaining a result topic identifier corresponding to the result text, a condition topic identifier corresponding to the topic text in the condition text, and an option identifier corresponding to the option text; the option text refers to a text corresponding to a title text in the condition text; generating an answer logic file according to the first conditional logic combination relation, the result question mark corresponding to the result text, the condition question mark corresponding to the question text in the condition text and the option mark corresponding to the option text; and the answer logic file is used for indicating the answer terminal to display a result text indicated by the result question mark when the selected condition question mark and the option mark meet the first condition logic combination relation.
Referring to fig. 5c again, after the logic setting is completed, the questionnaire creator clicks the saving in the logic combination page 50e, and the questionnaire system can save and apply all the rules (in this embodiment, only rule 1 is taken as an example, and may also be understood as an answer logic file) in the current page. Please refer to table 2 together, where table 2 is a pseudo code for storing combinational logic rules according to an embodiment of the present application.
TABLE 2
Figure GDA0004074582310000281
Figure GDA0004074582310000291
Wherein, GB32"," XG39 "and SC44 in table 2 respectively represent the result topic identifications corresponding to the result topic texts in the combinational logic rules; "1or (2and 3)" and "custom" indicate that the conditional logic combination relation for displaying the result text is a conditional logic custom relation; "query" indicates that the result text is a title text; next, describing the conditional text, it is known from "1or (2and 3)" that there are 3 conditional texts, respectively, which are the following 3 sub-segments, "" leftVal ": TEOw" ", which indicates the title identification of the title text of the conditional text 1," "operator": selected "", which indicates that the condition is selected, and "" rightVal ": YTBy" "which indicates the option identification of the option text. Similarly, the following two sub-section codes represent condition 2and condition 3, respectively, and are not explained one by one here.
The questionnaire system stores the set rule in a database using an extensible hypertext transfer request (XMLHttpRequest) object of the browser, and it is understood that the database may be a local database of the user terminal 10b or a separate data server, which is not limited herein. The database may be regarded as an electronic filing cabinet, which is a place for storing electronic files, in the embodiment of the present application, the electronic files may refer to answer logic files or set rules, and the user terminal 10b may perform operations such as adding, querying, updating, and deleting on the electronic files. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application.
The questionnaire creator sets up the combined display logic in the questionnaire system, and the actual answer effect is reflected in the questionnaire answer terminal. When an answerer enters the questionnaire system through an answerer terminal, the questionnaire system interacts with a server by using an XMLHttpRequest object of a browser to acquire json data of a logic rule configured by a user terminal 10b (namely a management terminal). The questionnaire system carries out initialization operation in a web worker of a browser, and a new thread is specially used for logical operation, so that the influence on the rendering of a main thread is avoided. And (4) merging the topic identifications corresponding to the topic texts in the conditional texts in the json data through circular traversal, and obtaining the topic identifications of all the conditional texts by using a deduplication algorithm. By using the design mode of an observer, the answering terminal creates an event monitor for each topic identifier, when the answerer answers the specific topics (namely, the topics in the condition text), dynamic calculation is triggered, and the calculated formula is a rule edited by the questionnaire creator.
Taking the example of rule 1 in fig. 5c, the questionnaire system reads the custom expression (i.e., conditional logic custom relationship) "1or (2and 3)", and analyzes it into "[ '1', '2', '3', 'and', 'or' ]" by using the inverse-wave-blue expression algorithm modified for the "and or" operation. The specific algorithm flow is as follows:
(1) An operator stack is first constructed, which follows the principle of higher priority within the stack towards the top of the stack.
(2) The expression is scanned from left to right, judged from the first character, and if the character is a digit, the end of the digit string is analyzed and the digit string is directly output.
(3) If not, the character is an operator, and the precedence relationship is compared. The method comprises the following steps: the character is compared to the precedence of the operator at the top of the operator stack. If the character precedence relationship is higher than the operator at the top of the operator stack, the operator is pushed. If not, popping the top operator from the stack until the priority of the top operator is lower than that of the current operator, and pushing the character.
(4) Repeating the operations (2) - (3) until scanning is finished to '1 or (2and 3'), determining that all characters are correctly processed, and converting the expression self-defined by the questionnaire creator into an inverse Polish expression by the answering terminal.
After the inverse wave blue expression is obtained, the inverse wave blue expression is popped up for calculation, and when an operand is read, the operand is directly pushed into a stack. And when the operator is read, two numbers are popped out from the stack, and the result is pushed back to the stack after operation. Please refer to fig. 9b, and fig. 9b is a flowchart illustrating a data processing method according to an embodiment of the present application.
As shown in fig. 9b, the specific steps of processing [ '1', '2', '3', 'and', 'or' ] are as follows:
step S401, firstly, calculating '2and 3', acquiring the numbers 2and 3 from the rule list to obtain a real DSL statement, and analyzing the DSL;
step S402, obtain TI (i.e., "2and 3" analysis result), please refer to table 2 again, "2" represents "TEOw selected LJAx";
through a uniform algorithm, the parameters are a hash table of the current answer of the answerer and the DSL sentence, the return value is a Boolean value, and the Boolean value represents whether the current answerer selects the option corresponding to the option identifier in the DSL sentence in the question N or whether the question N is displayed on the answer sheet.
Step S403, performing an or operation on the result TI in step S402 and the number 1, and repeating step (2) to obtain whether the final result T2 is a true value or a false value. If true, the topic text set in the logic rule is displayed, and if false, the text set in the logic is hidden.
In the process of answering questions by the answerers, as long as the logic rules are set for the answered questions, the process is repeated continuously.
Fig. 2, fig. 6 and fig. 8 respectively correspond to the embodiments, please refer to fig. 9c, and fig. 9c is a schematic flow chart of a data processing method according to an embodiment of the present application. As shown in fig. 9c, the method is executed by a management end and an answering end jointly, wherein steps S11 to S17 are executed by the management end, and steps S18 to S22 are executed by the answering end, wherein the management end is the user terminal 10b, and the process of the data processing method includes the following steps.
Step S11, start; and step S12, adding logic.
And step S13, setting a display result.
Step S14, logic conditions are set.
And S15, self-defining an expression.
And S16, checking expression grammar.
And S17, storing the data into a database.
And step S18, reading the logic rule data.
In step S19, a logic rule is calculated.
And S20, analyzing the custom expression.
Step S21, answering questions by a user; and step S22, ending.
For the specific implementation process of fig. 9c, please refer to the embodiments corresponding to fig. 2, fig. 6, and fig. 8, which are not repeated herein.
The embodiment of the application supports a questionnaire creator to freely set display and hide multiple subjects in a questionnaire system, also supports a researcher to freely set condition rules corresponding to result subjects in the questionnaire system, and can ask questions in a funnel-shaped technology mode when designing the questionnaire, for example, the first subject is' do you play a hand at ordinary times? "if the answerer answers not played, then the second question" what type of handrun you would like to play at ordinary times? "hidden is needed and jump directly to the third problem. According to the funnel-shaped technology, the wide and open questions are asked, then the specific questions are asked, the interest of the interviewee can be kept, the questions can be screened, and then the researchers can determine whether the specific questions are suitable for the interviewee or not, so that the unsuitable questions are avoided.
In the embodiment of the application, by responding to the trigger operation aiming at the result setting control in the logic combination page, a result setting text sub-page can be independently displayed on the logic combination page, and the result setting text sub-page can display all topic texts in the system, namely at least two topic texts in the original text; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, one or more selected topic texts can be determined as result texts; after determining the result text, further setting a conditional text for the result text, where the specific process may be: responding to the trigger operation aiming at the condition control set in the logic combination page, and independently displaying a condition setting text sub-page in the logic combination page, wherein the condition setting text sub-page comprises a condition setting text list aiming at a result text, and similarly, the topic texts in the condition setting text list belong to the at least two topic texts; responding to the selection operation aiming at the set condition text list, and generating a condition text according to one or more selected subject texts in the set condition text list; after the condition text aiming at the result text is determined, responding to the triggering operation aiming at the logic combination control in the logic combination page, and establishing a first condition logic combination relation for the condition text; subsequently, the result text is triggered to be displayed when the condition text meets the first condition logic combination relation. As can be seen from the above, in the embodiment of the application, based on the question setting scene in the questionnaire, where the question display is controlled by a complex rule, the question setting device is supported to set a conditional logical combination relationship for the conditional text according to the logical combination control to control the display of the result text, so as to refine and guide the answerer to answer the questionnaire, and improve the accuracy of the investigation. Secondly, after the text logic is newly established by the question maker, a plurality of result texts can be set in a result text setting sub-page in an efficient selection mode, and a plurality of condition texts can be set in a condition text setting sub-page in an efficient selection mode, so that the efficiency of designing the question logic is improved, and the efficiency of research is improved.
It should be understood that the present application is exemplified by the questionnaire creator in fig. 2, fig. 6, and fig. 8, and the operator corresponding to the user terminal 10b is not necessarily the questionnaire creator in actual application, and is not limited herein.
Further, please refer to fig. 10, where fig. 10 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. The data processing apparatus may be a computer program (including program code) running on a computer device, for example, the data processing apparatus is an application software; the apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application. As shown in fig. 10, the data processing apparatus 1 may include: a first display module 11, a first determination module 12, a second display module 13, a first generation module 14, and a create relationship module 15.
The first display module 11 is configured to respond to a trigger operation for a setting result control in the logical combination page, and output a setting result text sub-page that is independently displayed on the logical combination page; setting a result text sub-page to comprise at least two subject texts in the original text;
a first determining module 12, configured to determine, if a selection operation for at least two topic texts in a set result text sub-page is responded, at least one selected topic text as a result text;
the second display module 13 is configured to respond to a trigger operation for setting a condition control in the logical combination page, and output a setting condition text sub-page independently displayed on the logical combination page; the set condition text sub page comprises a set condition text list aiming at the result text; setting the subject texts in the condition text list to belong to at least two subject texts;
a first generating module 14, configured to generate, in response to a selection operation for the set condition text list, a condition text according to at least one topic text selected in the set condition text list; the logical composition page includes a logical composition control for the conditional text;
a relationship creating module 15, configured to create a first conditional logical combination relationship for the conditional text in response to a trigger operation for the logical combination control; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation.
For specific functional implementation manners of the first display module 11, the first determining module 12, the second display module 13, the first generating module 14, and the relationship creating module 15, reference may be made to steps S101 to S105 in the corresponding embodiment of fig. 2, which is not described herein again.
Referring to fig. 10 again, the logic combination control includes a logic custom control, a logic or relation control, and a logic and relation control; the first conditional logic combination relation comprises a conditional logic self-defining relation, a conditional logic OR relation and a conditional logic AND relation;
the create relationship module 15 may include: a first creating unit 151, a second creating unit 152, and a third creating unit 153.
A first creating unit 151, configured to activate a logic customization area in the logic combination page if a trigger operation for the logic customization control is responded;
the first creating unit 151 is further configured to create a conditional logic custom relationship for the conditional text in response to a logic input operation for the logic custom region;
a second creating unit 152, configured to create a conditional logic or relationship for the conditional text if a trigger operation for the logic or relationship control is responded;
a third creating unit 153, configured to create a conditional logical and relationship for the conditional text if a trigger operation for the logical and relationship control is responded.
For specific functional implementation manners of the first creating unit 151, the second creating unit 152, and the third creating unit 153, reference may be made to step S105 in the corresponding embodiment of fig. 2, which is not described herein again.
Referring again to fig. 10, the first creating unit 151 may include: a first display subunit 1511, a first determination subunit 1512, a second display subunit 1513, and a create relationship subunit 1514.
A first display subunit 1511, configured to display a custom logic text in the logic custom area in response to a logic input operation for the logic custom area;
the first determining subunit 1512 is configured to determine the validity of the custom logic text according to the regular expression and the text number corresponding to the conditional text;
a second display subunit 1513, configured to display, if the custom logic text belongs to an illegal text, an illegal prompt message of the logic text for the custom logic text in the logic combination page;
and a creating relation subunit 1514, configured to create a conditional logic custom relation for the conditional text according to the custom logic text if the custom logic text belongs to a legal text.
For a specific functional implementation manner of the first display subunit 1511, the first determining subunit 1512, the second display subunit 1513, and the relationship creation subunit 1514, reference may be made to step S105 in the corresponding embodiment of fig. 2, which is not described herein again.
Referring again to fig. 10, the first determining module 12 may include: a first determining unit 121, a second determining unit 122, a comparison identification unit 123 and a third determining unit 124.
A first determining unit 121, configured to determine, in response to a selection operation for at least two topic texts in a setting result text sub-page, at least one topic text selected as a result text to be confirmed;
a second determining unit 122, configured to obtain a question text identifier corresponding to the result text to be confirmed, and determine the question text identifier corresponding to the result text to be confirmed as the question identifier to be confirmed;
a comparison identification unit 123, configured to compare the title identifier to be confirmed with the confirmed title identifier; the confirmed question mark is used for representing a question text mark corresponding to the confirmed result text; the confirmed result text is the question text which is associated with the second condition logic combination relation;
and a third determining unit 124, configured to determine the result text to be confirmed as the result text according to the comparison result.
For specific functional implementation manners of the first determining unit 121, the second determining unit 122, the comparison identifying unit 123 and the third determining unit 124, reference may be made to steps S201 to S204 in the embodiment corresponding to fig. 6, which is not described herein again.
Referring again to fig. 10, the set result text subpage includes a first confirmation control;
the third confirming unit 124 may include: a delete repeat sub-unit 1242, and an add result sub-unit 1243.
A second determining subunit 1241, configured to determine, if the question identifier to be confirmed is different from the confirmed question identifier, the result text to be confirmed is a result text;
the second determining subunit 1241 is further configured to determine, if a question identifier that is the same as the question identifier to be determined exists in the determined question identifiers, the question identifier to be determined that is the same as the determined question identifier as a repeated question identifier;
a delete repeat subunit 1242, configured to delete the question text corresponding to the repeated question identifier from the result text to be confirmed, to obtain a result text;
an add result sub-unit 1243, configured to cancel the display setting result text sub-page in response to the trigger operation for the first confirmation control, and add the result text to the result text area in the logical combination page.
For specific functional implementation manners of the delete duplicate sub-unit 1242, the delete duplicate sub-unit 1242 and the add result sub-unit 1243 of the first display module 11 and the create relationship module 12, reference may be made to step S204 in the embodiment corresponding to fig. 6 described above, which is not described herein again.
Referring to fig. 10 again, the second display module 13 may include: a first acquisition unit 131, a fourth determination unit 132, a first generation unit 133, and a first display unit 134.
A first obtaining unit 131, configured to respond to a trigger operation for setting a condition control in a logical combination page, and obtain a question identifier corresponding to a result text;
a fourth determining unit 132, configured to determine a topic text to be set with a condition from the at least two topic texts according to the topic identifier corresponding to the result text;
the first generating unit 133 is configured to generate a setting condition text subpage according to the question text to be set with the condition; setting a question text in the condition text list as a condition question text to be set;
the first display unit 134 is configured to output a setting condition text sub-page independently displayed on the logical combination page.
For specific functional implementation manners of the first obtaining unit 131, the fourth determining unit 132, the first generating unit 133 and the first displaying unit 134, reference may be made to step S103 in the corresponding embodiment of fig. 2, which is not described herein again.
Referring again to fig. 10, the fourth determining unit 132 may include: a first acquisition sub-unit 1321, a second acquisition sub-unit 1322 and a third determination sub-unit 1323.
A first obtaining subunit 1321, configured to obtain a topic sequence number corresponding to a topic identifier of each topic text in the at least two topic texts;
a second obtaining subunit 1322 is configured to determine the question identifier corresponding to the result text as a result question identifier, and obtain a result question sequence number corresponding to the result question identifier;
and a third determining subunit 1323, configured to determine a minimum result topic sequence number from the result topic sequence numbers, filter, from among the at least two topic texts, a topic text with a topic sequence number equal to or greater than the minimum result topic sequence number, and determine the filtered topic text as a topic text to be set with a condition.
For specific functional implementation manners of the first obtaining subunit 1321, the second obtaining subunit 1322, and the third determining subunit 1323, reference may be made to step S103 in the embodiment corresponding to fig. 2, which is not described herein again.
Referring again to fig. 10, the set condition text list includes a title text T i Question text T i Corresponding confirmation control K i Question text T i+1 And topic text T i+1 Corresponding confirmation control K i+1 I is a positive integer and is less than the total number of the title texts in the set condition text list;
the first generation module 14 may include: a first adding unit 141, a second adding unit 142, and a second generating unit 143.
A first adding unit 141 for responding to the topic text T i Corresponding confirmation control K i Trigger operation of (2) to display the title text T i Adding the data to a condition set to be confirmed;
a second adding unit 142 for responding to the topic text T i+1 Corresponding confirmation control K i+1 Trigger operation of (2) to display the title text T i+1 Adding the data to a condition set to be confirmed; the setting condition text list comprises a second confirmation control;
and the second generating unit 143, configured to generate a conditional text according to the condition set to be confirmed in response to a triggering operation for the second confirmation control, cancel displaying the conditional text subpage, and add the conditional text to a conditional text region in the logical combination page.
For specific functional implementation manners of the first adding unit 141, the second adding unit 142, and the second generating unit 143, reference may be made to step S104 in the corresponding embodiment of fig. 2, which is not described herein again.
Referring to fig. 10 again, the set condition text list includes a title text list and a condition selection list; the topic text list includes a topic text M i I is a positive integer, and i is less than or equal to the total number of topic texts in the topic text list;
the first generation module 14 may include: a second acquisition unit 144, a third acquisition unit 145, and a second display unit 146.
A second obtaining unit 144, configured to respond to the topic text M in the topic text list i To obtain a topic text M i The type of the subject to which it belongs; the topic texts in the topic text list belong to at least two topic texts;
a third obtaining unit 145 for obtaining the title text M i If the belonging topic type is a first topic type, acquiring a first type control, and generating a condition selection list according to the first type control;
a second display unit 146, configured to display the condition selection list, respond to a trigger operation for the first type control in the condition selection list, and according to the title text M i And the triggered first type control generates conditional text.
For specific functional implementation manners of the second obtaining unit 144, the third obtaining unit 145 and the second displaying unit 146, reference may be made to steps S301 to S303 in the embodiment corresponding to fig. 8, which is not described herein again.
Referring again to fig. 10, the first generating module 14 may further include: a third acquisition unit 145, a third generation unit 147 and a fourth generation unit 148.
The third obtaining unit 145 is further configured to obtain the title text M i If the topic type is a second topic type, acquiring a first type control and a second type control;
a third generating unit 147, configured to generate a conditional selection list according to the first type control and the second type control;
and a fourth generating unit 148, configured to display the condition selection list, and generate a condition text according to the control triggered in the condition selection list in response to a triggering operation for the condition selection list.
For specific functional implementation manners of the third obtaining unit 145, the third generating unit 147 and the fourth generating unit 148, reference may be made to step S304-step S306 in the embodiment corresponding to fig. 8, which is not described herein again.
Referring to fig. 10 again, the setting condition text list further includes an option text list;
the fourth generating unit 148 may include: a first generating subunit 1481, a third displaying subunit 1482, a fourth determining subunit 1483, and a second generating subunit 1484.
A first generating subunit 1481, configured to select a trigger operation of the first type control in the list according to the title text M if the trigger operation is responded to i The triggered first type control generates a condition text;
a third display subunit 1482, configured to display the title text M if the trigger operation for the second type control in the conditional selection list is responded to i The option text list of (1); the option text list comprises at least two option texts;
a fourth determining subunit 1483, configured to determine, in response to a selecting operation for at least two option texts in the option text list, the selected at least one option text as a target option text;
a second generating subunit 1484 for generating the topic text M i And the triggered second type control and the target option text generate a condition text.
For specific functional implementation manners of the first generating subunit 1481, the third displaying subunit 1482, the fourth determining subunit 1483, and the second generating subunit 1484, reference may be made to step S304 in the embodiment corresponding to fig. 8, which is not described herein again.
Referring to fig. 10 again, the logical combination page includes a saving control, and the original text includes option texts corresponding to at least two topic texts, respectively;
the data processing apparatus 1 may further include: an acquisition identification module 16 and a second generation module 17.
The obtaining identification module 16 is configured to, in response to a trigger operation for the saving control, obtain a result topic identifier corresponding to the result text, a condition topic identifier corresponding to a topic text in the condition text, and an option identifier corresponding to the option text; the option text refers to a text corresponding to a title text in the condition text;
a second generating module 17, configured to generate an answer logic file according to the first conditional logic combination relationship, the result question identifier corresponding to the result text, the conditional question identifier corresponding to the question text in the conditional text, and the option identifier corresponding to the option text; and the answer logic file is used for indicating the answer terminal to display a result text indicated by the result question mark when the selected condition question mark and the option mark meet the first condition logic combination relation.
For specific functional implementation manners of the obtaining identification module 16 and the second generation module 17, reference may be made to step S306 in the embodiment corresponding to fig. 8, which is not described herein again.
Referring to fig. 10 again, the setting result text sub-page includes a normal ending control and an abnormal ending control;
the data processing apparatus 1 may further include: a second determination module 18.
A second determining module 18, configured to determine, if a trigger operation for a normal end control in the set result text sub-page is responded, the normal end text as a result text;
the second determining module 18 is further configured to determine, if a trigger operation for an end exception control in the set result text sub-page is responded, an exception end text as a result text.
The specific functional implementation manner of the second determining module 18 may refer to step S102 in the corresponding embodiment of fig. 2, which is not described herein again.
In the embodiment of the application, by responding to the trigger operation aiming at the setting result control in the logic combination page, the setting result text sub-page can be independently displayed on the logic combination page, and the setting result text sub-page can display all topic texts in the system, namely at least two topic texts in the original text; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, one or more selected topic texts can be determined as result texts; after determining the result text, further setting a conditional text for the result text, where the specific process may be: responding to the trigger operation aiming at the condition control set in the logic combination page, and independently displaying a condition setting text sub-page in the logic combination page, wherein the condition setting text sub-page comprises a condition setting text list aiming at a result text, and similarly, the topic texts in the condition setting text list belong to the at least two topic texts; responding to the selection operation aiming at the set condition text list, and generating a condition text according to one or more selected subject texts in the set condition text list; after the condition text aiming at the result text is determined, responding to the triggering operation aiming at the logic combination control in the logic combination page, and establishing a first condition logic combination relation for the condition text; subsequently, the result text is used for being triggered and displayed when the condition text meets the first condition logic combination relation. Therefore, according to the embodiment of the application, on the basis of the question setting scene in the questionnaire, question displaying and hiding is controlled by a complex rule, the question setting person is supported to set a conditional logical combination relation for the conditional text according to the logical combination control to control the displaying and hiding of the result text, so that the answering person is guided to answer the questionnaire in a detailed manner, and the accuracy of the investigation is improved. Secondly, after the text logic is newly established by the question maker, a plurality of result texts can be set in a result text setting sub-page in an efficient selection mode, and a plurality of condition texts can be set in a condition text setting sub-page in an efficient selection mode, so that the efficiency of designing the question logic is improved, and the efficiency of research is improved.
Further, please refer to fig. 11, where fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 11, the computer device 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, further, the computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may alternatively be at least one memory device located remotely from the processor 1001. As shown in fig. 11, the memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 1000 shown in fig. 11, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
responding to the trigger operation aiming at the setting result control in the logic combination page, and outputting a setting result text sub-page independently displayed on the logic combination page; setting a result text sub-page to comprise at least two subject texts in the original text;
if the selection operation aiming at least two topic texts in the set result text sub-page is responded, determining at least one selected topic text as a result text;
responding to the trigger operation aiming at the condition setting control in the logic combination page, and outputting a condition setting text sub-page independently displayed on the logic combination page; the set condition text sub-page includes a set condition text list for the result text; setting the subject texts in the condition text list to belong to at least two subject texts;
responding to the selection operation aiming at the setting condition text list, and generating a condition text according to at least one topic text selected in the setting condition text list; the logical composition page includes a logical composition control for the conditional text;
responding to the trigger operation aiming at the logic combination control, and creating a first conditional logic combination relation for the conditional text; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation.
In one embodiment, the logical composition controls include logical custom controls, logical or relational controls, and logical and relational controls; the first conditional logic combination relation comprises a conditional logic self-defining relation, a conditional logic OR relation and a conditional logic AND relation;
when the processor 1001 executes a trigger operation for the logical combination control in response to create a first conditional logical combination relationship for the conditional text, the following steps are specifically executed:
if the trigger operation aiming at the logic custom control is responded, activating a logic custom area in the logic combination page;
responding to the logic input operation aiming at the logic self-defining area, and creating a condition logic self-defining relation for the condition text;
if the trigger operation aiming at the logic or relation control is responded, a condition logic or relation is established for the condition text;
and if the trigger operation aiming at the logic and relation control is responded, creating a condition logic and relation for the condition text.
In one embodiment, when the processor 1001 executes a logic input operation for responding to the logic custom area and creates a conditional logic custom relationship for the conditional text, the following steps are specifically executed:
responding to the logic input operation aiming at the logic custom area, and displaying a custom logic text in the logic custom area;
determining the legality of the user-defined logic text according to the regular expressions and the text quantity corresponding to the conditional text;
if the user-defined logic text belongs to the illegal text, displaying logic text illegal prompt information aiming at the user-defined logic text in the logic combination page;
and if the self-defined logic text belongs to a legal text, creating a conditional logic self-defined relation for the conditional text according to the self-defined logic text.
In an embodiment, when the processor 1001 executes a selection operation for at least two topic texts in a set result text sub-page, and determines at least one selected topic text as a result text, the following steps are specifically executed:
if the selection operation aiming at least two topic texts in the setting result text sub-page is responded, determining at least one selected topic text as a result text to be confirmed;
acquiring a question text identifier corresponding to a result text to be confirmed, and determining the question text identifier corresponding to the result text to be confirmed as the question identifier to be confirmed;
comparing the title mark to be confirmed with the confirmed title mark; the confirmed question mark is used for representing a question text mark corresponding to the confirmed result text; the confirmed result text is the question text which is associated with the second condition logic combination relation;
and determining the result text to be confirmed as a result text according to the comparison result.
In one embodiment, the set result text sub-page includes a first confirmation control;
when the processor 1001 determines the result text to be confirmed as the result text according to the comparison result, the following steps are specifically performed:
if the question mark to be confirmed is different from the confirmed question mark, determining the result text to be confirmed as a result text;
if the confirmed question mark has a question mark which is the same as the question mark to be confirmed, determining the question mark to be confirmed which is the same as the confirmed question mark as a repeated question mark;
deleting the question text corresponding to the repeated question identification from the result text to be confirmed to obtain a result text;
and responding to the triggering operation aiming at the first confirmation control, canceling the display of the result text sub-page, and adding the result text to a result text area in the logical combination page.
In an embodiment, when the processor 1001 executes a trigger operation for setting a condition control in a logical combination page and outputs a set condition text sub-page independently displayed on the logical combination page, the following steps are specifically executed:
responding to a trigger operation aiming at a condition control set in the logic combination page, and acquiring a question mark corresponding to a result text;
determining a question text to be set with conditions from at least two question texts according to the question identification corresponding to the result text;
generating a set condition text sub-page according to the question text to be set with the condition; setting a question text in the condition text list as a condition question text to be set;
and outputting the setting condition text sub-page independently displayed on the logic combination page.
In an embodiment, when the processor 1001 determines a topic text to be set with a condition from at least two topic texts according to a topic identifier corresponding to a result text, the following steps are specifically performed:
acquiring a question serial number corresponding to a question identifier of each question text in at least two question texts;
determining a question identifier corresponding to the result text as a result question identifier, and acquiring a result question serial number corresponding to the result question identifier;
and determining the minimum result topic serial number from the result topic serial numbers, filtering the topic texts of which the topic serial numbers are equal to or greater than the minimum result topic serial number from at least two topic texts, and determining the filtered topic texts as the topic texts to be set with the conditions.
In one embodiment, the set conditional text list includes a title text T i Question text T i Corresponding confirmation control K i Question text T i+1 And topic text T i+1 Corresponding confirmation control K i+1 I is a positive integer and is less than the total number of the topic texts in the set condition text list;
when the processor 1001 executes a selection operation for the setting condition text list and generates a condition text from at least one topic text selected in the setting condition text list, the following steps are specifically executed:
responding to topic text T i Corresponding confirmation control K i Trigger operation of (2) to display the title text T i Adding the data to a condition set to be confirmed;
responding to topic text T i+1 Corresponding confirmation control K i+1 Trigger operation of (2) to text the subjectT i+1 Adding the data to a condition set to be confirmed; the setting condition text list comprises a second confirmation control;
and responding to the triggering operation aiming at the second confirmation control, generating a condition text according to the condition set to be confirmed, canceling the display of a condition text subpage, and adding the condition text to a condition text area in the logic combination page.
In one embodiment, the set condition text list comprises a title text list and a condition selection list; the topic text list includes a topic text M i I is a positive integer, and i is less than or equal to the total number of the topic texts in the topic text list;
when the processor 1001 executes a selection operation for the setting condition text list and generates a condition text from at least one topic text selected in the setting condition text list, the following steps are specifically executed:
responding to topic text M in a topic text list i To obtain the title text M i The type of the subject to which it belongs; the topic texts in the topic text list belong to at least two topic texts;
if the question text M i If the belonging topic type is a first topic type, acquiring a first type control, and generating a condition selection list according to the first type control;
displaying a condition selection list, responding to the trigger operation aiming at the first type control in the condition selection list, and according to the title text M i And the triggered first type control generates conditional text.
When the processor 1001 executes a selection operation for the setting condition text list and generates a condition text from at least one topic text selected in the setting condition text list, the following steps are further specifically executed:
if the question text M i If the topic type is a second topic type, acquiring a first type control and a second type control;
generating a condition selection list according to the first type control and the second type control;
and displaying a condition selection list, responding to the trigger operation aiming at the condition selection list, and generating a condition text according to the control triggered in the condition selection list.
In one embodiment, the set condition text list further includes an option text list;
when the processor 1001 executes a trigger operation for responding to the condition selection list and generates a condition text according to a control triggered in the condition selection list, the following steps are specifically executed:
if the trigger operation of the first type control in the condition selection list is responded, the text M is selected according to the title i The triggered first type control generates a condition text;
if the trigger operation of the second type control in the condition selection list is responded, displaying the text M for the title i The option text list of (1); the option text list comprises at least two option texts;
responding to selection operation of at least two option texts in the option text list, and determining at least one selected option text as a target option text;
text M according to title i And the triggered second type control and the target option text generate a condition text.
In one embodiment, the logic combination page comprises a storage control, and the original text comprises option texts respectively corresponding to at least two title texts;
the processor 1001 further specifically executes the following steps:
responding to the trigger operation aiming at the storage control, and acquiring a result question identifier corresponding to the result text, a condition question identifier corresponding to the question text in the condition text, and an option identifier corresponding to the option text; the option text refers to a text corresponding to a title text in the condition text;
generating an answer logic file according to the first conditional logic combination relation, the result question mark corresponding to the result text, the condition question mark corresponding to the question text in the condition text and the option mark corresponding to the option text; and the answer logic file is used for indicating the answer terminal to display a result text indicated by the result question mark when the selected condition question mark and the option mark meet the first condition logic combination relation.
In one embodiment, the setting result text sub-page comprises a normal ending control and an abnormal ending control;
the processor 1001 further specifically executes the following steps:
if the trigger operation aiming at the ending normal control in the set result text sub-page is responded, determining the normal ending text as a result text;
and if the trigger operation aiming at the abnormal ending control in the set result text sub-page is responded, determining the abnormal ending text as the result text.
In the embodiment of the application, by responding to the trigger operation aiming at the result setting control in the logic combination page, a result setting text sub-page can be independently displayed on the logic combination page, and the result setting text sub-page can display all topic texts in the system, namely at least two topic texts in the original text; if the selection operation aiming at least two topic texts in the set result text sub-page is responded, one or more selected topic texts can be determined as result texts; after determining the result text, further setting a conditional text for the result text, where the specific process may be: responding to the trigger operation aiming at the condition control set in the logic combination page, and independently displaying a condition setting text sub-page in the logic combination page, wherein the condition setting text sub-page comprises a condition setting text list aiming at a result text, and similarly, the topic texts in the condition setting text list belong to the at least two topic texts; responding to the selection operation aiming at the set condition text list, and generating a condition text according to one or more selected subject texts in the set condition text list; after the condition text aiming at the result text is determined, responding to the triggering operation aiming at the logic combination control in the logic combination page, and establishing a first condition logic combination relation for the condition text; subsequently, the result text is used for being triggered and displayed when the condition text meets the first condition logic combination relation. As can be seen from the above, in the embodiment of the application, based on the question setting scene in the questionnaire, where the question display is controlled by a complex rule, the question setting device is supported to set a conditional logical combination relationship for the conditional text according to the logical combination control to control the display of the result text, so as to refine and guide the answerer to answer the questionnaire, and improve the accuracy of the investigation. Secondly, after the text logic is newly established by the person setting the question, a plurality of result texts can be set in a result text setting sub-page in an efficient selection mode, and a plurality of condition texts can be set in a condition text setting sub-page in an efficient selection mode, so that the efficiency of designing the question logic is improved, and the efficiency of research is improved.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a processor, the data processing method provided in each step in fig. 2, fig. 6, and fig. 8 is implemented, which may specifically refer to the implementation manner provided in each step in fig. 2, fig. 6, and fig. 8, and is not described herein again.
The computer-readable storage medium may be the data processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the computer device, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, provided on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the computer device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the computer device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first," "second," and the like in the description and in the claims and drawings of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or modules recited, but may alternatively include other steps or modules not recited, or may alternatively include other steps or elements inherent to such process, method, apparatus, article, or apparatus.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and the related apparatus provided by the embodiments of the present application are described with reference to the flowchart and/or the structural diagram of the method provided by the embodiments of the present application, and each flow and/or block of the flowchart and/or the structural diagram of the method, and the combination of the flow and/or block in the flowchart and/or the block diagram can be specifically implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block or blocks.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and should not be taken as limiting the scope of the present application, so that the present application will be covered by the appended claims.

Claims (15)

1. A method of data processing, comprising:
responding to the trigger operation aiming at a setting result control in the logic combination page, and outputting a setting result text sub-page independently displayed on the logic combination page; the setting result text sub-page comprises at least two subject texts in the original text;
if the selection operation aiming at the at least two subject texts in the set result text sub-page is responded, determining the selected at least one subject text as a result text;
responding to the trigger operation aiming at the condition setting control in the logic combination page, and outputting a condition setting text sub-page independently displayed on the logic combination page; the set condition text sub-page comprises a set condition text list for the result text; the topic texts in the setting condition text list belong to the at least two topic texts;
responding to the selection operation aiming at the setting condition text list, and generating a condition text according to at least one topic text selected in the setting condition text list; the logical composition page includes a logical composition control for the conditional text;
responding to the trigger operation aiming at the logic combination control, and creating a first conditional logic combination relation for the conditional text; the result text is used for being triggered to be displayed when the condition text meets the first condition logic combination relation.
2. The method of claim 1, wherein the logical composition controls comprise logical custom controls, logical or relational controls, and logical and relational controls; the first conditional logic combination relation comprises a conditional logic self-defining relation, a conditional logic OR relation and a conditional logic AND relation;
the response aims at the triggering operation of the logic combination control, and a first conditional logic combination relation is created for the conditional text, wherein the first conditional logic combination relation comprises the following steps:
if the trigger operation aiming at the logic custom control is responded, activating a logic custom area in the logic combination page;
responding to the logic input operation aiming at the logic self-defining area, and creating the conditional logic self-defining relation for the conditional text;
if the trigger operation aiming at the logic or relation control is responded, the condition logic or relation is established for the condition text;
and if the trigger operation aiming at the logic and relation control is responded, the condition logic and relation is established for the condition text.
3. The method of claim 2, wherein creating the conditional logical custom relationship for the conditional text in response to a logical input operation directed to the logical custom region comprises:
responding to the logic input operation aiming at the logic self-defining area, and displaying a self-defining logic text in the logic self-defining area;
determining the legality of the user-defined logic text according to the regular expression and the text quantity corresponding to the conditional text;
if the user-defined logic text belongs to an illegal text, displaying logic text illegal prompt information aiming at the user-defined logic text in the logic combination page;
and if the user-defined logic text belongs to a legal text, creating the conditional logic user-defined relation for the conditional text according to the user-defined logic text.
4. The method of claim 1, wherein determining the selected at least one topic text as a result text if the at least two topic texts in the set result text sub-page are responded to the selection operation comprises:
if the selection operation aiming at the at least two topic texts in the setting result text sub-page is responded, determining the selected at least one topic text as a result text to be confirmed;
acquiring a question text identifier corresponding to the result text to be confirmed, and determining the question text identifier corresponding to the result text to be confirmed as the question identifier to be confirmed;
comparing the title identification to be confirmed with the confirmed title identification; the confirmed question mark is used for representing a question text mark corresponding to the confirmed result text; the confirmed result text is a question text which is associated with a second condition logic combination relation;
and determining the result text to be confirmed as the result text according to the comparison result.
5. The method of claim 4, wherein the set result text sub-page comprises a first confirmation control;
determining the result text to be confirmed as the result text according to the comparison result, wherein the determining comprises the following steps:
if the question mark to be confirmed is different from the confirmed question mark, determining the result text to be confirmed as the result text;
if the confirmed question mark has a question mark which is the same as the question mark to be confirmed, determining the question mark to be confirmed which is the same as the confirmed question mark as a repeated question mark;
deleting the question text corresponding to the repeated question mark from the result text to be confirmed to obtain the result text;
and responding to the triggering operation aiming at the first confirmation control, canceling to display the setting result text sub-page, and adding the result text to a result text area in the logical combination page.
6. The method of claim 1, wherein outputting a set condition text sub-page independently displayed on the logical combination page in response to a trigger operation for a set condition control in the logical combination page comprises:
responding to the trigger operation aiming at the setting condition control in the logic combination page, and acquiring a question mark corresponding to the result text;
determining a subject text to be set with a condition from the at least two subject texts according to the subject identification corresponding to the result text;
generating the set condition text sub-page according to the question text to be set with the condition; the topic text in the setting condition text list is the topic text to be set;
and outputting the setting condition text sub-page independently displayed on the logic combination page.
7. The method according to claim 6, wherein the determining a topic text to be set with a condition from the at least two topic texts according to the topic identifier corresponding to the result text comprises:
acquiring a topic serial number corresponding to the topic identification of each topic text in the at least two topic texts;
determining the question mark corresponding to the result text as a result question mark, and acquiring a result question serial number corresponding to the result question mark;
and determining a minimum result topic sequence number from the result topic sequence numbers, filtering the topic text of which the topic sequence number is equal to or greater than the minimum result topic sequence number from the at least two topic texts, and determining the filtered topic text as the topic text to be set with the condition.
8. The method of claim 1, wherein the conditional text list comprises a topic text T i The title text T i Corresponding confirmation control K i Question text T i+1 And said topic text T i+1 Corresponding confirmation control K i+1 I is a positive integer and is less than the total number of the title texts in the setting condition text list;
the generating a conditional text from at least one topic text selected in the setting condition text list in response to the selection operation for the setting condition text list includes:
responding to the topic text T i Corresponding confirmation control K i Trigger operation of (2) to display the title text T i Adding the data to a condition set to be confirmed;
responding to the topic text T i+1 Corresponding confirmation control K i+1 Trigger operation of (2) to display the title text T i+1 Adding the condition to be confirmed into the condition set to be confirmed; the setting condition text list comprises a second confirmation control;
and responding to the triggering operation aiming at the second confirmation control, generating the condition text according to the condition set to be confirmed, canceling the display of the condition text subpage, and adding the condition text to a condition text area in the logic combination page.
9. The method according to claim 1, wherein the set condition text list comprises a title text list and a condition selection list; the title text list comprises a title text M i I is a positive integer and is less than or equal to the total number of topic texts in the topic text list;
the generating a conditional text from at least one topic text selected in the setting condition text list in response to the selection operation for the setting condition text list includes:
responding to the topic text M in the topic text list i Obtaining the title text M by the selection operation i The type of the subject to which it belongs; the topic texts in the topic text list belong to the at least two topic texts;
if the title text M i If the question type is a first question type, acquiring a first type control, and generating the condition selection list according to the first type control;
displaying the condition selection list, responding to the triggering operation aiming at the first type control in the condition selection list, and according to the title text M i And the triggered first type control generates the conditional text.
10. The method of claim 9, further comprising:
if the title text M i If the belonging topic type is a second topic type, acquiring the first type control and the second type control;
generating the condition selection list according to the first type control and the second type control;
and displaying the condition selection list, responding to the triggering operation aiming at the condition selection list, and generating the condition text according to the control triggered in the condition selection list.
11. The method of claim 10, wherein the set condition text list further comprises an option text list;
the response is to the trigger operation of the condition selection list, and the condition text is generated according to the control triggered in the condition selection list, and the method comprises the following steps:
if the trigger operation aiming at the first type control in the condition selection list is responded, the text M is selected according to the title i And a first type of control triggeredGenerating the condition text;
if the trigger operation of the second type control in the condition selection list is responded, the title text M is displayed i The option text list of (a); the option text list comprises at least two option texts;
in response to the selection operation of the at least two option texts in the option text list, determining at least one selected option text as a target option text;
according to the title text M i The triggered second type control and the target option text generate the condition text.
12. The method of claim 1, wherein the logical composition page comprises a save control, and wherein the original text comprises option texts respectively corresponding to the at least two topic texts;
the method further comprises the following steps:
responding to the trigger operation aiming at the storage control, and acquiring a result topic identification corresponding to the result text, a condition topic identification corresponding to a topic text in the condition text, and an option identification corresponding to an option text; the option text refers to a text corresponding to a title text in the condition text;
generating an answer logic file according to the first conditional logic combination relation, the result question mark corresponding to the result text, the conditional question mark corresponding to the question text in the conditional text and the option mark corresponding to the option text; and the answer logic file is used for indicating the answer terminal to display the result text indicated by the result question mark when the condition question mark selected by the answer terminal and the option mark meet the first condition logic combination relation.
13. The method of claim 1, wherein the set result text subpage comprises an end normal control and an end exception control;
the method further comprises the following steps:
if the trigger operation aiming at the ending normal control in the setting result text sub-page is responded, determining the normal ending text as the result text;
and if the trigger operation aiming at the abnormal ending control in the setting result text sub-page is responded, determining the abnormal ending text as the result text.
14. A computer device, comprising: a processor, memory, and a network interface;
the processor is connected to the memory and the network interface, wherein the network interface is configured to provide data communication functions, the memory is configured to store program code, and the processor is configured to call the program code to perform the steps of the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that it stores a computer program comprising program instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 13.
CN202011008967.6A 2020-09-23 2020-09-23 Data processing method, data processing equipment and computer readable storage medium Active CN112149393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011008967.6A CN112149393B (en) 2020-09-23 2020-09-23 Data processing method, data processing equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011008967.6A CN112149393B (en) 2020-09-23 2020-09-23 Data processing method, data processing equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112149393A CN112149393A (en) 2020-12-29
CN112149393B true CN112149393B (en) 2023-03-28

Family

ID=73897785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011008967.6A Active CN112149393B (en) 2020-09-23 2020-09-23 Data processing method, data processing equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112149393B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113033158B (en) * 2021-03-20 2022-01-18 广州快决测信息科技有限公司 Questionnaire display method, device and storage medium
CN113254730B (en) * 2021-04-23 2024-03-15 北京车智赢科技有限公司 Data searching method, computing device and readable medium
CN113094339B (en) * 2021-04-27 2022-04-22 腾讯科技(深圳)有限公司 File processing method, computer and readable storage medium
CN115906802B (en) * 2023-02-09 2023-08-22 成都数联云算科技有限公司 Method, device, equipment and medium for analyzing condition logic data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699973A (en) * 2015-03-19 2015-06-10 腾讯科技(深圳)有限公司 Method and device for controlling logic of questionnaires
CN105068980A (en) * 2015-08-07 2015-11-18 北京思特奇信息技术股份有限公司 Graphical display method and system for jump relationship among topics
CN110826302A (en) * 2019-11-07 2020-02-21 网之易信息技术(北京)有限公司 Questionnaire creating method, device, medium and electronic equipment
CN111381744A (en) * 2020-03-16 2020-07-07 京东方科技集团股份有限公司 Method, device and storage medium for establishing evaluation questionnaire

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070277097A1 (en) * 2006-05-25 2007-11-29 Erik Frederick Hennum Apparatus, system, and method for context-aware authoring transform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699973A (en) * 2015-03-19 2015-06-10 腾讯科技(深圳)有限公司 Method and device for controlling logic of questionnaires
CN105068980A (en) * 2015-08-07 2015-11-18 北京思特奇信息技术股份有限公司 Graphical display method and system for jump relationship among topics
CN110826302A (en) * 2019-11-07 2020-02-21 网之易信息技术(北京)有限公司 Questionnaire creating method, device, medium and electronic equipment
CN111381744A (en) * 2020-03-16 2020-07-07 京东方科技集团股份有限公司 Method, device and storage medium for establishing evaluation questionnaire

Also Published As

Publication number Publication date
CN112149393A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN112149393B (en) Data processing method, data processing equipment and computer readable storage medium
JP7093387B2 (en) Spreadsheet-based software application development
US8548997B1 (en) Discovery information management system
US20170357487A1 (en) Generation of an application from data
CN108197114B (en) Method and device for detecting table data, storage medium and electronic device
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
US20170277672A1 (en) Information processing device, information processing method, and computer program product
US20230237255A1 (en) Form generation method, apparatus, and device, and medium
US20160203142A1 (en) Information processing apparatus, information processing method and non-transitory computer readable information recording medium
CN109902670A (en) Data entry method and system
CN112328140B (en) Image input method, device, equipment and medium thereof
WO2016007178A1 (en) System and method for providing contextual analytics data
CN112597116A (en) Document sharing intelligent management system under autonomous controllable platform
US20220113847A1 (en) Online collaborative document processing method and device
CN115033436A (en) Page testing method and device, electronic equipment and storage medium
CN101799736A (en) Function real-time associative interactive system and method
CN111367819B (en) Code scanning and filtering method and device
KR20130126012A (en) Method and apparatusfor providing report of business intelligence
Ceballos Delgado et al. FADE: A forensic image generator for android device education
CN114356330A (en) Page configuration method and device, electronic equipment and storage medium
Swiecki et al. Designing an Interface for sharing quantitative ethnographic research data
KR101862178B1 (en) Method for customized posting and server implementing the same
CN108334621B (en) Database operation method, device, equipment and computer readable storage medium
CN114115833B (en) Automatic protocol audit code generation method and device
CN113934952B (en) Method and device for building page in building block mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant