@nstc-business/imes 1.0.22 → 1.0.23
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/package.json
CHANGED
|
@@ -53,6 +53,18 @@
|
|
|
53
53
|
:d-num="digits"
|
|
54
54
|
v-model="cell.value"
|
|
55
55
|
/>
|
|
56
|
+
<el-tooltip
|
|
57
|
+
v-else-if="showFormulaTip"
|
|
58
|
+
placement="top"
|
|
59
|
+
effect="dark"
|
|
60
|
+
>
|
|
61
|
+
<div slot="content">
|
|
62
|
+
{{ cell.displayFormula }}:
|
|
63
|
+
<br />
|
|
64
|
+
{{ cell.relFormula }}
|
|
65
|
+
</div>
|
|
66
|
+
<span>{{ displayValue(cell) }}</span>
|
|
67
|
+
</el-tooltip>
|
|
56
68
|
<span v-else>{{ displayValue(cell) }}</span>
|
|
57
69
|
</template>
|
|
58
70
|
</div>
|
|
@@ -74,6 +86,11 @@ export default {
|
|
|
74
86
|
computed: {
|
|
75
87
|
readonly() {
|
|
76
88
|
return !!this.measureCtx().readonly
|
|
89
|
+
},
|
|
90
|
+
/** 指标值列才展示公式;得分列 column.disabled 不展示 */
|
|
91
|
+
showFormulaTip() {
|
|
92
|
+
if (!this.cell || this.column.disabled) return false
|
|
93
|
+
return !!(this.cell.displayFormula || this.cell.relFormula)
|
|
77
94
|
}
|
|
78
95
|
},
|
|
79
96
|
methods: {
|
|
@@ -53,8 +53,24 @@
|
|
|
53
53
|
</el-select>
|
|
54
54
|
</template>
|
|
55
55
|
<template v-else>
|
|
56
|
-
<
|
|
56
|
+
<el-tooltip
|
|
57
57
|
v-if="
|
|
58
|
+
row.sourceType !== 3 &&
|
|
59
|
+
(!row.optionList || !row.optionList.length) &&
|
|
60
|
+
hasFormulaFn(row)
|
|
61
|
+
"
|
|
62
|
+
placement="top"
|
|
63
|
+
effect="dark"
|
|
64
|
+
>
|
|
65
|
+
<div slot="content">
|
|
66
|
+
{{ row.displayFormula }}:
|
|
67
|
+
<br />
|
|
68
|
+
{{ row.relFormula }}
|
|
69
|
+
</div>
|
|
70
|
+
<span>{{ indicatorTextFn(row) }}</span>
|
|
71
|
+
</el-tooltip>
|
|
72
|
+
<span
|
|
73
|
+
v-else-if="
|
|
58
74
|
row.sourceType !== 3 &&
|
|
59
75
|
(!row.optionList || !row.optionList.length)
|
|
60
76
|
"
|
|
@@ -175,6 +191,9 @@ export default {
|
|
|
175
191
|
indicatorTextFn(row) {
|
|
176
192
|
return indicatorResultText(row, this.ctx.modelWrap)
|
|
177
193
|
},
|
|
194
|
+
hasFormulaFn(row) {
|
|
195
|
+
return !!(row && (row.displayFormula || row.relFormula))
|
|
196
|
+
},
|
|
178
197
|
onQualChange(row) {
|
|
179
198
|
const option = row.value
|
|
180
199
|
if (!option || !option.scoreMapID) return
|