@wg-npm/survey-creator 0.3.6643 → 0.3.7212
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.
|
@@ -3181,7 +3181,8 @@ var script$d = Vue.extend({
|
|
|
3181
3181
|
let otherEvaluationItems = _.filter(_.map(this.evaluationItems, (item, index) => {
|
|
3182
3182
|
return _.extend({}, item, { index: index });
|
|
3183
3183
|
}), (item) => item.index != this.itemIndex);
|
|
3184
|
-
|
|
3184
|
+
const conditions = _.flatMap(otherEvaluationItems, item => _.get(item, "conditions", []));
|
|
3185
|
+
return _.filter(conditions, (item) => _.get(item, "type") == "SCORE");
|
|
3185
3186
|
},
|
|
3186
3187
|
},
|
|
3187
3188
|
methods: {
|
|
@@ -3304,11 +3305,11 @@ var __vue_staticRenderFns__$d = [];
|
|
|
3304
3305
|
/* style */
|
|
3305
3306
|
const __vue_inject_styles__$d = function (inject) {
|
|
3306
3307
|
if (!inject) return
|
|
3307
|
-
inject("data-v-
|
|
3308
|
+
inject("data-v-7c338c4d_0", { source: ".label[data-v-7c338c4d]{text-align:right;margin-bottom:24px}[data-v-7c338c4d] .operator .ivu-select-selected-value{height:28px;line-height:28px}", map: undefined, media: undefined });
|
|
3308
3309
|
|
|
3309
3310
|
};
|
|
3310
3311
|
/* scoped */
|
|
3311
|
-
const __vue_scope_id__$d = "data-v-
|
|
3312
|
+
const __vue_scope_id__$d = "data-v-7c338c4d";
|
|
3312
3313
|
/* module identifier */
|
|
3313
3314
|
const __vue_module_identifier__$d = undefined;
|
|
3314
3315
|
/* functional template */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-creator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7212",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@wg-npm/survey-core": "0.3.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
15
|
+
"@wg-npm/survey-core": "0.3.7212",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.3.7212",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"camelcase": "^6.0.0",
|
|
19
19
|
"deepmerge": "^4.2.2",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
|
39
39
|
"@typescript-eslint/parser": "^3.6.0",
|
|
40
40
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
41
|
-
"@wg-npm/survey-core": "0.3.
|
|
42
|
-
"@wg-npm/survey-service-api": "0.3.
|
|
41
|
+
"@wg-npm/survey-core": "0.3.7212",
|
|
42
|
+
"@wg-npm/survey-service-api": "0.3.7212",
|
|
43
43
|
"acorn": "^7.3.1",
|
|
44
44
|
"axios": "^0.19.2",
|
|
45
45
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -164,9 +164,9 @@ export default Vue.extend({
|
|
|
164
164
|
}),
|
|
165
165
|
(item) => item.index != this.itemIndex
|
|
166
166
|
);
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
(item) => item
|
|
167
|
+
const conditions = _.flatMap(otherEvaluationItems, item=>_.get(item,"conditions",[]));
|
|
168
|
+
return _.filter(conditions,
|
|
169
|
+
(item) => _.get(item,"type") == ExprConditionType.SCORE
|
|
170
170
|
);
|
|
171
171
|
},
|
|
172
172
|
},
|
|
@@ -184,6 +184,7 @@ export default Vue.extend({
|
|
|
184
184
|
})
|
|
185
185
|
);
|
|
186
186
|
},
|
|
187
|
+
//todo 此功能暂未启用
|
|
187
188
|
getUsableRanges() {
|
|
188
189
|
let usedRange = _.map(this.otherConditions, (item) => {
|
|
189
190
|
return [item.payload.minScore, item.payload.maxScore];
|