lijiangwei 4 лет назад
Родитель
Сommit
5948c78dc8
2 измененных файлов с 12 добавлено и 3 удалено
  1. 1 1
      uis/views/store/edit.html
  2. 11 2
      uis/views/store/index.html

+ 1 - 1
uis/views/store/edit.html

@@ -103,7 +103,7 @@
                 , data: data.field
                 , type: type
                 , done: function (res) {
-                    parent.layui.onSubmitChild(res.data);
+                    parent.layui.onSubmitChild(res);
                 }
             });
 

+ 11 - 2
uis/views/store/index.html

@@ -137,6 +137,9 @@
                         url: '/agent/store/' + data.id + '/'
                         , type: 'delete'
                         , done: function (res) {
+                            if(res.code === 0){
+                                layer.msg('删除成功!', {icon: 1})
+                            }
                             table.reload('store_datagrid', {});
                         }
                     });
@@ -150,7 +153,10 @@
                     area: ['40%', '50%'],
                     btn: ['保存', '取消'],
                     yes: function (index, dom) {
-                        layui.onSubmitChild = function (data) {
+                        layui.onSubmitChild = function (res) {
+                            if(res.code === 0){
+                                layer.msg('修改成功!', {icon: 1})
+                            }
                             layer.close(index);
                             table.reload('store_datagrid', {});
                         };
@@ -199,7 +205,10 @@
                 area: ['40%', '50%'],
                 btn: ['保存', '取消'],
                 yes: function (index, dom) {
-                    layui.onSubmitChild = function (data) {
+                    layui.onSubmitChild = function (res) {
+                        if(res.code === 0){
+                            layer.msg('添加成功!', {icon: 1})
+                         }
                         layer.close(index);
                         table.reload('store_datagrid', {});
                     };