Browse Source

210930 幸福工具-複製產品

yukyo0821 3 years ago
parent
commit
8a717a74e6
1 changed files with 21 additions and 3 deletions
  1. 21 3
      yo/fb836df3b3c54c3cb0e361cd10a1ae37.html

+ 21 - 3
yo/fb836df3b3c54c3cb0e361cd10a1ae37.html

@@ -21,15 +21,33 @@
 
       });
     }
+
+    function copyPToStage() {
+      //alert('https://m3.hhh.com.tw:18686/movexoopstostage?designerid=' + $('#did').val() + '&caseid=' + $('#cid').val());
+      axios.get('https://m3.hhh.com.tw:18686/movepxoopstostage?brandid=' + $('#bid').val() + '&productid=' + $('#pid').val()).then((data) => {
+
+        if (data["data"] == "success") {
+          $('#msg')[0].innerHTML = '(' + $('#bid').val() + ')' + $('#pid').val() + ' 複製成功';
+        }
+
+      });
+    }
   </script>
 </head>
 
 <body>
 
   <div class="container">
-    設計師ID:<input type="text" id="did" />
-    CASEID:<input type="text" id="cid" />
-    <button onclick="copyToStage();">複製到測試機</button>
+    <div style="background-color: aquamarine;">
+      設計師ID:<input type="text" id="did" />
+      CASEID:<input type="text" id="cid" />
+      <button onclick="copyToStage();">複製個案到測試機</button>
+    </div>
+    <div style="background-color:cornflowerblue;">
+      廠商ID:<input type="text" id="bid" />
+      產品ID:<input type="text" id="pid" />
+      <button onclick="copyPToStage();">複製產品到測試機</button>
+    </div>
     <div id='msg'></div>
   </div>