vue2-client 1.14.31 → 1.14.32
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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:rowKey="tableContext.rowKey"
|
|
11
11
|
:showSummary="tableContext.showSummary"
|
|
12
12
|
:rowSelection="tableContext.rowSelection"
|
|
13
|
-
:scroll="{ x: tableContext.scrollXWidth, y: tableContext.scrollYHeight }
|
|
13
|
+
:scroll="{ x: tableContext.scrollXWidth, y: tableContext.scrollYHeight }"
|
|
14
14
|
:showPagination="tableContext.showPagination"
|
|
15
15
|
:hidePagination="tableContext.simpleMode"
|
|
16
16
|
:showSelected="!tableContext.simpleMode"
|
|
@@ -131,6 +131,8 @@ export default {
|
|
|
131
131
|
name: 'XHDescriptions',
|
|
132
132
|
data () {
|
|
133
133
|
return {
|
|
134
|
+
// 隐藏配置 当数据结果 = -1^ 该数据字段会被delete
|
|
135
|
+
hiddenConfig: '-1^',
|
|
134
136
|
data: null,
|
|
135
137
|
config: null,
|
|
136
138
|
showAllItems: false // 控制是否显示所有标签
|
|
@@ -190,9 +192,17 @@ export default {
|
|
|
190
192
|
this.showAllItems = false
|
|
191
193
|
getConfigByName(data, 'af-his', res => {
|
|
192
194
|
this.config = res
|
|
195
|
+
const hiddenConfig = this.config?.hiddenConfig ?? 0 === 1
|
|
193
196
|
console.log(this.config)
|
|
194
|
-
const parameter = { ...res.parameter, ...this.parameter, ...parameterData
|
|
197
|
+
const parameter = { ...res.parameter, ...this.parameter, ...parameterData }
|
|
195
198
|
runLogic(res.logicName, parameter, 'af-his').then(result => {
|
|
199
|
+
if (hiddenConfig) {
|
|
200
|
+
for (const key in result) {
|
|
201
|
+
if (Object.prototype.hasOwnProperty.call(result, key) && result[key] === this.hiddenConfig) {
|
|
202
|
+
delete result[key]
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
196
206
|
this.data = result
|
|
197
207
|
})
|
|
198
208
|
})
|