|
@@ -117,7 +117,7 @@ define([ "require", "backbone", "hbs!tmpl/schema/SchemaTableLayoutView_tmpl", "c
|
|
|
};
|
|
|
if (this.schemaTableAttribute) return _.each(_.keys(this.schemaTableAttribute), function(key) {
|
|
|
"position" !== key && (col[key] = {
|
|
|
- label: that.toChinese(key),
|
|
|
+ label: Utils.toChinese(key),
|
|
|
cell: "html",
|
|
|
editable: !1,
|
|
|
className: "searchTableName",
|
|
@@ -192,15 +192,6 @@ define([ "require", "backbone", "hbs!tmpl/schema/SchemaTableLayoutView_tmpl", "c
|
|
|
onCheckDeletedEntity: function(e) {
|
|
|
e.target.checked ? this.deleteObj.length && this.schemaCollection.fullCollection.reset(this.activeObj.concat(this.deleteObj)) : this.schemaCollection.fullCollection.reset(this.activeObj);
|
|
|
},
|
|
|
- toChinese: function (e){
|
|
|
- switch (e){
|
|
|
- case "name": return "名称";
|
|
|
- case "owner": return "所有者";
|
|
|
- case "type": return "类型";
|
|
|
- case "comment": return "备注";
|
|
|
- default: return e;
|
|
|
- }
|
|
|
- }
|
|
|
});
|
|
|
return SchemaTableLayoutView;
|
|
|
});
|