@wg-npm/survey-response 0.5.170 → 0.5.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2312,7 +2312,9 @@ var script = Vue.extend({
|
|
|
2312
2312
|
survey.questions.forEach((item, index) => {
|
|
2313
2313
|
item.originalIndex = index;
|
|
2314
2314
|
item.surveyId = survey.id;
|
|
2315
|
-
item.
|
|
2315
|
+
if ("TEXT_TITLE" !== item.type) {
|
|
2316
|
+
item.header.number = number++;
|
|
2317
|
+
}
|
|
2316
2318
|
});
|
|
2317
2319
|
});
|
|
2318
2320
|
this.sortQuestions = _.flatMap(this.surveys, "questions");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-response",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.172",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@wg-npm/survey-core": "0.5.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
15
|
+
"@wg-npm/survey-core": "0.5.172",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.5.172",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"deepmerge": "^4.2.2",
|
|
19
19
|
"lodash": "^4.17.15",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@typescript-eslint/parser": "^3.6.0",
|
|
35
35
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
36
36
|
"@vue/eslint-config-typescript": "^5.0.2",
|
|
37
|
-
"@wg-npm/survey-core": "0.5.
|
|
38
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
37
|
+
"@wg-npm/survey-core": "0.5.172",
|
|
38
|
+
"@wg-npm/survey-service-api": "0.5.172",
|
|
39
39
|
"acorn": "^7.3.1",
|
|
40
40
|
"axios": "^0.19.2",
|
|
41
41
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -46,6 +46,7 @@ import QuestionTitle from "./question/question-title.vue";
|
|
|
46
46
|
import QuestionBody from "./question/question-body.vue";
|
|
47
47
|
import { Form } from "view-design";
|
|
48
48
|
import SurveyResponseMixin from "../mixins/survey-response-mixin";
|
|
49
|
+
import { QuestionType } from "@wg-npm/survey-core";
|
|
49
50
|
|
|
50
51
|
export default Vue.extend({
|
|
51
52
|
name: "MoreSurveyResponse",
|
|
@@ -100,7 +101,9 @@ export default Vue.extend({
|
|
|
100
101
|
survey.questions.forEach((item, index) => {
|
|
101
102
|
item.originalIndex = index;
|
|
102
103
|
item.surveyId = survey.id;
|
|
103
|
-
item.
|
|
104
|
+
if (QuestionType.TEXT_TITLE !== item.type) {
|
|
105
|
+
item.header.number = number++;
|
|
106
|
+
}
|
|
104
107
|
});
|
|
105
108
|
});
|
|
106
109
|
this.sortQuestions = _.flatMap(this.surveys, "questions");
|