From b450ecb2d0e2dc0ca735fabae432402a1c3752c1 Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Thu, 26 Oct 2023 14:27:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=90=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/project/view/task/view.html | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/project/view/task/view.html b/app/project/view/task/view.html index 396fe4f..cda6189 100644 --- a/app/project/view/task/view.html +++ b/app/project/view/task/view.html @@ -27,7 +27,7 @@ .layui-table-form{margin-top:8px;} .task-son{padding:3px 0;} -.task-son .red{margin-left:8px; cursor:pointer; display:none;} +.task-son .del-son{margin-left:8px; cursor:pointer; display:none;} .task-son:hover .del-son{display:inline;} {/block} @@ -108,16 +108,14 @@ 子任务+ 新增 - - - {empty name="$son_task"} - 暂无子任务 - {else/} - {volist name="son_task" id="vo"} -

#T{$vo.id}『{$vo.flow_name}』{$vo.title}

- {/volist} - {/empty} -
+ + {empty name="$son_task"} + 暂无子任务 + {else/} + {volist name="son_task" id="vo"} +

#T{$vo.id}『{$vo.flow_name}』{$vo.title}

+ {/volist} + {/empty} @@ -250,12 +248,14 @@ $('.add-son').on('click', function () { let callback = function(data){ - tool.post("/project/api/task_add_son", {'pid': detail_id, 'id': data.id}, function(e){ - layer.msg(e.msg); - if(e.code==0){ - location.reload(); - } - }) + if(data.id!=0){ + tool.post("/project/api/task_add_son", {'pid': detail_id, 'id': data.id}, function(e){ + layer.msg(e.msg); + if(e.code==0){ + location.reload(); + } + }) + } } oaTool.taskPicker(callback,{set_pid:detail_id}); });