|
@@ -106,6 +106,7 @@ define([ "require", "backbone", "hbs!tmpl/schema/SchemaTableLayoutView_tmpl", "c
|
|
|
});
|
|
|
},
|
|
|
getSchemaTableColumns: function() {
|
|
|
+ var that = this;
|
|
|
var col = {
|
|
|
Check: {
|
|
|
name: "selected",
|
|
@@ -116,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: key.capitalize(),
|
|
|
+ label: that.toChinese(key),
|
|
|
cell: "html",
|
|
|
editable: !1,
|
|
|
className: "searchTableName",
|
|
@@ -132,8 +133,9 @@ define([ "require", "backbone", "hbs!tmpl/schema/SchemaTableLayoutView_tmpl", "c
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
+ console.log(key)
|
|
|
}), col.tag = {
|
|
|
- label: "Classifications",
|
|
|
+ label: "分类",
|
|
|
cell: "Html",
|
|
|
editable: !1,
|
|
|
sortable: !1,
|
|
@@ -190,6 +192,15 @@ 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;
|