|
@@ -6,7 +6,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
import VerticalDivider from '/src/components/VerticalDivider/index.vue';
|
|
import VerticalDivider from '/src/components/VerticalDivider/index.vue';
|
|
-import { RefreshRight, Search } from '@element-plus/icons-vue';
|
|
|
|
|
|
+import { RefreshLeft, Search } from '@element-plus/icons-vue';
|
|
import { DictionaryStore } from '/@/stores/dictionary';
|
|
import { DictionaryStore } from '/@/stores/dictionary';
|
|
import { useResponse } from '/@/utils/useResponse';
|
|
import { useResponse } from '/@/utils/useResponse';
|
|
import { useTemplateRef } from 'vue';
|
|
import { useTemplateRef } from 'vue';
|
|
@@ -34,6 +34,7 @@ const { tableHeight } = useCustomHeight(heightObj);
|
|
const tableRef: Ref<any> = useTemplateRef('table');
|
|
const tableRef: Ref<any> = useTemplateRef('table');
|
|
|
|
|
|
const btnLoading = ref(false);
|
|
const btnLoading = ref(false);
|
|
|
|
+const resetLoading = ref(false);
|
|
|
|
|
|
const formInline = reactive<any>({
|
|
const formInline = reactive<any>({
|
|
country: '',
|
|
country: '',
|
|
@@ -72,11 +73,13 @@ async function handleQuery() {
|
|
btnLoading.value = false;
|
|
btnLoading.value = false;
|
|
}
|
|
}
|
|
|
|
|
|
-function resetParameter() {
|
|
|
|
|
|
+async function resetParameter() {
|
|
for (const key in formInline) {
|
|
for (const key in formInline) {
|
|
formInline[key] = '';
|
|
formInline[key] = '';
|
|
}
|
|
}
|
|
- handleQuery();
|
|
|
|
|
|
+ resetLoading.value = true;
|
|
|
|
+ await tableRef.value?.fetchList(true);
|
|
|
|
+ resetLoading.value = false;
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -166,7 +169,8 @@ function resetParameter() {
|
|
<el-button :icon="Search" :loading="btnLoading" class="mb-4" type="primary" @click="handleQuery">
|
|
<el-button :icon="Search" :loading="btnLoading" class="mb-4" type="primary" @click="handleQuery">
|
|
查 询
|
|
查 询
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button :icon="RefreshRight" color="#ECECF1C9" style="width: 88px; color: #3c3c3c;" @click="resetParameter">
|
|
|
|
|
|
+ <el-button :icon="RefreshLeft" :loading="resetLoading" color="#ECECF1C9" style="width: 88px; color: #3c3c3c;"
|
|
|
|
+ @click="resetParameter">
|
|
重 置
|
|
重 置
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|