From 3de4aa185a23ee6bbed87ece64f7e10606791d72 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 7 Jul 2021 17:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B8=82=E5=9C=BA=E7=BB=8F?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AuthManagerController.class.php | 2 +- .../View/AuthManager/authmarketmember.html | 20 +++++++++++++++---- Application/Admin/View/AuthManager/index.html | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Application/Admin/Controller/AuthManagerController.class.php b/Application/Admin/Controller/AuthManagerController.class.php index 577327e58..d709568a9 100644 --- a/Application/Admin/Controller/AuthManagerController.class.php +++ b/Application/Admin/Controller/AuthManagerController.class.php @@ -624,7 +624,7 @@ class AuthManagerController extends AdminController{ $data = json_encode($data); - $AuthGroup->where(['id'=>$gid])->syncSave(['market_percentage'=>$data]); + $AuthGroup->where(['id'=>$gid])->save(['market_percentage'=>$data]); $this->success("编辑成功",U("index")); diff --git a/Application/Admin/View/AuthManager/authmarketmember.html b/Application/Admin/View/AuthManager/authmarketmember.html index 9e0431df0..14b53155b 100644 --- a/Application/Admin/View/AuthManager/authmarketmember.html +++ b/Application/Admin/View/AuthManager/authmarketmember.html @@ -47,13 +47,13 @@ 开发业绩提成比例: - + 维护业绩提成比例: - + @@ -85,14 +85,14 @@ 开发考核奖金比例: - + 维护考核奖金比例: - + @@ -160,5 +160,17 @@ }); //导航高亮 highlight_subnav('{:U('AuthManager/index')}'); + $("#develop_commission_ratio,#maintain_commission_ratio,#appraisal_bonuses_ratio,#maintain_appraisal_bonuses_ratio").keyup(function() { + var val = $(this).val(); + var reg = /^(\-|\+)?\d+(\.\d*)?$/g; + + if (val == '-') { + return; + } + + if( !reg.test(val)){ + $(this).val(0) + } + }); diff --git a/Application/Admin/View/AuthManager/index.html b/Application/Admin/View/AuthManager/index.html index 425ca02f4..4f79999c7 100644 --- a/Application/Admin/View/AuthManager/index.html +++ b/Application/Admin/View/AuthManager/index.html @@ -54,7 +54,7 @@ 分类授权 数据授权 - + 市场专员分成