From 2cb7c6dd1681a5e02ac496756cf7c0c53af6b507 Mon Sep 17 00:00:00 2001 From: Jenly Date: Thu, 22 Oct 2020 17:53:11 +0800 Subject: [PATCH] =?UTF-8?q?1,=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=202,?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E8=87=AA=E5=8A=A8=E9=80=89=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/deploy/deploy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/deploy/deploy.js b/static/js/deploy/deploy.js index 13d044e0..a85938af 100644 --- a/static/js/deploy/deploy.js +++ b/static/js/deploy/deploy.js @@ -1343,7 +1343,8 @@ $(document).ready(function() { btnObj.removeAttr('disabled'); if(response["code"] == "200"){ var script = JSON.parse(response["data"]) - $("#script_name").val(script["script_name"]).attr('disabled',true); + $("#script_name").val(script["script_name"]).attr('disabled',true); + $("#script_desc").val(script["script_desc"]); aceEditAdd.setValue(script["script_contents"]); //修改动态主机 DynamicSelect("server_model",script["script_type"]) @@ -1359,6 +1360,7 @@ $(document).ready(function() { } else if(script["script_type"]=="custom"){ controlServerSelectHide(script["script_type"]); + script["script_server"]=JSON.parse(script["script_server"]); for (var i = 0; i < script["script_server"].length; ++i) { $("select[name='custom'] option[value='" + script["script_server"][i] +"']").attr("selected",true); }