|
@@ -52,7 +52,7 @@
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
-
|
|
|
+
|
|
|
<!-- 類別:<select id="newSwfDropdown"></select><br />
|
|
|
名稱:<input id="newSwfName" type="text" /><br /> -->
|
|
|
|
|
@@ -73,9 +73,8 @@
|
|
|
<script>GenSwfDD($('#newSwfDropdown')[0]);</script>
|
|
|
<script>
|
|
|
function newfur() {
|
|
|
-
|
|
|
//alert('/backstage/new_solid_wood_furniture?newSwfDropdown='+ $('#newSwfDropdown').val() +'&newSwfName='+$('#newSwfName').val());
|
|
|
- axios.get('/backstage/new_solid_wood_furniture?newSwfDropdown=' + $('#newSwfDropdown').val() + '&newSwfName=' + $('#newSwfName').val()).then((data) => { console.log(data) });
|
|
|
+ axios.get('/backstage/new_solid_wood_furniture?newSwfDropdown=' + $('#newSwfDropdown').val() + '&newSwfName=' + $('#newSwfName').val()).then((data) => { console.log('data', data); });
|
|
|
}
|
|
|
function delfur(iurl) {
|
|
|
//alert('/backstage/new_solid_wood_furniture?newSwfDropdown='+ $('#newSwfDropdown').val() +'&newSwfName='+$('#newSwfName').val());
|
|
@@ -113,18 +112,18 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <h4>Meta 標題</h4>
|
|
|
+ <h4>Meta 標題</h4>
|
|
|
</td>
|
|
|
<td><input class="form-control" id="cmetattl" type="text" />
|
|
|
</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
<td>
|
|
|
- <h4>Meta 說明</h4>
|
|
|
+ <h4>Meta 說明</h4>
|
|
|
</td>
|
|
|
<td><input class="form-control" id="cmetadsc" type="text" />
|
|
|
</td>
|
|
|
- </tr>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
<h4>類別</h4>
|
|
@@ -136,7 +135,8 @@
|
|
|
<h4>敘述</h4>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <textarea class="form-control" rows="3" id="swfDesc" type="text" style="width: 100%;"></textarea>
|
|
|
+ <textarea class="form-control" rows="3" id="swfDesc" type="text"
|
|
|
+ style="width: 100%;"></textarea>
|
|
|
<div class="mt-1 text-danger">(建議字數:50 字內)</div>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -250,9 +250,9 @@
|
|
|
//alert(mdContent);
|
|
|
axios.post(contentApiUrl + editTarget, json = postData).then(({ data }) => {
|
|
|
alert('作品資料已儲存');
|
|
|
- }).finally((data) => {
|
|
|
+ }).finally((data) => {
|
|
|
// location.reload();
|
|
|
- });
|
|
|
+ });
|
|
|
});
|
|
|
}).catch((error) => {
|
|
|
console.log('Saving failed: ', error)
|