From e4ec176fbd2900d386f506965f0933438b725058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 18:12:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shixuns/_settings_edit.html.erb | 83 +++++++++++++---------- 1 file changed, 47 insertions(+), 36 deletions(-) diff --git a/app/views/shixuns/_settings_edit.html.erb b/app/views/shixuns/_settings_edit.html.erb index e4837252..70bf43f2 100644 --- a/app/views/shixuns/_settings_edit.html.erb +++ b/app/views/shixuns/_settings_edit.html.erb @@ -295,10 +295,14 @@ <% end %>
+ + +

服务配置

<% @shixun.shixun_service_configs.each do |config| %> +

<%= config.mirror_repository.try(:type_name) %>

- +
@@ -332,7 +336,7 @@
- +
@@ -361,45 +365,45 @@ - -

- -

- -
- -
- value="1" class="panel-box-sizing task-form-100 task-height-40" - placeholder="请输入类别名称"/> +
> +

+ +

+ > +
+ +
+ value="1" class="panel-box-sizing task-form-100 task-height-40" + placeholder="请输入类别名称"/> +
+
-
-
-
- -
- value="0.1" class="panel-box-sizing task-form-100 task-height-40" - placeholder="请输入类别名称"/> +
+ +
+ value="0.1" class="panel-box-sizing task-form-100 task-height-40" + placeholder="请输入类别名称"/> +
+
-
-
-
- -
- value="1024" class="panel-box-sizing task-form-100 task-height-40" - placeholder="请输入类别名称"/> +
+ +
+ value="1024" class="panel-box-sizing task-form-100 task-height-40" + placeholder="请输入类别名称"/> +
+
-
-
-
- -
- value="10" class="panel-box-sizing task-form-100 task-height-40" - placeholder="请输入类别名称"/> +
+ +
+ value="10" class="panel-box-sizing task-form-100 task-height-40" + placeholder="请输入类别名称"/> +
+ +
- -
- @@ -520,13 +524,20 @@ var arr = ""; var arrs = []; var idarr = []; + var noidarr=[]; for (var i = 0; i < all.find("input").length; i++) { if (all.find("input").eq(i).is(':checked')) { arr += ";" + (all.find("input").eq(i).attr("value")); arrs.push(all.find("input").eq(i).attr("value")) idarr.push(all.find("input").eq(i).parents("p").attr("data-shixun-value")); + }else{ + noidarr.push(all.find("input").eq(i).parents("p").attr("data-shixun-value")); } } + + for(var i=0; i