|
|
@@ -39,6 +39,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-table
|
|
|
+ ref="scoreTableRef"
|
|
|
max-height="calc(100vh - 350px)"
|
|
|
style="width: 100%; margin-top: 18px"
|
|
|
stripe
|
|
|
@@ -76,6 +77,8 @@
|
|
|
type ScoreTableQueryBody,
|
|
|
} from '@/api/datamanagement/dataplatform';
|
|
|
|
|
|
+ const scoreTableRef = ref();
|
|
|
+
|
|
|
// 获取下拉菜单数据和表格数据
|
|
|
const props = defineProps<{
|
|
|
departmentList: any[];
|
|
|
@@ -107,7 +110,6 @@
|
|
|
tableQueryParams.value.pageNumber = v;
|
|
|
emits('tableParamsChanged', tableQueryParams.value);
|
|
|
};
|
|
|
-
|
|
|
// 表格排序事件
|
|
|
const handleSortChange = (data: any) => {
|
|
|
if (data.order !== null) {
|
|
|
@@ -144,6 +146,7 @@
|
|
|
emits('tableParamsChanged', tableQueryParams.value);
|
|
|
}
|
|
|
function resetTable() {
|
|
|
+ scoreTableRef.value.clearSort();
|
|
|
tableQueryTypeContent.value = '';
|
|
|
tableQueryDept.value = undefined;
|
|
|
tableQueryParams.value = {
|