diff --git a/src/components/charge/ChargeQueue.vue b/src/components/charge/ChargeQueue.vue
index 3a60749..5134fad 100644
--- a/src/components/charge/ChargeQueue.vue
+++ b/src/components/charge/ChargeQueue.vue
@@ -25,12 +25,17 @@
-
+
-
@@ -71,7 +75,7 @@ const clickItem = (item: any) => {
curItem.value = item
emit('clickItem', item, query.value.status);
}
-const loading= ref(false)
+const loading = ref(false)
const ChargeQueueList = ref([]);
const addChargeOrder = () => {
@@ -104,16 +108,15 @@ const init = async () => {
query.value.endTime = getEndOfDay(selectedDate.value)
loading.value = true
try {
- let data:any = await post(apiConfig.recordGetChargeQueue, {query: query.value}, {catch_error: true})
+ let data: any = await post(apiConfig.recordGetChargeQueue, {query: query.value}, {catch_error: true})
ChargeQueueList.value = data.list
}
catch {
- }
- finally {
+ ChargeQueueList.value = []
+ } finally {
loading.value = false
}
getTipCount()
-
}
const delDraft = () => {
ChargeQueueList.value.shift();
@@ -183,6 +186,11 @@ watch(() => selectedDate.value, (newValue, oldValue) => {
}
init()
})
+const search = (v: any) => {
+ console.log(v)
+ query.value.keyword = v
+ init()
+}