@wg-npm/survey-creator 1.78.3091408 → 1.78.4151600
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 +266 -40
- package/package.json +6 -6
- package/src/components/editor/forms/evaluation/expr/score.vue +236 -26
- package/src/components/editor/forms/matrix-form.vue +34 -0
- package/src/components/editor/forms/multi-selection-form.vue +32 -2
- package/src/components/editor/forms/scoring-form.vue +31 -1
- package/src/components/editor/forms/short-answer-form.vue +30 -1
- package/src/components/editor/forms/single-selection-form.vue +32 -2
- package/src/components/editor/forms/title-form.vue +41 -1
- package/src/locale/lang/en-US.ts +8 -0
- package/src/locale/lang/zh-CN.ts +8 -0
|
@@ -92,6 +92,9 @@ var defaultLang = {
|
|
|
92
92
|
inputEnabledTip: "用户选中该项后可输入",
|
|
93
93
|
textTitleRequiredTip: "请填写文字说明",
|
|
94
94
|
scoreRequiredTip: "分值不能为空",
|
|
95
|
+
scoreExceedTotalTip: "分数不能超过总分",
|
|
96
|
+
minScoreGreaterThanMaxTip: "最小分值不能大于最大分值",
|
|
97
|
+
maxScoreLessThanMinTip: "最大分值不能小于最小分值",
|
|
95
98
|
subQuestionRequiredTip: "子題不能为空",
|
|
96
99
|
optionalRequiredTip: "选项不能为空",
|
|
97
100
|
commitRequiredTip: "描述不能为空",
|
|
@@ -133,6 +136,11 @@ var defaultLang = {
|
|
|
133
136
|
starMinCountSuffix: "项及以上时计星",
|
|
134
137
|
maxScore: "最高分值:",
|
|
135
138
|
enableMultiSelect: "可复选",
|
|
139
|
+
evaluation_tag: {
|
|
140
|
+
label: "评价标签",
|
|
141
|
+
TEACHER: "评教师",
|
|
142
|
+
COURSE: "评课程",
|
|
143
|
+
},
|
|
136
144
|
evaluation: {
|
|
137
145
|
level: {
|
|
138
146
|
"1": "好",
|
|
@@ -18990,6 +18998,8 @@ var script$p = Vue.extend({
|
|
|
18990
18998
|
Button,
|
|
18991
18999
|
Input: Input$1,
|
|
18992
19000
|
Checkbox,
|
|
19001
|
+
Radio,
|
|
19002
|
+
RadioGroup,
|
|
18993
19003
|
Row,
|
|
18994
19004
|
Col,
|
|
18995
19005
|
Icon,
|
|
@@ -19009,13 +19019,18 @@ var script$p = Vue.extend({
|
|
|
19009
19019
|
layoutOptions: ["HORIZONTAL", "VERTICAL"],
|
|
19010
19020
|
enabledInputChoice: false,
|
|
19011
19021
|
enabledRichText: false,
|
|
19012
|
-
enabledSpeciallyQuestions: true
|
|
19022
|
+
enabledSpeciallyQuestions: true,
|
|
19023
|
+
enabledEvaluationTag: false,
|
|
19013
19024
|
};
|
|
19014
19025
|
},
|
|
19015
19026
|
created() {
|
|
19016
19027
|
this.enabledInputChoice = _$1.get(this.$rootComponent, "options.enabledInputChoice", false);
|
|
19017
19028
|
this.enabledRichText = _$1.get(this.$rootComponent, "options.enabledPlanSurveyTeacherSetting", false);
|
|
19018
19029
|
this.enabledSpeciallyQuestions = _$1.get(this.$rootComponent, "options.enabledSpeciallyQuestions", true);
|
|
19030
|
+
this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
|
|
19031
|
+
if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
|
|
19032
|
+
this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
|
|
19033
|
+
}
|
|
19019
19034
|
this.editQuestion.options.richTextEnabled = this.enabledRichText;
|
|
19020
19035
|
},
|
|
19021
19036
|
methods: {
|
|
@@ -19120,7 +19135,7 @@ var script$p = Vue.extend({
|
|
|
19120
19135
|
const __vue_script__$p = script$p;
|
|
19121
19136
|
|
|
19122
19137
|
/* template */
|
|
19123
|
-
var __vue_render__$o = 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},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.enabledSpeciallyQuestions||_vm.enabledInputChoice?'grid-template-columns: 50% 50%':'grid-template-columns: 100%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()])])]),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19138
|
+
var __vue_render__$o = 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},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.enabledSpeciallyQuestions||_vm.enabledInputChoice?'grid-template-columns: 50% 50%':'grid-template-columns: 100%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e()])])]),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19124
19139
|
required: true,
|
|
19125
19140
|
message: _vm.t('survey_creator.question.titleRequiredTip'),
|
|
19126
19141
|
}}},[_c('Row',[_c('Col',{attrs:{"span":"24"}},[(_vm.enabledRichText)?_c('rich-text',{ref:"richText",attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},on:{"input":_vm.onRichTextInput},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]"}}):_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('div',{staticClass:"option-header"},[_c('div',{staticClass:"choice"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_choice"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],staticClass:"scoring"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_scoring"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"inputing"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_inputing"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.starEnabled),expression:"editQuestion.options.starEnabled"}],staticClass:"inputing"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.starEnabled"))+"\n ")])]),_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},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{
|
|
@@ -19149,11 +19164,11 @@ var __vue_staticRenderFns__$o = [];
|
|
|
19149
19164
|
/* style */
|
|
19150
19165
|
const __vue_inject_styles__$p = function (inject) {
|
|
19151
19166
|
if (!inject) return
|
|
19152
|
-
inject("data-v-
|
|
19167
|
+
inject("data-v-4214b994_0", { source: ".options-container[data-v-4214b994]{margin:0 8px 16px;border-bottom:1px solid #e8eaec;display:grid}.options-container .options-row[data-v-4214b994]{display:flex;flex-direction:row;margin-bottom:16px}.options-container .options-row .options[data-v-4214b994]{display:flex;flex-direction:column}.options-container .options-row .options .option[data-v-4214b994]{margin-top:24px}.options-container .options-row .options .option-expand[data-v-4214b994]{display:flex;align-items:center;margin-top:10px;padding:8px;border-radius:4px;background:#f7f7f7}.options-container .options-row .options .option-expand .inputing[data-v-4214b994]{width:64px}.options-container .before-border[data-v-4214b994]{border-left:1px solid #e8eaec;padding-left:16px}.evaluation-tag-row[data-v-4214b994]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-4214b994]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.option-header[data-v-4214b994]{background:#f0f1f3;border-radius:4px;width:100%;height:32px;margin-bottom:24px;display:flex;flex-direction:row;color:#70748c;align-items:center;padding:0 8px 0 16px}.option-header .choice[data-v-4214b994]{width:100%}.option-header .scoring[data-v-4214b994]{width:100px;display:flex;justify-content:center}.option-header .inputing[data-v-4214b994]{width:145px;min-width:42px;display:flex;justify-content:center}.question-choice[data-v-4214b994]{display:flex;flex-direction:row;align-items:center;padding-right:8px}.question-choice .choice[data-v-4214b994]{display:flex;flex-direction:row;width:100%;margin-right:8px}.question-choice .choice .button[data-v-4214b994]{margin-left:8px}.question-choice .scoring[data-v-4214b994]{width:85px}.question-choice .inputing[data-v-4214b994]{width:145px;text-align:center}.question-choice .inputing .ivu-checkbox-wrapper[data-v-4214b994]{margin-right:0}[data-v-4214b994] .ivu-form-item{width:100%}.option-input[data-v-4214b994]{margin:0 50px 30px 80px}[data-v-4214b994] .ivu-form-item-error-tip{min-width:170px}", map: undefined, media: undefined });
|
|
19153
19168
|
|
|
19154
19169
|
};
|
|
19155
19170
|
/* scoped */
|
|
19156
|
-
const __vue_scope_id__$p = "data-v-
|
|
19171
|
+
const __vue_scope_id__$p = "data-v-4214b994";
|
|
19157
19172
|
/* module identifier */
|
|
19158
19173
|
const __vue_module_identifier__$p = undefined;
|
|
19159
19174
|
/* functional template */
|
|
@@ -19186,6 +19201,8 @@ var script$q = Vue.extend({
|
|
|
19186
19201
|
Button,
|
|
19187
19202
|
Input: Input$1,
|
|
19188
19203
|
Checkbox,
|
|
19204
|
+
Radio,
|
|
19205
|
+
RadioGroup,
|
|
19189
19206
|
Row,
|
|
19190
19207
|
Col,
|
|
19191
19208
|
Icon,
|
|
@@ -19209,7 +19226,8 @@ var script$q = Vue.extend({
|
|
|
19209
19226
|
enabledExclusiveChoice: false,
|
|
19210
19227
|
enabledInputChoice: false,
|
|
19211
19228
|
enabledRichText: false,
|
|
19212
|
-
enabledSpeciallyQuestions: true
|
|
19229
|
+
enabledSpeciallyQuestions: true,
|
|
19230
|
+
enabledEvaluationTag: false,
|
|
19213
19231
|
};
|
|
19214
19232
|
},
|
|
19215
19233
|
created() {
|
|
@@ -19219,6 +19237,10 @@ var script$q = Vue.extend({
|
|
|
19219
19237
|
this.enabledRichText = _$1.get(this.$rootComponent, "options.enabledPlanSurveyTeacherSetting", false);
|
|
19220
19238
|
this.editQuestion.options.richTextEnabled = this.enabledRichText;
|
|
19221
19239
|
this.enabledSpeciallyQuestions = _$1.get(this.$rootComponent, "options.enabledSpeciallyQuestions", true);
|
|
19240
|
+
this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
|
|
19241
|
+
if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
|
|
19242
|
+
this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
|
|
19243
|
+
}
|
|
19222
19244
|
},
|
|
19223
19245
|
computed: {
|
|
19224
19246
|
gridTemplateColumns() {
|
|
@@ -19338,7 +19360,7 @@ var script$q = Vue.extend({
|
|
|
19338
19360
|
const __vue_script__$q = script$q;
|
|
19339
19361
|
|
|
19340
19362
|
/* template */
|
|
19341
|
-
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",staticClass:"multi-selection-form",attrs:{"model":_vm.editQuestion,"label-colon":false},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.gridTemplateColumns>2?'grid-template-columns: 30% 40% 30%':'grid-template-columns: 50% 50%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),(_vm.gridTemplateColumns>0)?_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.starEnabled),expression:"editQuestion.options.starEnabled"}],staticClass:"option-expand"},[_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._v(" "),(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice&&!_vm.enabledInputChoice)?_c('div',{staticClass:"options"},[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice)?_c('Checkbox',{staticClass:"option",style:(_vm.enabledInputChoice?'margin-top: 24px':'margin-top: 0px'),on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)]):_vm._e()],1)]):_vm._e(),_vm._v(" "),(_vm.gridTemplateColumns>2)?_c('div',{staticClass:"options-row before-border"},[_c('div',{staticClass:"options"},[_c('Checkbox',{on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1)]):_vm._e()]),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":60,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19363
|
+
var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",staticClass:"multi-selection-form",attrs:{"model":_vm.editQuestion,"label-colon":false},on:{"on-validate":_vm.onValidate}},[_c('div',{staticClass:"options-container",style:(_vm.gridTemplateColumns>2?'grid-template-columns: 30% 40% 30%':'grid-template-columns: 50% 50%')},[_c('div',{staticClass:"options-row"},[_c('div',{staticClass:"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',{staticClass:"option",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 ")])],1)]),_vm._v(" "),(_vm.gridTemplateColumns>0)?_c('div',{staticClass:"options-row before-border"},[(_vm.enabledSpeciallyQuestions)?_c('div',{staticClass:"options"},[_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(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.starEnabled),expression:"editQuestion.options.starEnabled"}],staticClass:"option-expand"},[_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._v(" "),(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice&&!_vm.enabledInputChoice)?_c('div',{staticClass:"options"},[_c('Checkbox',{staticClass:"option",on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1):_vm._e()],1):_c('div',{staticClass:"options"},[(_vm.enabledInputChoice)?_c('div',[_c('Checkbox',{staticClass:"option",staticStyle:{"margin-top":"0px"},on:{"on-change":_vm.inputEnabledChange},model:{value:(_vm.editQuestion.options.inputtedEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputtedEnabled", $$v);},expression:"editQuestion.options.inputtedEnabled"}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.inputted_enabled"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"option-expand"},[_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_prefix")))]),_vm._v(" "),_c('InputNumber',{staticClass:"inputing",attrs:{"max":999,"min":1,"precision":0},model:{value:(_vm.editQuestion.options.inputMinLength),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "inputMinLength", $$v);},expression:"editQuestion.options.inputMinLength"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t("survey_creator.question.inputted_enabled_suffix")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledExclusiveChoice)?_c('Checkbox',{staticClass:"option",style:(_vm.enabledInputChoice?'margin-top: 24px':'margin-top: 0px'),on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)]):_vm._e()],1)]):_vm._e(),_vm._v(" "),(_vm.gridTemplateColumns>2)?_c('div',{staticClass:"options-row before-border"},[_c('div',{staticClass:"options"},[_c('Checkbox',{on:{"on-change":_vm.exclusiveEnabledChange},model:{value:(_vm.editQuestion.options.exclusiveEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "exclusiveEnabled", $$v);},expression:"editQuestion.options.exclusiveEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.exclusive_enabled"))+"\n "),_c('Tooltip',{attrs:{"max-width":"200","content":_vm.t('survey_creator.question.exclusive_option_tooltip'),"placement":"bottom"}},[_c('Icon',{attrs:{"custom":"i-icon icon-exclamation-mark-outline","size":"16"}})],1)],1)])],1)]):_vm._e()]),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),(_vm.enabledRichText)?_c('Alert',{attrs:{"show-icon":""}},[_vm._v(_vm._s(_vm.t("survey_creator.question.rich_text.alert"))+"\n ")]):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":60,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19342
19364
|
required: true,
|
|
19343
19365
|
message: _vm.t('survey_creator.question.titleRequiredTip'),
|
|
19344
19366
|
}}},[_c('Row',[_c('Col',{attrs:{"span":"24"}},[(_vm.enabledRichText)?_c('rich-text',{ref:"richText",attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},on:{"input":_vm.onRichTextInput},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]"}}):_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('div',{staticClass:"option-header"},[_c('div',{staticClass:"choice"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_choice"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],staticClass:"scoring"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_scoring"))+"\n ")]),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.inputtedEnabled),expression:"editQuestion.options.inputtedEnabled"}],staticClass:"inputing"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.option_header_inputing"))+"\n ")])]),_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},[(!option.options.exclusiveEnabled)?_c('div',{staticClass:"choice-row"},[_c('FormItem',{attrs:{"label-width":60,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{
|
|
@@ -19379,11 +19401,11 @@ var __vue_staticRenderFns__$p = [];
|
|
|
19379
19401
|
/* style */
|
|
19380
19402
|
const __vue_inject_styles__$q = function (inject) {
|
|
19381
19403
|
if (!inject) return
|
|
19382
|
-
inject("data-v-
|
|
19404
|
+
inject("data-v-45217913_0", { source: ".multi-selection-form .options-container[data-v-45217913]{margin:0 8px 16px;border-bottom:1px solid #e8eaec;display:grid}.multi-selection-form .options-container .options-row[data-v-45217913]{display:flex;flex-direction:row;margin-bottom:16px}.multi-selection-form .options-container .options-row .options[data-v-45217913]{display:flex;flex-direction:column}.multi-selection-form .options-container .options-row .options .option[data-v-45217913]{margin-top:24px}.multi-selection-form .options-container .options-row .options .option-expand[data-v-45217913]{display:flex;align-items:center;margin-top:10px;padding:8px;border-radius:4px;background:#f7f7f7}.multi-selection-form .options-container .options-row .options .option-expand .inputing[data-v-45217913]{width:64px}.multi-selection-form .options-container .before-border[data-v-45217913]{border-left:1px solid #e8eaec;padding-left:16px}.multi-selection-form .question-options[data-v-45217913]{padding-bottom:10px;padding-left:80px}.multi-selection-form[data-v-45217913] .ivu-form-item{width:100%}.multi-selection-form .evaluation-tag-row[data-v-45217913]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.multi-selection-form .evaluation-tag-row .evaluation-tag-label[data-v-45217913]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.multi-selection-form .option-header[data-v-45217913]{background:#f0f1f3;border-radius:4px;width:100%;height:32px;margin-bottom:24px;display:flex;flex-direction:row;color:#70748c;align-items:center;padding:0 8px 0 16px}.multi-selection-form .option-header .choice[data-v-45217913]{width:100%}.multi-selection-form .option-header .scoring[data-v-45217913]{width:100px;display:flex;justify-content:center}.multi-selection-form .option-header .inputing[data-v-45217913]{width:145px;min-width:42px;display:flex;justify-content:center}.multi-selection-form .choice-row .question-choice[data-v-45217913]{display:flex;flex-direction:row;align-items:center;padding-right:8px}.multi-selection-form .choice-row .question-choice .choice[data-v-45217913]{display:flex;flex-direction:row;width:100%;margin-right:8px}.multi-selection-form .choice-row .question-choice .choice .button[data-v-45217913]{margin-left:8px}.multi-selection-form .choice-row .question-choice .scoring[data-v-45217913]{width:85px}.multi-selection-form .choice-row .question-choice .inputing[data-v-45217913]{width:145px;text-align:center}.multi-selection-form .choice-row .question-choice .inputing .ivu-checkbox-wrapper[data-v-45217913]{margin-right:0}.multi-selection-form .exclusive-choice[data-v-45217913]{border-top:1px solid #e8eaec;padding-top:16px}.multi-selection-form .option-input[data-v-45217913]{margin:0 50px 30px 60px}[data-v-45217913] .ivu-form-item-error-tip{min-width:170px}", map: undefined, media: undefined });
|
|
19383
19405
|
|
|
19384
19406
|
};
|
|
19385
19407
|
/* scoped */
|
|
19386
|
-
const __vue_scope_id__$q = "data-v-
|
|
19408
|
+
const __vue_scope_id__$q = "data-v-45217913";
|
|
19387
19409
|
/* module identifier */
|
|
19388
19410
|
const __vue_module_identifier__$q = undefined;
|
|
19389
19411
|
/* functional template */
|
|
@@ -19416,12 +19438,15 @@ var script$r = Vue.extend({
|
|
|
19416
19438
|
Button,
|
|
19417
19439
|
Input: Input$1,
|
|
19418
19440
|
Checkbox,
|
|
19441
|
+
Radio,
|
|
19442
|
+
RadioGroup,
|
|
19419
19443
|
Icon,
|
|
19420
19444
|
},
|
|
19421
19445
|
mixins: [questionFormMixin],
|
|
19422
19446
|
data() {
|
|
19423
19447
|
return {
|
|
19424
19448
|
enabledPresetReplies: false,
|
|
19449
|
+
enabledEvaluationTag: false,
|
|
19425
19450
|
};
|
|
19426
19451
|
},
|
|
19427
19452
|
computed: {
|
|
@@ -19440,9 +19465,13 @@ var script$r = Vue.extend({
|
|
|
19440
19465
|
},
|
|
19441
19466
|
created() {
|
|
19442
19467
|
this.enabledPresetReplies = _$1.get(this.$rootComponent, "options.enabledPresetReplies", false);
|
|
19468
|
+
this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
|
|
19443
19469
|
if (!this.editQuestion.options.presetReplies) {
|
|
19444
19470
|
this.$set(this.editQuestion.options, "presetReplies", []);
|
|
19445
19471
|
}
|
|
19472
|
+
if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
|
|
19473
|
+
this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
|
|
19474
|
+
}
|
|
19446
19475
|
},
|
|
19447
19476
|
methods: {
|
|
19448
19477
|
addPresetReply() {
|
|
@@ -19482,7 +19511,7 @@ const __vue_script__$r = script$r;
|
|
|
19482
19511
|
var __vue_render__$q = 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":{
|
|
19483
19512
|
required: true,
|
|
19484
19513
|
message: _vm.t('survey_creator.question.titleRequiredTip'),
|
|
19485
|
-
}}},[_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("\n "+_vm._s(_vm.t("survey_creator.question.questionRequired"))+"\n ")]),_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),_vm._v(" "),(_vm.showPresetReplies)?_c('div',{staticClass:"preset-replies"},[_c('Button',{attrs:{"type":"primary","icon":"md-add","disabled":_vm.hasEmptyReply},on:{"click":_vm.addPresetReply}},[_vm._v(_vm._s(_vm.t("survey_creator.question.addPresetReply"))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"preset-reply-list"},_vm._l((_vm.editQuestion.options.presetReplies),function(reply,index){return _c('Form-item',{key:index,staticClass:"preset-reply-item",attrs:{"prop":'options.presetReplies.' + index,"rules":[
|
|
19514
|
+
}}},[_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("\n "+_vm._s(_vm.t("survey_creator.question.questionRequired"))+"\n ")]),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_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),_vm._v(" "),(_vm.showPresetReplies)?_c('div',{staticClass:"preset-replies"},[_c('Button',{attrs:{"type":"primary","icon":"md-add","disabled":_vm.hasEmptyReply},on:{"click":_vm.addPresetReply}},[_vm._v(_vm._s(_vm.t("survey_creator.question.addPresetReply"))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"preset-reply-list"},_vm._l((_vm.editQuestion.options.presetReplies),function(reply,index){return _c('Form-item',{key:index,staticClass:"preset-reply-item",attrs:{"prop":'options.presetReplies.' + index,"rules":[
|
|
19486
19515
|
{
|
|
19487
19516
|
required: true,
|
|
19488
19517
|
message: _vm.t('survey_creator.question.presetReplyRequiredTip'),
|
|
@@ -19495,11 +19524,11 @@ var __vue_staticRenderFns__$q = [];
|
|
|
19495
19524
|
/* style */
|
|
19496
19525
|
const __vue_inject_styles__$r = function (inject) {
|
|
19497
19526
|
if (!inject) return
|
|
19498
|
-
inject("data-v-
|
|
19527
|
+
inject("data-v-4d1aeb95_0", { source: "[data-v-4d1aeb95] .ivu-form-item{width:100%}.evaluation-tag-row[data-v-4d1aeb95]{display:flex;align-items:center;padding:8px 0 12px;margin-bottom:8px}.evaluation-tag-row .evaluation-tag-label[data-v-4d1aeb95]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.preset-replies .preset-reply-list[data-v-4d1aeb95]{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.preset-replies .preset-reply-list[data-v-4d1aeb95] .ivu-form-item{margin-bottom:14px}.preset-replies .preset-reply-item[data-v-4d1aeb95] .ivu-form-item{margin-bottom:0}.preset-replies .preset-reply-item[data-v-4d1aeb95] .ivu-form-item .ivu-form-item-error-tip{white-space:nowrap}.preset-replies .preset-reply-item .preset-reply-input[data-v-4d1aeb95]{position:relative;min-width:200px}.preset-replies .preset-reply-item .preset-reply-input[data-v-4d1aeb95] .ivu-input{padding-right:28px}.preset-replies .preset-reply-item .preset-reply-input .preset-reply-close[data-v-4d1aeb95]{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:16px;cursor:pointer;color:#999}.preset-replies .preset-reply-item .preset-reply-input .preset-reply-close[data-v-4d1aeb95]:hover{color:#ed4014}", map: undefined, media: undefined });
|
|
19499
19528
|
|
|
19500
19529
|
};
|
|
19501
19530
|
/* scoped */
|
|
19502
|
-
const __vue_scope_id__$r = "data-v-
|
|
19531
|
+
const __vue_scope_id__$r = "data-v-4d1aeb95";
|
|
19503
19532
|
/* module identifier */
|
|
19504
19533
|
const __vue_module_identifier__$r = undefined;
|
|
19505
19534
|
/* functional template */
|
|
@@ -19532,6 +19561,8 @@ var script$s = Vue.extend({
|
|
|
19532
19561
|
Button,
|
|
19533
19562
|
Input: Input$1,
|
|
19534
19563
|
Checkbox,
|
|
19564
|
+
Radio,
|
|
19565
|
+
RadioGroup,
|
|
19535
19566
|
InputNumber,
|
|
19536
19567
|
Row,
|
|
19537
19568
|
Col,
|
|
@@ -19543,8 +19574,15 @@ var script$s = Vue.extend({
|
|
|
19543
19574
|
labelWidth: 80,
|
|
19544
19575
|
defaultLevel: 5,
|
|
19545
19576
|
layoutOptions: ["HORIZONTAL", "VERTICAL"],
|
|
19577
|
+
enabledEvaluationTag: false,
|
|
19546
19578
|
};
|
|
19547
19579
|
},
|
|
19580
|
+
created() {
|
|
19581
|
+
this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
|
|
19582
|
+
if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
|
|
19583
|
+
this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
|
|
19584
|
+
}
|
|
19585
|
+
},
|
|
19548
19586
|
mounted() {
|
|
19549
19587
|
this.initData();
|
|
19550
19588
|
},
|
|
@@ -19619,7 +19657,7 @@ var script$s = Vue.extend({
|
|
|
19619
19657
|
const __vue_script__$s = script$s;
|
|
19620
19658
|
|
|
19621
19659
|
/* template */
|
|
19622
|
-
var __vue_render__$r = 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":{
|
|
19660
|
+
var __vue_render__$r = 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}},[(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19623
19661
|
required: true,
|
|
19624
19662
|
message: _vm.t('survey_creator.question.titleRequiredTip'),
|
|
19625
19663
|
},"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":20},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":{
|
|
@@ -19637,11 +19675,11 @@ var __vue_staticRenderFns__$r = [];
|
|
|
19637
19675
|
/* style */
|
|
19638
19676
|
const __vue_inject_styles__$s = function (inject) {
|
|
19639
19677
|
if (!inject) return
|
|
19640
|
-
inject("data-v-
|
|
19678
|
+
inject("data-v-9e7e18a0_0", { source: "[data-v-9e7e18a0] .ivu-form-item{width:100%}.evaluation-tag-row[data-v-9e7e18a0]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-9e7e18a0]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}", map: undefined, media: undefined });
|
|
19641
19679
|
|
|
19642
19680
|
};
|
|
19643
19681
|
/* scoped */
|
|
19644
|
-
const __vue_scope_id__$s = "data-v-
|
|
19682
|
+
const __vue_scope_id__$s = "data-v-9e7e18a0";
|
|
19645
19683
|
/* module identifier */
|
|
19646
19684
|
const __vue_module_identifier__$s = undefined;
|
|
19647
19685
|
/* functional template */
|
|
@@ -19672,6 +19710,8 @@ var script$t = Vue.extend({
|
|
|
19672
19710
|
FormItem,
|
|
19673
19711
|
Input: Input$1,
|
|
19674
19712
|
Checkbox,
|
|
19713
|
+
Radio,
|
|
19714
|
+
RadioGroup,
|
|
19675
19715
|
Row,
|
|
19676
19716
|
Col,
|
|
19677
19717
|
Select,
|
|
@@ -19695,10 +19735,15 @@ var script$t = Vue.extend({
|
|
|
19695
19735
|
],
|
|
19696
19736
|
scoreRange: [],
|
|
19697
19737
|
decimalPlaceOptions: [0, 1],
|
|
19738
|
+
enabledEvaluationTag: false,
|
|
19698
19739
|
};
|
|
19699
19740
|
},
|
|
19700
19741
|
created() {
|
|
19701
19742
|
this.initData();
|
|
19743
|
+
this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
|
|
19744
|
+
if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTags) {
|
|
19745
|
+
this.$set(this.editQuestion.options, "evaluationTags", ["COURSE"]);
|
|
19746
|
+
}
|
|
19702
19747
|
},
|
|
19703
19748
|
computed: {
|
|
19704
19749
|
disableLabelSelector() {
|
|
@@ -19804,7 +19849,7 @@ const __vue_script__$t = script$t;
|
|
|
19804
19849
|
/* template */
|
|
19805
19850
|
var __vue_render__$s = 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',{staticStyle:{"margin-left":"24px"}},[_c('Col',[_c('Form-item',[_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"))+"\n ")])],1),_vm._v(" "),_c('Row',[_c('Form-item',[_c('Checkbox',{model:{value:(_vm.editQuestion.options.extremeValueLabelEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "extremeValueLabelEnabled", $$v);},expression:"editQuestion.options.extremeValueLabelEnabled"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.scoring.extreme_value_label"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"160px"},attrs:{"disabled":_vm.disableLabelSelector,"default-label":_vm.extremeValueLabels[0]},model:{value:(_vm.editQuestion.options.extremeValueLabel),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "extremeValueLabel", $$v);},expression:"editQuestion.options.extremeValueLabel"}},_vm._l((_vm.extremeValueLabels),function(item){return _c('Option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(_vm.t(
|
|
19806
19851
|
("survey_creator.question.scoring.extreme_value_labels." + item + ".label")
|
|
19807
|
-
))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',[_c('Divider',{staticStyle:{"height":"90px","margin-right":"16px"},attrs:{"type":"vertical"}})],1),_vm._v(" "),_c('Col',[_c('div',[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.setScoringRange"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.minRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "minRange", $$v);},expression:"editQuestion.options.minRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMinRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v("\n -\n "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.maxRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "maxRange", $$v);},expression:"editQuestion.options.maxRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMaxRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1)],1),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"24px"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.retainDecimal"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},attrs:{"default-label":_vm.decimalPlaceOptions[0]},model:{value:(_vm.editQuestion.options.decimalPlaces),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "decimalPlaces", $$v);},expression:"editQuestion.options.decimalPlaces"}},_vm._l((_vm.decimalPlaceOptions),function(item){return _c('Option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.decimalPlaces"))+"\n ")])],1)])],1),_vm._v(" "),_c('Divider',{staticStyle:{"margin-top":"-9px"}}),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19852
|
+
))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',[_c('Divider',{staticStyle:{"height":"90px","margin-right":"16px"},attrs:{"type":"vertical"}})],1),_vm._v(" "),_c('Col',[_c('div',[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.setScoringRange"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.minRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "minRange", $$v);},expression:"editQuestion.options.minRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMinRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v("\n -\n "),_c('Select',{staticStyle:{"width":"80px"},model:{value:(_vm.editQuestion.options.maxRange),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "maxRange", $$v);},expression:"editQuestion.options.maxRange"}},_vm._l((_vm.scoreRange),function(item){return _c('Option',{key:item,attrs:{"value":item,"disabled":_vm.disableMaxRangeOption(item)}},[_vm._v(_vm._s(item)+"\n ")])}),1)],1),_vm._v(" "),_c('div',{staticStyle:{"margin-top":"24px"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.retainDecimal"))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"80px"},attrs:{"default-label":_vm.decimalPlaceOptions[0]},model:{value:(_vm.editQuestion.options.decimalPlaces),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "decimalPlaces", $$v);},expression:"editQuestion.options.decimalPlaces"}},_vm._l((_vm.decimalPlaceOptions),function(item){return _c('Option',{key:item,attrs:{"value":item}},[_vm._v(_vm._s(item)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scoring.decimalPlaces"))+"\n ")])],1)])],1),_vm._v(" "),_c('Divider',{staticStyle:{"margin-top":"-9px"}}),_vm._v(" "),(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19808
19853
|
required: true,
|
|
19809
19854
|
message: _vm.t('survey_creator.question.titleRequiredTip'),
|
|
19810
19855
|
},"label":_vm.t('survey_creator.page.question')}},[_c('Row',[_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),_vm._v(" "),_c('Row',{directives:[{name:"show",rawName:"v-show",value:(_vm.showQuestionScoreSlider),expression:"showQuestionScoreSlider"}]},[_c('div',{staticStyle:{"margin-right":"134px","margin-bottom":"18px"}},[_c('Slider',{staticStyle:{"width":"562px","margin-left":"66px","margin-right":"134px","margin-top":"16px"},attrs:{"min":_vm.editQuestion.options.minRange,"max":_vm.editQuestion.options.maxRange,"step":_vm.sliderStep,"show-input":"","show-tips":"always"},model:{value:(_vm.editQuestion.options.sliderValue),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "sliderValue", $$v);},expression:"editQuestion.options.sliderValue"}}),_vm._v(" "),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.extremeValueLabelSelected),expression:"extremeValueLabelSelected"}]},[_c('span',{staticStyle:{"margin-left":"66px","float":"left"}},[_vm._v("\n "+_vm._s(_vm.t(
|
|
@@ -19824,11 +19869,11 @@ var __vue_staticRenderFns__$s = [];
|
|
|
19824
19869
|
/* style */
|
|
19825
19870
|
const __vue_inject_styles__$t = function (inject) {
|
|
19826
19871
|
if (!inject) return
|
|
19827
|
-
inject("data-v-
|
|
19872
|
+
inject("data-v-2f49f423_0", { source: "[data-v-2f49f423] .ivu-form-item{width:100%}.evaluation-tag-row[data-v-2f49f423]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-2f49f423]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}.btn-container[data-v-2f49f423]{padding-left:8px}.btn-container .icon[data-v-2f49f423]{display:flex;float:left;font-size:18px}.btn-container .label[data-v-2f49f423]{display:flex;float:left;align-items:center;font-weight:500;font-size:14px;line-height:22px}.btn-container .disabled[data-v-2f49f423]{color:#c5c8ce}.btn-container .enabled[data-v-2f49f423]{color:#1890ff;cursor:pointer}", map: undefined, media: undefined });
|
|
19828
19873
|
|
|
19829
19874
|
};
|
|
19830
19875
|
/* scoped */
|
|
19831
|
-
const __vue_scope_id__$t = "data-v-
|
|
19876
|
+
const __vue_scope_id__$t = "data-v-2f49f423";
|
|
19832
19877
|
/* module identifier */
|
|
19833
19878
|
const __vue_module_identifier__$t = undefined;
|
|
19834
19879
|
/* functional template */
|
|
@@ -19860,30 +19905,46 @@ var script$u = Vue.extend({
|
|
|
19860
19905
|
ButtonGroup,
|
|
19861
19906
|
Button,
|
|
19862
19907
|
Input: Input$1,
|
|
19908
|
+
Checkbox,
|
|
19909
|
+
Radio,
|
|
19910
|
+
RadioGroup,
|
|
19863
19911
|
},
|
|
19864
19912
|
mixins: [questionFormMixin],
|
|
19913
|
+
data() {
|
|
19914
|
+
return {
|
|
19915
|
+
enabledEvaluationTag: false,
|
|
19916
|
+
};
|
|
19917
|
+
},
|
|
19918
|
+
created() {
|
|
19919
|
+
this.enabledEvaluationTag = _$1.get(this.$rootComponent, "options.enabledEvaluationTag", false);
|
|
19920
|
+
if (this.enabledEvaluationTag && !this.editQuestion.options.evaluationTag) {
|
|
19921
|
+
this.$set(this.editQuestion.options, "evaluationTag", "COURSE");
|
|
19922
|
+
}
|
|
19923
|
+
},
|
|
19865
19924
|
});
|
|
19866
19925
|
|
|
19867
19926
|
/* script */
|
|
19868
19927
|
const __vue_script__$u = script$u;
|
|
19869
19928
|
|
|
19870
19929
|
/* template */
|
|
19871
|
-
var __vue_render__$t = 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":{
|
|
19930
|
+
var __vue_render__$t = 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}},[(_vm.enabledEvaluationTag)?_c('div',{staticClass:"evaluation-tag-row"},[_c('span',{staticClass:"evaluation-tag-label"},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.label"))+":")]),_vm._v(" "),_c('RadioGroup',{model:{value:(_vm.editQuestion.options.evaluationTag),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "evaluationTag", $$v);},expression:"editQuestion.options.evaluationTag"}},[_c('Radio',{attrs:{"label":"TEACHER"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.TEACHER")))]),_vm._v(" "),_c('Radio',{attrs:{"label":"COURSE"}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation_tag.COURSE")))])],1)],1):_vm._e(),_vm._v(" "),_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{
|
|
19872
19931
|
required: true,
|
|
19873
19932
|
message: _vm.t('survey_creator.question.textTitleRequiredTip'),
|
|
19874
19933
|
}}},[_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)};
|
|
19875
19934
|
var __vue_staticRenderFns__$t = [];
|
|
19876
19935
|
|
|
19877
19936
|
/* style */
|
|
19878
|
-
const __vue_inject_styles__$u =
|
|
19937
|
+
const __vue_inject_styles__$u = function (inject) {
|
|
19938
|
+
if (!inject) return
|
|
19939
|
+
inject("data-v-356bf7dc_0", { source: ".evaluation-tag-row[data-v-356bf7dc]{display:flex;align-items:center;padding:8px 8px 12px;border-bottom:1px solid #e8eaec;margin-bottom:16px}.evaluation-tag-row .evaluation-tag-label[data-v-356bf7dc]{margin-right:8px;font-size:14px;color:#262833;white-space:nowrap}", map: undefined, media: undefined });
|
|
19940
|
+
|
|
19941
|
+
};
|
|
19879
19942
|
/* scoped */
|
|
19880
|
-
const __vue_scope_id__$u =
|
|
19943
|
+
const __vue_scope_id__$u = "data-v-356bf7dc";
|
|
19881
19944
|
/* module identifier */
|
|
19882
19945
|
const __vue_module_identifier__$u = undefined;
|
|
19883
19946
|
/* functional template */
|
|
19884
19947
|
const __vue_is_functional_template__$u = false;
|
|
19885
|
-
/* style inject */
|
|
19886
|
-
|
|
19887
19948
|
/* style inject SSR */
|
|
19888
19949
|
|
|
19889
19950
|
/* style inject shadow dom */
|
|
@@ -19898,7 +19959,7 @@ var __vue_staticRenderFns__$t = [];
|
|
|
19898
19959
|
__vue_is_functional_template__$u,
|
|
19899
19960
|
__vue_module_identifier__$u,
|
|
19900
19961
|
false,
|
|
19901
|
-
|
|
19962
|
+
createInjector,
|
|
19902
19963
|
undefined,
|
|
19903
19964
|
undefined
|
|
19904
19965
|
);
|
|
@@ -20383,7 +20444,6 @@ var script$z = Vue.extend({
|
|
|
20383
20444
|
Select,
|
|
20384
20445
|
Option,
|
|
20385
20446
|
FormItem,
|
|
20386
|
-
InputNumber,
|
|
20387
20447
|
},
|
|
20388
20448
|
data() {
|
|
20389
20449
|
return {
|
|
@@ -20438,7 +20498,101 @@ var script$z = Vue.extend({
|
|
|
20438
20498
|
};
|
|
20439
20499
|
});
|
|
20440
20500
|
},
|
|
20441
|
-
|
|
20501
|
+
resetLeftScoreOptions() {
|
|
20502
|
+
this.resetScoreOptions(this.leftScores, "left");
|
|
20503
|
+
},
|
|
20504
|
+
resetRightScoreOptions() {
|
|
20505
|
+
this.resetScoreOptions(this.rightScores, "right");
|
|
20506
|
+
},
|
|
20507
|
+
getScoreOptions(type) {
|
|
20508
|
+
return type === "left" ? this.leftScores : this.rightScores;
|
|
20509
|
+
},
|
|
20510
|
+
getScoreValue(type) {
|
|
20511
|
+
return type === "left" ? this.value.minScore : this.value.maxScore;
|
|
20512
|
+
},
|
|
20513
|
+
getScoreSelectRef(type) {
|
|
20514
|
+
return type === "left"
|
|
20515
|
+
? this.$refs.leftScoreSelect
|
|
20516
|
+
: this.$refs.rightScoreSelect;
|
|
20517
|
+
},
|
|
20518
|
+
findAvailableScoreOptionByValue(options, value) {
|
|
20519
|
+
return _$1.find(options, (option) => {
|
|
20520
|
+
return !option.disabled && option.value === value;
|
|
20521
|
+
});
|
|
20522
|
+
},
|
|
20523
|
+
findMatchedScoreOption(options, query) {
|
|
20524
|
+
const normalizedQuery = String(query == null ? "" : query).trim();
|
|
20525
|
+
const enabledOptions = _$1.filter(options, (option) => !option.disabled);
|
|
20526
|
+
if (!enabledOptions.length) {
|
|
20527
|
+
return null;
|
|
20528
|
+
}
|
|
20529
|
+
if (!normalizedQuery) {
|
|
20530
|
+
return enabledOptions[0];
|
|
20531
|
+
}
|
|
20532
|
+
return (_$1.find(enabledOptions, (option) => String(option.value) === normalizedQuery) ||
|
|
20533
|
+
_$1.find(enabledOptions, (option) => String(option.value).indexOf(normalizedQuery) === 0) ||
|
|
20534
|
+
null);
|
|
20535
|
+
},
|
|
20536
|
+
updateScoreSelectFocus(type, targetValue, fallbackToFirst = false) {
|
|
20537
|
+
const select = this.getScoreSelectRef(type);
|
|
20538
|
+
if (!select) {
|
|
20539
|
+
return;
|
|
20540
|
+
}
|
|
20541
|
+
const matchedOption = targetValue;
|
|
20542
|
+
if (!matchedOption) {
|
|
20543
|
+
if (!fallbackToFirst) {
|
|
20544
|
+
select.focusIndex = -1;
|
|
20545
|
+
return;
|
|
20546
|
+
}
|
|
20547
|
+
const firstEnabledOption = _$1.find(this.getScoreOptions(type), (option) => !option.disabled);
|
|
20548
|
+
if (!firstEnabledOption) {
|
|
20549
|
+
select.focusIndex = -1;
|
|
20550
|
+
return;
|
|
20551
|
+
}
|
|
20552
|
+
return this.updateScoreSelectFocus(type, firstEnabledOption, false);
|
|
20553
|
+
}
|
|
20554
|
+
const focusIndex = _$1.findIndex(select.flatOptions, (option) => {
|
|
20555
|
+
const propsData = option &&
|
|
20556
|
+
option.componentOptions &&
|
|
20557
|
+
option.componentOptions.propsData;
|
|
20558
|
+
return propsData && propsData.value === matchedOption.value;
|
|
20559
|
+
});
|
|
20560
|
+
if (focusIndex === -1) {
|
|
20561
|
+
if (fallbackToFirst) {
|
|
20562
|
+
const firstEnabledOption = _$1.find(this.getScoreOptions(type), (option) => !option.disabled);
|
|
20563
|
+
const matchedValue = matchedOption ? matchedOption.value : null;
|
|
20564
|
+
if (firstEnabledOption && firstEnabledOption.value !== matchedValue) {
|
|
20565
|
+
this.updateScoreSelectFocus(type, firstEnabledOption, false);
|
|
20566
|
+
}
|
|
20567
|
+
}
|
|
20568
|
+
return;
|
|
20569
|
+
}
|
|
20570
|
+
select.focusIndex = focusIndex;
|
|
20571
|
+
},
|
|
20572
|
+
handleScoreSelectOpenChange(type, visible) {
|
|
20573
|
+
if (type === "left") {
|
|
20574
|
+
this.resetLeftScoreOptions();
|
|
20575
|
+
}
|
|
20576
|
+
else {
|
|
20577
|
+
this.resetRightScoreOptions();
|
|
20578
|
+
}
|
|
20579
|
+
if (!visible) {
|
|
20580
|
+
return;
|
|
20581
|
+
}
|
|
20582
|
+
const currentValue = this.getScoreValue(type);
|
|
20583
|
+
const currentOption = this.findAvailableScoreOptionByValue(this.getScoreOptions(type), currentValue);
|
|
20584
|
+
this.$nextTick(() => {
|
|
20585
|
+
this.updateScoreSelectFocus(type, currentOption, true);
|
|
20586
|
+
});
|
|
20587
|
+
},
|
|
20588
|
+
handleScoreQueryChange(type, query) {
|
|
20589
|
+
const options = this.getScoreOptions(type);
|
|
20590
|
+
const matchedOption = this.findMatchedScoreOption(options, query);
|
|
20591
|
+
this.$nextTick(() => {
|
|
20592
|
+
this.updateScoreSelectFocus(type, matchedOption, false);
|
|
20593
|
+
});
|
|
20594
|
+
},
|
|
20595
|
+
resetScoreOptions(options, type) {
|
|
20442
20596
|
let otherRange = _$1.map(this.otherConditions, (item) => {
|
|
20443
20597
|
return {
|
|
20444
20598
|
min: _$1.get(item, "payload.minScore", 0),
|
|
@@ -20448,11 +20602,19 @@ var script$z = Vue.extend({
|
|
|
20448
20602
|
let currentMinScore = this.value.minScore == null ? 0 : this.value.minScore;
|
|
20449
20603
|
let currentMaxScore = this.value.maxScore == null ? this.totalScore : this.value.maxScore;
|
|
20450
20604
|
_$1.forEach(options, function (o) {
|
|
20451
|
-
|
|
20605
|
+
let disabledByOtherRange = _$1.some(otherRange, function (or) {
|
|
20452
20606
|
let condition_a = o.value >= or.min && o.value <= or.max;
|
|
20453
20607
|
let condition_b = o.value >= currentMinScore && o.value <= currentMaxScore;
|
|
20454
20608
|
return condition_a && condition_b;
|
|
20455
20609
|
});
|
|
20610
|
+
let disabledByCurrentRange = false;
|
|
20611
|
+
if (type === "left" && currentMaxScore != null) {
|
|
20612
|
+
disabledByCurrentRange = o.value > currentMaxScore;
|
|
20613
|
+
}
|
|
20614
|
+
if (type === "right" && currentMinScore != null) {
|
|
20615
|
+
disabledByCurrentRange = o.value < currentMinScore;
|
|
20616
|
+
}
|
|
20617
|
+
o.disabled = disabledByOtherRange || disabledByCurrentRange;
|
|
20456
20618
|
});
|
|
20457
20619
|
},
|
|
20458
20620
|
generateExpr() {
|
|
@@ -20460,6 +20622,58 @@ var script$z = Vue.extend({
|
|
|
20460
20622
|
let maxScore = this.value.maxScore;
|
|
20461
20623
|
return `${minScore} ${this.value.leftOperator} score and score ${this.value.rightOperator} ${maxScore}`;
|
|
20462
20624
|
},
|
|
20625
|
+
validateMinScore(rule, value, callback) {
|
|
20626
|
+
if (value == null || value === '') {
|
|
20627
|
+
callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
|
|
20628
|
+
return;
|
|
20629
|
+
}
|
|
20630
|
+
if (value < 1) {
|
|
20631
|
+
callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
|
|
20632
|
+
return;
|
|
20633
|
+
}
|
|
20634
|
+
if (value > this.totalScore) {
|
|
20635
|
+
callback(new Error(`${this.t('survey_creator.question.scoreExceedTotalTip')} ${this.totalScore}`));
|
|
20636
|
+
return;
|
|
20637
|
+
}
|
|
20638
|
+
if (this.value.maxScore != null && value > this.value.maxScore) {
|
|
20639
|
+
callback(new Error(this.t('survey_creator.question.minScoreGreaterThanMaxTip')));
|
|
20640
|
+
return;
|
|
20641
|
+
}
|
|
20642
|
+
callback();
|
|
20643
|
+
},
|
|
20644
|
+
validateMaxScore(rule, value, callback) {
|
|
20645
|
+
if (value == null || value === '') {
|
|
20646
|
+
callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
|
|
20647
|
+
return;
|
|
20648
|
+
}
|
|
20649
|
+
if (value < 1) {
|
|
20650
|
+
callback(new Error(this.t('survey_creator.question.scoreRequiredTip')));
|
|
20651
|
+
return;
|
|
20652
|
+
}
|
|
20653
|
+
if (value > this.totalScore) {
|
|
20654
|
+
callback(new Error(`${this.t('survey_creator.question.scoreExceedTotalTip')} ${this.totalScore}`));
|
|
20655
|
+
return;
|
|
20656
|
+
}
|
|
20657
|
+
if (this.value.minScore != null && value < this.value.minScore) {
|
|
20658
|
+
callback(new Error(this.t('survey_creator.question.maxScoreLessThanMinTip')));
|
|
20659
|
+
return;
|
|
20660
|
+
}
|
|
20661
|
+
callback();
|
|
20662
|
+
},
|
|
20663
|
+
handleMinScoreChange(value) {
|
|
20664
|
+
if (this.value.maxScore != null && value > this.value.maxScore) {
|
|
20665
|
+
this.value.maxScore = value;
|
|
20666
|
+
}
|
|
20667
|
+
this.resetLeftScoreOptions();
|
|
20668
|
+
this.resetRightScoreOptions();
|
|
20669
|
+
},
|
|
20670
|
+
handleMaxScoreChange(value) {
|
|
20671
|
+
if (this.value.minScore != null && value < this.value.minScore) {
|
|
20672
|
+
this.value.maxScore = this.value.minScore;
|
|
20673
|
+
}
|
|
20674
|
+
this.resetLeftScoreOptions();
|
|
20675
|
+
this.resetRightScoreOptions();
|
|
20676
|
+
},
|
|
20463
20677
|
},
|
|
20464
20678
|
});
|
|
20465
20679
|
|
|
@@ -20467,12 +20681,18 @@ var script$z = Vue.extend({
|
|
|
20467
20681
|
const __vue_script__$z = script$z;
|
|
20468
20682
|
|
|
20469
20683
|
/* template */
|
|
20470
|
-
var __vue_render__$y = 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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20684
|
+
var __vue_render__$y = 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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":[
|
|
20685
|
+
{
|
|
20686
|
+
required: true,
|
|
20687
|
+
type: 'number',
|
|
20688
|
+
trigger: 'change',
|
|
20689
|
+
message: _vm.t('survey_creator.question.scoreRequiredTip'),
|
|
20690
|
+
},
|
|
20691
|
+
{
|
|
20692
|
+
validator: _vm.validateMinScore,
|
|
20693
|
+
trigger: 'change',
|
|
20694
|
+
}
|
|
20695
|
+
]}},[_c('Select',{ref:"leftScoreSelect",attrs:{"filterable":"","placeholder":_vm.t('survey_creator.question.selectScore')},on:{"on-open-change":function($event){return _vm.handleScoreSelectOpenChange('left', $event)},"on-change":_vm.handleMinScoreChange,"on-query-change":function($event){return _vm.handleScoreQueryChange('left', $event)}},model:{value:(_vm.value.minScore),callback:function ($$v) {_vm.$set(_vm.value, "minScore", $$v);},expression:"value.minScore"}},_vm._l((_vm.leftScores),function(score){return _c('Option',{key:score.value,attrs:{"value":score.value,"label":String(score.value),"disabled":score.disabled}},[_vm._v("\n "+_vm._s(score.value)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.leftOperator"),"rules":{
|
|
20476
20696
|
required: true,
|
|
20477
20697
|
trigger: 'change',
|
|
20478
20698
|
message: _vm.t('survey_creator.question.notEmpty'),
|
|
@@ -20480,22 +20700,28 @@ var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
20480
20700
|
required: true,
|
|
20481
20701
|
trigger: 'change',
|
|
20482
20702
|
message: _vm.t('survey_creator.question.notEmpty'),
|
|
20483
|
-
}}},[_c('Select',{staticClass:"operator",attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.rightOperator),callback:function ($$v) {_vm.$set(_vm.value, "rightOperator", $$v);},expression:"value.rightOperator"}},_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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20703
|
+
}}},[_c('Select',{staticClass:"operator",attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.rightOperator),callback:function ($$v) {_vm.$set(_vm.value, "rightOperator", $$v);},expression:"value.rightOperator"}},_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":4}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":[
|
|
20704
|
+
{
|
|
20705
|
+
required: true,
|
|
20706
|
+
type: 'number',
|
|
20707
|
+
trigger: 'change',
|
|
20708
|
+
message: _vm.t('survey_creator.question.scoreRequiredTip'),
|
|
20709
|
+
},
|
|
20710
|
+
{
|
|
20711
|
+
validator: _vm.validateMaxScore,
|
|
20712
|
+
trigger: 'change',
|
|
20713
|
+
}
|
|
20714
|
+
]}},[_c('Select',{ref:"rightScoreSelect",attrs:{"filterable":"","placeholder":_vm.t('survey_creator.question.selectScore')},on:{"on-open-change":function($event){return _vm.handleScoreSelectOpenChange('right', $event)},"on-change":_vm.handleMaxScoreChange,"on-query-change":function($event){return _vm.handleScoreQueryChange('right', $event)}},model:{value:(_vm.value.maxScore),callback:function ($$v) {_vm.$set(_vm.value, "maxScore", $$v);},expression:"value.maxScore"}},_vm._l((_vm.rightScores),function(score){return _c('Option',{key:score.value,attrs:{"value":score.value,"label":String(score.value),"disabled":score.disabled}},[_vm._v("\n "+_vm._s(score.value)+"\n ")])}),1)],1)],1)],1)};
|
|
20489
20715
|
var __vue_staticRenderFns__$y = [];
|
|
20490
20716
|
|
|
20491
20717
|
/* style */
|
|
20492
20718
|
const __vue_inject_styles__$z = function (inject) {
|
|
20493
20719
|
if (!inject) return
|
|
20494
|
-
inject("data-v-
|
|
20720
|
+
inject("data-v-514fa778_0", { source: ".label[data-v-514fa778]{text-align:right;margin-bottom:24px}[data-v-514fa778] .operator .ivu-select-selected-value{height:28px;line-height:28px}", map: undefined, media: undefined });
|
|
20495
20721
|
|
|
20496
20722
|
};
|
|
20497
20723
|
/* scoped */
|
|
20498
|
-
const __vue_scope_id__$z = "data-v-
|
|
20724
|
+
const __vue_scope_id__$z = "data-v-514fa778";
|
|
20499
20725
|
/* module identifier */
|
|
20500
20726
|
const __vue_module_identifier__$z = undefined;
|
|
20501
20727
|
/* functional template */
|