|
@@ -110,6 +110,8 @@ let noData = false; // 無資料
|
|
|
|
|
|
// 列表篩選
|
|
// 列表篩選
|
|
async function dataSearch(type = "") {
|
|
async function dataSearch(type = "") {
|
|
|
|
+ console.log('type', type);
|
|
|
|
+
|
|
let url;
|
|
let url;
|
|
|
|
|
|
if (isFirstLoad) {
|
|
if (isFirstLoad) {
|
|
@@ -131,10 +133,10 @@ async function dataSearch(type = "") {
|
|
|
|
|
|
if (input !== "") {
|
|
if (input !== "") {
|
|
url += `&keyword=${input}`;
|
|
url += `&keyword=${input}`;
|
|
- // $('#dataList').html("");
|
|
|
|
- if (type === "keyword") {
|
|
|
|
- $('#dataList').html("");
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (type === "keyword") {
|
|
|
|
+ $('#dataList').html("");
|
|
}
|
|
}
|
|
|
|
|
|
// 篩選按鈕
|
|
// 篩選按鈕
|