update:数据总览优化
This commit is contained in:
@@ -36,10 +36,7 @@
|
|||||||
ref="BaseTableRef"
|
ref="BaseTableRef"
|
||||||
tableName="DATA_OVERVIEW"
|
tableName="DATA_OVERVIEW"
|
||||||
:api="dataOverViewListSimulationNodeFilesApi"
|
:api="dataOverViewListSimulationNodeFilesApi"
|
||||||
:params="{
|
:params="tableParams"
|
||||||
dimensionTemplateId: currentDimension,
|
|
||||||
fileId: currentData.id,
|
|
||||||
}"
|
|
||||||
showCheckbox
|
showCheckbox
|
||||||
@checkbox-all="checkboxChangeFun"
|
@checkbox-all="checkboxChangeFun"
|
||||||
@checkbox-change="checkboxChangeFun"
|
@checkbox-change="checkboxChangeFun"
|
||||||
@@ -167,7 +164,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted, watch } from 'vue';
|
||||||
import FileTree from '@/components/common/dataFileTree/index.vue';
|
import FileTree from '@/components/common/dataFileTree/index.vue';
|
||||||
import { getSimulationNodeTreeApi, getAllTemplateApi } from '@/api/data/dimensionTemplate';
|
import { getSimulationNodeTreeApi, getAllTemplateApi } from '@/api/data/dimensionTemplate';
|
||||||
import { addNodeForDataApi, addTaskForDataApi, editTaskForDataApi, editNodeForDataApi, getNodeDetailForDataApi } from '@/api/project/node';
|
import { addNodeForDataApi, addTaskForDataApi, editTaskForDataApi, editNodeForDataApi, getNodeDetailForDataApi } from '@/api/project/node';
|
||||||
@@ -208,6 +205,14 @@ const chosenData = ref<any>([]);
|
|||||||
const BaseTableRef = ref();
|
const BaseTableRef = ref();
|
||||||
const fileData = ref<any>({});
|
const fileData = ref<any>({});
|
||||||
const nodeType = ref<any>('');
|
const nodeType = ref<any>('');
|
||||||
|
const tableParams = ref<any>({
|
||||||
|
dimensionTemplateId: currentDimension.value,
|
||||||
|
fileId: '',
|
||||||
|
});
|
||||||
|
|
||||||
|
watch(() => currentDimension.value, (val: any) => {
|
||||||
|
tableParams.value.dimensionTemplateId = val;
|
||||||
|
});
|
||||||
|
|
||||||
const actionList = ref([
|
const actionList = ref([
|
||||||
{
|
{
|
||||||
@@ -432,6 +437,7 @@ const goDetailFun = (data: any) => {
|
|||||||
|
|
||||||
const choseNodeFun = (data: any) => {
|
const choseNodeFun = (data: any) => {
|
||||||
currentData.value = data;
|
currentData.value = data;
|
||||||
|
tableParams.value.fileId = data.id;
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkboxChangeFun = (data: any) => {
|
const checkboxChangeFun = (data: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user