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+'停用') }