From d8fa40554b9d3cf951648f741762e5f4ddfbb469 Mon Sep 17 00:00:00 2001 From: hdm Date: Thu, 1 Dec 2022 10:13:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B1=87=E6=8A=A5=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=9C=89=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/oa/view/work/index.html | 10 ++++++++-- composer.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/oa/view/work/index.html b/app/oa/view/work/index.html index b3525ca..7ce84b7 100644 --- a/app/oa/view/work/index.html +++ b/app/oa/view/work/index.html @@ -148,7 +148,10 @@ //表头工具栏事件 table.on('toolbar(test)', function(obj){ - addNew(); + if(obj.event === 'add'){ + addNew(); + return; + } }); //监听搜索提交 @@ -227,7 +230,10 @@ //表头工具栏事件 table.on('toolbar(test1)', function(obj){ - addNew(); + if(obj.event === 'add'){ + addNew(); + return; + } }); function addNew(){ diff --git a/composer.json b/composer.json index c169ca7..c5373c7 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": ">=7.2.5", - "topthink/framework": "6.1.1", + "topthink/framework": "^6.1", "topthink/think-filesystem": "^2.0", "topthink/think-orm": "^2.0", "topthink/think-multi-app": "^1.0",