|
@@ -16,6 +16,7 @@ import {
|
|
|
} from "../PropertyDescriptionTable";
|
|
|
import {PropertyDescription} from "../PropertyDescription";
|
|
|
import {gridInvokeBuild} from "./stores";
|
|
|
+import { msg } from 'src/message';
|
|
|
|
|
|
|
|
|
const defaultGrid = grid
|
|
@@ -105,15 +106,15 @@ export default function () {
|
|
|
buttons.push({
|
|
|
xtype: 'button',
|
|
|
tooltip: '保存表格自定义配置',
|
|
|
- iconCls: 'x-fa fa-save',
|
|
|
+ iconCls: 'x-fa fa-cog',
|
|
|
handler: this.saveGridUIConfig
|
|
|
})
|
|
|
}
|
|
|
if (!newConfig.hideClearGridUIConfig) {
|
|
|
buttons.push({
|
|
|
xtype: 'button',
|
|
|
- tooltip: '清空表格自定义配置',
|
|
|
- iconCls: 'x-fa fa-close',
|
|
|
+ tooltip: '还原表格自定义配置',
|
|
|
+ iconCls: 'x-fa fa-repeat',
|
|
|
handler: this.clearGridUIConfig
|
|
|
})
|
|
|
}
|
|
@@ -499,12 +500,14 @@ export default function () {
|
|
|
saveGridUIConfig(sender) {
|
|
|
const grid = sender.up('grid')
|
|
|
grid.setColumnConfigCache()
|
|
|
+ msg('保存设置成功!')
|
|
|
},
|
|
|
|
|
|
clearGridUIConfig(sender) {
|
|
|
const grid = sender.up('grid')
|
|
|
const key = grid.columnConfigCacheKey
|
|
|
localStorage.setItem(key, "")
|
|
|
+ msg('清空设置成功,重新打开后生效!')
|
|
|
},
|
|
|
|
|
|
setLoading(value) {
|