update bug修复
This commit is contained in:
@@ -202,7 +202,7 @@ const emit = defineEmits([
|
||||
'update:viewType',
|
||||
'search',
|
||||
'update:searchParams',
|
||||
'dataChange',
|
||||
'tableDataLoad',
|
||||
]);
|
||||
|
||||
interface Props {
|
||||
@@ -406,7 +406,7 @@ const getTableDataFun = () => {
|
||||
tableData.value = extrasDataFun(data);
|
||||
pageTotal.value = total || 0;
|
||||
}
|
||||
emit('dataChange');
|
||||
emit('tableDataLoad');
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
showCheckbox
|
||||
showIndex
|
||||
@checkbox-change="checkboxChangeFun"
|
||||
@dataChange="setCheckboxByValueFun"
|
||||
@tableDataLoad="setCheckboxByValueFun"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
:api="getDedicatedTimeApi"
|
||||
@checkboxChange="checkboxChangeFun"
|
||||
@checkboxAll="checkboxAllFun"
|
||||
@dataChange="dataChangeFun"
|
||||
@tableDataLoad="dataChangeFun"
|
||||
>
|
||||
<template #leftOptions>
|
||||
<el-button
|
||||
@@ -85,7 +85,11 @@
|
||||
import { ref, computed, onMounted } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import BaseTable from '@/components/common/table/baseTable.vue';
|
||||
import { getDedicatedTimeApi, getChildrenNodeListApi, batchUpdateWorkspaceExtraApi } from '@/api/project/node';
|
||||
import {
|
||||
getDedicatedTimeApi,
|
||||
getChildrenNodeListApi,
|
||||
batchUpdateWorkspaceExtraApi,
|
||||
} from '@/api/project/node';
|
||||
import { NODE_TYPE } from '@/utils/enum/node';
|
||||
import { TABLE_NAME } from '@/utils/enum/tableName';
|
||||
import { ElMessage } from 'element-plus';
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
@checkbox-change="checkboxChangeFun"
|
||||
@checkbox-all="checkBoxAllChangeFun"
|
||||
@searchChange="searchChangeFun"
|
||||
@dataChange="tableDataChangeFun"
|
||||
@tableDataLoad="tableDataChangeFun"
|
||||
>
|
||||
<template #leftOptions>
|
||||
<div class="options">
|
||||
|
||||
@@ -20,9 +20,10 @@
|
||||
:actionList="actionList"
|
||||
fullHeight
|
||||
@search="searchFun"
|
||||
@tableDataLoad="tableDataLoadFun"
|
||||
>
|
||||
<template #leftOptions>
|
||||
<div class="btn-box" v-if="!hideSpecialSearch">
|
||||
<div class="btn-box" v-if="!hideSpecialSearch" v-loading="tableLoad">
|
||||
<div
|
||||
class="filter-btn"
|
||||
:style="{ backgroundColor: item.color }"
|
||||
@@ -398,11 +399,16 @@ const filterTaskParams = reactive({
|
||||
exeStatus: '',
|
||||
todayTmrTasks: '',
|
||||
});
|
||||
const tableLoad = ref(false);
|
||||
const tableDataLoadFun = () => {
|
||||
tableLoad.value = false;
|
||||
};
|
||||
const filterTaskFun = (filterItem: any) => {
|
||||
if (filterItem.value === 'total') {
|
||||
return;
|
||||
}
|
||||
tableRef.value?.setSearchParamsFun({});
|
||||
tableLoad.value = true;
|
||||
if (filterItem.selected) {
|
||||
if (filterItem.key !== 'total' && filterItem.key !== 'todayTmrTasks') {
|
||||
const exeStatusList = filterTaskParams.exeStatus.split(',');
|
||||
|
||||
Reference in New Issue
Block a user