yzx 5 月之前
父节点
当前提交
6f61bb5130

+ 1 - 26
app/admin/view/project/cost/follow_project.html

@@ -544,34 +544,9 @@
                                 return "";
                             }
                         }
-                    },
-
-                    {
-                        fixed: 'right', field: 'right', title: '操作', width: 136, align: 'center',
-                        templet: function (a) {
-                            var h = '';
-                            // 1全部-可查看可编辑,2全部-可查看,0与我有关
-
-                            if (a.self_id == 1) {
-                                if (a.project_status == 1) {
-                                    h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a><a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></div>'
-                                } else {
-                                    h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a></div>'
-                                }
-                            } else if (a.self_id == 2) {
-                                h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-xs layui-bg-blue" lay-event="read">查看</a></div>'
-                            } else if (a.self_id == 0 || a.self_id == 3) {
-                                if (a.project_status == 1) {
-                                    h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a><a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></div>'
-                                } else {
-                                    h = '<div class="layui-btn-group"><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a></div>'
-                                }
-                            }
-
-                            return h;
-                        }
                     }
 
+
                 ]
             ]
         });

+ 5 - 2
app/admin/view/project/cost_company/follow_project.html

@@ -171,6 +171,10 @@
                                 html = '<span class="layui-badge layui-bg-orange" style="background-color: #881f1f !important">退审中</span> ';
                             } else if (item.project_status === 9) {
                                 html = '<span class="layui-badge layui-bg-green" style="background-color: #d81e06 !important">已退审</span> ';
+                            }if (item.project_status === 1) {
+                                html = '<span class="layui-badge layui-bg-orange" style="background-color: #ffb800 !important">立项中</span> ';
+                            } else if (item.project_status === 2) {
+                                html = '<span class="layui-badge layui-bg-blue" style="background-color: #b30095 !important">审批中</span> ';
                             }else if (item.project_status === 3) {
                                 html = '<span class="layui-badge layui-bg-green" style="background-color: #d37000 !important">待接收</span> ';
                             } else if(item.project_status === 0){
@@ -518,9 +522,8 @@
                                 return "";
                             }
                         }
-                    },
+                    }
 
-                    {fixed: 'right', title: '操作', align: 'center', width: 170, toolbar: '#barDemo'},
 
                 ]
             ]