diff --git a/app/admin/view/system/config/upload.html b/app/admin/view/system/config/upload.html index 089c7af..0e2f2e7 100644 --- a/app/admin/view/system/config/upload.html +++ b/app/admin/view/system/config/upload.html @@ -24,7 +24,7 @@ -
+
@@ -32,7 +32,7 @@
-
+
@@ -40,7 +40,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -56,7 +56,7 @@
-
+
@@ -64,7 +64,7 @@
-
+
@@ -72,7 +72,7 @@
-
+
@@ -80,7 +80,7 @@
-
+
@@ -88,7 +88,7 @@
-
+
@@ -96,7 +96,7 @@
-
+
@@ -104,7 +104,7 @@
-
+
@@ -112,7 +112,7 @@
-
+
@@ -120,7 +120,7 @@
-
+
diff --git a/public/static/admin/js/system/config.js b/public/static/admin/js/system/config.js index 647e194..feae527 100644 --- a/public/static/admin/js/system/config.js +++ b/public/static/admin/js/system/config.js @@ -10,10 +10,17 @@ define(["jquery", "easy-admin", "vue"], function ($, ea, Vue) { _group = $(this).data('group') }); + let _upload_type = upload_type || 'local' + $('.upload_type').addClass('layui-hide') + $('.' + _upload_type).removeClass('layui-hide') + form.on("radio(upload_type)", function (data) { - app.upload_type = this.value; + _upload_type = this.value; + $('.upload_type').addClass('layui-hide') + $('.' + _upload_type).removeClass('layui-hide') }); + form.on("submit", function (data) { data.field['group'] = _group });