|
@@ -21,6 +21,7 @@
|
|
|
:dynamic-params="dynamicParams"
|
|
:dynamic-params="dynamicParams"
|
|
|
:form-name="template ? template.attrs.form_name : ''"
|
|
:form-name="template ? template.attrs.form_name : ''"
|
|
|
:class="{ 'ibps-data-template-list__preview': preview }"
|
|
:class="{ 'ibps-data-template-list__preview': preview }"
|
|
|
|
|
+ :selection_all="selectionAll"
|
|
|
@display-field-change="handleDisplayField"
|
|
@display-field-change="handleDisplayField"
|
|
|
@header-dragend="handleHeaderDragend"
|
|
@header-dragend="handleHeaderDragend"
|
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
@@ -488,6 +489,7 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
value: {
|
|
value: {
|
|
|
handler (val, oldVal) {
|
|
handler (val, oldVal) {
|
|
|
|
|
+ console.log('492 val', val)
|
|
|
this.selectionAll = val
|
|
this.selectionAll = val
|
|
|
},
|
|
},
|
|
|
immediate: true,
|
|
immediate: true,
|
|
@@ -724,6 +726,9 @@ export default {
|
|
|
*/
|
|
*/
|
|
|
getSelectAllIds () {
|
|
getSelectAllIds () {
|
|
|
const selectAllIds = []
|
|
const selectAllIds = []
|
|
|
|
|
+ if (this.$utils.isEmpty(this.selectionAll)) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
if (this.multiple) {
|
|
if (this.multiple) {
|
|
|
this.selectionAll.forEach((row) => {
|
|
this.selectionAll.forEach((row) => {
|
|
|
selectAllIds.push(this.getPkValue(row))
|
|
selectAllIds.push(this.getPkValue(row))
|
|
@@ -1043,6 +1048,7 @@ export default {
|
|
|
this.exportActions(buttonType)
|
|
this.exportActions(buttonType)
|
|
|
break
|
|
break
|
|
|
case 'exportSelected': // 导出选中
|
|
case 'exportSelected': // 导出选中
|
|
|
|
|
+
|
|
|
ActionUtils.selectedMultiRecord(this.getSelectAllIds()).then((ids) => {
|
|
ActionUtils.selectedMultiRecord(this.getSelectAllIds()).then((ids) => {
|
|
|
this.selecteds = ids
|
|
this.selecteds = ids
|
|
|
this.exportActions(buttonType, ids)
|
|
this.exportActions(buttonType, ids)
|