From 76ff1321e653f4d9168dcbba8863dd459a4e0faa Mon Sep 17 00:00:00 2001 From: jeessy2 <6205259+jeessy2@users.noreply.github.com> Date: Wed, 20 Jul 2022 12:03:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=81=9C=E7=94=A8?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=20(#33)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/writing.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/web/writing.html b/web/writing.html index 4946c30..eeaacaa 100644 --- a/web/writing.html +++ b/web/writing.html @@ -49,6 +49,9 @@
备份设置
{{else}} {{$v.ProjectName}} {{end}} + {{if ne $v.Enabled 0}} + 停用 + {{end}} {{end}} @@ -86,7 +89,7 @@
备份设置
- @@ -298,8 +301,16 @@
对象存储配置
// projectNameChange function projectNameChange(that) { let id = $(that).attr("id").split("_")[1] - console.log($(that).val()) - $("#id_"+id).html($(that).val()) + let name = $(that).val() + let enabled = $("#Enabled_"+id).val() + $("#id_"+id).html(enabled == 0?name:name+'停用') + } + // enabledChange + function enabledChange(that) { + let id = $(that).attr("id").split("_")[1] + let name = $("#ProjectName_"+id).val() + let enabled = $(that).val() + $("#id_"+id).html(enabled == 0?name:name+'停用') }