Browse Source

版本恢复

moshaorui 4 months ago
parent
commit
8e73409691
1 changed files with 7 additions and 0 deletions
  1. 7 0
      resources/views/admin/pages-custom/ace.blade.php

+ 7 - 0
resources/views/admin/pages-custom/ace.blade.php

@@ -558,6 +558,9 @@
             }
             //移除历史记录内容
             $('#contentDetails').html('');
+            $("#templateLogId").val('');
+            $("#templateVersion").val('');
+
             $.ajax({
                 url: '/prime-control/dist-template/ace',
                 method: 'POST',
@@ -626,6 +629,10 @@
         $("#restoreTemplateLog").click(function () {
             var logId = $("#templateLogId").val();
             var templateVersion = $("#templateVersion").val();
+            if (logId == '' || templateVersion == '') {
+                Dcat.error('Please select the history record first.');
+                return false;
+            }
             //确认框
             msg = 'Are you sure to restore to version: '+templateVersion+'?';
             Dcat.confirm('Confirm Recovery',msg , function () {