diff --git a/Pages/page/Graphic/ProductNumber/ProductNumberList.html b/Pages/page/Graphic/ProductNumber/ProductNumberList.html
index d63270b..7b828bc 100644
--- a/Pages/page/Graphic/ProductNumber/ProductNumberList.html
+++ b/Pages/page/Graphic/ProductNumber/ProductNumberList.html
@@ -47,14 +47,22 @@
-
+
+
+
+
+
+
@@ -70,6 +78,14 @@
upload = layui.upload;
var apiUrl = GetWebApiUrl();
+ var CurrUserData = layui.sessionData('CurrUserInfo');
+ var powerlevel = CurrUserData.data.powerLevel;
+ var ToolBarID = "#toolbar";
+ var TableBarID = "#currentTableBar";
+ if (powerlevel == 3) {
+ ToolBarID = "#toolbar_3";
+ TableBarID = "#currentTableBar_3";
+ }
table.render({
elem: '#ProductNumberList',
@@ -83,7 +99,7 @@
"data": res.result.data //解析数据列表
};
},
- toolbar: '#toolbar',
+ toolbar: ToolBarID,
defaultToolbar: ['filter', 'exports'],
cols: [[
{ type: "checkbox", width: 50 },
@@ -91,7 +107,7 @@
{ field: 'id', hide: true, width: 300, title: 'ID' },
{ field: 'productNum', width: 200, title: '产品编码', sort: true, align: "center" },
{ field: 'remark', width: 350, title: '备注', sort: true, align: "left" },
- { title: '操作', width: 200, toolbar: '#currentTableBar', align: "center" }
+ { title: '操作', width: 200, toolbar: TableBarID, align: "center" }
]],
initSort: {
field: 'productNum', //排序字段,对应 cols 设定的各字段名
diff --git a/Pages/page/UserList.html b/Pages/page/UserList.html
index 2c0e780..4b6ca66 100644
--- a/Pages/page/UserList.html
+++ b/Pages/page/UserList.html
@@ -86,6 +86,7 @@
{ field: 'id', hide: true, width: 200, title: 'ID', sort: true },
{ field: 'workNo', width: 150, title: '工号', sort: true },
{ field: 'account', width: 150, title: '账号', sort: true },
+ { field: 'powerLevel', width: 200, title: '权限等级', sort: true, templet: '#UserList_PowerLevel' },
{ field: 'userName', width: 200, title: '用户名' },
{ field: 'sex', width: 150, title: '性别', sort: true, templet: '#UserList_Sex' },
{ field: 'deptName', width: 200, title: '部门' },
@@ -298,6 +299,17 @@
女
{{# } }}
+