mooho-base-admin-plus 2.10.93 → 2.10.95
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
package/public/setting.js
CHANGED
|
@@ -84,9 +84,7 @@ window.setting = {
|
|
|
84
84
|
// 每页默认数量
|
|
85
85
|
pageSize: 10,
|
|
86
86
|
// 单击行即选中
|
|
87
|
-
clickRowChecked: true
|
|
88
|
-
// 富文本 CKEditor4 脚本地址
|
|
89
|
-
editorUrl: '/ckeditor/ckeditor.js'
|
|
87
|
+
clickRowChecked: true
|
|
90
88
|
},
|
|
91
89
|
/**
|
|
92
90
|
* 多语言配置
|
|
@@ -105,5 +103,7 @@ window.setting = {
|
|
|
105
103
|
encrypt: {
|
|
106
104
|
// 是否开启密码加密,开启后,登录、修改密码等操作,都需要进行密码加密处理
|
|
107
105
|
passwordEncrypt: false
|
|
108
|
-
}
|
|
106
|
+
},
|
|
107
|
+
// 富文本 CKEditor4 脚本地址
|
|
108
|
+
editorUrl: '/ckeditor/ckeditor.js'
|
|
109
109
|
};
|
|
@@ -665,11 +665,10 @@
|
|
|
665
665
|
// return data;
|
|
666
666
|
});
|
|
667
667
|
|
|
668
|
-
setTimeout(()
|
|
669
|
-
|
|
670
|
-
});
|
|
671
|
-
|
|
668
|
+
// 必须在 init 的 Promise 完成前同步清空并绑定表格,避免 setTimeout(loadData([])) 晚于
|
|
669
|
+
// 「await init 后执行的 loadData(真实数据)」而把数据冲掉
|
|
672
670
|
this.inited = true;
|
|
671
|
+
await this.loadData([]);
|
|
673
672
|
|
|
674
673
|
setTimeout(() => {
|
|
675
674
|
if (typeof callback === 'function') {
|
|
@@ -888,6 +887,11 @@
|
|
|
888
887
|
cells: (row, col, prop) => {
|
|
889
888
|
let column = this.columns.find(item => item.code == prop);
|
|
890
889
|
|
|
890
|
+
if (column == null) {
|
|
891
|
+
console.log('column not found!', row, col, prop);
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
|
|
891
895
|
let isShow = column.isShow;
|
|
892
896
|
let isReadonly = column.isReadonly;
|
|
893
897
|
|