From 003ffbc890b3bfd634976b52ac4601f502baeb3c Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 13 Apr 2017 20:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E6=9B=B4=E6=94=B9ID=E5=88=97=E4=B8=BA=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Dicts.js | 2 +- Bootstrap.Admin/Scripts/Groups.js | 2 +- Bootstrap.Admin/Scripts/Menus.js | 2 +- Bootstrap.Admin/Scripts/Roles.js | 9 +++++---- Bootstrap.Admin/Scripts/Users.js | 2 +- Bootstrap.Admin/Scripts/framework.js | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Bootstrap.Admin/Scripts/Dicts.js b/Bootstrap.Admin/Scripts/Dicts.js index 565d1a4c..29ee63a3 100644 --- a/Bootstrap.Admin/Scripts/Dicts.js +++ b/Bootstrap.Admin/Scripts/Dicts.js @@ -19,7 +19,7 @@ queryParams: function (params) { return $.extend(params, { category: $('#txt_dict_cate').val(), name: $("#txt_dict_name").val(), define: $("#txt_dict_define").val() }); }, columns: [ { checkbox: true }, - { title: "Id", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, + { title: "编辑", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, { title: "字典标签", field: "Category", sortable: true }, { title: "字典名称", field: "Name", sortable: true }, { title: "字典代码", field: "Code", sortable: true }, diff --git a/Bootstrap.Admin/Scripts/Groups.js b/Bootstrap.Admin/Scripts/Groups.js index f31e84b0..b423e7cf 100644 --- a/Bootstrap.Admin/Scripts/Groups.js +++ b/Bootstrap.Admin/Scripts/Groups.js @@ -79,7 +79,7 @@ sortName: 'GroupName', queryParams: function (params) { return $.extend(params, { groupName: $("#txt_search_name").val(), description: $("#txt_group_desc").val() }); }, //传递参数(*) columns: [{ checkbox: true }, - { title: "Id", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, + { title: "编辑", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, { title: "部门名称", field: "GroupName", sortable: true }, { title: "部门描述", field: "Description", sortable: false } ] diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js index 5e10bd82..6f30a818 100644 --- a/Bootstrap.Admin/Scripts/Menus.js +++ b/Bootstrap.Admin/Scripts/Menus.js @@ -82,7 +82,7 @@ queryParams: function (params) { return $.extend(params, { parentName: $('#txt_parent_menus_name').val(), name: $("#txt_menus_name").val(), category: $('#sel_menus_category').val(), isresource: $('#sel_menus_res').val() }); }, //传递参数(*) columns: [ { checkbox: true }, - { title: "Id", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, + { title: "编辑", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, { title: "父级菜单", field: "ParentName", sortable: true }, { title: "菜单名称", field: "Name", sortable: true }, { title: "菜单序号", field: "Order", sortable: true }, diff --git a/Bootstrap.Admin/Scripts/Roles.js b/Bootstrap.Admin/Scripts/Roles.js index 557951e2..b5fdf100 100644 --- a/Bootstrap.Admin/Scripts/Roles.js +++ b/Bootstrap.Admin/Scripts/Roles.js @@ -120,10 +120,11 @@ url: Role.url, //请求后台的URL(*) sortName: 'RoleName', queryParams: function (params) { return $.extend(params, { roleName: $("#txt_search_name").val(), description: $("#txt_role_desc").val() }); }, //传递参数(*) - columns: [{ checkbox: true }, - { title: "Id", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, - { title: "角色名称", field: "RoleName", sortable: true }, - { title: "角色描述", field: "Description", sortable: false } + columns: [ + { checkbox: true }, + { title: "编辑", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, + { title: "角色名称", field: "RoleName", sortable: true }, + { title: "角色描述", field: "Description", sortable: false } ] }); diff --git a/Bootstrap.Admin/Scripts/Users.js b/Bootstrap.Admin/Scripts/Users.js index 73878921..cd53821d 100644 --- a/Bootstrap.Admin/Scripts/Users.js +++ b/Bootstrap.Admin/Scripts/Users.js @@ -94,7 +94,7 @@ queryParams: function (params) { return $.extend(params, { name: $("#txt_search_name").val(), displayName: $('#txt_display_name').val() }); }, //传递参数(*) columns: [ { checkbox: true }, - { title: "Id", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, + { title: "编辑", field: "Id", events: bsa.idEvents(), formatter: BootstrapAdmin.idFormatter }, { title: "登陆名称", field: "UserName", sortable: true }, { title: "显示名称", field: "DisplayName", sortable: true }, { title: "注册时间", field: "RegisterTime", sortable: true }, diff --git a/Bootstrap.Admin/Scripts/framework.js b/Bootstrap.Admin/Scripts/framework.js index f1600c8a..9e0f2326 100644 --- a/Bootstrap.Admin/Scripts/framework.js +++ b/Bootstrap.Admin/Scripts/framework.js @@ -69,7 +69,7 @@ }; BootstrapAdmin.idFormatter = function (value, row, index) { - return "" + value + ""; + return "编辑"; }; BootstrapAdmin.prototype = {