|
@@ -1,6 +1,8 @@
|
|
|
<template>
|
|
|
<hc-new-card scrollbar>
|
|
|
- <template #header />
|
|
|
+ <template #header>
|
|
|
+ <el-checkbox v-model="checkedval" label="全选" size="large" @change="clickAll" />
|
|
|
+ </template>
|
|
|
<template #extra>
|
|
|
<!-- <HcNewSwitch :datas="tabData" :keys="tabKey" :round="false" @change="tabChange" /> -->
|
|
|
<el-button hc-btn color="#626aef">
|
|
@@ -28,8 +30,8 @@
|
|
|
<template v-for="(item1, index1) in item.nodeLists" :key="item1.nodeInfo">
|
|
|
<HcCardItem v-if="item1.list && item1.list.length > 0" ui="h-half">
|
|
|
<template #header>
|
|
|
- <el-checkbox v-model="item1.checkedval" label="全选" size="large" @change="clickAll($event, index)" />
|
|
|
- <span class="ml-1">{{ item1.nodeInfo }}</span>
|
|
|
+ <!-- <el-checkbox v-model="item1.checkedval" label="全选" size="large" @change="clickAll($event, index)" /> -->
|
|
|
+ <span>{{ item1.nodeInfo }}</span>
|
|
|
|
|
|
<!-- <span class="text-gray">(238卷)</span> -->
|
|
|
</template>
|
|
@@ -115,6 +117,7 @@ const getBtnstatus = async ()=>{
|
|
|
}
|
|
|
}
|
|
|
const totalData = ref([])
|
|
|
+const totalTabledata = ref([])
|
|
|
const totalLoaing = ref(false)
|
|
|
const getTotalData = async ()=>{
|
|
|
totalLoaing.value = true
|
|
@@ -125,11 +128,22 @@ const getTotalData = async ()=>{
|
|
|
if (!error && code === 200) {
|
|
|
console.log(data, 'data')
|
|
|
totalData.value = getArrValue(data)
|
|
|
+ getTotalTabledata(totalData.value)
|
|
|
} else {
|
|
|
totalData.value = []
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+const getTotalTabledata = (data)=>{
|
|
|
+ totalTabledata.value = []
|
|
|
+ data.forEach((ele)=>{
|
|
|
+ ele.nodeLists.forEach((ele1)=>{
|
|
|
+ ele1.list.forEach((ele2)=>{
|
|
|
+ totalTabledata.value.push(ele2)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
@@ -150,9 +164,15 @@ const tableKeys = ref([])
|
|
|
const getTableKeys = (val)=>{
|
|
|
tableKeys.value = val
|
|
|
}
|
|
|
-
|
|
|
+const checkedval = ref(false)
|
|
|
const clickAll = (val, index)=>{
|
|
|
- visuatable.value[index].tableSelectAll(val)
|
|
|
+ console.log(val, 'val')
|
|
|
+ if (val) {
|
|
|
+ tableKeys.value = totalTabledata.value
|
|
|
+ } else {
|
|
|
+ tableKeys.value = []
|
|
|
+ }
|
|
|
+ // visuatable.value[index].tableSelectAll(val)
|
|
|
}
|
|
|
const reportIds = ref('')
|
|
|
const reportTaskName = ref('')
|