diff --git a/app/article/controller/Cate.php b/app/article/controller/Cate.php index 5707eca..3b07ac8 100644 --- a/app/article/controller/Cate.php +++ b/app/article/controller/Cate.php @@ -22,7 +22,8 @@ class Cate extends BaseController { if (request()->isAjax()) { $cate = Db::name('ArticleCate')->order('create_time asc')->select(); - return to_assign(0, '', $cate); + $list = generateTree($cate); + return to_assign(0, '', $list); } else { return view(); } diff --git a/app/article/view/cate/cate.html b/app/article/view/cate/cate.html index 5ed94af..bbae2f4 100644 --- a/app/article/view/cate/cate.html +++ b/app/article/view/cate/cate.html @@ -2,8 +2,8 @@ {block name="body"}
-
- +
+
@@ -18,64 +18,66 @@ {block name="script"} + } + tool.delete("/article/cate/cate_delete", { id: obj.data.id }, callback); + layer.close(index); + }); + } + }); + } + {/block} \ No newline at end of file diff --git a/app/article/view/cate/cate_add.html b/app/article/view/cate/cate_add.html index a0dd7cb..7f0fd76 100644 --- a/app/article/view/cate/cate_add.html +++ b/app/article/view/cate/cate_add.html @@ -76,9 +76,7 @@ let callback = function (e) { layer.msg(e.msg); if (e.code == 0) { - setTimeout(function () { - parent.location.reload(); - }, 1000); + tool.sideClose(1000); } } tool.post("/article/cate/cate_add", data.field, callback); diff --git a/app/article/view/index/cate.html b/app/article/view/index/cate.html deleted file mode 100644 index d3eef73..0000000 --- a/app/article/view/index/cate.html +++ /dev/null @@ -1,81 +0,0 @@ -{extend name="../../base/view/common/base" /} - -{block name="body"} -
-
- -
-
-
-
-
- -{/block} - - - -{block name="script"} - -{/block} - \ No newline at end of file diff --git a/app/article/view/index/index.html b/app/article/view/index/index.html index e96297c..f273eeb 100644 --- a/app/article/view/index/index.html +++ b/app/article/view/index/index.html @@ -14,7 +14,10 @@
- +
+ + +
diff --git a/app/article/view/index/list.html b/app/article/view/index/list.html index 7502428..3479e55 100644 --- a/app/article/view/index/list.html +++ b/app/article/view/index/list.html @@ -14,7 +14,10 @@
- +
+ + +
diff --git a/app/common.php b/app/common.php index ec63e79..fd27a77 100644 --- a/app/common.php +++ b/app/common.php @@ -1098,6 +1098,19 @@ function get_data_node($data=[],$pid=0){ return array_values($dep); } + +function generateTree($flatArray, $parentId = 0) { + $tree = []; + foreach ($flatArray as $item) { + if ($item['pid'] === $parentId) { + $node = $item; + $node['children'] = generateTree($flatArray, $item['id']); + $tree[] = $node; + } + } + return $tree; +} + //访问按小时归档统计 function hour_document($arrData) { diff --git a/app/contract/controller/Index.php b/app/contract/controller/Index.php index 188a847..72f4f6d 100644 --- a/app/contract/controller/Index.php +++ b/app/contract/controller/Index.php @@ -302,12 +302,7 @@ class Index extends BaseController View::assign('flows', $flows); View::assign('auth', $auth); View::assign('detail', $detail); - if($detail['check_status'] == 0 || $detail['check_status'] == 4){ - return view('view_set'); - } - else{ - return view(); - } + return view(); } //删除 public function delete() diff --git a/app/contract/view/cate/cate.html b/app/contract/view/cate/cate.html index 4cc4209..f9aeb5d 100644 --- a/app/contract/view/cate/cate.html +++ b/app/contract/view/cate/cate.html @@ -2,7 +2,7 @@ {block name="body"}
-
+

说明

合同性质分为:普通合同、框架合同、补充协议、其他合同

1、普通合同有合同金额,且金额为必填项;

@@ -14,7 +14,7 @@
{/block} diff --git a/app/contract/view/index/add.html b/app/contract/view/index/add.html index 2599dac..e4d11e0 100644 --- a/app/contract/view/index/add.html +++ b/app/contract/view/index/add.html @@ -76,16 +76,20 @@ 客户联系地址 - + - 合同开始日期* + 合同始止日期* - - - 合同结束日期* - - +
+
+ +
+ ~ +
+ +
+
{neq name="$type" value="2"} @@ -120,7 +124,7 @@ 合同签订时间* - + 合同制定人* @@ -177,12 +181,11 @@ const moduleInit = ['tool','employeepicker','oaTool']; function gouguInit() { var form = layui.form,tool=layui.tool,table = layui.table,laydate = layui.laydate,oaTool = layui.oaTool, employeepicker = layui.employeepicker; - //日期 - lay('.select-time').each(function () { - laydate.render({ - elem: this, - trigger: 'click' - }); + //日期范围 + laydate.render({ + elem: '#barDate', + range: ['#start_time', '#end_time'], + rangeLinked:true }); //相关附件上传 diff --git a/app/contract/view/index/archive.html b/app/contract/view/index/archive.html index 37c6f52..54040fb 100644 --- a/app/contract/view/index/archive.html +++ b/app/contract/view/index/archive.html @@ -23,7 +23,10 @@
- +
+ + +
diff --git a/app/contract/view/index/edit.html b/app/contract/view/index/edit.html index 80ada20..6c05a6d 100644 --- a/app/contract/view/index/edit.html +++ b/app/contract/view/index/edit.html @@ -66,16 +66,20 @@ 客户联系地址 - + - 合同开始日期* + 合同始止日期* - - - 合同结束日期* - - +
+
+ +
+ ~ +
+ +
+
{neq name="$detail.type" value="2"} @@ -111,7 +115,7 @@ 合同签订时间* - + 合同制定人* @@ -174,12 +178,11 @@ const moduleInit = ['tool','employeepicker','oaTool']; function gouguInit() { var form = layui.form,tool=layui.tool,table = layui.table,laydate = layui.laydate,oaTool = layui.oaTool, employeepicker = layui.employeepicker; - //日期 - lay('.select-time').each(function () { - laydate.render({ - elem: this, - trigger: 'click' - }); + //日期范围 + laydate.render({ + elem: '#barDate', + range: ['#start_time', '#end_time'], + rangeLinked:true }); //相关附件上传 diff --git a/app/contract/view/index/index.html b/app/contract/view/index/index.html index e87eb19..3becda4 100644 --- a/app/contract/view/index/index.html +++ b/app/contract/view/index/index.html @@ -35,7 +35,10 @@
- +
+ + +
diff --git a/app/contract/view/index/view.html b/app/contract/view/index/view.html index 3cfe939..4898aa0 100644 --- a/app/contract/view/index/view.html +++ b/app/contract/view/index/view.html @@ -12,50 +12,6 @@ html{background-color:#fff;} .log-timeline .open-a{margin:0 4px;} .log-item i{font-weight:800; color:#323232} .log-content strong{margin:0 4px; color:#323232} - -.check-items{overflow-x: auto; padding: 2px 0;} -.flow-flex-row {box-direction: row; - box-orient: horizontal; - -webkit-box-orient: horizontal; - -ms-flex-direction: row; - flex-direction: row; -} -.flow-flexbox { width: 100%;text-align: left; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - display: -webkit-flex; - box-align: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - flex-wrap: wrap; -} -.check-item{width: auto; -ms-flex-negative: 0; flex-shrink: 0; padding:4px 0} -.check-item i{margin-right:3px; color:#646464;} -.check-item span{color:#999;margin:0 3px;} -.check-item .layui-icon {font-size:18px;} -.check-item .layui-icon.layui-icon-right{font-size:12px;} -.layui-icon[data-ok]{color:#34a853} -.layui-icon[data-no]{color:#FF5722;} -.check-item-status{color:#999; font-size:12px; margin-left:3px;} - -.flow-tips{padding:6px 10px;} -.flow-tips li{padding:5px 0;} -.flow-tips li i{color:#4285f4;} -.flow-tips li span{color:#999; font-size:12px; margin-left:4px;} - -.flow-record{padding:4px 4px 0;} -.flow-record .layui-timeline-item{text-decoration:line-through; color:#acacac; padding-bottom:10px;} -.flow-record .layui-timeline-item.delete-0{text-decoration:none; color:#323232;} -.layui-timeline-content ul{font-size:12px;} -.check-status{color:#999; margin-left:5px;} -.check-remark{padding:6px; margin-top:6px; margin-bottom:10px; border-radius:4px; background-color:#f5f5f5;} -.check-record{line-height:1.5; padding:4px 0} -.flow-this{font-weight:800;} -.flow-this i{color:#4285f4} -.layui-table-min th{font-size:13px; text-align:center; background-color:#f8f8f8;} -.layui-table-min td{font-size:13px; padding:6px;text-align:center;} {/block} @@ -68,7 +24,7 @@ html{background-color:#fff;}
- +
{gt name="$detail.pid" value="0"} @@ -212,52 +168,56 @@ html{background-color:#fff;} {/notempty} - {eq name="$detail.check_status" value="2" } - - - {eq name="$detail.archive_status" value="0" } - - {else/} - - - - - - {/eq} - - {/eq} - - {eq name="$detail.check_status" value="4" } - - - - - - - - - - - {/eq} - - {eq name="$detail.check_status" value="5" } - - - - - - - - - - - {/eq} -
母合同名称
归档状态{$detail.archive_status_name}{$detail.archive_status_name}归档人{$detail.archive_name} 归档时间{$detail.archive_time}
中止人{$detail.stop_name} 中止时间{$detail.stop_time}
中止备注{$detail.stop_remark}
作废人{$detail.void_name} 作废时间{$detail.void_time}
作废备注{$detail.void_remark}
- - {eq name="$detail.check_status" value="1" } + + + {if ($detail.check_status == 1)} {include file="/index/view_step" /} - {/eq} -
+ {elseif ($detail.check_status == 0) OR ($detail.check_status == 4)} + {include file="/index/view_set" /} + {else /} + + {eq name="$detail.check_status" value="2" } + + + {eq name="$detail.archive_status" value="0" } + + {else/} + + + + + + {/eq} + + {/eq} + + {eq name="$detail.check_status" value="5" } + + + + + + + + + + + {/eq} + + {eq name="$detail.check_status" value="6" } + + + + + + + + + + + {/eq} +
归档状态{$detail.archive_status_name}{$detail.archive_status_name}归档人{$detail.archive_name} 归档时间{$detail.archive_time}
中止人{$detail.stop_name} 中止时间{$detail.stop_time}
中止备注{$detail.stop_remark}
作废人{$detail.void_name} 作废时间{$detail.void_time}
作废备注{$detail.void_remark}
+
{gt name="$auth" value="0"} {eq name="$detail.check_status" value="2" } {eq name="$detail.archive_status" value="1" } @@ -282,10 +242,9 @@ html{background-color:#fff;} {if ( $detail.check_status eq 3) AND ( $is_create_admin eq 1) } 撤回 {/if} - {if ( $detail.check_status eq 4) AND ( $is_create_admin eq 1) } - 重新编辑 - {/if}
+ {/if} +
{include file="/index/view_log" /} @@ -310,11 +269,14 @@ const moduleInit = ['tool','employeepicker','oaTool']; log(layui); } }); - + if(typeof init==='function'){ + init(form,tool); + } + if (typeof (flowStep) == "function") { flowStep(); - } - + } + //选择合同保管人弹窗 $('body').on('click','#keeper',function () { var ids=$(this).data('ids')+'',names = $(this).data('names')+''; @@ -336,7 +298,6 @@ const moduleInit = ['tool','employeepicker','oaTool']; }); }); - //选择共享成员弹窗 $('body').on('click','#shares',function () { var ids=$(this).data('ids')+'',names = $(this).data('names')+'',share_ids_array=[],share_names_array=[]; diff --git a/app/contract/view/index/view_set.html b/app/contract/view/index/view_set.html index 24fd01b..48d88dd 100644 --- a/app/contract/view/index/view_set.html +++ b/app/contract/view/index/view_set.html @@ -1,266 +1,44 @@ -{extend name="../../base/view/common/base" /} -{block name="style"} - -{/block} - -{block name="body"} -
-
-
    -
  • 合同详情
  • -
  • 操作记录
  • -
-
-
- - {gt name="$detail.pid" value="0"} - - - - - {/gt} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {neq name="$detail.type" value="2"} - - - - {eq name="$detail.is_tax" value="1" } - - - - - {/eq} - {eq name="$detail.is_tax" value="0" } - - - {/eq} - - {/neq} - {notempty name="$detail.remark"} - - - - - {/notempty} - {notempty name="$detail.file_ids"} - - - - - {/notempty} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {notempty name="$check_record"} - - - - - {/notempty} - {eq name="$is_create_admin" value = "1"} - - - - - - - - - - - - - {/eq} -
母合同名称{$detail.pname}
合同名称{$detail.name}合同编号{$detail.code}
签约主体(乙方) - {volist name=":contract_subject()" id="v"} - {eq name="$v.id" value="$detail.subject_id" }{$v.title}{/eq} - {/volist} - 合同性质 - {eq name="$detail.type" value="1" }普通合同{/eq} - {eq name="$detail.type" value="2" }框架合同{/eq} - {eq name="$detail.type" value="3" }补充协议{/eq} - {eq name="$detail.type" value="4" }其他合同{/eq} - 合同类别 - {volist name=":contract_cate()" id="v"} - {eq name="$v.id" value="$detail.cate_id" }{$v.title}{/eq} - {/volist} -
客户名称(甲方){$detail.customer}签约客户代表{$detail.customer_name}客户联系电话{$detail.customer_mobile}
客户联系地址{$detail.customer_address}合同开始日期{$detail.start_time}合同结束日期{$detail.end_time}
合同金额{$detail.cost}是否含税税点(百分比){$detail.tax}%是否含税
备注信息{$detail.remark}
相关附件 -
- {volist name="$detail.fileArray" id="vo"} -
{:file_card($vo,'view')}
- {/volist} -
-
签订信息
合同制定人{$detail.prepared_name} 合同签订人{$detail.sign_name}合同签订时间{$detail.sign_time}合同签订部门{$detail.sign_department}
合同保管人{$detail.keeper_name}{gt name="$auth" value="0"}更改{/gt}合同共享人员{$detail.share_names}{gt name="$auth" value="0"}更改{/gt}
审核信息
合同状态{$detail.status_name}录入人{$detail.admin_name} 录入时间{$detail.create_time}
历史审批记录 -
    - {volist name="$check_record" id="vo"} -
  • - -

    {$vo.check_time_str}{$vo.name}{$vo.status_str}了此申请。操作意见:{$vo.content}

    -
  • - {/volist} -
-
选择审批流程* - -
审核人* - - -
抄送人 - - -
-
- {eq name="$is_create_admin" value = "1"} - - 编辑合同 - {/eq} - {gt name="$auth" value="0"} - 中止合同 - 作废合同 - {/gt} -
-
-
- {include file="/index/view_log" /} -
-
-
- -
-{/block} - - - -{block name="script"} +{eq name="$is_create_admin" value = "1"} + + + + + + + + + + + + + +
选择审批流程* + +
审核人* + + +
抄送人 + + +
+{/eq} +
+ {eq name="$is_create_admin" value = "1"} + + 编辑合同 + {/eq} + {gt name="$auth" value="0"} + 中止合同 + 作废合同 + {/gt} +
-{/block} - \ No newline at end of file + \ No newline at end of file diff --git a/app/customer/view/chance/index.html b/app/customer/view/chance/index.html index 30dc0cb..20ce6fd 100644 --- a/app/customer/view/chance/index.html +++ b/app/customer/view/chance/index.html @@ -15,11 +15,11 @@
-
+
-
-
+
@@ -27,8 +27,10 @@
- - +
+ + +
@@ -46,6 +48,7 @@ laydate.render({ elem: '#selectDate' ,range: ['#startDate', '#endDate'] + ,rangeLinked:true }); layui.pageTable = table.render({ diff --git a/app/customer/view/contact/index.html b/app/customer/view/contact/index.html index 22ef621..1f39151 100644 --- a/app/customer/view/contact/index.html +++ b/app/customer/view/contact/index.html @@ -6,7 +6,10 @@
- +
+ + +
diff --git a/app/customer/view/index/index.html b/app/customer/view/index/index.html index 169ef56..f3b218c 100644 --- a/app/customer/view/index/index.html +++ b/app/customer/view/index/index.html @@ -5,7 +5,6 @@ .gougu-upload-tips{color:#969696} .layui-form-item{margin-bottom:8px;} .layui-input-block{min-height:24px;} - .layui-input-inline{padding-bottom:12px;} {/block} @@ -73,9 +72,9 @@
-
- - +
+ +
diff --git a/app/customer/view/index/rush.html b/app/customer/view/index/rush.html index 6356fc9..259751a 100644 --- a/app/customer/view/index/rush.html +++ b/app/customer/view/index/rush.html @@ -3,17 +3,9 @@ {block name="body"}
-
- -
-
- -
+
+ +
diff --git a/app/customer/view/index/sea.html b/app/customer/view/index/sea.html index b3857e8..0d79d06 100644 --- a/app/customer/view/index/sea.html +++ b/app/customer/view/index/sea.html @@ -30,7 +30,10 @@
- +
+ + +
diff --git a/app/customer/view/index/trash.html b/app/customer/view/index/trash.html index 950c9f0..7078006 100644 --- a/app/customer/view/index/trash.html +++ b/app/customer/view/index/trash.html @@ -22,7 +22,10 @@
- +
+ + +
diff --git a/app/finance/view/expense/checkedlist.html b/app/finance/view/expense/checkedlist.html index 1592bad..897aa46 100644 --- a/app/finance/view/expense/checkedlist.html +++ b/app/finance/view/expense/checkedlist.html @@ -4,11 +4,11 @@
-
+
~ -
+
@@ -19,7 +19,10 @@
- +
+ + +
@@ -40,7 +43,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/expense/copy.html b/app/finance/view/expense/copy.html index 41c5f6c..8e58bc9 100644 --- a/app/finance/view/expense/copy.html +++ b/app/finance/view/expense/copy.html @@ -4,15 +4,18 @@
-
+
~ -
+
- +
+ + +
@@ -28,7 +31,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/expense/index.html b/app/finance/view/expense/index.html index dd5b6a8..2062dcb 100644 --- a/app/finance/view/expense/index.html +++ b/app/finance/view/expense/index.html @@ -4,11 +4,11 @@
-
+
~ -
+
@@ -22,7 +22,10 @@
- +
+ + +
@@ -43,7 +46,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/expense/view.html b/app/finance/view/expense/view.html index 710f3a4..2564f2d 100644 --- a/app/finance/view/expense/view.html +++ b/app/finance/view/expense/view.html @@ -7,50 +7,6 @@ .layui-form-item .layui-btn-danger{display:none; margin-top:-8px} .layui-form-item:hover .layui-btn-danger{display:inline-block;} .select-1,.select-2{display:none;} - -.check-items{overflow-x: auto; padding: 2px 0;} -.flow-flex-row {box-direction: row; - box-orient: horizontal; - -webkit-box-orient: horizontal; - -ms-flex-direction: row; - flex-direction: row; -} -.flow-flexbox { width: 100%;text-align: left; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - display: -webkit-flex; - box-align: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - flex-wrap: wrap; -} -.check-item{width: auto; -ms-flex-negative: 0; flex-shrink: 0; padding:4px 0} -.check-item i{margin-right:3px; color:#646464;} -.check-item span{color:#999;margin:0 3px;} -.check-item .layui-icon {font-size:18px;} -.check-item .layui-icon.layui-icon-right{font-size:12px;} -.layui-icon[data-ok]{color:#34a853} -.layui-icon[data-no]{color:#FF5722;} -.check-item-status{color:#999; font-size:12px; margin-left:3px;} - -.flow-tips{padding:6px 10px;} -.flow-tips li{padding:5px 0;} -.flow-tips li i{color:#4285f4;} -.flow-tips li span{color:#999; font-size:12px; margin-left:4px;} - -.flow-record{padding:4px 4px 0;} -.flow-record .layui-timeline-item{text-decoration:line-through; color:#acacac; padding-bottom:10px;} -.flow-record .layui-timeline-item.delete-0{text-decoration:none; color:#323232;} -.layui-timeline-content ul{font-size:12px;} -.check-status{color:#999; margin-left:5px;} -.check-remark{padding:6px; margin-top:6px; margin-bottom:10px; border-radius:4px; background-color:#f5f5f5;} -.check-record{line-height:1.5; padding:4px 0} -.flow-this{font-weight:800;} -.flow-this i{color:#4285f4} -.layui-table-min th{font-size:13px; text-align:center; background-color:#f8f8f8;} -.layui-table-min td{font-size:13px; padding:6px;text-align:center;} {/block} diff --git a/app/finance/view/income/add.html b/app/finance/view/income/add.html index 7b92ca5..153fbbd 100644 --- a/app/finance/view/income/add.html +++ b/app/finance/view/income/add.html @@ -1,51 +1,4 @@ {extend name="../../base/view/common/base" /} -{block name="style"} - -{/block} {block name="body"}
diff --git a/app/finance/view/income/index.html b/app/finance/view/income/index.html index 9f21ca8..986296d 100644 --- a/app/finance/view/income/index.html +++ b/app/finance/view/income/index.html @@ -4,11 +4,11 @@
-
+
~ -
+
@@ -20,7 +20,10 @@
- +
+ + +
@@ -42,7 +45,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/invoice/checkedlist.html b/app/finance/view/invoice/checkedlist.html index 019acb6..e785b11 100644 --- a/app/finance/view/invoice/checkedlist.html +++ b/app/finance/view/invoice/checkedlist.html @@ -4,11 +4,11 @@
-
+
~ -
+
@@ -20,7 +20,10 @@
- +
+ + +
@@ -41,7 +44,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/invoice/copy.html b/app/finance/view/invoice/copy.html index 98e46b1..2a59d80 100644 --- a/app/finance/view/invoice/copy.html +++ b/app/finance/view/invoice/copy.html @@ -4,15 +4,18 @@
-
+
~ -
+
- +
+ + +
@@ -28,7 +31,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/invoice/index.html b/app/finance/view/invoice/index.html index 4804c0f..0b5d231 100644 --- a/app/finance/view/invoice/index.html +++ b/app/finance/view/invoice/index.html @@ -4,11 +4,11 @@
-
+
~ -
+
@@ -23,7 +23,10 @@
- +
+ + +
@@ -44,7 +47,8 @@ //日期范围 laydate.render({ elem: '#barDate', - range: ['#start_time', '#end_time'] + range: ['#start_time', '#end_time'], + rangeLinked:true }); //监听搜索提交 diff --git a/app/finance/view/invoice/view.html b/app/finance/view/invoice/view.html index 67b1311..a013d40 100644 --- a/app/finance/view/invoice/view.html +++ b/app/finance/view/invoice/view.html @@ -7,50 +7,6 @@ .layui-form-item .layui-btn-danger{display:none; margin-top:-8px} .layui-form-item:hover .layui-btn-danger{display:inline-block;} .select-1,.select-2{display:none;} - -.check-items{overflow-x: auto; padding: 2px 0;} -.flow-flex-row {box-direction: row; - box-orient: horizontal; - -webkit-box-orient: horizontal; - -ms-flex-direction: row; - flex-direction: row; -} -.flow-flexbox { width: 100%;text-align: left; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - display: -webkit-flex; - box-align: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - flex-wrap: wrap; -} -.check-item{width: auto; -ms-flex-negative: 0; flex-shrink: 0; padding:4px 0} -.check-item i{margin-right:3px; color:#646464;} -.check-item span{color:#999;margin:0 3px;} -.check-item .layui-icon {font-size:18px;} -.check-item .layui-icon.layui-icon-right{font-size:12px;} -.layui-icon[data-ok]{color:#34a853} -.layui-icon[data-no]{color:#FF5722;} -.check-item-status{color:#999; font-size:12px; margin-left:3px;} - -.flow-tips{padding:6px 10px;} -.flow-tips li{padding:5px 0;} -.flow-tips li i{color:#4285f4;} -.flow-tips li span{color:#999; font-size:12px; margin-left:4px;} - -.flow-record{padding:4px 4px 0;} -.flow-record .layui-timeline-item{text-decoration:line-through; color:#acacac; padding-bottom:10px;} -.flow-record .layui-timeline-item.delete-0{text-decoration:none; color:#323232;} -.layui-timeline-content ul{font-size:12px;} -.check-status{color:#999; margin-left:5px;} -.check-remark{padding:6px; margin-top:6px; margin-bottom:10px; border-radius:4px; background-color:#f5f5f5;} -.check-record{line-height:1.5; padding:4px 0} -.flow-this{font-weight:800;} -.flow-this i{color:#4285f4} -.layui-table-min th{font-size:13px; text-align:center; background-color:#f8f8f8;} -.layui-table-min td{font-size:13px; padding:6px;text-align:center;} {/block} diff --git a/app/home/controller/Rule.php b/app/home/controller/Rule.php index c541236..e71c0c1 100644 --- a/app/home/controller/Rule.php +++ b/app/home/controller/Rule.php @@ -26,7 +26,8 @@ class Rule extends BaseController ->leftJoin('adminModule m', 'a.module = m.name') ->order('a.sort asc,a.id asc') ->select(); - return to_assign(0, '', $rule); + $list = generateTree($rule); + return to_assign(0, '', $list); } else { return view(); } diff --git a/app/home/view/keywords/index.html b/app/home/view/keywords/index.html index 146fa3d..7a51f55 100644 --- a/app/home/view/keywords/index.html +++ b/app/home/view/keywords/index.html @@ -6,7 +6,10 @@
- +
+ + +
diff --git a/app/home/view/log/index.html b/app/home/view/log/index.html index ca3c3ef..64b05b1 100644 --- a/app/home/view/log/index.html +++ b/app/home/view/log/index.html @@ -14,7 +14,10 @@ {/volist}
- +
+ + +
diff --git a/app/home/view/rule/add.html b/app/home/view/rule/add.html index b5bc0a7..95b8be7 100644 --- a/app/home/view/rule/add.html +++ b/app/home/view/rule/add.html @@ -154,9 +154,7 @@ let callback = function (e) { layer.msg(e.msg); if (e.code == 0) { - setTimeout(function () { - parent.location.reload(); - }, 1000); + tool.sideClose(1000); } } tool.post("/home/rule/add", data.field, callback); diff --git a/app/home/view/rule/index.html b/app/home/view/rule/index.html index 3d8c5c1..8a4e4e2 100644 --- a/app/home/view/rule/index.html +++ b/app/home/view/rule/index.html @@ -2,31 +2,39 @@ {block name="body"}
-
+
+ {/block} {block name="script"}