imatrix-ui 2.9.55-dw → 2.9.57-dw
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
|
@@ -836,6 +836,18 @@ gridParams.$rowIndex < gridParams.gridData.length) {
|
|
|
836
836
|
gridParams.subTableData = gridData
|
|
837
837
|
this.subTableData = gridData
|
|
838
838
|
}
|
|
839
|
+
},
|
|
840
|
+
// 获得默认值字段集合
|
|
841
|
+
getDefaultValueColumns(listCode) {
|
|
842
|
+
const defaultValueColumnsMap = {}
|
|
843
|
+
const gridParams = store.get(listCode)
|
|
844
|
+
const defaultValueColumns = gridParams.defaultValueColumns
|
|
845
|
+
if (defaultValueColumns && defaultValueColumns.length > 0) {
|
|
846
|
+
defaultValueColumns.forEach(column => {
|
|
847
|
+
defaultValueColumnsMap[column.prop] = column
|
|
848
|
+
})
|
|
849
|
+
}
|
|
850
|
+
return defaultValueColumnsMap
|
|
839
851
|
}
|
|
840
852
|
}
|
|
841
853
|
export default apis
|
package/src/utils/common-util.js
CHANGED
|
@@ -335,3 +335,14 @@ export function cacheCurrentLanguageUtil(http) {
|
|
|
335
335
|
}
|
|
336
336
|
})
|
|
337
337
|
}
|
|
338
|
+
|
|
339
|
+
// 刷新浏览器页面
|
|
340
|
+
export function refreshLocationHref(url, locationObj) {
|
|
341
|
+
if (!locationObj) {
|
|
342
|
+
locationObj = window.location
|
|
343
|
+
}
|
|
344
|
+
if (!url) {
|
|
345
|
+
return
|
|
346
|
+
}
|
|
347
|
+
locationObj.href = url
|
|
348
|
+
}
|