|
@@ -4,7 +4,7 @@
|
|
|
ref="tableRef"
|
|
|
:column="tableColumn" :datas="tableData" :loading="tableLoaing"
|
|
|
is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
- @selection-change="tableSelection"
|
|
|
+ @selection-change="tableSelection" @select-all="tableSelectAll"
|
|
|
/>
|
|
|
</template>
|
|
|
|
|
@@ -30,6 +30,13 @@ const tableSelection = (rows) => {
|
|
|
tableKeys.value = rows
|
|
|
emit('getTableKeys', rows)
|
|
|
}
|
|
|
+const tableSelectAll = (rows)=>{
|
|
|
+ if (rows.length > 0) {
|
|
|
+ tableKeys.value = allData.value
|
|
|
+ emit('getTableKeys', allData.value )
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
//表头
|
|
|
const tableRef = ref(null)
|
|
|
const tableColumn = ref([
|