Browse Source

装集客项目更新

lijiangwei 4 years ago
parent
commit
8719d49fe9

+ 2 - 0
uis/views/customer/check_index.html

@@ -148,6 +148,8 @@
                 yes: function (index, dom) {
                     layui.onSubmitChild = function (res) {
                         if(res.code === 0){
+                            // 刷新父级页面的菜单数量
+                            parent.layui.getData();
                             layer.msg("审核成功!", {icon: 1})
                         }
                         layer.close(index);

+ 1 - 0
uis/views/employee/index.html

@@ -112,6 +112,7 @@
                 , {field: 'enable_text', title: '是否在用', width: 100}
                 , {field: 'groups', title: '权限组', width: 200}
                 , {field: 'manager_barnchs', title: '管理门店', width: 200}
+                , {field: 'office_stores', title: '任职门店', width: 200}
                 , {field: 'status_text', title: '状态', width: 80}
                 , {field: 'check_user_text', title: '入职审核人', width: 120}
                 , {field: 'date_joined', title: '入职时间', width: 180}

+ 18 - 13
uis/views/index.html

@@ -177,21 +177,26 @@
         if (!name) {
             location.href = '/views/account/login.html'; //没有用户,跳转到登录
         }
-
-        admin.req({
-            url: '/customer/list_count/',
-            type: 'get',
-            done: function (res) {
-                let tempObj = res.data;
-                for(let key in tempObj){
-                    if(tempObj[key] === 0){
-                        $('#' + key).hide()
-                    }else{
-                        $('#' + key).append(tempObj[key]);
+        //获取菜单的数量
+        layui.getData = function getData() {
+             admin.req({
+                url: '/customer/list_count/',
+                type: 'get',
+                done: function (res) {
+                    let tempObj = res.data;
+                    for(let key in tempObj){
+                        if(tempObj[key] === 0){
+                            $('#' + key).hide()
+                        }else{
+                            $('#' + key).append(tempObj[key]);
+                        }
                     }
                 }
-            }
-        });
+            });
+        };
+
+        //获取菜单的数量
+        layui.getData();
 
 
         var permissions = layui.data(layui.setter.tableName)['permissions'];

+ 2 - 0
uis/views/order/dispatch_process_index.html

@@ -166,6 +166,8 @@
                     btn: ['保存','取消'],
                     yes: function (index, dom) {
                         layui.onSubmitChild = function (res) {
+                            // 刷新父级页面的菜单数量
+                            parent.layui.getData();
                             layer.close(index);
                             table.reload('dispatch_process_datagrid', {});
                         };

+ 2 - 0
uis/views/report_check/index.html

@@ -138,6 +138,8 @@
                     btn: ['分配', '取消'],
                     yes: function (index, dom) {
                         layui.onSubmitChild = function (data) {
+                            // 刷新父级页面的菜单数量
+                            parent.layui.getData();
                             layer.close(index);
                             table.reload('report_check_datagrid', {});
                         };