fb836df3b3c54c3cb0e361cd10a1ae37.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="description" content="Webpage description goes here" />
  5. <meta charset="utf-8">
  6. <title>幸福工具</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="author" content="">
  9. <link rel="stylesheet" href="css/style.css">
  10. <script src="https://code.jquery.com/jquery-latest.min.js"></script>
  11. <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
  12. <script>
  13. function copyToStage() {
  14. axios.get('https://m3.hhh.com.tw:18686/movexoopstostage?designerid=' + $('#did').val() + '&caseid=' + $('#cid').val()).then((data) => {
  15. if (data["data"] == "success") {
  16. $('#msg')[0].innerHTML = '(' + $('#did').val() + ')' + $('#cid').val() + ' 複製成功';
  17. }
  18. });
  19. }
  20. function copyPToStage() {
  21. axios.get('https://m3.hhh.com.tw:18686/movepxoopstostage?brandid=' + $('#bid').val() + '&productid=' + $('#pid').val()).then((data) => {
  22. if (data["data"] == "success") {
  23. $('#msg')[0].innerHTML = '(' + $('#bid').val() + ')' + $('#pid').val() + ' 複製成功';
  24. }
  25. });
  26. }
  27. function copyCToStage() {
  28. axios.get('https://m3.hhh.com.tw:18686/movecxoopstostage?columnid=' + $('#colid').val()).then((data) => {
  29. if (data["data"] == "success") {
  30. $('#msg')[0].innerHTML = '(' + $('#colid').val() + ') 複製成功';
  31. }
  32. });
  33. }
  34. </script>
  35. </head>
  36. <body>
  37. <div class="container">
  38. <div style="background-color: aquamarine;">
  39. 設計師ID:<input type="text" id="did" />
  40. CASEID:<input type="text" id="cid" />
  41. <button onclick="copyToStage();">複製個案到測試機</button>
  42. </div>
  43. <div style="background-color:cornflowerblue;">
  44. 廠商ID:<input type="text" id="bid" />
  45. 產品ID:<input type="text" id="pid" />
  46. <button onclick="copyPToStage();">複製產品到測試機</button>
  47. </div>
  48. <div style="background-color:mediumaquamarine;">
  49. 專欄ID:<input type="text" id="colid" />
  50. <button onclick="copyCToStage();">複製專欄到測試機</button>
  51. </div>
  52. <div id='msg'></div>
  53. </div>
  54. <script>
  55. </script>
  56. </body>
  57. </html>