浏览代码

'修改系统新增'

Ethan 6 年之前
父节点
当前提交
5547db5e34

+ 1 - 1
application/admin/view/admins/addadmin.html

@@ -100,7 +100,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/admins/addpower.html

@@ -76,7 +76,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/admins/editadmin.html

@@ -82,7 +82,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/admins/editpower.html

@@ -85,7 +85,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/admins/index.html

@@ -19,6 +19,10 @@
             <h5>管理员列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/admins/addadmin.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 4 - 0
application/admin/view/admins/power.html

@@ -19,6 +19,10 @@
             <h5>权限组列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/admins/addpower.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <div class="example-wrap">
                 <div class="example">
                     <table id="cusTable">

+ 1 - 1
application/admin/view/groups/addgroup.html

@@ -76,7 +76,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/groups/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/groups/editgroup.html

@@ -76,7 +76,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/groups/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/groups/index.html

@@ -19,6 +19,10 @@
             <h5>分组列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/groups/addgroup.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 1 - 1
application/admin/view/kfnotice/add.html

@@ -66,7 +66,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/kfnotice/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/kfnotice/index.html

@@ -19,6 +19,10 @@
             <h5>管理员列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/kfnotice/add.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 1 - 1
application/admin/view/menu/add.html

@@ -103,7 +103,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/menu/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/menu/edit.html

@@ -108,7 +108,7 @@
             layer.close(index);
             if(1 == res.code){
                 layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                    window.location.href = res.data;
+                    window.location.href = '/admin/menu/index.html';
                 });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/menu/index.html

@@ -19,6 +19,10 @@
             <h5>菜单列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/menu/add.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <div class="example-wrap">
                 <div class="example">
                     <table id="cusTable">

+ 4 - 0
application/admin/view/robot/index.html

@@ -19,6 +19,10 @@
             <h5>智能问答列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/robot/addword.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 4 - 0
application/admin/view/sensitivec/index.html

@@ -19,6 +19,10 @@
             <h5>敏感词列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/sensitivec/addsensitive.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 1 - 1
application/admin/view/users/adduser.html

@@ -149,7 +149,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/index/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 3 - 3
application/admin/view/users/edituser.html

@@ -111,7 +111,7 @@
                                 {/if}
                             </div>
                         </div>
-                        
+
 
                         <div class="form-group">
                             <div class="col-sm-4 col-sm-offset-6" style="margin-left: 20%;">
@@ -139,7 +139,7 @@
     layui.use(['form', 'upload'], function(){
         var form = layui.form;
         var upload = layui.upload;
-        
+
         //执行实例
         var uploadInst = upload.render({
             elem: '#up-avatar' //绑定元素
@@ -176,7 +176,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   '/admin/index/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/users/index.html

@@ -19,6 +19,10 @@
             <h5>客服列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/users/adduser.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 1 - 1
application/admin/view/words/addword.html

@@ -82,7 +82,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/words/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/words/editword.html

@@ -82,7 +82,7 @@
             layer.close(index);
             if(1 == res.code){
                 layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                    window.location.href = res.data;
+                    window.location.href = '/admin/words/index.html';
                 });
             }else if(111 == res.code){
                 window.location.reload();

+ 6 - 2
application/admin/view/words/index.html

@@ -16,7 +16,7 @@
     <input style="display:none;" type="text" value="1" id="type">
     <!-- Panel Other -->
     <div class="ibox float-e-margins">
-        <div style="display: flex;">
+        <!--<div style="display: flex;">
             <div class="ibox-title" style="width: 100px;" id="current1" onclick="current(1)">
                 <h5>系统常用语</h5>
             </div>
@@ -25,8 +25,12 @@
             </div>
             <div class="ibox-title" style="width: calc(100% - 200px); background: #eee;">
             </div>
-        </div>
+        </div>-->
         <div class="ibox-content" style="border-top: 0;">
+            <a href="/admin/words/addword.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">