diff --git a/ant-design-vue-jeecg/src/views/erp/tool/ZyToolListRef.vue b/ant-design-vue-jeecg/src/views/erp/tool/ZyToolListRef.vue index ffca9140..f3062ae1 100644 --- a/ant-design-vue-jeecg/src/views/erp/tool/ZyToolListRef.vue +++ b/ant-design-vue-jeecg/src/views/erp/tool/ZyToolListRef.vue @@ -180,6 +180,7 @@ }, dictOptions:{}, superFieldList:[], + selectedRowKeys: [], } }, created() { @@ -191,6 +192,10 @@ }, }, methods: { + onSelectChange(selectedRowKeys){ + console.log('selectedRowKeys changed: ', selectedRowKeys); + this.selectedRowKeys = selectedRowKeys; + }, initDictConfig(){ }, getSuperFieldList(){ diff --git a/ant-design-vue-jeecg/src/views/team/modules/StationToolModal.vue b/ant-design-vue-jeecg/src/views/team/modules/StationToolModal.vue index 4e1ac89e..6765c475 100644 --- a/ant-design-vue-jeecg/src/views/team/modules/StationToolModal.vue +++ b/ant-design-vue-jeecg/src/views/team/modules/StationToolModal.vue @@ -5,7 +5,7 @@ :visible="visible" :confirmLoading="confirmLoading" switchFullscreen - @ok="handleOk2(record)" + @ok="handleOk2" @cancel="handleCancel" cancelText="关闭"> @@ -83,7 +83,9 @@ export default { this.$refs.form.clearValidate(); }, handleOk2(record) { - alert(record); + // alert(record); + // console.log('-----------------------------------------------------------------------') + console.log(this.$refs["modalForm2"].selectedRowKeys) const that = this; // 触发表单验证 // this.$refs.form.validate(valid => {