@wg-npm/survey-creator 0.3.47 → 0.3.377-8.develop
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.
- package/dist/survey-creator.esm.js +793 -652
- package/package.json +5 -5
- package/src/components/common/question/evaluation/expr-if.vue +55 -30
- package/src/components/editor/forms/evaluation/expr/auto.vue +1 -1
- package/src/components/editor/forms/evaluation/expr/condition.vue +61 -48
- package/src/components/editor/forms/evaluation/expr/if.vue +252 -164
- package/src/components/editor/forms/evaluation/expr/score.vue +135 -0
- package/src/locale/index.ts +1 -1
- package/src/locale/lang/en-US.ts +174 -170
- package/src/locale/lang/zh-CN.ts +174 -171
|
@@ -6,178 +6,183 @@ import draggable from 'vuedraggable';
|
|
|
6
6
|
|
|
7
7
|
var defaultLang = {
|
|
8
8
|
survey_creator: {
|
|
9
|
-
locale:
|
|
9
|
+
locale: "zh-CN",
|
|
10
10
|
common: {
|
|
11
|
-
back: "
|
|
12
|
-
save: "
|
|
13
|
-
copy: "
|
|
14
|
-
cancel: "
|
|
15
|
-
operation: "
|
|
16
|
-
delete: "
|
|
11
|
+
back: "返回",
|
|
12
|
+
save: "保存",
|
|
13
|
+
copy: "复制",
|
|
14
|
+
cancel: "取消",
|
|
15
|
+
operation: "操作",
|
|
16
|
+
delete: "删除",
|
|
17
17
|
languages: {
|
|
18
18
|
"zh-CN": "简体中文",
|
|
19
19
|
"zh-TW": "繁体中文",
|
|
20
|
-
"en-US": "English"
|
|
20
|
+
"en-US": "English",
|
|
21
21
|
},
|
|
22
22
|
layout: {
|
|
23
|
-
HORIZONTAL: "
|
|
24
|
-
VERTICAL: "
|
|
23
|
+
HORIZONTAL: "水平",
|
|
24
|
+
VERTICAL: "垂直",
|
|
25
25
|
},
|
|
26
26
|
settings: {
|
|
27
|
-
translate: "
|
|
28
|
-
preview: "
|
|
27
|
+
translate: "多语言翻译",
|
|
28
|
+
preview: "预览",
|
|
29
29
|
},
|
|
30
30
|
tips: {
|
|
31
|
-
edit: "
|
|
32
|
-
copy: "
|
|
33
|
-
delete: "
|
|
34
|
-
please_input_answer: "
|
|
31
|
+
edit: "编辑",
|
|
32
|
+
copy: "复制",
|
|
33
|
+
delete: "删除",
|
|
34
|
+
please_input_answer: "请输入回答",
|
|
35
35
|
},
|
|
36
36
|
tab: {
|
|
37
|
-
question_setting: "
|
|
38
|
-
language: "
|
|
39
|
-
}
|
|
37
|
+
question_setting: "题目设置",
|
|
38
|
+
language: "多语言翻译",
|
|
39
|
+
},
|
|
40
40
|
},
|
|
41
41
|
survey: {
|
|
42
|
-
question_count: "
|
|
43
|
-
total_score: "
|
|
44
|
-
layout: "
|
|
42
|
+
question_count: "题目数",
|
|
43
|
+
total_score: "总配分",
|
|
44
|
+
layout: "布局",
|
|
45
45
|
},
|
|
46
46
|
question: {
|
|
47
|
-
no_data: "
|
|
48
|
-
create: "
|
|
49
|
-
max_score: "
|
|
50
|
-
star_single: "
|
|
51
|
-
star_multi_prefix: "
|
|
52
|
-
star_multi_suffix: "
|
|
53
|
-
type: "
|
|
47
|
+
no_data: "还未创建题目",
|
|
48
|
+
create: "新增题目",
|
|
49
|
+
max_score: "最高分值:",
|
|
50
|
+
star_single: "此题计星",
|
|
51
|
+
star_multi_prefix: "当选择",
|
|
52
|
+
star_multi_suffix: "项及以上时计星",
|
|
53
|
+
type: "题型",
|
|
54
54
|
types: {
|
|
55
|
-
SINGLE_SELECTION: "
|
|
56
|
-
MULTI_SELECTION: "
|
|
57
|
-
FILL_BLANK: "
|
|
58
|
-
SHORT_ANSWER: "
|
|
59
|
-
MATRIX: "
|
|
60
|
-
TEXT_TITLE: "
|
|
61
|
-
EVALUATION: "
|
|
55
|
+
SINGLE_SELECTION: "单选题",
|
|
56
|
+
MULTI_SELECTION: "多选题",
|
|
57
|
+
FILL_BLANK: "填空题",
|
|
58
|
+
SHORT_ANSWER: "简答题",
|
|
59
|
+
MATRIX: "分数量表",
|
|
60
|
+
TEXT_TITLE: "文字说明",
|
|
61
|
+
EVALUATION: "统计题",
|
|
62
62
|
},
|
|
63
|
-
optional: "
|
|
64
|
-
sub_questions:
|
|
65
|
-
score: "
|
|
66
|
-
scores: "
|
|
67
|
-
questionRequired: "
|
|
68
|
-
titleRequiredTip: "
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
63
|
+
optional: "选项",
|
|
64
|
+
sub_questions: "子题",
|
|
65
|
+
score: "分值",
|
|
66
|
+
scores: "分",
|
|
67
|
+
questionRequired: "此题必填",
|
|
68
|
+
titleRequiredTip: "请填写题目名称",
|
|
69
|
+
textTitleRequiredTip: "请填写文字说明",
|
|
70
|
+
scoreRequiredTip: "分值不能为空",
|
|
71
|
+
subQuestionRequiredTip: "子題不能为空",
|
|
72
|
+
optionalRequiredTip: "选项不能为空",
|
|
73
|
+
commitRequiredTip: "描述不能为空",
|
|
74
|
+
levelRequiredTip: "等级不能为空",
|
|
75
|
+
addItem: "新增子题",
|
|
76
|
+
noQuestion: "还未添加题目!",
|
|
77
|
+
noQuestionTip: "新增题目请按右上角「新增题目按钮」",
|
|
78
|
+
wordCountLimit: "字数限制",
|
|
79
|
+
multi_selection: "多选题",
|
|
80
|
+
single_selection: "单选题",
|
|
81
|
+
remote_selection: "单选题",
|
|
82
|
+
short_answer: "简答题",
|
|
83
|
+
fill_blank: "填空题",
|
|
84
|
+
matrix: "分数量表",
|
|
85
|
+
text_title: "文字说明",
|
|
86
|
+
group: "题组",
|
|
87
|
+
level: "量表范围",
|
|
88
|
+
matrixLevel1: "非常不同意",
|
|
89
|
+
matrixLevel2: "不同意",
|
|
90
|
+
matrixLevel3: "部分同意",
|
|
91
|
+
matrixLevel4: "同意",
|
|
92
|
+
matrixLevel5: "非常同意",
|
|
92
93
|
scoreErrorTip: "分值只能填写1000以内两位小数",
|
|
93
|
-
notEmpty: "
|
|
94
|
-
pleaseEnter: "
|
|
95
|
-
wordsLimit: "
|
|
96
|
-
noDesc: "
|
|
97
|
-
noSubDesc: "
|
|
98
|
-
noQuestionDesc: "
|
|
99
|
-
unSave: "
|
|
100
|
-
surveyConfirmContent: "
|
|
101
|
-
unSaveConfirm: "
|
|
102
|
-
scoringEnabled: "
|
|
103
|
-
starEnabled: "
|
|
104
|
-
optionalStarTip: "
|
|
105
|
-
starLeastOneTip: "
|
|
106
|
-
starMinCountPrefix: "
|
|
107
|
-
starMinCountSuffix: "
|
|
108
|
-
maxScore: "
|
|
109
|
-
enableMultiSelect: "
|
|
94
|
+
notEmpty: "不能为空",
|
|
95
|
+
pleaseEnter: "请填写",
|
|
96
|
+
wordsLimit: "字数限制:",
|
|
97
|
+
noDesc: "无选项描述",
|
|
98
|
+
noSubDesc: "暂无子题描述",
|
|
99
|
+
noQuestionDesc: "暂无题目描述",
|
|
100
|
+
unSave: "未保存",
|
|
101
|
+
surveyConfirmContent: "确认要提交?提交后问卷即锁定不可再修改!",
|
|
102
|
+
unSaveConfirm: "有未保存的题目,确定要返回吗?",
|
|
103
|
+
scoringEnabled: "此题占分",
|
|
104
|
+
starEnabled: "此题计星",
|
|
105
|
+
optionalStarTip: "此项得星",
|
|
106
|
+
starLeastOneTip: "至少一项得星",
|
|
107
|
+
starMinCountPrefix: "当选择",
|
|
108
|
+
starMinCountSuffix: "项及以上时计星",
|
|
109
|
+
maxScore: "最高分值:",
|
|
110
|
+
enableMultiSelect: "可复选",
|
|
110
111
|
evaluation: {
|
|
111
112
|
level: {
|
|
112
|
-
"1": "
|
|
113
|
-
"2": "
|
|
114
|
-
"3": "
|
|
115
|
-
"4": "
|
|
116
|
-
"5": "
|
|
113
|
+
"1": "好",
|
|
114
|
+
"2": "较好",
|
|
115
|
+
"3": "一般",
|
|
116
|
+
"4": "较差",
|
|
117
|
+
"5": "差",
|
|
117
118
|
},
|
|
118
119
|
type: {
|
|
119
|
-
STAR: "
|
|
120
|
-
EXPR: "
|
|
120
|
+
STAR: "计星",
|
|
121
|
+
EXPR: "条件判断",
|
|
121
122
|
},
|
|
122
|
-
levelNameLabel: "
|
|
123
|
-
levelLabel: "
|
|
124
|
-
selectedType: "
|
|
123
|
+
levelNameLabel: "评价等级",
|
|
124
|
+
levelLabel: "评价标准",
|
|
125
|
+
selectedType: "统计方式",
|
|
125
126
|
desc: {
|
|
126
|
-
atPoint: "{0}
|
|
127
|
-
inRange: "{0}-{1}
|
|
128
|
-
outOfRange: "{0}
|
|
127
|
+
atPoint: "{0}星",
|
|
128
|
+
inRange: "{0}-{1}星",
|
|
129
|
+
outOfRange: "{0}星以上",
|
|
129
130
|
},
|
|
130
131
|
condition: {
|
|
131
|
-
if: "
|
|
132
|
-
else: "
|
|
133
|
-
add_if_template: "
|
|
134
|
-
requirements: "
|
|
132
|
+
if: "如果",
|
|
133
|
+
else: "否则",
|
|
134
|
+
add_if_template: "添加如果模板",
|
|
135
|
+
requirements: "满足条件",
|
|
136
|
+
score_condition_title: "总分数范围为",
|
|
135
137
|
type: {
|
|
136
|
-
ASSIGN: "
|
|
137
|
-
AUTO: "
|
|
138
|
+
ASSIGN: "题目范围为__的结果为__的数量__",
|
|
139
|
+
AUTO: "题目范围为__的结果为__",
|
|
140
|
+
SCORE: "总分数范围为__",
|
|
138
141
|
},
|
|
139
|
-
evaluation_label: "
|
|
140
|
-
evaluation_require_tip: "
|
|
141
|
-
question: "
|
|
142
|
-
question_scope: "
|
|
143
|
-
question_result: "
|
|
144
|
-
question_count: "
|
|
145
|
-
choose_result: "
|
|
146
|
-
operator: "
|
|
147
|
-
other: "
|
|
148
|
-
assign_template: `{0}
|
|
149
|
-
auto_template: `{0}
|
|
150
|
-
|
|
142
|
+
evaluation_label: "设置总体评价为",
|
|
143
|
+
evaluation_require_tip: "总体评价不能为空",
|
|
144
|
+
question: "题目",
|
|
145
|
+
question_scope: "题目范围",
|
|
146
|
+
question_result: "的结果为",
|
|
147
|
+
question_count: "的数量",
|
|
148
|
+
choose_result: "选择结果",
|
|
149
|
+
operator: "运算符",
|
|
150
|
+
other: "其他",
|
|
151
|
+
assign_template: `{0} 项为 {1} {2} {3}项`,
|
|
152
|
+
auto_template: `{0} 项为 {1}`,
|
|
153
|
+
score_template: `总分数范围为: {0}分{1}, {2}分`,
|
|
154
|
+
},
|
|
151
155
|
},
|
|
152
156
|
},
|
|
153
157
|
page: {
|
|
154
|
-
question: "
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
question: "题目",
|
|
159
|
+
textTitle: "说明",
|
|
160
|
+
subQuestion: "子题",
|
|
161
|
+
matrixQuestion: "主题标题",
|
|
162
|
+
count: "题目数",
|
|
163
|
+
arrangement: "选项排列",
|
|
164
|
+
horizontal: "横向",
|
|
165
|
+
vertical: "纵向",
|
|
166
|
+
totalScore: "总配分",
|
|
162
167
|
},
|
|
163
168
|
translator: {
|
|
164
|
-
save: "
|
|
165
|
-
cancel: "
|
|
169
|
+
save: "保存",
|
|
170
|
+
cancel: "取消",
|
|
166
171
|
table: {
|
|
167
|
-
header_type: "
|
|
168
|
-
header_primary_name: "
|
|
172
|
+
header_type: "类型",
|
|
173
|
+
header_primary_name: "(默认语言)",
|
|
169
174
|
header_zhCn: "简体中文",
|
|
170
175
|
header_enUs: "English",
|
|
171
176
|
header_zhTw: "繁体中文",
|
|
172
|
-
}
|
|
177
|
+
},
|
|
173
178
|
},
|
|
174
179
|
message: {
|
|
175
|
-
saveSuccess: "
|
|
176
|
-
saveFailed: "
|
|
177
|
-
surveyLocaleNoSettingCompleted: "
|
|
178
|
-
noSettingLocale: "
|
|
179
|
-
}
|
|
180
|
-
}
|
|
180
|
+
saveSuccess: "保存成功",
|
|
181
|
+
saveFailed: "保存失败",
|
|
182
|
+
surveyLocaleNoSettingCompleted: "问卷题目翻译不完全,是否继续?",
|
|
183
|
+
noSettingLocale: "未设置多国语言!",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
181
186
|
};
|
|
182
187
|
|
|
183
188
|
let lang = defaultLang;
|
|
@@ -621,7 +626,7 @@ const questionTypes = [
|
|
|
621
626
|
"TEXT_TITLE",
|
|
622
627
|
"EVALUATION",
|
|
623
628
|
];
|
|
624
|
-
var script$
|
|
629
|
+
var script$H = Vue.extend({
|
|
625
630
|
name: "create-question-dropdown",
|
|
626
631
|
mixins: [LocaleMixin],
|
|
627
632
|
inject: ["$rootComponent"],
|
|
@@ -714,20 +719,20 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
714
719
|
}
|
|
715
720
|
|
|
716
721
|
/* script */
|
|
717
|
-
const __vue_script__$
|
|
722
|
+
const __vue_script__$H = script$H;
|
|
718
723
|
|
|
719
724
|
/* template */
|
|
720
|
-
var __vue_render__$
|
|
721
|
-
var __vue_staticRenderFns__$
|
|
725
|
+
var __vue_render__$H = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',{attrs:{"transfer":true}},[_c('Button',{attrs:{"icon":"md-add","type":"primary"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.create')))]),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.questionTypes),function(questionType){return _c('DropdownItem',{key:questionType,staticClass:"dropdown_item",nativeOn:{"click":function($event){return _vm.onCreate(questionType)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.question.types." + questionType))))])}),1)],1)};
|
|
726
|
+
var __vue_staticRenderFns__$H = [];
|
|
722
727
|
|
|
723
728
|
/* style */
|
|
724
|
-
const __vue_inject_styles__$
|
|
729
|
+
const __vue_inject_styles__$H = undefined;
|
|
725
730
|
/* scoped */
|
|
726
|
-
const __vue_scope_id__$
|
|
731
|
+
const __vue_scope_id__$H = undefined;
|
|
727
732
|
/* module identifier */
|
|
728
|
-
const __vue_module_identifier__$
|
|
733
|
+
const __vue_module_identifier__$H = undefined;
|
|
729
734
|
/* functional template */
|
|
730
|
-
const __vue_is_functional_template__$
|
|
735
|
+
const __vue_is_functional_template__$H = false;
|
|
731
736
|
/* style inject */
|
|
732
737
|
|
|
733
738
|
/* style inject SSR */
|
|
@@ -736,22 +741,22 @@ var __vue_staticRenderFns__$G = [];
|
|
|
736
741
|
|
|
737
742
|
|
|
738
743
|
|
|
739
|
-
const __vue_component__$
|
|
740
|
-
{ render: __vue_render__$
|
|
741
|
-
__vue_inject_styles__$
|
|
742
|
-
__vue_script__$
|
|
743
|
-
__vue_scope_id__$
|
|
744
|
-
__vue_is_functional_template__$
|
|
745
|
-
__vue_module_identifier__$
|
|
744
|
+
const __vue_component__$H = /*#__PURE__*/normalizeComponent(
|
|
745
|
+
{ render: __vue_render__$H, staticRenderFns: __vue_staticRenderFns__$H },
|
|
746
|
+
__vue_inject_styles__$H,
|
|
747
|
+
__vue_script__$H,
|
|
748
|
+
__vue_scope_id__$H,
|
|
749
|
+
__vue_is_functional_template__$H,
|
|
750
|
+
__vue_module_identifier__$H,
|
|
746
751
|
false,
|
|
747
752
|
undefined,
|
|
748
753
|
undefined,
|
|
749
754
|
undefined
|
|
750
755
|
);
|
|
751
756
|
|
|
752
|
-
var CreateQuestionDropdown = __vue_component__$
|
|
757
|
+
var CreateQuestionDropdown = __vue_component__$H;
|
|
753
758
|
|
|
754
|
-
var script$
|
|
759
|
+
var script$G = Vue.extend({
|
|
755
760
|
name: "change-language",
|
|
756
761
|
mixins: [LocaleMixin],
|
|
757
762
|
inject: ["$rootComponent"],
|
|
@@ -776,20 +781,20 @@ var script$F = Vue.extend({
|
|
|
776
781
|
});
|
|
777
782
|
|
|
778
783
|
/* script */
|
|
779
|
-
const __vue_script__$
|
|
784
|
+
const __vue_script__$G = script$G;
|
|
780
785
|
|
|
781
786
|
/* template */
|
|
782
|
-
var __vue_render__$
|
|
783
|
-
var __vue_staticRenderFns__$
|
|
787
|
+
var __vue_render__$G = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',[_c('Button',{attrs:{"type":"primary"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.common.languages." + (this.language))))+"\n "),_c('Icon',{attrs:{"type":"ios-arrow-down"}})],1),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.languages),function(language){return _c('DropdownItem',{key:language,attrs:{"transfer":true},nativeOn:{"click":function($event){return _vm.onChangeLanguage(language)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.common.languages." + language))))])}),1)],1)};
|
|
788
|
+
var __vue_staticRenderFns__$G = [];
|
|
784
789
|
|
|
785
790
|
/* style */
|
|
786
|
-
const __vue_inject_styles__$
|
|
791
|
+
const __vue_inject_styles__$G = undefined;
|
|
787
792
|
/* scoped */
|
|
788
|
-
const __vue_scope_id__$
|
|
793
|
+
const __vue_scope_id__$G = undefined;
|
|
789
794
|
/* module identifier */
|
|
790
|
-
const __vue_module_identifier__$
|
|
795
|
+
const __vue_module_identifier__$G = undefined;
|
|
791
796
|
/* functional template */
|
|
792
|
-
const __vue_is_functional_template__$
|
|
797
|
+
const __vue_is_functional_template__$G = false;
|
|
793
798
|
/* style inject */
|
|
794
799
|
|
|
795
800
|
/* style inject SSR */
|
|
@@ -798,22 +803,22 @@ var __vue_staticRenderFns__$F = [];
|
|
|
798
803
|
|
|
799
804
|
|
|
800
805
|
|
|
801
|
-
const __vue_component__$
|
|
802
|
-
{ render: __vue_render__$
|
|
803
|
-
__vue_inject_styles__$
|
|
804
|
-
__vue_script__$
|
|
805
|
-
__vue_scope_id__$
|
|
806
|
-
__vue_is_functional_template__$
|
|
807
|
-
__vue_module_identifier__$
|
|
806
|
+
const __vue_component__$G = /*#__PURE__*/normalizeComponent(
|
|
807
|
+
{ render: __vue_render__$G, staticRenderFns: __vue_staticRenderFns__$G },
|
|
808
|
+
__vue_inject_styles__$G,
|
|
809
|
+
__vue_script__$G,
|
|
810
|
+
__vue_scope_id__$G,
|
|
811
|
+
__vue_is_functional_template__$G,
|
|
812
|
+
__vue_module_identifier__$G,
|
|
808
813
|
false,
|
|
809
814
|
undefined,
|
|
810
815
|
undefined,
|
|
811
816
|
undefined
|
|
812
817
|
);
|
|
813
818
|
|
|
814
|
-
var ChangeLanguage = __vue_component__$
|
|
819
|
+
var ChangeLanguage = __vue_component__$G;
|
|
815
820
|
|
|
816
|
-
var script$
|
|
821
|
+
var script$F = Vue.extend({
|
|
817
822
|
name: 'toolbar',
|
|
818
823
|
mixins: [LocaleMixin],
|
|
819
824
|
inject: ['$rootComponent'],
|
|
@@ -852,20 +857,20 @@ var script$E = Vue.extend({
|
|
|
852
857
|
});
|
|
853
858
|
|
|
854
859
|
/* script */
|
|
855
|
-
const __vue_script__$
|
|
860
|
+
const __vue_script__$F = script$F;
|
|
856
861
|
|
|
857
862
|
/* template */
|
|
858
|
-
var __vue_render__$
|
|
859
|
-
var __vue_staticRenderFns__$
|
|
863
|
+
var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"toolbar-wrapper",attrs:{"type":"flex","justify":"end","align":"middle","gutter":20}},[(_vm.preview)?_c('Col',[_c('Button',{attrs:{"icon":"ios-search","type":"primary"},on:{"click":this.$rootComponent.onPreview}},[_vm._v(_vm._s(_vm.t('survey_creator.common.settings.preview'))+"\n ")])],1):_vm._e(),_vm._v(" "),(_vm.changeLanguage)?_c('Col',[_c('change-language',{attrs:{"languages":_vm.survey.options.languages}})],1):_vm._e()],1)};
|
|
864
|
+
var __vue_staticRenderFns__$F = [];
|
|
860
865
|
|
|
861
866
|
/* style */
|
|
862
|
-
const __vue_inject_styles__$
|
|
867
|
+
const __vue_inject_styles__$F = undefined;
|
|
863
868
|
/* scoped */
|
|
864
|
-
const __vue_scope_id__$
|
|
869
|
+
const __vue_scope_id__$F = undefined;
|
|
865
870
|
/* module identifier */
|
|
866
|
-
const __vue_module_identifier__$
|
|
871
|
+
const __vue_module_identifier__$F = undefined;
|
|
867
872
|
/* functional template */
|
|
868
|
-
const __vue_is_functional_template__$
|
|
873
|
+
const __vue_is_functional_template__$F = false;
|
|
869
874
|
/* style inject */
|
|
870
875
|
|
|
871
876
|
/* style inject SSR */
|
|
@@ -874,22 +879,22 @@ var __vue_staticRenderFns__$E = [];
|
|
|
874
879
|
|
|
875
880
|
|
|
876
881
|
|
|
877
|
-
const __vue_component__$
|
|
878
|
-
{ render: __vue_render__$
|
|
879
|
-
__vue_inject_styles__$
|
|
880
|
-
__vue_script__$
|
|
881
|
-
__vue_scope_id__$
|
|
882
|
-
__vue_is_functional_template__$
|
|
883
|
-
__vue_module_identifier__$
|
|
882
|
+
const __vue_component__$F = /*#__PURE__*/normalizeComponent(
|
|
883
|
+
{ render: __vue_render__$F, staticRenderFns: __vue_staticRenderFns__$F },
|
|
884
|
+
__vue_inject_styles__$F,
|
|
885
|
+
__vue_script__$F,
|
|
886
|
+
__vue_scope_id__$F,
|
|
887
|
+
__vue_is_functional_template__$F,
|
|
888
|
+
__vue_module_identifier__$F,
|
|
884
889
|
false,
|
|
885
890
|
undefined,
|
|
886
891
|
undefined,
|
|
887
892
|
undefined
|
|
888
893
|
);
|
|
889
894
|
|
|
890
|
-
var Toolbar = __vue_component__$
|
|
895
|
+
var Toolbar = __vue_component__$F;
|
|
891
896
|
|
|
892
|
-
var script$
|
|
897
|
+
var script$E = Vue.extend({
|
|
893
898
|
name: "question-title",
|
|
894
899
|
components: { Icon },
|
|
895
900
|
mixins: [LocaleMixin],
|
|
@@ -918,20 +923,20 @@ var script$D = Vue.extend({
|
|
|
918
923
|
});
|
|
919
924
|
|
|
920
925
|
/* script */
|
|
921
|
-
const __vue_script__$
|
|
926
|
+
const __vue_script__$E = script$E;
|
|
922
927
|
|
|
923
928
|
/* template */
|
|
924
|
-
var __vue_render__$
|
|
925
|
-
var __vue_staticRenderFns__$
|
|
929
|
+
var __vue_render__$E = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question-title"},[_c('label',{staticClass:"star"},[_vm._v(_vm._s(_vm.question.options.required ? '*' : ''))]),_vm._v(" "),(_vm.question.header.number)?_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+".")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(_vm.question.header.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"options-explain"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.maxScore)+")")]):_vm._e(),_vm._v(" "),(_vm.haveStar)?_c('span',{staticClass:"options-explain"},[(_vm.isSingleSelection)?_c('span',[_vm._v("\n ("+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1),_vm._v(")\n ")]):_c('span',[_vm._v("\n (\n "+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.star_multi_prefix", _vm.$rootComponent.currentLanguage))+"\n "+_vm._s(_vm.question.options.starMinCount)+"\n "+_vm._s(_vm.t("survey_creator.question.star_multi_suffix", _vm.$rootComponent.currentLanguage))+"\n )\n ")],1)]):_vm._e()])};
|
|
930
|
+
var __vue_staticRenderFns__$E = [];
|
|
926
931
|
|
|
927
932
|
/* style */
|
|
928
|
-
const __vue_inject_styles__$
|
|
933
|
+
const __vue_inject_styles__$E = undefined;
|
|
929
934
|
/* scoped */
|
|
930
|
-
const __vue_scope_id__$
|
|
935
|
+
const __vue_scope_id__$E = undefined;
|
|
931
936
|
/* module identifier */
|
|
932
|
-
const __vue_module_identifier__$
|
|
937
|
+
const __vue_module_identifier__$E = undefined;
|
|
933
938
|
/* functional template */
|
|
934
|
-
const __vue_is_functional_template__$
|
|
939
|
+
const __vue_is_functional_template__$E = false;
|
|
935
940
|
/* style inject */
|
|
936
941
|
|
|
937
942
|
/* style inject SSR */
|
|
@@ -940,22 +945,22 @@ var __vue_staticRenderFns__$D = [];
|
|
|
940
945
|
|
|
941
946
|
|
|
942
947
|
|
|
943
|
-
const __vue_component__$
|
|
944
|
-
{ render: __vue_render__$
|
|
945
|
-
__vue_inject_styles__$
|
|
946
|
-
__vue_script__$
|
|
947
|
-
__vue_scope_id__$
|
|
948
|
-
__vue_is_functional_template__$
|
|
949
|
-
__vue_module_identifier__$
|
|
948
|
+
const __vue_component__$E = /*#__PURE__*/normalizeComponent(
|
|
949
|
+
{ render: __vue_render__$E, staticRenderFns: __vue_staticRenderFns__$E },
|
|
950
|
+
__vue_inject_styles__$E,
|
|
951
|
+
__vue_script__$E,
|
|
952
|
+
__vue_scope_id__$E,
|
|
953
|
+
__vue_is_functional_template__$E,
|
|
954
|
+
__vue_module_identifier__$E,
|
|
950
955
|
false,
|
|
951
956
|
undefined,
|
|
952
957
|
undefined,
|
|
953
958
|
undefined
|
|
954
959
|
);
|
|
955
960
|
|
|
956
|
-
var QuestionTitle = __vue_component__$
|
|
961
|
+
var QuestionTitle = __vue_component__$E;
|
|
957
962
|
|
|
958
|
-
var script$
|
|
963
|
+
var script$D = Vue.extend({
|
|
959
964
|
name: "clickable-icon",
|
|
960
965
|
components: { Tooltip, Icon },
|
|
961
966
|
props: {
|
|
@@ -1037,46 +1042,46 @@ function addStyle(id, css) {
|
|
|
1037
1042
|
}
|
|
1038
1043
|
|
|
1039
1044
|
/* script */
|
|
1040
|
-
const __vue_script__$
|
|
1045
|
+
const __vue_script__$D = script$D;
|
|
1041
1046
|
|
|
1042
1047
|
/* template */
|
|
1043
|
-
var __vue_render__$
|
|
1044
|
-
var __vue_staticRenderFns__$
|
|
1048
|
+
var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tooltip)?_c('Tooltip',{attrs:{"content":_vm.tooltip,"transfer":true}},[_c('span',{staticClass:"icon-button hover-able",on:{"click":_vm.click}},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size}})],1)]):_c('span',{staticClass:"icon-button hover-able"},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size},on:{"click":_vm.click}})],1)};
|
|
1049
|
+
var __vue_staticRenderFns__$D = [];
|
|
1045
1050
|
|
|
1046
1051
|
/* style */
|
|
1047
|
-
const __vue_inject_styles__$
|
|
1052
|
+
const __vue_inject_styles__$D = function (inject) {
|
|
1048
1053
|
if (!inject) return
|
|
1049
1054
|
inject("data-v-6e22f2ee_0", { source: ".icon-button{cursor:pointer;line-height:1.5}", map: undefined, media: undefined });
|
|
1050
1055
|
|
|
1051
1056
|
};
|
|
1052
1057
|
/* scoped */
|
|
1053
|
-
const __vue_scope_id__$
|
|
1058
|
+
const __vue_scope_id__$D = undefined;
|
|
1054
1059
|
/* module identifier */
|
|
1055
|
-
const __vue_module_identifier__$
|
|
1060
|
+
const __vue_module_identifier__$D = undefined;
|
|
1056
1061
|
/* functional template */
|
|
1057
|
-
const __vue_is_functional_template__$
|
|
1062
|
+
const __vue_is_functional_template__$D = false;
|
|
1058
1063
|
/* style inject SSR */
|
|
1059
1064
|
|
|
1060
1065
|
/* style inject shadow dom */
|
|
1061
1066
|
|
|
1062
1067
|
|
|
1063
1068
|
|
|
1064
|
-
const __vue_component__$
|
|
1065
|
-
{ render: __vue_render__$
|
|
1066
|
-
__vue_inject_styles__$
|
|
1067
|
-
__vue_script__$
|
|
1068
|
-
__vue_scope_id__$
|
|
1069
|
-
__vue_is_functional_template__$
|
|
1070
|
-
__vue_module_identifier__$
|
|
1069
|
+
const __vue_component__$D = /*#__PURE__*/normalizeComponent(
|
|
1070
|
+
{ render: __vue_render__$D, staticRenderFns: __vue_staticRenderFns__$D },
|
|
1071
|
+
__vue_inject_styles__$D,
|
|
1072
|
+
__vue_script__$D,
|
|
1073
|
+
__vue_scope_id__$D,
|
|
1074
|
+
__vue_is_functional_template__$D,
|
|
1075
|
+
__vue_module_identifier__$D,
|
|
1071
1076
|
false,
|
|
1072
1077
|
createInjector,
|
|
1073
1078
|
undefined,
|
|
1074
1079
|
undefined
|
|
1075
1080
|
);
|
|
1076
1081
|
|
|
1077
|
-
var ClickableIcon = __vue_component__$
|
|
1082
|
+
var ClickableIcon = __vue_component__$D;
|
|
1078
1083
|
|
|
1079
|
-
var script$
|
|
1084
|
+
var script$C = Vue.extend({
|
|
1080
1085
|
name: "editor-question-toolbar",
|
|
1081
1086
|
components: { Row, Col, Icon, ClickableIcon },
|
|
1082
1087
|
mixins: [LocaleMixin],
|
|
@@ -1111,20 +1116,20 @@ var script$B = Vue.extend({
|
|
|
1111
1116
|
});
|
|
1112
1117
|
|
|
1113
1118
|
/* script */
|
|
1114
|
-
const __vue_script__$
|
|
1119
|
+
const __vue_script__$C = script$C;
|
|
1115
1120
|
|
|
1116
1121
|
/* template */
|
|
1117
|
-
var __vue_render__$
|
|
1118
|
-
var __vue_staticRenderFns__$
|
|
1122
|
+
var __vue_render__$C = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"editor-question-toolbar",attrs:{"type":"flex","justify":"center","align":"middle"}},[(_vm.edit)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.edit'),"type":"ios-create-outline"},on:{"click":_vm.onEdit}})],1):_vm._e(),_vm._v(" "),(_vm.copy)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.copy'),"type":"ios-copy-outline"},on:{"click":_vm.onCopy}})],1):_vm._e(),_vm._v(" "),(_vm.enableDelete)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.delete'),"type":"ios-trash-outline"},on:{"click":_vm.onDelete}})],1):_vm._e()],1)};
|
|
1123
|
+
var __vue_staticRenderFns__$C = [];
|
|
1119
1124
|
|
|
1120
1125
|
/* style */
|
|
1121
|
-
const __vue_inject_styles__$
|
|
1126
|
+
const __vue_inject_styles__$C = undefined;
|
|
1122
1127
|
/* scoped */
|
|
1123
|
-
const __vue_scope_id__$
|
|
1128
|
+
const __vue_scope_id__$C = undefined;
|
|
1124
1129
|
/* module identifier */
|
|
1125
|
-
const __vue_module_identifier__$
|
|
1130
|
+
const __vue_module_identifier__$C = undefined;
|
|
1126
1131
|
/* functional template */
|
|
1127
|
-
const __vue_is_functional_template__$
|
|
1132
|
+
const __vue_is_functional_template__$C = false;
|
|
1128
1133
|
/* style inject */
|
|
1129
1134
|
|
|
1130
1135
|
/* style inject SSR */
|
|
@@ -1133,22 +1138,22 @@ var __vue_staticRenderFns__$B = [];
|
|
|
1133
1138
|
|
|
1134
1139
|
|
|
1135
1140
|
|
|
1136
|
-
const __vue_component__$
|
|
1137
|
-
{ render: __vue_render__$
|
|
1138
|
-
__vue_inject_styles__$
|
|
1139
|
-
__vue_script__$
|
|
1140
|
-
__vue_scope_id__$
|
|
1141
|
-
__vue_is_functional_template__$
|
|
1142
|
-
__vue_module_identifier__$
|
|
1141
|
+
const __vue_component__$C = /*#__PURE__*/normalizeComponent(
|
|
1142
|
+
{ render: __vue_render__$C, staticRenderFns: __vue_staticRenderFns__$C },
|
|
1143
|
+
__vue_inject_styles__$C,
|
|
1144
|
+
__vue_script__$C,
|
|
1145
|
+
__vue_scope_id__$C,
|
|
1146
|
+
__vue_is_functional_template__$C,
|
|
1147
|
+
__vue_module_identifier__$C,
|
|
1143
1148
|
false,
|
|
1144
1149
|
undefined,
|
|
1145
1150
|
undefined,
|
|
1146
1151
|
undefined
|
|
1147
1152
|
);
|
|
1148
1153
|
|
|
1149
|
-
var EditQuestionToolbar = __vue_component__$
|
|
1154
|
+
var EditQuestionToolbar = __vue_component__$C;
|
|
1150
1155
|
|
|
1151
|
-
var script$
|
|
1156
|
+
var script$B = Vue.extend({
|
|
1152
1157
|
name: "question-default-layout",
|
|
1153
1158
|
components: { Row, Col, QuestionTitle, EditQuestionToolbar },
|
|
1154
1159
|
mixins: [LocaleMixin],
|
|
@@ -1173,20 +1178,20 @@ var script$A = Vue.extend({
|
|
|
1173
1178
|
});
|
|
1174
1179
|
|
|
1175
1180
|
/* script */
|
|
1176
|
-
const __vue_script__$
|
|
1181
|
+
const __vue_script__$B = script$B;
|
|
1177
1182
|
|
|
1178
1183
|
/* template */
|
|
1179
|
-
var __vue_render__$
|
|
1180
|
-
var __vue_staticRenderFns__$
|
|
1184
|
+
var __vue_render__$B = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},[_c('Row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',[_c('question-title',{attrs:{"question":_vm.question,"max-score":true}})],1),_vm._v(" "),_c('Col',[_c('edit-question-toolbar',{on:{"on-edit":_vm.onEdit,"on-copy":_vm.onCopy,"on-delete":_vm.onDelete}})],1)],1),_vm._v(" "),_vm._t("default")],2)};
|
|
1185
|
+
var __vue_staticRenderFns__$B = [];
|
|
1181
1186
|
|
|
1182
1187
|
/* style */
|
|
1183
|
-
const __vue_inject_styles__$
|
|
1188
|
+
const __vue_inject_styles__$B = undefined;
|
|
1184
1189
|
/* scoped */
|
|
1185
|
-
const __vue_scope_id__$
|
|
1190
|
+
const __vue_scope_id__$B = undefined;
|
|
1186
1191
|
/* module identifier */
|
|
1187
|
-
const __vue_module_identifier__$
|
|
1192
|
+
const __vue_module_identifier__$B = undefined;
|
|
1188
1193
|
/* functional template */
|
|
1189
|
-
const __vue_is_functional_template__$
|
|
1194
|
+
const __vue_is_functional_template__$B = false;
|
|
1190
1195
|
/* style inject */
|
|
1191
1196
|
|
|
1192
1197
|
/* style inject SSR */
|
|
@@ -1195,22 +1200,22 @@ var __vue_staticRenderFns__$A = [];
|
|
|
1195
1200
|
|
|
1196
1201
|
|
|
1197
1202
|
|
|
1198
|
-
const __vue_component__$
|
|
1199
|
-
{ render: __vue_render__$
|
|
1200
|
-
__vue_inject_styles__$
|
|
1201
|
-
__vue_script__$
|
|
1202
|
-
__vue_scope_id__$
|
|
1203
|
-
__vue_is_functional_template__$
|
|
1204
|
-
__vue_module_identifier__$
|
|
1203
|
+
const __vue_component__$B = /*#__PURE__*/normalizeComponent(
|
|
1204
|
+
{ render: __vue_render__$B, staticRenderFns: __vue_staticRenderFns__$B },
|
|
1205
|
+
__vue_inject_styles__$B,
|
|
1206
|
+
__vue_script__$B,
|
|
1207
|
+
__vue_scope_id__$B,
|
|
1208
|
+
__vue_is_functional_template__$B,
|
|
1209
|
+
__vue_module_identifier__$B,
|
|
1205
1210
|
false,
|
|
1206
1211
|
undefined,
|
|
1207
1212
|
undefined,
|
|
1208
1213
|
undefined
|
|
1209
1214
|
);
|
|
1210
1215
|
|
|
1211
|
-
var QuestionDefaultLayout = __vue_component__$
|
|
1216
|
+
var QuestionDefaultLayout = __vue_component__$B;
|
|
1212
1217
|
|
|
1213
|
-
var script$
|
|
1218
|
+
var script$A = Vue.extend({
|
|
1214
1219
|
name: "single-selection",
|
|
1215
1220
|
components: { Row, Col, Radio, RadioGroup, Icon },
|
|
1216
1221
|
mixins: [LocaleMixin],
|
|
@@ -1252,20 +1257,20 @@ var script$z = Vue.extend({
|
|
|
1252
1257
|
});
|
|
1253
1258
|
|
|
1254
1259
|
/* script */
|
|
1255
|
-
const __vue_script__$
|
|
1260
|
+
const __vue_script__$A = script$A;
|
|
1256
1261
|
|
|
1257
1262
|
/* template */
|
|
1258
|
-
var __vue_render__$
|
|
1259
|
-
var __vue_staticRenderFns__$
|
|
1263
|
+
var __vue_render__$A = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('RadioGroup',{attrs:{"vertical":_vm.vertical}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
|
|
1264
|
+
var __vue_staticRenderFns__$A = [];
|
|
1260
1265
|
|
|
1261
1266
|
/* style */
|
|
1262
|
-
const __vue_inject_styles__$
|
|
1267
|
+
const __vue_inject_styles__$A = undefined;
|
|
1263
1268
|
/* scoped */
|
|
1264
|
-
const __vue_scope_id__$
|
|
1269
|
+
const __vue_scope_id__$A = undefined;
|
|
1265
1270
|
/* module identifier */
|
|
1266
|
-
const __vue_module_identifier__$
|
|
1271
|
+
const __vue_module_identifier__$A = undefined;
|
|
1267
1272
|
/* functional template */
|
|
1268
|
-
const __vue_is_functional_template__$
|
|
1273
|
+
const __vue_is_functional_template__$A = false;
|
|
1269
1274
|
/* style inject */
|
|
1270
1275
|
|
|
1271
1276
|
/* style inject SSR */
|
|
@@ -1274,22 +1279,22 @@ var __vue_staticRenderFns__$z = [];
|
|
|
1274
1279
|
|
|
1275
1280
|
|
|
1276
1281
|
|
|
1277
|
-
const __vue_component__$
|
|
1278
|
-
{ render: __vue_render__$
|
|
1279
|
-
__vue_inject_styles__$
|
|
1280
|
-
__vue_script__$
|
|
1281
|
-
__vue_scope_id__$
|
|
1282
|
-
__vue_is_functional_template__$
|
|
1283
|
-
__vue_module_identifier__$
|
|
1282
|
+
const __vue_component__$A = /*#__PURE__*/normalizeComponent(
|
|
1283
|
+
{ render: __vue_render__$A, staticRenderFns: __vue_staticRenderFns__$A },
|
|
1284
|
+
__vue_inject_styles__$A,
|
|
1285
|
+
__vue_script__$A,
|
|
1286
|
+
__vue_scope_id__$A,
|
|
1287
|
+
__vue_is_functional_template__$A,
|
|
1288
|
+
__vue_module_identifier__$A,
|
|
1284
1289
|
false,
|
|
1285
1290
|
undefined,
|
|
1286
1291
|
undefined,
|
|
1287
1292
|
undefined
|
|
1288
1293
|
);
|
|
1289
1294
|
|
|
1290
|
-
var SingleSelection = __vue_component__$
|
|
1295
|
+
var SingleSelection = __vue_component__$A;
|
|
1291
1296
|
|
|
1292
|
-
var script$
|
|
1297
|
+
var script$z = Vue.extend({
|
|
1293
1298
|
name: "multi-selection",
|
|
1294
1299
|
components: { Row, Col, Checkbox, CheckboxGroup },
|
|
1295
1300
|
mixins: [LocaleMixin],
|
|
@@ -1328,20 +1333,20 @@ var script$y = Vue.extend({
|
|
|
1328
1333
|
});
|
|
1329
1334
|
|
|
1330
1335
|
/* script */
|
|
1331
|
-
const __vue_script__$
|
|
1336
|
+
const __vue_script__$z = script$z;
|
|
1332
1337
|
|
|
1333
1338
|
/* template */
|
|
1334
|
-
var __vue_render__$
|
|
1335
|
-
var __vue_staticRenderFns__$
|
|
1339
|
+
var __vue_render__$z = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CheckboxGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Checkbox',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
|
|
1340
|
+
var __vue_staticRenderFns__$z = [];
|
|
1336
1341
|
|
|
1337
1342
|
/* style */
|
|
1338
|
-
const __vue_inject_styles__$
|
|
1343
|
+
const __vue_inject_styles__$z = undefined;
|
|
1339
1344
|
/* scoped */
|
|
1340
|
-
const __vue_scope_id__$
|
|
1345
|
+
const __vue_scope_id__$z = undefined;
|
|
1341
1346
|
/* module identifier */
|
|
1342
|
-
const __vue_module_identifier__$
|
|
1347
|
+
const __vue_module_identifier__$z = undefined;
|
|
1343
1348
|
/* functional template */
|
|
1344
|
-
const __vue_is_functional_template__$
|
|
1349
|
+
const __vue_is_functional_template__$z = false;
|
|
1345
1350
|
/* style inject */
|
|
1346
1351
|
|
|
1347
1352
|
/* style inject SSR */
|
|
@@ -1350,22 +1355,22 @@ var __vue_staticRenderFns__$y = [];
|
|
|
1350
1355
|
|
|
1351
1356
|
|
|
1352
1357
|
|
|
1353
|
-
const __vue_component__$
|
|
1354
|
-
{ render: __vue_render__$
|
|
1355
|
-
__vue_inject_styles__$
|
|
1356
|
-
__vue_script__$
|
|
1357
|
-
__vue_scope_id__$
|
|
1358
|
-
__vue_is_functional_template__$
|
|
1359
|
-
__vue_module_identifier__$
|
|
1358
|
+
const __vue_component__$z = /*#__PURE__*/normalizeComponent(
|
|
1359
|
+
{ render: __vue_render__$z, staticRenderFns: __vue_staticRenderFns__$z },
|
|
1360
|
+
__vue_inject_styles__$z,
|
|
1361
|
+
__vue_script__$z,
|
|
1362
|
+
__vue_scope_id__$z,
|
|
1363
|
+
__vue_is_functional_template__$z,
|
|
1364
|
+
__vue_module_identifier__$z,
|
|
1360
1365
|
false,
|
|
1361
1366
|
undefined,
|
|
1362
1367
|
undefined,
|
|
1363
1368
|
undefined
|
|
1364
1369
|
);
|
|
1365
1370
|
|
|
1366
|
-
var MultiSelection = __vue_component__$
|
|
1371
|
+
var MultiSelection = __vue_component__$z;
|
|
1367
1372
|
|
|
1368
|
-
var script$
|
|
1373
|
+
var script$y = Vue.extend({
|
|
1369
1374
|
name: "short-answer",
|
|
1370
1375
|
components: { Row, Col, Radio, Input },
|
|
1371
1376
|
mixins: [LocaleMixin],
|
|
@@ -1379,20 +1384,20 @@ var script$x = Vue.extend({
|
|
|
1379
1384
|
});
|
|
1380
1385
|
|
|
1381
1386
|
/* script */
|
|
1382
|
-
const __vue_script__$
|
|
1387
|
+
const __vue_script__$y = script$y;
|
|
1383
1388
|
|
|
1384
1389
|
/* template */
|
|
1385
|
-
var __vue_render__$
|
|
1386
|
-
var __vue_staticRenderFns__$
|
|
1390
|
+
var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"type":"textarea","rows":4,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
|
|
1391
|
+
var __vue_staticRenderFns__$y = [];
|
|
1387
1392
|
|
|
1388
1393
|
/* style */
|
|
1389
|
-
const __vue_inject_styles__$
|
|
1394
|
+
const __vue_inject_styles__$y = undefined;
|
|
1390
1395
|
/* scoped */
|
|
1391
|
-
const __vue_scope_id__$
|
|
1396
|
+
const __vue_scope_id__$y = undefined;
|
|
1392
1397
|
/* module identifier */
|
|
1393
|
-
const __vue_module_identifier__$
|
|
1398
|
+
const __vue_module_identifier__$y = undefined;
|
|
1394
1399
|
/* functional template */
|
|
1395
|
-
const __vue_is_functional_template__$
|
|
1400
|
+
const __vue_is_functional_template__$y = false;
|
|
1396
1401
|
/* style inject */
|
|
1397
1402
|
|
|
1398
1403
|
/* style inject SSR */
|
|
@@ -1401,22 +1406,22 @@ var __vue_staticRenderFns__$x = [];
|
|
|
1401
1406
|
|
|
1402
1407
|
|
|
1403
1408
|
|
|
1404
|
-
const __vue_component__$
|
|
1405
|
-
{ render: __vue_render__$
|
|
1406
|
-
__vue_inject_styles__$
|
|
1407
|
-
__vue_script__$
|
|
1408
|
-
__vue_scope_id__$
|
|
1409
|
-
__vue_is_functional_template__$
|
|
1410
|
-
__vue_module_identifier__$
|
|
1409
|
+
const __vue_component__$y = /*#__PURE__*/normalizeComponent(
|
|
1410
|
+
{ render: __vue_render__$y, staticRenderFns: __vue_staticRenderFns__$y },
|
|
1411
|
+
__vue_inject_styles__$y,
|
|
1412
|
+
__vue_script__$y,
|
|
1413
|
+
__vue_scope_id__$y,
|
|
1414
|
+
__vue_is_functional_template__$y,
|
|
1415
|
+
__vue_module_identifier__$y,
|
|
1411
1416
|
false,
|
|
1412
1417
|
undefined,
|
|
1413
1418
|
undefined,
|
|
1414
1419
|
undefined
|
|
1415
1420
|
);
|
|
1416
1421
|
|
|
1417
|
-
var ShortAnswer = __vue_component__$
|
|
1422
|
+
var ShortAnswer = __vue_component__$y;
|
|
1418
1423
|
|
|
1419
|
-
var script$
|
|
1424
|
+
var script$x = Vue.extend({
|
|
1420
1425
|
name: "fill-blank",
|
|
1421
1426
|
components: { Row, Col, Radio, Input },
|
|
1422
1427
|
inject: ["$rootComponent"],
|
|
@@ -1430,20 +1435,20 @@ var script$w = Vue.extend({
|
|
|
1430
1435
|
});
|
|
1431
1436
|
|
|
1432
1437
|
/* script */
|
|
1433
|
-
const __vue_script__$
|
|
1438
|
+
const __vue_script__$x = script$x;
|
|
1434
1439
|
|
|
1435
1440
|
/* template */
|
|
1436
|
-
var __vue_render__$
|
|
1437
|
-
var __vue_staticRenderFns__$
|
|
1441
|
+
var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
|
|
1442
|
+
var __vue_staticRenderFns__$x = [];
|
|
1438
1443
|
|
|
1439
1444
|
/* style */
|
|
1440
|
-
const __vue_inject_styles__$
|
|
1445
|
+
const __vue_inject_styles__$x = undefined;
|
|
1441
1446
|
/* scoped */
|
|
1442
|
-
const __vue_scope_id__$
|
|
1447
|
+
const __vue_scope_id__$x = undefined;
|
|
1443
1448
|
/* module identifier */
|
|
1444
|
-
const __vue_module_identifier__$
|
|
1449
|
+
const __vue_module_identifier__$x = undefined;
|
|
1445
1450
|
/* functional template */
|
|
1446
|
-
const __vue_is_functional_template__$
|
|
1451
|
+
const __vue_is_functional_template__$x = false;
|
|
1447
1452
|
/* style inject */
|
|
1448
1453
|
|
|
1449
1454
|
/* style inject SSR */
|
|
@@ -1452,44 +1457,44 @@ var __vue_staticRenderFns__$w = [];
|
|
|
1452
1457
|
|
|
1453
1458
|
|
|
1454
1459
|
|
|
1455
|
-
const __vue_component__$
|
|
1456
|
-
{ render: __vue_render__$
|
|
1457
|
-
__vue_inject_styles__$
|
|
1458
|
-
__vue_script__$
|
|
1459
|
-
__vue_scope_id__$
|
|
1460
|
-
__vue_is_functional_template__$
|
|
1461
|
-
__vue_module_identifier__$
|
|
1460
|
+
const __vue_component__$x = /*#__PURE__*/normalizeComponent(
|
|
1461
|
+
{ render: __vue_render__$x, staticRenderFns: __vue_staticRenderFns__$x },
|
|
1462
|
+
__vue_inject_styles__$x,
|
|
1463
|
+
__vue_script__$x,
|
|
1464
|
+
__vue_scope_id__$x,
|
|
1465
|
+
__vue_is_functional_template__$x,
|
|
1466
|
+
__vue_module_identifier__$x,
|
|
1462
1467
|
false,
|
|
1463
1468
|
undefined,
|
|
1464
1469
|
undefined,
|
|
1465
1470
|
undefined
|
|
1466
1471
|
);
|
|
1467
1472
|
|
|
1468
|
-
var FillBlank = __vue_component__$
|
|
1473
|
+
var FillBlank = __vue_component__$x;
|
|
1469
1474
|
|
|
1470
1475
|
//
|
|
1471
1476
|
//
|
|
1472
1477
|
//
|
|
1473
1478
|
//
|
|
1474
|
-
var script$
|
|
1479
|
+
var script$w = {
|
|
1475
1480
|
name: "text-title"
|
|
1476
1481
|
};
|
|
1477
1482
|
|
|
1478
1483
|
/* script */
|
|
1479
|
-
const __vue_script__$
|
|
1484
|
+
const __vue_script__$w = script$w;
|
|
1480
1485
|
|
|
1481
1486
|
/* template */
|
|
1482
|
-
var __vue_render__$
|
|
1483
|
-
var __vue_staticRenderFns__$
|
|
1487
|
+
var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')};
|
|
1488
|
+
var __vue_staticRenderFns__$w = [];
|
|
1484
1489
|
|
|
1485
1490
|
/* style */
|
|
1486
|
-
const __vue_inject_styles__$
|
|
1491
|
+
const __vue_inject_styles__$w = undefined;
|
|
1487
1492
|
/* scoped */
|
|
1488
|
-
const __vue_scope_id__$
|
|
1493
|
+
const __vue_scope_id__$w = undefined;
|
|
1489
1494
|
/* module identifier */
|
|
1490
|
-
const __vue_module_identifier__$
|
|
1495
|
+
const __vue_module_identifier__$w = undefined;
|
|
1491
1496
|
/* functional template */
|
|
1492
|
-
const __vue_is_functional_template__$
|
|
1497
|
+
const __vue_is_functional_template__$w = false;
|
|
1493
1498
|
/* style inject */
|
|
1494
1499
|
|
|
1495
1500
|
/* style inject SSR */
|
|
@@ -1498,22 +1503,22 @@ var __vue_staticRenderFns__$v = [];
|
|
|
1498
1503
|
|
|
1499
1504
|
|
|
1500
1505
|
|
|
1501
|
-
const __vue_component__$
|
|
1502
|
-
{ render: __vue_render__$
|
|
1503
|
-
__vue_inject_styles__$
|
|
1504
|
-
__vue_script__$
|
|
1505
|
-
__vue_scope_id__$
|
|
1506
|
-
__vue_is_functional_template__$
|
|
1507
|
-
__vue_module_identifier__$
|
|
1506
|
+
const __vue_component__$w = /*#__PURE__*/normalizeComponent(
|
|
1507
|
+
{ render: __vue_render__$w, staticRenderFns: __vue_staticRenderFns__$w },
|
|
1508
|
+
__vue_inject_styles__$w,
|
|
1509
|
+
__vue_script__$w,
|
|
1510
|
+
__vue_scope_id__$w,
|
|
1511
|
+
__vue_is_functional_template__$w,
|
|
1512
|
+
__vue_module_identifier__$w,
|
|
1508
1513
|
false,
|
|
1509
1514
|
undefined,
|
|
1510
1515
|
undefined,
|
|
1511
1516
|
undefined
|
|
1512
1517
|
);
|
|
1513
1518
|
|
|
1514
|
-
var TextTitle = __vue_component__$
|
|
1519
|
+
var TextTitle = __vue_component__$w;
|
|
1515
1520
|
|
|
1516
|
-
var script$
|
|
1521
|
+
var script$v = Vue.extend({
|
|
1517
1522
|
name: "matrix",
|
|
1518
1523
|
components: { Row, Col, Radio, RadioGroup, Divider },
|
|
1519
1524
|
mixins: [LocaleMixin],
|
|
@@ -1559,20 +1564,20 @@ var script$u = Vue.extend({
|
|
|
1559
1564
|
});
|
|
1560
1565
|
|
|
1561
1566
|
/* script */
|
|
1562
|
-
const __vue_script__$
|
|
1567
|
+
const __vue_script__$v = script$v;
|
|
1563
1568
|
|
|
1564
1569
|
/* template */
|
|
1565
|
-
var __vue_render__$
|
|
1566
|
-
var __vue_staticRenderFns__$
|
|
1570
|
+
var __vue_render__$v = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},_vm._l((_vm.question.subQuestions),function(subQuestion,index){return _c('div',{key:index},[(!_vm.isPreview)?_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left","size":"small"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.sub_questions', _vm.$rootComponent.currentLanguage)))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"sub-question-title"},[_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+"."+_vm._s(subQuestion.number))]),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(subQuestion.text,true)))]),_vm._v(" "),(_vm.maxScore && _vm.choiceMaxScore)?_c('span',{staticClass:"sub-max-score"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.choiceMaxScore)+")")]):_vm._e()]),_vm._v(" "),_c('RadioGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50,"align":"middle"}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)],1)}),0)};
|
|
1571
|
+
var __vue_staticRenderFns__$v = [];
|
|
1567
1572
|
|
|
1568
1573
|
/* style */
|
|
1569
|
-
const __vue_inject_styles__$
|
|
1574
|
+
const __vue_inject_styles__$v = undefined;
|
|
1570
1575
|
/* scoped */
|
|
1571
|
-
const __vue_scope_id__$
|
|
1576
|
+
const __vue_scope_id__$v = undefined;
|
|
1572
1577
|
/* module identifier */
|
|
1573
|
-
const __vue_module_identifier__$
|
|
1578
|
+
const __vue_module_identifier__$v = undefined;
|
|
1574
1579
|
/* functional template */
|
|
1575
|
-
const __vue_is_functional_template__$
|
|
1580
|
+
const __vue_is_functional_template__$v = false;
|
|
1576
1581
|
/* style inject */
|
|
1577
1582
|
|
|
1578
1583
|
/* style inject SSR */
|
|
@@ -1581,22 +1586,22 @@ var __vue_staticRenderFns__$u = [];
|
|
|
1581
1586
|
|
|
1582
1587
|
|
|
1583
1588
|
|
|
1584
|
-
const __vue_component__$
|
|
1585
|
-
{ render: __vue_render__$
|
|
1586
|
-
__vue_inject_styles__$
|
|
1587
|
-
__vue_script__$
|
|
1588
|
-
__vue_scope_id__$
|
|
1589
|
-
__vue_is_functional_template__$
|
|
1590
|
-
__vue_module_identifier__$
|
|
1589
|
+
const __vue_component__$v = /*#__PURE__*/normalizeComponent(
|
|
1590
|
+
{ render: __vue_render__$v, staticRenderFns: __vue_staticRenderFns__$v },
|
|
1591
|
+
__vue_inject_styles__$v,
|
|
1592
|
+
__vue_script__$v,
|
|
1593
|
+
__vue_scope_id__$v,
|
|
1594
|
+
__vue_is_functional_template__$v,
|
|
1595
|
+
__vue_module_identifier__$v,
|
|
1591
1596
|
false,
|
|
1592
1597
|
undefined,
|
|
1593
1598
|
undefined,
|
|
1594
1599
|
undefined
|
|
1595
1600
|
);
|
|
1596
1601
|
|
|
1597
|
-
var Matrix = __vue_component__$
|
|
1602
|
+
var Matrix = __vue_component__$v;
|
|
1598
1603
|
|
|
1599
|
-
var script$
|
|
1604
|
+
var script$u = Vue.extend({
|
|
1600
1605
|
name: "star",
|
|
1601
1606
|
mixins: [LocaleMixin],
|
|
1602
1607
|
props: {
|
|
@@ -1619,20 +1624,20 @@ var script$t = Vue.extend({
|
|
|
1619
1624
|
});
|
|
1620
1625
|
|
|
1621
1626
|
/* script */
|
|
1622
|
-
const __vue_script__$
|
|
1627
|
+
const __vue_script__$u = script$u;
|
|
1623
1628
|
|
|
1624
1629
|
/* template */
|
|
1625
|
-
var __vue_render__$
|
|
1626
|
-
var __vue_staticRenderFns__$
|
|
1630
|
+
var __vue_render__$u = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.getDesc()))])};
|
|
1631
|
+
var __vue_staticRenderFns__$u = [];
|
|
1627
1632
|
|
|
1628
1633
|
/* style */
|
|
1629
|
-
const __vue_inject_styles__$
|
|
1634
|
+
const __vue_inject_styles__$u = undefined;
|
|
1630
1635
|
/* scoped */
|
|
1631
|
-
const __vue_scope_id__$
|
|
1636
|
+
const __vue_scope_id__$u = undefined;
|
|
1632
1637
|
/* module identifier */
|
|
1633
|
-
const __vue_module_identifier__$
|
|
1638
|
+
const __vue_module_identifier__$u = undefined;
|
|
1634
1639
|
/* functional template */
|
|
1635
|
-
const __vue_is_functional_template__$
|
|
1640
|
+
const __vue_is_functional_template__$u = false;
|
|
1636
1641
|
/* style inject */
|
|
1637
1642
|
|
|
1638
1643
|
/* style inject SSR */
|
|
@@ -1641,20 +1646,20 @@ var __vue_staticRenderFns__$t = [];
|
|
|
1641
1646
|
|
|
1642
1647
|
|
|
1643
1648
|
|
|
1644
|
-
const __vue_component__$
|
|
1645
|
-
{ render: __vue_render__$
|
|
1646
|
-
__vue_inject_styles__$
|
|
1647
|
-
__vue_script__$
|
|
1648
|
-
__vue_scope_id__$
|
|
1649
|
-
__vue_is_functional_template__$
|
|
1650
|
-
__vue_module_identifier__$
|
|
1649
|
+
const __vue_component__$u = /*#__PURE__*/normalizeComponent(
|
|
1650
|
+
{ render: __vue_render__$u, staticRenderFns: __vue_staticRenderFns__$u },
|
|
1651
|
+
__vue_inject_styles__$u,
|
|
1652
|
+
__vue_script__$u,
|
|
1653
|
+
__vue_scope_id__$u,
|
|
1654
|
+
__vue_is_functional_template__$u,
|
|
1655
|
+
__vue_module_identifier__$u,
|
|
1651
1656
|
false,
|
|
1652
1657
|
undefined,
|
|
1653
1658
|
undefined,
|
|
1654
1659
|
undefined
|
|
1655
1660
|
);
|
|
1656
1661
|
|
|
1657
|
-
var Star$1 = __vue_component__$
|
|
1662
|
+
var Star$1 = __vue_component__$u;
|
|
1658
1663
|
|
|
1659
1664
|
class ExprEvaluationQuestion {
|
|
1660
1665
|
questions;
|
|
@@ -1766,7 +1771,7 @@ class ExprEvaluationQuestion {
|
|
|
1766
1771
|
}
|
|
1767
1772
|
|
|
1768
1773
|
const SPLIT_LENGTH = 60;
|
|
1769
|
-
var script$
|
|
1774
|
+
var script$t = Vue.extend({
|
|
1770
1775
|
name: "expr-if",
|
|
1771
1776
|
mixins: [LocaleMixin],
|
|
1772
1777
|
components: { Tooltip },
|
|
@@ -1774,7 +1779,7 @@ var script$s = Vue.extend({
|
|
|
1774
1779
|
data() {
|
|
1775
1780
|
return {
|
|
1776
1781
|
desc: "",
|
|
1777
|
-
descTitle: ""
|
|
1782
|
+
descTitle: "",
|
|
1778
1783
|
};
|
|
1779
1784
|
},
|
|
1780
1785
|
created() {
|
|
@@ -1783,31 +1788,41 @@ var script$s = Vue.extend({
|
|
|
1783
1788
|
props: {
|
|
1784
1789
|
conditions: {
|
|
1785
1790
|
type: Array,
|
|
1786
|
-
required: true
|
|
1787
|
-
}
|
|
1791
|
+
required: true,
|
|
1792
|
+
},
|
|
1788
1793
|
},
|
|
1789
1794
|
computed: {
|
|
1790
1795
|
questions() {
|
|
1791
1796
|
return _.cloneDeep(this.$rootComponent.currentSurvey.questions);
|
|
1792
|
-
}
|
|
1797
|
+
},
|
|
1793
1798
|
},
|
|
1794
1799
|
methods: {
|
|
1795
1800
|
getDesc(condition) {
|
|
1796
1801
|
let payload = condition.payload;
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
if (_.isArray(_.head(number))) {
|
|
1800
|
-
return _.join(_.map(number, e => _.join(e, "-")), ", ");
|
|
1801
|
-
}
|
|
1802
|
-
return _.join(number, "-");
|
|
1803
|
-
}), ", ");
|
|
1804
|
-
if (condition.type == "ASSIGN") {
|
|
1805
|
-
return this.t('survey_creator.question.evaluation.condition.assign_template', [scope, _.join(payload.values, "、"), _.unescape(payload.operator), payload.size]);
|
|
1802
|
+
if (condition.type == "SCORE") {
|
|
1803
|
+
return this.t("survey_creator.question.evaluation.condition.score_template", [payload.minScore, payload.operator, payload.maxScore]);
|
|
1806
1804
|
}
|
|
1807
|
-
else
|
|
1808
|
-
|
|
1805
|
+
else {
|
|
1806
|
+
let numbers = new ExprEvaluationQuestion(this.questions, payload.scope).calculateNumbers();
|
|
1807
|
+
let scope = _.join(_.map(numbers, (number) => {
|
|
1808
|
+
if (_.isArray(_.head(number))) {
|
|
1809
|
+
return _.join(_.map(number, (e) => _.join(e, "-")), ", ");
|
|
1810
|
+
}
|
|
1811
|
+
return _.join(number, "-");
|
|
1812
|
+
}), ", ");
|
|
1813
|
+
if (condition.type == "ASSIGN") {
|
|
1814
|
+
return this.t("survey_creator.question.evaluation.condition.assign_template", [
|
|
1815
|
+
scope,
|
|
1816
|
+
_.join(payload.values, "、"),
|
|
1817
|
+
_.unescape(payload.operator),
|
|
1818
|
+
payload.size,
|
|
1819
|
+
]);
|
|
1820
|
+
}
|
|
1821
|
+
else if (condition.type == "AUTO") {
|
|
1822
|
+
return this.t("survey_creator.question.evaluation.condition.auto_template", [scope, _.join(payload.values, "、")]);
|
|
1823
|
+
}
|
|
1824
|
+
return "";
|
|
1809
1825
|
}
|
|
1810
|
-
return "";
|
|
1811
1826
|
},
|
|
1812
1827
|
getChineseLength(_str) {
|
|
1813
1828
|
_str = _.trim(_str);
|
|
@@ -1819,37 +1834,38 @@ var script$s = Vue.extend({
|
|
|
1819
1834
|
return chinese ? chinese.length : 0;
|
|
1820
1835
|
},
|
|
1821
1836
|
initialDesc() {
|
|
1822
|
-
let desc =
|
|
1837
|
+
let desc = "";
|
|
1823
1838
|
let ds = _.map(this.conditions, (c) => {
|
|
1824
1839
|
return this.getDesc(c);
|
|
1825
1840
|
});
|
|
1826
|
-
desc = _.join(ds,
|
|
1841
|
+
desc = _.join(ds, "<br>");
|
|
1827
1842
|
this.desc = desc;
|
|
1828
1843
|
let strLength = desc.length;
|
|
1829
1844
|
let cLength = this.getChineseLength(desc.substring(0, SPLIT_LENGTH));
|
|
1830
1845
|
if (strLength > SPLIT_LENGTH) {
|
|
1831
|
-
this.desc =
|
|
1846
|
+
this.desc =
|
|
1847
|
+
desc.substring(0, SPLIT_LENGTH - _.ceil(cLength / 2)) + "...";
|
|
1832
1848
|
}
|
|
1833
1849
|
this.descTitle = desc;
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1850
|
+
},
|
|
1851
|
+
},
|
|
1836
1852
|
});
|
|
1837
1853
|
|
|
1838
1854
|
/* script */
|
|
1839
|
-
const __vue_script__$
|
|
1855
|
+
const __vue_script__$t = script$t;
|
|
1840
1856
|
|
|
1841
1857
|
/* template */
|
|
1842
|
-
var __vue_render__$
|
|
1843
|
-
var __vue_staticRenderFns__$
|
|
1858
|
+
var __vue_render__$t = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Tooltip',{attrs:{"max-width":"200"}},[_c('span',{attrs:{"slot":"content"},domProps:{"innerHTML":_vm._s(this.descTitle)},slot:"content"}),_vm._v(" "),_c('span',{staticClass:"desc",domProps:{"innerHTML":_vm._s(this.desc)}})])};
|
|
1859
|
+
var __vue_staticRenderFns__$t = [];
|
|
1844
1860
|
|
|
1845
1861
|
/* style */
|
|
1846
|
-
const __vue_inject_styles__$
|
|
1862
|
+
const __vue_inject_styles__$t = undefined;
|
|
1847
1863
|
/* scoped */
|
|
1848
|
-
const __vue_scope_id__$
|
|
1864
|
+
const __vue_scope_id__$t = undefined;
|
|
1849
1865
|
/* module identifier */
|
|
1850
|
-
const __vue_module_identifier__$
|
|
1866
|
+
const __vue_module_identifier__$t = undefined;
|
|
1851
1867
|
/* functional template */
|
|
1852
|
-
const __vue_is_functional_template__$
|
|
1868
|
+
const __vue_is_functional_template__$t = false;
|
|
1853
1869
|
/* style inject */
|
|
1854
1870
|
|
|
1855
1871
|
/* style inject SSR */
|
|
@@ -1858,22 +1874,22 @@ var __vue_staticRenderFns__$s = [];
|
|
|
1858
1874
|
|
|
1859
1875
|
|
|
1860
1876
|
|
|
1861
|
-
const __vue_component__$
|
|
1862
|
-
{ render: __vue_render__$
|
|
1863
|
-
__vue_inject_styles__$
|
|
1864
|
-
__vue_script__$
|
|
1865
|
-
__vue_scope_id__$
|
|
1866
|
-
__vue_is_functional_template__$
|
|
1867
|
-
__vue_module_identifier__$
|
|
1877
|
+
const __vue_component__$t = /*#__PURE__*/normalizeComponent(
|
|
1878
|
+
{ render: __vue_render__$t, staticRenderFns: __vue_staticRenderFns__$t },
|
|
1879
|
+
__vue_inject_styles__$t,
|
|
1880
|
+
__vue_script__$t,
|
|
1881
|
+
__vue_scope_id__$t,
|
|
1882
|
+
__vue_is_functional_template__$t,
|
|
1883
|
+
__vue_module_identifier__$t,
|
|
1868
1884
|
false,
|
|
1869
1885
|
undefined,
|
|
1870
1886
|
undefined,
|
|
1871
1887
|
undefined
|
|
1872
1888
|
);
|
|
1873
1889
|
|
|
1874
|
-
var If$1 = __vue_component__$
|
|
1890
|
+
var If$1 = __vue_component__$t;
|
|
1875
1891
|
|
|
1876
|
-
var script$
|
|
1892
|
+
var script$s = Vue.extend({
|
|
1877
1893
|
name: "expr-else",
|
|
1878
1894
|
mixins: [LocaleMixin],
|
|
1879
1895
|
props: {
|
|
@@ -1884,20 +1900,20 @@ var script$r = Vue.extend({
|
|
|
1884
1900
|
});
|
|
1885
1901
|
|
|
1886
1902
|
/* script */
|
|
1887
|
-
const __vue_script__$
|
|
1903
|
+
const __vue_script__$s = script$s;
|
|
1888
1904
|
|
|
1889
1905
|
/* template */
|
|
1890
|
-
var __vue_render__$
|
|
1891
|
-
var __vue_staticRenderFns__$
|
|
1906
|
+
var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(_vm.t('survey_creator.question.evaluation.condition.other'))}})};
|
|
1907
|
+
var __vue_staticRenderFns__$s = [];
|
|
1892
1908
|
|
|
1893
1909
|
/* style */
|
|
1894
|
-
const __vue_inject_styles__$
|
|
1910
|
+
const __vue_inject_styles__$s = undefined;
|
|
1895
1911
|
/* scoped */
|
|
1896
|
-
const __vue_scope_id__$
|
|
1912
|
+
const __vue_scope_id__$s = undefined;
|
|
1897
1913
|
/* module identifier */
|
|
1898
|
-
const __vue_module_identifier__$
|
|
1914
|
+
const __vue_module_identifier__$s = undefined;
|
|
1899
1915
|
/* functional template */
|
|
1900
|
-
const __vue_is_functional_template__$
|
|
1916
|
+
const __vue_is_functional_template__$s = false;
|
|
1901
1917
|
/* style inject */
|
|
1902
1918
|
|
|
1903
1919
|
/* style inject SSR */
|
|
@@ -1906,22 +1922,22 @@ var __vue_staticRenderFns__$r = [];
|
|
|
1906
1922
|
|
|
1907
1923
|
|
|
1908
1924
|
|
|
1909
|
-
const __vue_component__$
|
|
1910
|
-
{ render: __vue_render__$
|
|
1911
|
-
__vue_inject_styles__$
|
|
1912
|
-
__vue_script__$
|
|
1913
|
-
__vue_scope_id__$
|
|
1914
|
-
__vue_is_functional_template__$
|
|
1915
|
-
__vue_module_identifier__$
|
|
1925
|
+
const __vue_component__$s = /*#__PURE__*/normalizeComponent(
|
|
1926
|
+
{ render: __vue_render__$s, staticRenderFns: __vue_staticRenderFns__$s },
|
|
1927
|
+
__vue_inject_styles__$s,
|
|
1928
|
+
__vue_script__$s,
|
|
1929
|
+
__vue_scope_id__$s,
|
|
1930
|
+
__vue_is_functional_template__$s,
|
|
1931
|
+
__vue_module_identifier__$s,
|
|
1916
1932
|
false,
|
|
1917
1933
|
undefined,
|
|
1918
1934
|
undefined,
|
|
1919
1935
|
undefined
|
|
1920
1936
|
);
|
|
1921
1937
|
|
|
1922
|
-
var Else$1 = __vue_component__$
|
|
1938
|
+
var Else$1 = __vue_component__$s;
|
|
1923
1939
|
|
|
1924
|
-
var script$
|
|
1940
|
+
var script$r = Vue.extend({
|
|
1925
1941
|
name: "expr",
|
|
1926
1942
|
props: {
|
|
1927
1943
|
item: {
|
|
@@ -1936,20 +1952,20 @@ var script$q = Vue.extend({
|
|
|
1936
1952
|
});
|
|
1937
1953
|
|
|
1938
1954
|
/* script */
|
|
1939
|
-
const __vue_script__$
|
|
1955
|
+
const __vue_script__$r = script$r;
|
|
1940
1956
|
|
|
1941
1957
|
/* template */
|
|
1942
|
-
var __vue_render__$
|
|
1943
|
-
var __vue_staticRenderFns__$
|
|
1958
|
+
var __vue_render__$r = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{tag:"component",attrs:{"conditions":_vm.item.conditions}})};
|
|
1959
|
+
var __vue_staticRenderFns__$r = [];
|
|
1944
1960
|
|
|
1945
1961
|
/* style */
|
|
1946
|
-
const __vue_inject_styles__$
|
|
1962
|
+
const __vue_inject_styles__$r = undefined;
|
|
1947
1963
|
/* scoped */
|
|
1948
|
-
const __vue_scope_id__$
|
|
1964
|
+
const __vue_scope_id__$r = undefined;
|
|
1949
1965
|
/* module identifier */
|
|
1950
|
-
const __vue_module_identifier__$
|
|
1966
|
+
const __vue_module_identifier__$r = undefined;
|
|
1951
1967
|
/* functional template */
|
|
1952
|
-
const __vue_is_functional_template__$
|
|
1968
|
+
const __vue_is_functional_template__$r = false;
|
|
1953
1969
|
/* style inject */
|
|
1954
1970
|
|
|
1955
1971
|
/* style inject SSR */
|
|
@@ -1958,22 +1974,22 @@ var __vue_staticRenderFns__$q = [];
|
|
|
1958
1974
|
|
|
1959
1975
|
|
|
1960
1976
|
|
|
1961
|
-
const __vue_component__$
|
|
1962
|
-
{ render: __vue_render__$
|
|
1963
|
-
__vue_inject_styles__$
|
|
1964
|
-
__vue_script__$
|
|
1965
|
-
__vue_scope_id__$
|
|
1966
|
-
__vue_is_functional_template__$
|
|
1967
|
-
__vue_module_identifier__$
|
|
1977
|
+
const __vue_component__$r = /*#__PURE__*/normalizeComponent(
|
|
1978
|
+
{ render: __vue_render__$r, staticRenderFns: __vue_staticRenderFns__$r },
|
|
1979
|
+
__vue_inject_styles__$r,
|
|
1980
|
+
__vue_script__$r,
|
|
1981
|
+
__vue_scope_id__$r,
|
|
1982
|
+
__vue_is_functional_template__$r,
|
|
1983
|
+
__vue_module_identifier__$r,
|
|
1968
1984
|
false,
|
|
1969
1985
|
undefined,
|
|
1970
1986
|
undefined,
|
|
1971
1987
|
undefined
|
|
1972
1988
|
);
|
|
1973
1989
|
|
|
1974
|
-
var Expr$1 = __vue_component__$
|
|
1990
|
+
var Expr$1 = __vue_component__$r;
|
|
1975
1991
|
|
|
1976
|
-
var script$
|
|
1992
|
+
var script$q = Vue.extend({
|
|
1977
1993
|
name: "Evaluation",
|
|
1978
1994
|
components: {
|
|
1979
1995
|
Row, Col, Checkbox, CheckboxGroup, Card, Icon,
|
|
@@ -1990,20 +2006,20 @@ var script$p = Vue.extend({
|
|
|
1990
2006
|
});
|
|
1991
2007
|
|
|
1992
2008
|
/* script */
|
|
1993
|
-
const __vue_script__$
|
|
2009
|
+
const __vue_script__$q = script$q;
|
|
1994
2010
|
|
|
1995
2011
|
/* template */
|
|
1996
|
-
var __vue_render__$
|
|
1997
|
-
var __vue_staticRenderFns__$
|
|
2012
|
+
var __vue_render__$q = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"col-padding"},[_c('Card',{staticClass:"evaluation-cards-default",attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":"ios-checkmark-circle-outline","size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
|
|
2013
|
+
var __vue_staticRenderFns__$q = [];
|
|
1998
2014
|
|
|
1999
2015
|
/* style */
|
|
2000
|
-
const __vue_inject_styles__$
|
|
2016
|
+
const __vue_inject_styles__$q = undefined;
|
|
2001
2017
|
/* scoped */
|
|
2002
|
-
const __vue_scope_id__$
|
|
2018
|
+
const __vue_scope_id__$q = undefined;
|
|
2003
2019
|
/* module identifier */
|
|
2004
|
-
const __vue_module_identifier__$
|
|
2020
|
+
const __vue_module_identifier__$q = undefined;
|
|
2005
2021
|
/* functional template */
|
|
2006
|
-
const __vue_is_functional_template__$
|
|
2022
|
+
const __vue_is_functional_template__$q = false;
|
|
2007
2023
|
/* style inject */
|
|
2008
2024
|
|
|
2009
2025
|
/* style inject SSR */
|
|
@@ -2012,22 +2028,22 @@ var __vue_staticRenderFns__$p = [];
|
|
|
2012
2028
|
|
|
2013
2029
|
|
|
2014
2030
|
|
|
2015
|
-
const __vue_component__$
|
|
2016
|
-
{ render: __vue_render__$
|
|
2017
|
-
__vue_inject_styles__$
|
|
2018
|
-
__vue_script__$
|
|
2019
|
-
__vue_scope_id__$
|
|
2020
|
-
__vue_is_functional_template__$
|
|
2021
|
-
__vue_module_identifier__$
|
|
2031
|
+
const __vue_component__$q = /*#__PURE__*/normalizeComponent(
|
|
2032
|
+
{ render: __vue_render__$q, staticRenderFns: __vue_staticRenderFns__$q },
|
|
2033
|
+
__vue_inject_styles__$q,
|
|
2034
|
+
__vue_script__$q,
|
|
2035
|
+
__vue_scope_id__$q,
|
|
2036
|
+
__vue_is_functional_template__$q,
|
|
2037
|
+
__vue_module_identifier__$q,
|
|
2022
2038
|
false,
|
|
2023
2039
|
undefined,
|
|
2024
2040
|
undefined,
|
|
2025
2041
|
undefined
|
|
2026
2042
|
);
|
|
2027
2043
|
|
|
2028
|
-
var Evaluation = __vue_component__$
|
|
2044
|
+
var Evaluation = __vue_component__$q;
|
|
2029
2045
|
|
|
2030
|
-
var script$
|
|
2046
|
+
var script$p = Vue.extend({
|
|
2031
2047
|
name: "editor-question-row",
|
|
2032
2048
|
components: {
|
|
2033
2049
|
Row,
|
|
@@ -2059,20 +2075,20 @@ var script$o = Vue.extend({
|
|
|
2059
2075
|
});
|
|
2060
2076
|
|
|
2061
2077
|
/* script */
|
|
2062
|
-
const __vue_script__$
|
|
2078
|
+
const __vue_script__$p = script$p;
|
|
2063
2079
|
|
|
2064
2080
|
/* template */
|
|
2065
|
-
var __vue_render__$
|
|
2066
|
-
var __vue_staticRenderFns__$
|
|
2081
|
+
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{staticClass:"question-row",attrs:{"padding":0,"bordered":false,"dis-hover":true}},[_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.types." + (_vm.question.type))))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle","gutter":20}},[_c('Col',{staticClass:"question-row-move"},[_c('Icon',{attrs:{"custom":"i-icon icon-activity-drag","size":"15","color":"#dcdee2"}})],1),_vm._v(" "),_c('Col',{staticClass:"question-row-content"},[_c('question-default-layout',{attrs:{"question":_vm.question}},[_c(_vm.question.type,{tag:"component",attrs:{"question":_vm.question}})],1)],1)],1)],1)};
|
|
2082
|
+
var __vue_staticRenderFns__$p = [];
|
|
2067
2083
|
|
|
2068
2084
|
/* style */
|
|
2069
|
-
const __vue_inject_styles__$
|
|
2085
|
+
const __vue_inject_styles__$p = undefined;
|
|
2070
2086
|
/* scoped */
|
|
2071
|
-
const __vue_scope_id__$
|
|
2087
|
+
const __vue_scope_id__$p = undefined;
|
|
2072
2088
|
/* module identifier */
|
|
2073
|
-
const __vue_module_identifier__$
|
|
2089
|
+
const __vue_module_identifier__$p = undefined;
|
|
2074
2090
|
/* functional template */
|
|
2075
|
-
const __vue_is_functional_template__$
|
|
2091
|
+
const __vue_is_functional_template__$p = false;
|
|
2076
2092
|
/* style inject */
|
|
2077
2093
|
|
|
2078
2094
|
/* style inject SSR */
|
|
@@ -2081,22 +2097,22 @@ var __vue_staticRenderFns__$o = [];
|
|
|
2081
2097
|
|
|
2082
2098
|
|
|
2083
2099
|
|
|
2084
|
-
const __vue_component__$
|
|
2085
|
-
{ render: __vue_render__$
|
|
2086
|
-
__vue_inject_styles__$
|
|
2087
|
-
__vue_script__$
|
|
2088
|
-
__vue_scope_id__$
|
|
2089
|
-
__vue_is_functional_template__$
|
|
2090
|
-
__vue_module_identifier__$
|
|
2100
|
+
const __vue_component__$p = /*#__PURE__*/normalizeComponent(
|
|
2101
|
+
{ render: __vue_render__$p, staticRenderFns: __vue_staticRenderFns__$p },
|
|
2102
|
+
__vue_inject_styles__$p,
|
|
2103
|
+
__vue_script__$p,
|
|
2104
|
+
__vue_scope_id__$p,
|
|
2105
|
+
__vue_is_functional_template__$p,
|
|
2106
|
+
__vue_module_identifier__$p,
|
|
2091
2107
|
false,
|
|
2092
2108
|
undefined,
|
|
2093
2109
|
undefined,
|
|
2094
2110
|
undefined
|
|
2095
2111
|
);
|
|
2096
2112
|
|
|
2097
|
-
var EditorQuestionRow = __vue_component__$
|
|
2113
|
+
var EditorQuestionRow = __vue_component__$p;
|
|
2098
2114
|
|
|
2099
|
-
var script$
|
|
2115
|
+
var script$o = Vue.extend({
|
|
2100
2116
|
name: "editor-questions",
|
|
2101
2117
|
components: { EditorQuestionRow, draggable },
|
|
2102
2118
|
mixins: [LocaleMixin],
|
|
@@ -2122,18 +2138,18 @@ var script$n = Vue.extend({
|
|
|
2122
2138
|
var __$_require_images_empty_svg__ = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NiIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDg2IDgwIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y1RjVGNyIgZD0iTTc5IDY1LjY4djIuOTJjMCAyLjc2LTIuMjM5IDUtNSA1SDEyYy0yLjc2MiAwLTUtMi4yNC01LTV2LTIuOTJjLTQuNDIgMS40MTQtNyAzLjEwNC03IDQuOTIgMCA0Ljk3IDE5LjI1MSA5IDQzIDkgMjMuNzQ4IDAgNDMtNC4wMyA0My05IDAtMS44MTYtMi41NzktMy41MDYtNy00LjkyIi8+CiAgICAgICAgPHBhdGggZmlsbD0iI0RDREVFOCIgZD0iTTU3LjQxNCA1Mi4xNDljLS4yNDUuODU5LTEuMDMgMS40NS0xLjkyMyAxLjQ1SDMwLjUwOGMtLjg5MyAwLTEuNjc4LS41OTEtMS45MjMtMS40NWwtLjU0OS0xLjkyM2MtLjYxMy0yLjE0Ni0yLjU3NS0zLjYyNi00LjgwNy0zLjYyNkg3djIyYzAgMi43NjIgMi4yMzggNSA1IDVoNjJjMi43NjEgMCA1LTIuMjM4IDUtNXYtMjJINjIuNzcyYy0yLjIzMyAwLTQuMTk1IDEuNDgtNC44MDggMy42MjZsLS41NSAxLjkyM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjBGMkY1IiBkPSJNNTkgNDMuNkgyN2MtLjU1MyAwLTEtLjQ0OC0xLTEgMC0uNTUzLjQ0Ny0xIDEtMWgzMmMuNTUyIDAgMSAuNDQ3IDEgMSAwIC41NTItLjQ0OCAxLTEgMXptMC05SDI3Yy0uNTUzIDAtMS0uNDQ4LTEtMSAwLS41NTMuNDQ3LTEgMS0xaDMyYy41NTIgMCAxIC40NDcgMSAxIDAgLjU1Mi0uNDQ4IDEtMSAxem0tMzEtOGMtMS4xMDQgMC0yLS44OTYtMi0ydi0xNGMwLTEuMTA0Ljg5Ni0yIDItMmgzMGMxLjEwNCAwIDIgLjg5NiAyIDJ2MTRjMCAxLjEwNC0uODk2IDItMiAySDI4eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM5MTk2QUEiIGQ9Ik02OC42IDQ2LjZ2LTEuNUg2OHYtMi41ODRoLjZ2LTIuOTVINjhWMzcuMDFoLjZWMzQuNmwxMC40IDEySDY4LjZ6TTE3LjQgMzQuNTk5djIuNDM5aC42djIuNTU2aC0uNnYyLjk0OWguNlY0NS4xaC0uNnYxLjVIN2wxMC40LTEyLjAwMXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRENERUU4IiBkPSJNMTcuNDAxIDQ2LjZ2LTEuNUgxOC42djEuNWgtMS4xOTl6TTI3Ljc0OSAxLjJWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptNS41MDQgMFYwaDIuOTQ5djEuMmgtMi45NDl6bTUuNTA2IDBWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNSAwVjBoMi45NDl2MS4ySDQ5Ljc3em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptOC4zNjMuMDQ2QzYzLjQzIDEuMjE0IDYzLjIxNyAxLjIgNjMgMS4yaC0yLjIxOVYwSDYzYy4yNzggMCAuNTQ5LjAyLjgxNS4wNThsLS4xNzYgMS4xODh6bS00MS4zMDMuMDA0TDIyLjE1Ny4wNjJDMjIuNDMyLjAyMiAyMi43MTQgMCAyMyAwaDIuMTkzdjEuMkgyM2MtLjIyNSAwLS40NDcuMDE2LS42NjQuMDV6bTQ0LjgzNiAyLjk0N2MtLjI3OC0uODI2LS43OTItMS41NDYtMS40ODYtMi4wODNsLjczNC0uOTQ5Yy44ODMuNjgyIDEuNTM2IDEuNTk4IDEuODg5IDIuNjVsLTEuMTM3LjM4MnpNMTguODIgNC4yMmwtMS4xMzktLjM3N2MuMzQ4LTEuMDUyLjk5NS0xLjk3MiAxLjg3NC0yLjY1OWwuNzM4Ljk0NWMtLjY5LjU0LTEuMiAxLjI2My0xLjQ3MyAyLjA5MXptNDguNTgxIDUuMjYzVjYuNTM0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI3VjYuNTYxSDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4VjEyLjA0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyN3YtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzhWMjMuMDVINjguNlYyNmgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc3di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyOHYtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzdWMzQuMDZINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wM3YtMi45NUgxOC42djIuOTVoLTEuMTk5em01MCA1LjQ3NnYtMi45NDlINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wMjh2LTIuOTQ5SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDQuMDU2di0xLjVINjguNnYxLjVoLTEuMTk5eiIvPgogICAgPC9nPgo8L3N2Zz4K";
|
|
2123
2139
|
|
|
2124
2140
|
/* script */
|
|
2125
|
-
const __vue_script__$
|
|
2126
|
-
var __vue_render__$
|
|
2127
|
-
var __vue_staticRenderFns__$
|
|
2141
|
+
const __vue_script__$o = script$o;
|
|
2142
|
+
var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.survey.questions.length > 0)?_c('draggable',{staticClass:"questions-wrapper",attrs:{"draggable":".question-row"},on:{"start":function($event){_vm.drag=true;},"end":_vm.dragEnd},model:{value:(_vm.survey.questions),callback:function ($$v) {_vm.$set(_vm.survey, "questions", $$v);},expression:"survey.questions"}},[_c('transition-group',_vm._l((_vm.survey.questions),function(question,index){return _c('editor-question-row',{key:question.id,class:{'question-row-active': question.active},attrs:{"question":question,"index":index,"id":question.id},nativeOn:{"click":function($event){return _vm.chooseQuestion(question)}}})}),1)],1):_c('div',{staticClass:"no-data"},[_c('img',{staticClass:"empty-icon",attrs:{"src":__$_require_images_empty_svg__}}),_vm._v(" "),_c('p',{staticClass:"empty-desc"},[_vm._v(_vm._s(_vm.t('survey_creator.question.no_data')))])])],1)};
|
|
2143
|
+
var __vue_staticRenderFns__$o = [];
|
|
2128
2144
|
|
|
2129
2145
|
/* style */
|
|
2130
|
-
const __vue_inject_styles__$
|
|
2146
|
+
const __vue_inject_styles__$o = undefined;
|
|
2131
2147
|
/* scoped */
|
|
2132
|
-
const __vue_scope_id__$
|
|
2148
|
+
const __vue_scope_id__$o = undefined;
|
|
2133
2149
|
/* module identifier */
|
|
2134
|
-
const __vue_module_identifier__$
|
|
2150
|
+
const __vue_module_identifier__$o = undefined;
|
|
2135
2151
|
/* functional template */
|
|
2136
|
-
const __vue_is_functional_template__$
|
|
2152
|
+
const __vue_is_functional_template__$o = false;
|
|
2137
2153
|
/* style inject */
|
|
2138
2154
|
|
|
2139
2155
|
/* style inject SSR */
|
|
@@ -2142,22 +2158,22 @@ var __vue_staticRenderFns__$n = [];
|
|
|
2142
2158
|
|
|
2143
2159
|
|
|
2144
2160
|
|
|
2145
|
-
const __vue_component__$
|
|
2146
|
-
{ render: __vue_render__$
|
|
2147
|
-
__vue_inject_styles__$
|
|
2148
|
-
__vue_script__$
|
|
2149
|
-
__vue_scope_id__$
|
|
2150
|
-
__vue_is_functional_template__$
|
|
2151
|
-
__vue_module_identifier__$
|
|
2161
|
+
const __vue_component__$o = /*#__PURE__*/normalizeComponent(
|
|
2162
|
+
{ render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
|
|
2163
|
+
__vue_inject_styles__$o,
|
|
2164
|
+
__vue_script__$o,
|
|
2165
|
+
__vue_scope_id__$o,
|
|
2166
|
+
__vue_is_functional_template__$o,
|
|
2167
|
+
__vue_module_identifier__$o,
|
|
2152
2168
|
false,
|
|
2153
2169
|
undefined,
|
|
2154
2170
|
undefined,
|
|
2155
2171
|
undefined
|
|
2156
2172
|
);
|
|
2157
2173
|
|
|
2158
|
-
var EditQuestions = __vue_component__$
|
|
2174
|
+
var EditQuestions = __vue_component__$o;
|
|
2159
2175
|
|
|
2160
|
-
var script$
|
|
2176
|
+
var script$n = Vue.extend({
|
|
2161
2177
|
name: "survey-editor",
|
|
2162
2178
|
mixins: [LocaleMixin],
|
|
2163
2179
|
components: { Card, Row, Col, Button, EditQuestions },
|
|
@@ -2174,20 +2190,20 @@ var script$m = Vue.extend({
|
|
|
2174
2190
|
});
|
|
2175
2191
|
|
|
2176
2192
|
/* script */
|
|
2177
|
-
const __vue_script__$
|
|
2193
|
+
const __vue_script__$n = script$n;
|
|
2178
2194
|
|
|
2179
2195
|
/* template */
|
|
2180
|
-
var __vue_render__$
|
|
2181
|
-
var __vue_staticRenderFns__$
|
|
2196
|
+
var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-editor-wrapper"},[_c('Card',{attrs:{"shadow":""}},[_c('edit-questions',{attrs:{"survey":_vm.survey}})],1)],1)};
|
|
2197
|
+
var __vue_staticRenderFns__$n = [];
|
|
2182
2198
|
|
|
2183
2199
|
/* style */
|
|
2184
|
-
const __vue_inject_styles__$
|
|
2200
|
+
const __vue_inject_styles__$n = undefined;
|
|
2185
2201
|
/* scoped */
|
|
2186
|
-
const __vue_scope_id__$
|
|
2202
|
+
const __vue_scope_id__$n = undefined;
|
|
2187
2203
|
/* module identifier */
|
|
2188
|
-
const __vue_module_identifier__$
|
|
2204
|
+
const __vue_module_identifier__$n = undefined;
|
|
2189
2205
|
/* functional template */
|
|
2190
|
-
const __vue_is_functional_template__$
|
|
2206
|
+
const __vue_is_functional_template__$n = false;
|
|
2191
2207
|
/* style inject */
|
|
2192
2208
|
|
|
2193
2209
|
/* style inject SSR */
|
|
@@ -2196,20 +2212,20 @@ var __vue_staticRenderFns__$m = [];
|
|
|
2196
2212
|
|
|
2197
2213
|
|
|
2198
2214
|
|
|
2199
|
-
const __vue_component__$
|
|
2200
|
-
{ render: __vue_render__$
|
|
2201
|
-
__vue_inject_styles__$
|
|
2202
|
-
__vue_script__$
|
|
2203
|
-
__vue_scope_id__$
|
|
2204
|
-
__vue_is_functional_template__$
|
|
2205
|
-
__vue_module_identifier__$
|
|
2215
|
+
const __vue_component__$n = /*#__PURE__*/normalizeComponent(
|
|
2216
|
+
{ render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
|
|
2217
|
+
__vue_inject_styles__$n,
|
|
2218
|
+
__vue_script__$n,
|
|
2219
|
+
__vue_scope_id__$n,
|
|
2220
|
+
__vue_is_functional_template__$n,
|
|
2221
|
+
__vue_module_identifier__$n,
|
|
2206
2222
|
false,
|
|
2207
2223
|
undefined,
|
|
2208
2224
|
undefined,
|
|
2209
2225
|
undefined
|
|
2210
2226
|
);
|
|
2211
2227
|
|
|
2212
|
-
var SurveyEditor = __vue_component__$
|
|
2228
|
+
var SurveyEditor = __vue_component__$n;
|
|
2213
2229
|
|
|
2214
2230
|
var questionFormMixin = Vue.extend({
|
|
2215
2231
|
inject: ["$rootComponent"],
|
|
@@ -2235,7 +2251,7 @@ var questionFormMixin = Vue.extend({
|
|
|
2235
2251
|
methods: {}
|
|
2236
2252
|
});
|
|
2237
2253
|
|
|
2238
|
-
var script$
|
|
2254
|
+
var script$m = Vue.extend({
|
|
2239
2255
|
name: "single-selection-form",
|
|
2240
2256
|
components: {
|
|
2241
2257
|
Form,
|
|
@@ -2306,10 +2322,10 @@ var script$l = Vue.extend({
|
|
|
2306
2322
|
});
|
|
2307
2323
|
|
|
2308
2324
|
/* script */
|
|
2309
|
-
const __vue_script__$
|
|
2325
|
+
const __vue_script__$m = script$m;
|
|
2310
2326
|
|
|
2311
2327
|
/* template */
|
|
2312
|
-
var __vue_render__$
|
|
2328
|
+
var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)])],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"12"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
|
|
2313
2329
|
{ required: _vm.editQuestion.options.scoringEnabled,
|
|
2314
2330
|
message: _vm.t('survey_creator.question.scoreRequiredTip')},
|
|
2315
2331
|
{ pattern: /^(([1-9][0-9][0-9]|[1-9][0-9]|[0-9])(\.\d{1,2})?|0\.\d{1,2})$/,
|
|
@@ -2318,42 +2334,42 @@ var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
2318
2334
|
{ message: _vm.t('survey_creator.question.starLeastOneTip'),
|
|
2319
2335
|
validator:_vm.validatedStar}
|
|
2320
2336
|
]}},[_c('Checkbox',{on:{"on-change":function($event){return _vm.starChange(option.id)}},model:{value:(option.options.star),callback:function ($$v) {_vm.$set(option.options, "star", $$v);},expression:"option.options.star"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.optionalStarTip'))+"\n ")])],1)],1)],1)],1)],1)}),0)],1)};
|
|
2321
|
-
var __vue_staticRenderFns__$
|
|
2337
|
+
var __vue_staticRenderFns__$m = [];
|
|
2322
2338
|
|
|
2323
2339
|
/* style */
|
|
2324
|
-
const __vue_inject_styles__$
|
|
2340
|
+
const __vue_inject_styles__$m = function (inject) {
|
|
2325
2341
|
if (!inject) return
|
|
2326
2342
|
inject("data-v-281b8cd1_0", { source: ".question-options[data-v-281b8cd1]{padding-bottom:10px;padding-left:80px}", map: undefined, media: undefined });
|
|
2327
2343
|
|
|
2328
2344
|
};
|
|
2329
2345
|
/* scoped */
|
|
2330
|
-
const __vue_scope_id__$
|
|
2346
|
+
const __vue_scope_id__$m = "data-v-281b8cd1";
|
|
2331
2347
|
/* module identifier */
|
|
2332
|
-
const __vue_module_identifier__$
|
|
2348
|
+
const __vue_module_identifier__$m = undefined;
|
|
2333
2349
|
/* functional template */
|
|
2334
|
-
const __vue_is_functional_template__$
|
|
2350
|
+
const __vue_is_functional_template__$m = false;
|
|
2335
2351
|
/* style inject SSR */
|
|
2336
2352
|
|
|
2337
2353
|
/* style inject shadow dom */
|
|
2338
2354
|
|
|
2339
2355
|
|
|
2340
2356
|
|
|
2341
|
-
const __vue_component__$
|
|
2342
|
-
{ render: __vue_render__$
|
|
2343
|
-
__vue_inject_styles__$
|
|
2344
|
-
__vue_script__$
|
|
2345
|
-
__vue_scope_id__$
|
|
2346
|
-
__vue_is_functional_template__$
|
|
2347
|
-
__vue_module_identifier__$
|
|
2357
|
+
const __vue_component__$m = /*#__PURE__*/normalizeComponent(
|
|
2358
|
+
{ render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
|
|
2359
|
+
__vue_inject_styles__$m,
|
|
2360
|
+
__vue_script__$m,
|
|
2361
|
+
__vue_scope_id__$m,
|
|
2362
|
+
__vue_is_functional_template__$m,
|
|
2363
|
+
__vue_module_identifier__$m,
|
|
2348
2364
|
false,
|
|
2349
2365
|
createInjector,
|
|
2350
2366
|
undefined,
|
|
2351
2367
|
undefined
|
|
2352
2368
|
);
|
|
2353
2369
|
|
|
2354
|
-
var SingleSelectionForm = __vue_component__$
|
|
2370
|
+
var SingleSelectionForm = __vue_component__$m;
|
|
2355
2371
|
|
|
2356
|
-
var script$
|
|
2372
|
+
var script$l = Vue.extend({
|
|
2357
2373
|
name: "multi-selection-form",
|
|
2358
2374
|
components: {
|
|
2359
2375
|
Form,
|
|
@@ -2421,51 +2437,51 @@ var script$k = Vue.extend({
|
|
|
2421
2437
|
});
|
|
2422
2438
|
|
|
2423
2439
|
/* script */
|
|
2424
|
-
const __vue_script__$
|
|
2440
|
+
const __vue_script__$l = script$l;
|
|
2425
2441
|
|
|
2426
2442
|
/* template */
|
|
2427
|
-
var __vue_render__$
|
|
2443
|
+
var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)]),_vm._v(" "),(_vm.editQuestion.options.starEnabled)?_c('div',{staticStyle:{"display":"inline"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountPrefix'))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"50px"},attrs:{"size":"small"},model:{value:(_vm.editQuestion.options.starMinCount),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starMinCount", $$v);},expression:"editQuestion.options.starMinCount"}},_vm._l((_vm.selectStarList),function(item){return _c('Option',{key:item.value,attrs:{"value":item.value}},[_vm._v(_vm._s(item.label)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountSuffix'))+"\n ")])],1):_vm._e()],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"16"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
|
|
2428
2444
|
{ required: _vm.editQuestion.options.scoringEnabled,
|
|
2429
2445
|
message: _vm.t('survey_creator.question.scoreRequiredTip')},
|
|
2430
2446
|
{ pattern: /^(([1-9][0-9][0-9]|[1-9][0-9]|[0-9])(\.\d{1,2})?|0\.\d{1,2})$/,
|
|
2431
2447
|
message: _vm.t('survey_creator.question.scoreErrorTip')}
|
|
2432
2448
|
]}},[_c('Input',{staticStyle:{"width":"95%"},attrs:{"type":"number"},model:{value:(option.options.score),callback:function ($$v) {_vm.$set(option.options, "score", $$v);},expression:"option.options.score"}},[_c('span',{attrs:{"slot":"prepend"},slot:"prepend"},[_vm._v(_vm._s(_vm.t('survey_creator.question.score')))])])],1)],1)],1)],1)],1)}),0)],1)};
|
|
2433
|
-
var __vue_staticRenderFns__$
|
|
2449
|
+
var __vue_staticRenderFns__$l = [];
|
|
2434
2450
|
|
|
2435
2451
|
/* style */
|
|
2436
|
-
const __vue_inject_styles__$
|
|
2452
|
+
const __vue_inject_styles__$l = function (inject) {
|
|
2437
2453
|
if (!inject) return
|
|
2438
2454
|
inject("data-v-2ff2d3ea_0", { source: ".question-options[data-v-2ff2d3ea]{padding-bottom:10px;padding-left:80px}", map: undefined, media: undefined });
|
|
2439
2455
|
|
|
2440
2456
|
};
|
|
2441
2457
|
/* scoped */
|
|
2442
|
-
const __vue_scope_id__$
|
|
2458
|
+
const __vue_scope_id__$l = "data-v-2ff2d3ea";
|
|
2443
2459
|
/* module identifier */
|
|
2444
|
-
const __vue_module_identifier__$
|
|
2460
|
+
const __vue_module_identifier__$l = undefined;
|
|
2445
2461
|
/* functional template */
|
|
2446
|
-
const __vue_is_functional_template__$
|
|
2462
|
+
const __vue_is_functional_template__$l = false;
|
|
2447
2463
|
/* style inject SSR */
|
|
2448
2464
|
|
|
2449
2465
|
/* style inject shadow dom */
|
|
2450
2466
|
|
|
2451
2467
|
|
|
2452
2468
|
|
|
2453
|
-
const __vue_component__$
|
|
2454
|
-
{ render: __vue_render__$
|
|
2455
|
-
__vue_inject_styles__$
|
|
2456
|
-
__vue_script__$
|
|
2457
|
-
__vue_scope_id__$
|
|
2458
|
-
__vue_is_functional_template__$
|
|
2459
|
-
__vue_module_identifier__$
|
|
2469
|
+
const __vue_component__$l = /*#__PURE__*/normalizeComponent(
|
|
2470
|
+
{ render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
|
|
2471
|
+
__vue_inject_styles__$l,
|
|
2472
|
+
__vue_script__$l,
|
|
2473
|
+
__vue_scope_id__$l,
|
|
2474
|
+
__vue_is_functional_template__$l,
|
|
2475
|
+
__vue_module_identifier__$l,
|
|
2460
2476
|
false,
|
|
2461
2477
|
createInjector,
|
|
2462
2478
|
undefined,
|
|
2463
2479
|
undefined
|
|
2464
2480
|
);
|
|
2465
2481
|
|
|
2466
|
-
var MultiSelectionForm = __vue_component__$
|
|
2482
|
+
var MultiSelectionForm = __vue_component__$l;
|
|
2467
2483
|
|
|
2468
|
-
var script$
|
|
2484
|
+
var script$k = Vue.extend({
|
|
2469
2485
|
name: "short-answer-form",
|
|
2470
2486
|
components: {
|
|
2471
2487
|
Form,
|
|
@@ -2479,21 +2495,21 @@ var script$j = Vue.extend({
|
|
|
2479
2495
|
});
|
|
2480
2496
|
|
|
2481
2497
|
/* script */
|
|
2482
|
-
const __vue_script__$
|
|
2498
|
+
const __vue_script__$k = script$k;
|
|
2483
2499
|
|
|
2484
2500
|
/* template */
|
|
2485
|
-
var __vue_render__$
|
|
2501
|
+
var __vue_render__$k = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true,
|
|
2486
2502
|
message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.question')))])]),_vm._v(" "),_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
|
|
2487
|
-
var __vue_staticRenderFns__$
|
|
2503
|
+
var __vue_staticRenderFns__$k = [];
|
|
2488
2504
|
|
|
2489
2505
|
/* style */
|
|
2490
|
-
const __vue_inject_styles__$
|
|
2506
|
+
const __vue_inject_styles__$k = undefined;
|
|
2491
2507
|
/* scoped */
|
|
2492
|
-
const __vue_scope_id__$
|
|
2508
|
+
const __vue_scope_id__$k = undefined;
|
|
2493
2509
|
/* module identifier */
|
|
2494
|
-
const __vue_module_identifier__$
|
|
2510
|
+
const __vue_module_identifier__$k = undefined;
|
|
2495
2511
|
/* functional template */
|
|
2496
|
-
const __vue_is_functional_template__$
|
|
2512
|
+
const __vue_is_functional_template__$k = false;
|
|
2497
2513
|
/* style inject */
|
|
2498
2514
|
|
|
2499
2515
|
/* style inject SSR */
|
|
@@ -2502,22 +2518,22 @@ var __vue_staticRenderFns__$j = [];
|
|
|
2502
2518
|
|
|
2503
2519
|
|
|
2504
2520
|
|
|
2505
|
-
const __vue_component__$
|
|
2506
|
-
{ render: __vue_render__$
|
|
2507
|
-
__vue_inject_styles__$
|
|
2508
|
-
__vue_script__$
|
|
2509
|
-
__vue_scope_id__$
|
|
2510
|
-
__vue_is_functional_template__$
|
|
2511
|
-
__vue_module_identifier__$
|
|
2521
|
+
const __vue_component__$k = /*#__PURE__*/normalizeComponent(
|
|
2522
|
+
{ render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
|
|
2523
|
+
__vue_inject_styles__$k,
|
|
2524
|
+
__vue_script__$k,
|
|
2525
|
+
__vue_scope_id__$k,
|
|
2526
|
+
__vue_is_functional_template__$k,
|
|
2527
|
+
__vue_module_identifier__$k,
|
|
2512
2528
|
false,
|
|
2513
2529
|
undefined,
|
|
2514
2530
|
undefined,
|
|
2515
2531
|
undefined
|
|
2516
2532
|
);
|
|
2517
2533
|
|
|
2518
|
-
var ShortAnswerForm = __vue_component__$
|
|
2534
|
+
var ShortAnswerForm = __vue_component__$k;
|
|
2519
2535
|
|
|
2520
|
-
var script$
|
|
2536
|
+
var script$j = Vue.extend({
|
|
2521
2537
|
name: "matrix-form",
|
|
2522
2538
|
components: {
|
|
2523
2539
|
Form,
|
|
@@ -2611,20 +2627,20 @@ var script$i = Vue.extend({
|
|
|
2611
2627
|
});
|
|
2612
2628
|
|
|
2613
2629
|
/* script */
|
|
2614
|
-
const __vue_script__$
|
|
2630
|
+
const __vue_script__$j = script$j;
|
|
2615
2631
|
|
|
2616
2632
|
/* template */
|
|
2617
|
-
var __vue_render__$
|
|
2618
|
-
var __vue_staticRenderFns__$
|
|
2633
|
+
var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')},"label":_vm.t('survey_creator.page.matrixQuestion')}},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Row',[_c('Col',{attrs:{"span":23,"offset":-1}},[_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label":_vm.t('survey_creator.question.level'),"label-width":_vm.labelWidth}},[_c('InputNumber',{attrs:{"min":2,"max":10},on:{"on-change":_vm.levelChange},model:{value:(_vm.editQuestion.options.level),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "level", $$v);},expression:"editQuestion.options.level"}})],1)],1),_vm._v(" "),_vm._l((_vm.editQuestion.choices),function(choice,index){return _c('FormItem',{key:choice.id,attrs:{"label":_vm.t('survey_creator.question.optional'),"label-width":_vm.labelWidth}},[_c('Row',[_c('Col',{attrs:{"span":"4"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.options.score',"rules":{required: true, message: _vm.t('survey_creator.question.scoreRequiredTip')}}},[_c('InputNumber',{attrs:{"min":0},model:{value:(choice.options.score),callback:function ($$v) {_vm.$set(choice.options, "score", $$v);},expression:"choice.options.score"}})],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"19"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(choice.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(choice.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"choice.text[primaryLanguage]"}})],1)],1)],1)],1)}),_vm._v(" "),_vm._l((_vm.editQuestion.subQuestions),function(subQuestion,index){return _c('div',{key:index,attrs:{"id":'subQuestion-' + index}},[_c('FormItem',{attrs:{"label-width":_vm.labelWidth,"label":_vm.t('survey_creator.question.sub_questions'),"prop":'subQuestions.' + + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.subQuestionRequiredTip')}}},[_c('Row',{attrs:{"type":"flex","justify":"space-between"}},[_c('Col',{attrs:{"span":"20"}},[_c('Input',{model:{value:(subQuestion.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(subQuestion.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"subQuestion.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.subQuestions.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.subQuestions.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteSubQuestion(index)}}}):_vm._e()],1)],1)],1)],1)],1)})],2)};
|
|
2634
|
+
var __vue_staticRenderFns__$j = [];
|
|
2619
2635
|
|
|
2620
2636
|
/* style */
|
|
2621
|
-
const __vue_inject_styles__$
|
|
2637
|
+
const __vue_inject_styles__$j = undefined;
|
|
2622
2638
|
/* scoped */
|
|
2623
|
-
const __vue_scope_id__$
|
|
2639
|
+
const __vue_scope_id__$j = undefined;
|
|
2624
2640
|
/* module identifier */
|
|
2625
|
-
const __vue_module_identifier__$
|
|
2641
|
+
const __vue_module_identifier__$j = undefined;
|
|
2626
2642
|
/* functional template */
|
|
2627
|
-
const __vue_is_functional_template__$
|
|
2643
|
+
const __vue_is_functional_template__$j = false;
|
|
2628
2644
|
/* style inject */
|
|
2629
2645
|
|
|
2630
2646
|
/* style inject SSR */
|
|
@@ -2633,22 +2649,22 @@ var __vue_staticRenderFns__$i = [];
|
|
|
2633
2649
|
|
|
2634
2650
|
|
|
2635
2651
|
|
|
2636
|
-
const __vue_component__$
|
|
2637
|
-
{ render: __vue_render__$
|
|
2638
|
-
__vue_inject_styles__$
|
|
2639
|
-
__vue_script__$
|
|
2640
|
-
__vue_scope_id__$
|
|
2641
|
-
__vue_is_functional_template__$
|
|
2642
|
-
__vue_module_identifier__$
|
|
2652
|
+
const __vue_component__$j = /*#__PURE__*/normalizeComponent(
|
|
2653
|
+
{ render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
|
|
2654
|
+
__vue_inject_styles__$j,
|
|
2655
|
+
__vue_script__$j,
|
|
2656
|
+
__vue_scope_id__$j,
|
|
2657
|
+
__vue_is_functional_template__$j,
|
|
2658
|
+
__vue_module_identifier__$j,
|
|
2643
2659
|
false,
|
|
2644
2660
|
undefined,
|
|
2645
2661
|
undefined,
|
|
2646
2662
|
undefined
|
|
2647
2663
|
);
|
|
2648
2664
|
|
|
2649
|
-
var MatrixForm = __vue_component__$
|
|
2665
|
+
var MatrixForm = __vue_component__$j;
|
|
2650
2666
|
|
|
2651
|
-
var script$
|
|
2667
|
+
var script$i = Vue.extend({
|
|
2652
2668
|
name: "title-form",
|
|
2653
2669
|
components: {
|
|
2654
2670
|
Form,
|
|
@@ -2661,20 +2677,20 @@ var script$h = Vue.extend({
|
|
|
2661
2677
|
});
|
|
2662
2678
|
|
|
2663
2679
|
/* script */
|
|
2664
|
-
const __vue_script__$
|
|
2680
|
+
const __vue_script__$i = script$i;
|
|
2665
2681
|
|
|
2666
2682
|
/* template */
|
|
2667
|
-
var __vue_render__$
|
|
2668
|
-
var __vue_staticRenderFns__$
|
|
2683
|
+
var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.textTitleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.textTitle')))])]),_vm._v(" "),_c('Input',{attrs:{"autosize":{ minRows: 3, maxRows: 3 },"type":"textarea","placeholder":_vm.t('survey_creator.question.textTitleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
|
|
2684
|
+
var __vue_staticRenderFns__$i = [];
|
|
2669
2685
|
|
|
2670
2686
|
/* style */
|
|
2671
|
-
const __vue_inject_styles__$
|
|
2687
|
+
const __vue_inject_styles__$i = undefined;
|
|
2672
2688
|
/* scoped */
|
|
2673
|
-
const __vue_scope_id__$
|
|
2689
|
+
const __vue_scope_id__$i = undefined;
|
|
2674
2690
|
/* module identifier */
|
|
2675
|
-
const __vue_module_identifier__$
|
|
2691
|
+
const __vue_module_identifier__$i = undefined;
|
|
2676
2692
|
/* functional template */
|
|
2677
|
-
const __vue_is_functional_template__$
|
|
2693
|
+
const __vue_is_functional_template__$i = false;
|
|
2678
2694
|
/* style inject */
|
|
2679
2695
|
|
|
2680
2696
|
/* style inject SSR */
|
|
@@ -2683,22 +2699,22 @@ var __vue_staticRenderFns__$h = [];
|
|
|
2683
2699
|
|
|
2684
2700
|
|
|
2685
2701
|
|
|
2686
|
-
const __vue_component__$
|
|
2687
|
-
{ render: __vue_render__$
|
|
2688
|
-
__vue_inject_styles__$
|
|
2689
|
-
__vue_script__$
|
|
2690
|
-
__vue_scope_id__$
|
|
2691
|
-
__vue_is_functional_template__$
|
|
2692
|
-
__vue_module_identifier__$
|
|
2702
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent(
|
|
2703
|
+
{ render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
|
|
2704
|
+
__vue_inject_styles__$i,
|
|
2705
|
+
__vue_script__$i,
|
|
2706
|
+
__vue_scope_id__$i,
|
|
2707
|
+
__vue_is_functional_template__$i,
|
|
2708
|
+
__vue_module_identifier__$i,
|
|
2693
2709
|
false,
|
|
2694
2710
|
undefined,
|
|
2695
2711
|
undefined,
|
|
2696
2712
|
undefined
|
|
2697
2713
|
);
|
|
2698
2714
|
|
|
2699
|
-
var TitleForm = __vue_component__$
|
|
2715
|
+
var TitleForm = __vue_component__$i;
|
|
2700
2716
|
|
|
2701
|
-
var script$
|
|
2717
|
+
var script$h = Vue.extend({
|
|
2702
2718
|
name: "star",
|
|
2703
2719
|
mixins: [questionFormMixin],
|
|
2704
2720
|
components: {
|
|
@@ -2792,10 +2808,10 @@ var script$g = Vue.extend({
|
|
|
2792
2808
|
});
|
|
2793
2809
|
|
|
2794
2810
|
/* script */
|
|
2795
|
-
const __vue_script__$
|
|
2811
|
+
const __vue_script__$h = script$h;
|
|
2796
2812
|
|
|
2797
2813
|
/* template */
|
|
2798
|
-
var __vue_render__$
|
|
2814
|
+
var __vue_render__$h = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Table',{ref:"myTable",attrs:{"size":"small","border":"","data":_vm.evaluationItems,"columns":_vm.realColumns},scopedSlots:_vm._u([{key:"levelName",fn:function(ref){
|
|
2799
2815
|
var row = ref.row;
|
|
2800
2816
|
ref.column;
|
|
2801
2817
|
return [_c('FormItem',{attrs:{"prop":'evaluationItems[' + row._index + '].text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(_vm.evaluationItems[row._index].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[row._index].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[row._index].text[primaryLanguage]"}})],1)]}},{key:"level",fn:function(ref){
|
|
@@ -2805,16 +2821,16 @@ return [_c('FormItem',{attrs:{"prop":'evaluationItems[' + row._index + '].level'
|
|
|
2805
2821
|
var row = ref.row;
|
|
2806
2822
|
ref.column;
|
|
2807
2823
|
return [(_vm.evaluationItems.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.evaluationItems.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteItem(row._index)}}}):_vm._e()]}}])})};
|
|
2808
|
-
var __vue_staticRenderFns__$
|
|
2824
|
+
var __vue_staticRenderFns__$h = [];
|
|
2809
2825
|
|
|
2810
2826
|
/* style */
|
|
2811
|
-
const __vue_inject_styles__$
|
|
2827
|
+
const __vue_inject_styles__$h = undefined;
|
|
2812
2828
|
/* scoped */
|
|
2813
|
-
const __vue_scope_id__$
|
|
2829
|
+
const __vue_scope_id__$h = undefined;
|
|
2814
2830
|
/* module identifier */
|
|
2815
|
-
const __vue_module_identifier__$
|
|
2831
|
+
const __vue_module_identifier__$h = undefined;
|
|
2816
2832
|
/* functional template */
|
|
2817
|
-
const __vue_is_functional_template__$
|
|
2833
|
+
const __vue_is_functional_template__$h = false;
|
|
2818
2834
|
/* style inject */
|
|
2819
2835
|
|
|
2820
2836
|
/* style inject SSR */
|
|
@@ -2823,20 +2839,20 @@ var __vue_staticRenderFns__$g = [];
|
|
|
2823
2839
|
|
|
2824
2840
|
|
|
2825
2841
|
|
|
2826
|
-
const __vue_component__$
|
|
2827
|
-
{ render: __vue_render__$
|
|
2828
|
-
__vue_inject_styles__$
|
|
2829
|
-
__vue_script__$
|
|
2830
|
-
__vue_scope_id__$
|
|
2831
|
-
__vue_is_functional_template__$
|
|
2832
|
-
__vue_module_identifier__$
|
|
2842
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent(
|
|
2843
|
+
{ render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
|
|
2844
|
+
__vue_inject_styles__$h,
|
|
2845
|
+
__vue_script__$h,
|
|
2846
|
+
__vue_scope_id__$h,
|
|
2847
|
+
__vue_is_functional_template__$h,
|
|
2848
|
+
__vue_module_identifier__$h,
|
|
2833
2849
|
false,
|
|
2834
2850
|
undefined,
|
|
2835
2851
|
undefined,
|
|
2836
2852
|
undefined
|
|
2837
2853
|
);
|
|
2838
2854
|
|
|
2839
|
-
var Star = __vue_component__$
|
|
2855
|
+
var Star = __vue_component__$h;
|
|
2840
2856
|
|
|
2841
2857
|
var ExprMixin = Vue.extend({
|
|
2842
2858
|
inject: ["$rootComponent"],
|
|
@@ -2901,7 +2917,7 @@ var ExprMixin = Vue.extend({
|
|
|
2901
2917
|
}
|
|
2902
2918
|
});
|
|
2903
2919
|
|
|
2904
|
-
var script$
|
|
2920
|
+
var script$g = Vue.extend({
|
|
2905
2921
|
name: "question-select",
|
|
2906
2922
|
components: { Select, Option, Tooltip },
|
|
2907
2923
|
mixins: [questionFormMixin],
|
|
@@ -2951,23 +2967,92 @@ var script$f = Vue.extend({
|
|
|
2951
2967
|
}
|
|
2952
2968
|
});
|
|
2953
2969
|
|
|
2970
|
+
/* script */
|
|
2971
|
+
const __vue_script__$g = script$g;
|
|
2972
|
+
|
|
2973
|
+
/* template */
|
|
2974
|
+
var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.question_scope'),"multiple":"","max-tag-count":0,"max-tag-placeholder":_vm.numbers},on:{"on-change":_vm.onChange},model:{value:(_vm.scope),callback:function ($$v) {_vm.scope=$$v;},expression:"scope"}},[_vm._l((_vm.questions),function(question){return [(question.type == 'SINGLE_SELECTION')?_c('Option',{key:question.id,attrs:{"value":question.id,"tag":question.header.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getSingleOptionContent(question),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+" "+_vm._s(_vm._f("title")(question.header.text[_vm.primaryLanguage]))+"\n ")])],1):_vm._e(),_vm._v(" "),(question.type == 'MATRIX')?_vm._l((question.subQuestions),function(subQuestion){return _c('Option',{key:subQuestion.id,attrs:{"value":subQuestion.id,"tag":question.header.number + '.' + subQuestion.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getMatrixOptionContent(question,subQuestion),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+"."+_vm._s(subQuestion.number)+" "+_vm._s(_vm._f("title")(subQuestion.text[_vm.primaryLanguage]))+"\n ")])],1)}):_vm._e()]})],2)};
|
|
2975
|
+
var __vue_staticRenderFns__$g = [];
|
|
2976
|
+
|
|
2977
|
+
/* style */
|
|
2978
|
+
const __vue_inject_styles__$g = undefined;
|
|
2979
|
+
/* scoped */
|
|
2980
|
+
const __vue_scope_id__$g = undefined;
|
|
2981
|
+
/* module identifier */
|
|
2982
|
+
const __vue_module_identifier__$g = undefined;
|
|
2983
|
+
/* functional template */
|
|
2984
|
+
const __vue_is_functional_template__$g = false;
|
|
2985
|
+
/* style inject */
|
|
2986
|
+
|
|
2987
|
+
/* style inject SSR */
|
|
2988
|
+
|
|
2989
|
+
/* style inject shadow dom */
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent(
|
|
2994
|
+
{ render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
|
|
2995
|
+
__vue_inject_styles__$g,
|
|
2996
|
+
__vue_script__$g,
|
|
2997
|
+
__vue_scope_id__$g,
|
|
2998
|
+
__vue_is_functional_template__$g,
|
|
2999
|
+
__vue_module_identifier__$g,
|
|
3000
|
+
false,
|
|
3001
|
+
undefined,
|
|
3002
|
+
undefined,
|
|
3003
|
+
undefined
|
|
3004
|
+
);
|
|
3005
|
+
|
|
3006
|
+
var QuestionSelect = __vue_component__$g;
|
|
3007
|
+
|
|
3008
|
+
var script$f = Vue.extend({
|
|
3009
|
+
name: "assign",
|
|
3010
|
+
mixins: [questionFormMixin, ExprMixin],
|
|
3011
|
+
components: {
|
|
3012
|
+
Row,
|
|
3013
|
+
Col,
|
|
3014
|
+
Select,
|
|
3015
|
+
OptionGroup,
|
|
3016
|
+
Option,
|
|
3017
|
+
FormItem,
|
|
3018
|
+
InputNumber,
|
|
3019
|
+
QuestionSelect
|
|
3020
|
+
},
|
|
3021
|
+
created() {
|
|
3022
|
+
this.value.operator = _.unescape(this.value.operator);
|
|
3023
|
+
},
|
|
3024
|
+
methods: {
|
|
3025
|
+
generateExpr() {
|
|
3026
|
+
let ids = `${_.map(this.value.scope, e => {
|
|
3027
|
+
return `"` + e + `"`;
|
|
3028
|
+
})}`;
|
|
3029
|
+
let answers = `${_.map(this.value.values, e => {
|
|
3030
|
+
return `"` + e + `"`;
|
|
3031
|
+
})}`;
|
|
3032
|
+
return `$count($[id in [${ids}]][answer in [${answers}]]) ${this.value.operator} ${this.value.size}`;
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
});
|
|
3036
|
+
|
|
2954
3037
|
/* script */
|
|
2955
3038
|
const __vue_script__$f = script$f;
|
|
2956
3039
|
|
|
2957
3040
|
/* template */
|
|
2958
|
-
var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
3041
|
+
var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_count'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{ required: true, trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.size"),"rules":{ required: true, type: 'number', trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.scope.length},model:{value:(_vm.value.size),callback:function ($$v) {_vm.$set(_vm.value, "size", $$v);},expression:"value.size"}})],1)],1)],1)};
|
|
2959
3042
|
var __vue_staticRenderFns__$f = [];
|
|
2960
3043
|
|
|
2961
3044
|
/* style */
|
|
2962
|
-
const __vue_inject_styles__$f =
|
|
3045
|
+
const __vue_inject_styles__$f = function (inject) {
|
|
3046
|
+
if (!inject) return
|
|
3047
|
+
inject("data-v-c3e890de_0", { source: ".label[data-v-c3e890de]{text-align:right;margin-bottom:24px;padding-right:2px}", map: undefined, media: undefined });
|
|
3048
|
+
|
|
3049
|
+
};
|
|
2963
3050
|
/* scoped */
|
|
2964
|
-
const __vue_scope_id__$f =
|
|
3051
|
+
const __vue_scope_id__$f = "data-v-c3e890de";
|
|
2965
3052
|
/* module identifier */
|
|
2966
3053
|
const __vue_module_identifier__$f = undefined;
|
|
2967
3054
|
/* functional template */
|
|
2968
3055
|
const __vue_is_functional_template__$f = false;
|
|
2969
|
-
/* style inject */
|
|
2970
|
-
|
|
2971
3056
|
/* style inject SSR */
|
|
2972
3057
|
|
|
2973
3058
|
/* style inject shadow dom */
|
|
@@ -2982,29 +3067,24 @@ var __vue_staticRenderFns__$f = [];
|
|
|
2982
3067
|
__vue_is_functional_template__$f,
|
|
2983
3068
|
__vue_module_identifier__$f,
|
|
2984
3069
|
false,
|
|
2985
|
-
|
|
3070
|
+
createInjector,
|
|
2986
3071
|
undefined,
|
|
2987
3072
|
undefined
|
|
2988
3073
|
);
|
|
2989
3074
|
|
|
2990
|
-
var
|
|
3075
|
+
var Assign = __vue_component__$f;
|
|
2991
3076
|
|
|
2992
3077
|
var script$e = Vue.extend({
|
|
2993
|
-
name: "
|
|
2994
|
-
mixins: [
|
|
3078
|
+
name: "auto",
|
|
3079
|
+
mixins: [ExprMixin, questionFormMixin],
|
|
2995
3080
|
components: {
|
|
2996
3081
|
Row,
|
|
2997
3082
|
Col,
|
|
2998
3083
|
Select,
|
|
2999
|
-
OptionGroup,
|
|
3000
3084
|
Option,
|
|
3001
3085
|
FormItem,
|
|
3002
|
-
InputNumber,
|
|
3003
3086
|
QuestionSelect
|
|
3004
3087
|
},
|
|
3005
|
-
created() {
|
|
3006
|
-
this.value.operator = _.unescape(this.value.operator);
|
|
3007
|
-
},
|
|
3008
3088
|
methods: {
|
|
3009
3089
|
generateExpr() {
|
|
3010
3090
|
let ids = `${_.map(this.value.scope, e => {
|
|
@@ -3013,7 +3093,7 @@ var script$e = Vue.extend({
|
|
|
3013
3093
|
let answers = `${_.map(this.value.values, e => {
|
|
3014
3094
|
return `"` + e + `"`;
|
|
3015
3095
|
})}`;
|
|
3016
|
-
return `$count($[id in [${ids}]][answer in [${answers}]]) ${
|
|
3096
|
+
return `$count($[id in [${ids}]][answer in [${answers}]]) = ${_.size(this.value.scope)}`;
|
|
3017
3097
|
}
|
|
3018
3098
|
}
|
|
3019
3099
|
});
|
|
@@ -3022,17 +3102,17 @@ var script$e = Vue.extend({
|
|
|
3022
3102
|
const __vue_script__$e = script$e;
|
|
3023
3103
|
|
|
3024
3104
|
/* template */
|
|
3025
|
-
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.
|
|
3105
|
+
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.type.SCORE'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":8}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1)],1)};
|
|
3026
3106
|
var __vue_staticRenderFns__$e = [];
|
|
3027
3107
|
|
|
3028
3108
|
/* style */
|
|
3029
3109
|
const __vue_inject_styles__$e = function (inject) {
|
|
3030
3110
|
if (!inject) return
|
|
3031
|
-
inject("data-v-
|
|
3111
|
+
inject("data-v-1b7846c4_0", { source: ".label[data-v-1b7846c4]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
|
|
3032
3112
|
|
|
3033
3113
|
};
|
|
3034
3114
|
/* scoped */
|
|
3035
|
-
const __vue_scope_id__$e = "data-v-
|
|
3115
|
+
const __vue_scope_id__$e = "data-v-1b7846c4";
|
|
3036
3116
|
/* module identifier */
|
|
3037
3117
|
const __vue_module_identifier__$e = undefined;
|
|
3038
3118
|
/* functional template */
|
|
@@ -3056,47 +3136,74 @@ var __vue_staticRenderFns__$e = [];
|
|
|
3056
3136
|
undefined
|
|
3057
3137
|
);
|
|
3058
3138
|
|
|
3059
|
-
var
|
|
3139
|
+
var Auto = __vue_component__$e;
|
|
3060
3140
|
|
|
3061
3141
|
var script$d = Vue.extend({
|
|
3062
|
-
name: "
|
|
3063
|
-
mixins: [ExprMixin,
|
|
3142
|
+
name: "score",
|
|
3143
|
+
mixins: [ExprMixin, LocaleMixin],
|
|
3064
3144
|
components: {
|
|
3065
3145
|
Row,
|
|
3066
3146
|
Col,
|
|
3067
3147
|
Select,
|
|
3068
3148
|
Option,
|
|
3069
3149
|
FormItem,
|
|
3070
|
-
|
|
3150
|
+
InputNumber,
|
|
3151
|
+
},
|
|
3152
|
+
data() {
|
|
3153
|
+
return {
|
|
3154
|
+
operators: ["<=", "<"],
|
|
3155
|
+
};
|
|
3156
|
+
},
|
|
3157
|
+
computed: {
|
|
3158
|
+
totalScore() {
|
|
3159
|
+
return this.$rootComponent.currentSurvey.statistics.maxScore;
|
|
3160
|
+
},
|
|
3071
3161
|
},
|
|
3072
3162
|
methods: {
|
|
3073
3163
|
generateExpr() {
|
|
3074
|
-
let
|
|
3075
|
-
|
|
3076
|
-
}
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
}
|
|
3164
|
+
let minScore = this.value.minScore;
|
|
3165
|
+
let maxScore = this.value.maxScore;
|
|
3166
|
+
return `$totalScore ${minScore} ${this.value.operator} ${maxScore}`;
|
|
3167
|
+
},
|
|
3168
|
+
rangeChange() {
|
|
3169
|
+
console.log("222");
|
|
3170
|
+
},
|
|
3171
|
+
},
|
|
3083
3172
|
});
|
|
3084
3173
|
|
|
3085
3174
|
/* script */
|
|
3086
3175
|
const __vue_script__$d = script$d;
|
|
3087
3176
|
|
|
3088
3177
|
/* template */
|
|
3089
|
-
var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n
|
|
3178
|
+
var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.score_condition_title"))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":{
|
|
3179
|
+
required: true,
|
|
3180
|
+
type: 'number',
|
|
3181
|
+
trigger: 'change',
|
|
3182
|
+
min: 0,
|
|
3183
|
+
max: this.totalScore,
|
|
3184
|
+
message: _vm.t('分值不能为空'),
|
|
3185
|
+
}}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.maxScore},on:{"on-change":_vm.rangeChange},model:{value:(_vm.value.minScore),callback:function ($$v) {_vm.$set(_vm.value, "minScore", $$v);},expression:"value.minScore"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scores"))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{
|
|
3186
|
+
required: true,
|
|
3187
|
+
trigger: 'change',
|
|
3188
|
+
message: _vm.t('survey_creator.question.notEmpty'),
|
|
3189
|
+
}}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":{
|
|
3190
|
+
required: true,
|
|
3191
|
+
type: 'number',
|
|
3192
|
+
trigger: 'change',
|
|
3193
|
+
min: 0,
|
|
3194
|
+
max: this.totalScore,
|
|
3195
|
+
message: _vm.t('分值不能为空'),
|
|
3196
|
+
}}},[_c('InputNumber',{attrs:{"min":_vm.value.minScore,"max":_vm.totalScore},on:{"on-change":_vm.rangeChange},model:{value:(_vm.value.maxScore),callback:function ($$v) {_vm.$set(_vm.value, "maxScore", $$v);},expression:"value.maxScore"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scores"))+"\n ")])],1)};
|
|
3090
3197
|
var __vue_staticRenderFns__$d = [];
|
|
3091
3198
|
|
|
3092
3199
|
/* style */
|
|
3093
3200
|
const __vue_inject_styles__$d = function (inject) {
|
|
3094
3201
|
if (!inject) return
|
|
3095
|
-
inject("data-v-
|
|
3202
|
+
inject("data-v-595ef9bc_0", { source: ".label[data-v-595ef9bc]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
|
|
3096
3203
|
|
|
3097
3204
|
};
|
|
3098
3205
|
/* scoped */
|
|
3099
|
-
const __vue_scope_id__$d = "data-v-
|
|
3206
|
+
const __vue_scope_id__$d = "data-v-595ef9bc";
|
|
3100
3207
|
/* module identifier */
|
|
3101
3208
|
const __vue_module_identifier__$d = undefined;
|
|
3102
3209
|
/* functional template */
|
|
@@ -3120,48 +3227,53 @@ var __vue_staticRenderFns__$d = [];
|
|
|
3120
3227
|
undefined
|
|
3121
3228
|
);
|
|
3122
3229
|
|
|
3123
|
-
var
|
|
3230
|
+
var Score = __vue_component__$d;
|
|
3124
3231
|
|
|
3125
3232
|
var script$c = Vue.extend({
|
|
3126
3233
|
name: "condition",
|
|
3127
3234
|
mixins: [questionFormMixin],
|
|
3128
3235
|
components: {
|
|
3129
3236
|
ASSIGN: Assign,
|
|
3130
|
-
AUTO: Auto
|
|
3237
|
+
AUTO: Auto,
|
|
3238
|
+
SCORE: Score,
|
|
3131
3239
|
},
|
|
3132
3240
|
props: {
|
|
3133
3241
|
type: {
|
|
3134
3242
|
type: String,
|
|
3135
|
-
required: true
|
|
3243
|
+
required: true,
|
|
3136
3244
|
},
|
|
3137
3245
|
value: {
|
|
3138
3246
|
type: Object,
|
|
3139
|
-
required: true
|
|
3247
|
+
required: true,
|
|
3140
3248
|
},
|
|
3141
3249
|
index: {
|
|
3142
3250
|
type: Number,
|
|
3143
|
-
required: true
|
|
3251
|
+
required: true,
|
|
3144
3252
|
},
|
|
3145
3253
|
evaluationItems: {
|
|
3146
3254
|
type: Array,
|
|
3147
|
-
required: true
|
|
3255
|
+
required: true,
|
|
3148
3256
|
},
|
|
3149
3257
|
itemIndex: {
|
|
3150
3258
|
type: Number,
|
|
3151
|
-
required: true
|
|
3152
|
-
}
|
|
3259
|
+
required: true,
|
|
3260
|
+
},
|
|
3153
3261
|
},
|
|
3154
3262
|
data() {
|
|
3155
3263
|
return {
|
|
3156
3264
|
exprConditionType: "AUTO",
|
|
3157
|
-
exprConditionTypes: [
|
|
3265
|
+
exprConditionTypes: [
|
|
3266
|
+
"AUTO",
|
|
3267
|
+
"ASSIGN",
|
|
3268
|
+
"SCORE",
|
|
3269
|
+
],
|
|
3158
3270
|
};
|
|
3159
3271
|
},
|
|
3160
3272
|
methods: {
|
|
3161
3273
|
expr(value) {
|
|
3162
3274
|
this.$emit("expr", this.index, value);
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3275
|
+
},
|
|
3276
|
+
},
|
|
3165
3277
|
});
|
|
3166
3278
|
|
|
3167
3279
|
/* script */
|
|
@@ -3215,80 +3327,109 @@ var script$b = Vue.extend({
|
|
|
3215
3327
|
Icon,
|
|
3216
3328
|
Condition,
|
|
3217
3329
|
FormItem,
|
|
3218
|
-
Input
|
|
3330
|
+
Input,
|
|
3219
3331
|
},
|
|
3220
3332
|
props: {
|
|
3221
3333
|
value: {
|
|
3222
3334
|
type: Array,
|
|
3223
|
-
required: true
|
|
3335
|
+
required: true,
|
|
3224
3336
|
},
|
|
3225
3337
|
position: {
|
|
3226
3338
|
type: Number,
|
|
3227
|
-
required: true
|
|
3228
|
-
}
|
|
3339
|
+
required: true,
|
|
3340
|
+
},
|
|
3229
3341
|
},
|
|
3230
3342
|
data() {
|
|
3231
3343
|
return {
|
|
3232
3344
|
evaluationItems: this.value,
|
|
3233
3345
|
exprConditionType: "AUTO",
|
|
3234
|
-
exprConditionTypes: [
|
|
3346
|
+
exprConditionTypes: [
|
|
3347
|
+
"AUTO",
|
|
3348
|
+
"ASSIGN",
|
|
3349
|
+
"SCORE",
|
|
3350
|
+
],
|
|
3235
3351
|
};
|
|
3236
3352
|
},
|
|
3237
3353
|
computed: {
|
|
3238
3354
|
deletable() {
|
|
3239
|
-
return _.size(_.filter(this.evaluationItems, item => item.type == "IF")) > 1;
|
|
3240
|
-
}
|
|
3355
|
+
return (_.size(_.filter(this.evaluationItems, (item) => item.type == "IF")) > 1);
|
|
3356
|
+
},
|
|
3357
|
+
disableAddConditionBtn() {
|
|
3358
|
+
let conditions = this.evaluationItems[this.position].conditions;
|
|
3359
|
+
let scoreConditions = _.size(_.filter(conditions, (item) => item.type == "SCORE"));
|
|
3360
|
+
return (this.exprConditionType == "SCORE" && scoreConditions > 0);
|
|
3361
|
+
},
|
|
3241
3362
|
},
|
|
3242
3363
|
methods: {
|
|
3243
3364
|
onAdd() {
|
|
3244
3365
|
this.evaluationItems.splice(this.position + 1, 0, {
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
"zh-CN": ""
|
|
3366
|
+
id: `Evaluation-Item-${_.now()}-${_.random(0, 9999999)}`,
|
|
3367
|
+
type: "IF",
|
|
3368
|
+
text: {
|
|
3369
|
+
"zh-CN": "",
|
|
3249
3370
|
},
|
|
3250
|
-
|
|
3371
|
+
conditions: [],
|
|
3251
3372
|
});
|
|
3252
3373
|
},
|
|
3253
3374
|
onDelete() {
|
|
3254
3375
|
this.evaluationItems.splice(this.position, 1);
|
|
3255
3376
|
},
|
|
3256
3377
|
addCondition() {
|
|
3257
|
-
this.evaluationItems[this.position].conditions ||
|
|
3378
|
+
this.evaluationItems[this.position].conditions ||
|
|
3379
|
+
this.$set(this.evaluationItems[this.position], "conditions", []);
|
|
3258
3380
|
this.evaluationItems[this.position].conditions.push({
|
|
3259
3381
|
type: this.exprConditionType,
|
|
3382
|
+
payload: this.buildPayloadByType(this.exprConditionType),
|
|
3383
|
+
});
|
|
3384
|
+
},
|
|
3385
|
+
buildPayloadByType(type) {
|
|
3386
|
+
if (type == "SCORE") {
|
|
3387
|
+
return {
|
|
3388
|
+
payload: {
|
|
3389
|
+
minScore: 0,
|
|
3390
|
+
operator: "<",
|
|
3391
|
+
maxScore: 0,
|
|
3392
|
+
},
|
|
3393
|
+
};
|
|
3394
|
+
}
|
|
3395
|
+
return {
|
|
3260
3396
|
payload: {
|
|
3261
3397
|
scope: [],
|
|
3262
3398
|
operator: "=",
|
|
3263
3399
|
values: [],
|
|
3264
|
-
size: 0
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3400
|
+
size: 0,
|
|
3401
|
+
},
|
|
3402
|
+
};
|
|
3267
3403
|
},
|
|
3268
3404
|
removeCondition(index) {
|
|
3269
3405
|
this.evaluationItems[this.position].conditions.splice(index, 1);
|
|
3270
3406
|
},
|
|
3271
3407
|
expr(index, value) {
|
|
3272
3408
|
_.set(this.evaluationItems[this.position].conditions[index], "expr", value);
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
3409
|
+
},
|
|
3410
|
+
},
|
|
3275
3411
|
});
|
|
3276
3412
|
|
|
3277
3413
|
/* script */
|
|
3278
3414
|
const __vue_script__$b = script$b;
|
|
3279
3415
|
|
|
3280
3416
|
/* template */
|
|
3281
|
-
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n
|
|
3417
|
+
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.if"))+"\n ")])]),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"type":"primary","icon":"md-add"},on:{"click":_vm.onAdd}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.add_if_template"))+"\n ")])],1)],1),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.deletable),expression:"deletable"}],attrs:{"slot":"extra","href":"#"},on:{"click":function($event){$event.preventDefault();return _vm.onDelete.apply(null, arguments)}},slot:"extra"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.common.delete"))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{staticClass:"label"},[_c('Icon',{attrs:{"type":"ios-arrow-forward","color":"#2d8cf0"}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.requirements"))+"\n ")],1),_vm._v(" "),_c('Col',{attrs:{"span":16}},[_c('Select',{model:{value:(_vm.exprConditionType),callback:function ($$v) {_vm.exprConditionType=$$v;},expression:"exprConditionType"}},_vm._l((_vm.exprConditionTypes),function(type){return _c('Option',{key:type,attrs:{"value":type}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.evaluation.condition.type." + type)))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",attrs:{"icon":"md-add","disabled":_vm.disableAddConditionBtn},on:{"click":_vm.addCondition}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluationItems[_vm.position].conditions),function(condition,index){return _c('Row',{key:index,staticClass:"mt-base",attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('condition',{key:index,attrs:{"index":index,"type":condition.type,"question":_vm.question,"evaluation-items":_vm.evaluationItems,"item-index":_vm.position},on:{"expr":_vm.expr},model:{value:(condition.payload),callback:function ($$v) {_vm.$set(condition, "payload", $$v);},expression:"condition.payload"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",staticStyle:{"margin-bottom":"24px"},attrs:{"icon":"md-remove"},on:{"click":function($event){return _vm.removeCondition(index)}}})],1)],1)}),_vm._v(" "),_c('Row',{staticClass:"mt-base",attrs:{"type":"flex","justify":"end","align":"middle"}},[_c('Col',[_c('FormItem',{attrs:{"prop":'evaluationItems[' + _vm.position + '].text.' + _vm.primaryLanguage,"rules":{
|
|
3418
|
+
required: true,
|
|
3419
|
+
message: _vm.t(
|
|
3420
|
+
'survey_creator.question.evaluation.condition.evaluation_require_tip'
|
|
3421
|
+
),
|
|
3422
|
+
}}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation.condition.evaluation_label"))+"\n "),_c('Input',{staticClass:"input",model:{value:(_vm.evaluationItems[_vm.position].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[_vm.position].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[position].text[primaryLanguage]"}})],1)],1)],1)],2)};
|
|
3282
3423
|
var __vue_staticRenderFns__$b = [];
|
|
3283
3424
|
|
|
3284
3425
|
/* style */
|
|
3285
3426
|
const __vue_inject_styles__$b = function (inject) {
|
|
3286
3427
|
if (!inject) return
|
|
3287
|
-
inject("data-v-
|
|
3428
|
+
inject("data-v-25df9b0d_0", { source: ".mt-base[data-v-25df9b0d]{margin-top:12px}.action[data-v-25df9b0d]{float:right}.input[data-v-25df9b0d]{width:100px}.label[data-v-25df9b0d]{text-align:right;padding-right:4px}.text[data-v-25df9b0d]{background-color:#ebf7ff;height:32px;padding:8px 18px;font-weight:500;color:#515a6e}[data-v-25df9b0d] .ivu-card .ivu-form-item{margin-bottom:4px;margin-top:0}[data-v-25df9b0d] .ivu-card .ivu-form-item-error{margin-bottom:24px;margin-top:0}", map: undefined, media: undefined });
|
|
3288
3429
|
|
|
3289
3430
|
};
|
|
3290
3431
|
/* scoped */
|
|
3291
|
-
const __vue_scope_id__$b = "data-v-
|
|
3432
|
+
const __vue_scope_id__$b = "data-v-25df9b0d";
|
|
3292
3433
|
/* module identifier */
|
|
3293
3434
|
const __vue_module_identifier__$b = undefined;
|
|
3294
3435
|
/* functional template */
|