From 486c72d20a0af53b94ab1632fc24298a6086b1db Mon Sep 17 00:00:00 2001 From: yangjian Date: Sat, 9 May 2020 10:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=97=B6=E4=B8=8D=E8=83=BD=E5=8F=96=E6=B6=88=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E6=96=87=E6=A1=A3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/app_doc/modify_doc.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/template/app_doc/modify_doc.html b/template/app_doc/modify_doc.html index 7e6a201..767c1b2 100644 --- a/template/app_doc/modify_doc.html +++ b/template/app_doc/modify_doc.html @@ -252,6 +252,14 @@ area:['530px','300px'], }); }); + //清除所选上级文档 + $("#clearParentDoc").click(function(){ + $('#parent-doc').val(""); + $("span.layui-tree-txt").each(function(i){ + var $me = $(this) + $me.removeClass('selected-parent-doc') + }); + }); // 插入历史版本 insertHistory = function(doc_id,history_id){ layer.load(1); @@ -266,6 +274,7 @@ } }); }; + // 删除文档 delDoc = function(doc_id){ layer.open({ type:1,