From 13b5d9eef0131ebe7bd8692cd5e3873673a2b92c Mon Sep 17 00:00:00 2001 From: vincent <1341870251@qq.com> Date: 星期二, 02 六月 2020 17:20:59 +0800 Subject: [PATCH] # --- src/main/webapp/views/console.html | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html index 46d3740..930628f 100644 --- a/src/main/webapp/views/console.html +++ b/src/main/webapp/views/console.html @@ -419,10 +419,12 @@ // 绯荤粺杩愯寮�鍏� function systemSwitch() { if (systemRunning){ - var confirm = layer.confirm('纭畾鍏抽棴 WCS 绯荤粺锛�!', { - btn: ['纭畾','鍙栨秷'] - }, function(){ - layer.close(confirm); + layer.prompt({title: '璇疯緭鍏ュ彛浠わ紝骞跺仠姝� WCS 绯荤粺', formType: 1}, function(pass, idx){ + layer.close(idx); + if ("123"!==pass){ + alert("鍙d护閿欒"); + return; + } var index = null; index = layer.load(1, { shade: [0.1,'#fff'] @@ -439,9 +441,8 @@ } layer.close(index); }, 2000); - }, function(){ - }); + } else { var index = null; index = layer.load(1, { @@ -538,5 +539,14 @@ } } + // 璐ф灦鐐瑰嚮浜嬩欢 + $('.item').on('click', function () { + layer.open({ + type: 1, + shadeClose: true, //鐐瑰嚮閬僵鍏抽棴灞� + content: 'text' + }); + }); + </script> </html> \ No newline at end of file -- Gitblit v1.9.1