소스 검색

表单提交后清除选中状态

wangxiaoyi 10 달 전
부모
커밋
39268ae273
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/business/platform/data/templaterender/templates/list.vue

+ 5 - 2
src/business/platform/data/templaterender/templates/list.vue

@@ -770,6 +770,7 @@ export default {
                 if (type !== 'callback') {
                     this.setSelectRow()
                 } else {
+                    this.clearSelection()
                     this.initSelect()
                 }
                 if (this.$refs.crud) {
@@ -1018,8 +1019,10 @@ export default {
                 const { userId } = this.$store.getters || {}
                 switch (buttonType) {
                     case 'search': // 查询
-                        // 20250603新增逻辑,数据模板列表查询数据前先清除已选中数据
-                        this.clearSelection()
+                        // 20250603新增逻辑,数据模板列表查询数据前先清除已选中数据(对话框除外20250707)
+                        if (this.dataTemplate.type !== 'dialog') {
+                            this.clearSelection()
+                        }
                         ActionUtils.setFirstPagination(this.pagination)
                         this.search()
                         break