|
@@ -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>
|
|
|
|