Browse Source

fix🐛: 临时去掉确认事件,修复确认后时间不触发的问题

wenjianzhang 2 năm trước cách đây
mục cha
commit
2de4ac5f12
1 tập tin đã thay đổi với 6 bổ sung28 xóa
  1. 6 28
      src/views/dev-tools/gen/index.vue

+ 6 - 28
src/views/dev-tools/gen/index.vue

@@ -109,60 +109,38 @@
                 icon="el-icon-view"
                 @click="handlePreview(scope.row)"
               >预览</el-button>
-              <el-popconfirm
-                class="delete-popconfirm"
-                title="正在使用代码生成请确认?"
-                confirm-button-text="生成"
-                @onConfirm="handleToProject(scope.row)"
-              >
                 <el-button
                   slot="reference"
                   type="text"
                   size="small"
                   icon="el-icon-view"
+                  @click="handleToProject(scope.row)"
                 >代码生成</el-button>
-              </el-popconfirm>
 
-              <el-popconfirm
-                class="delete-popconfirm"
-                title="正在使用【菜单以及API生成到数据库】请确认?"
-                confirm-button-text="写入DB"
-                @onConfirm="handleToDB(scope.row)"
-              >
                 <el-button
                   slot="reference"
                   type="text"
                   size="small"
                   icon="el-icon-view"
+                  @click="handleToDB(scope.row)"
                 >生成配置</el-button>
-              </el-popconfirm>
 
-              <el-popconfirm
-                class="delete-popconfirm"
-                title="正在使用代码生成配置迁移脚本请确认?"
-                confirm-button-text="生成"
-                @onConfirm="handleToApiFile(scope.row)"
-              >
+     
                 <el-button
                   slot="reference"
                   type="text"
                   size="small"
                   icon="el-icon-view"
+                   @click="handleToApiFile(scope.row)"
                 >生成迁移脚本</el-button>
-              </el-popconfirm>
-
-              <el-popconfirm
-                class="delete-popconfirm"
-                title="确认删除数据项?"
-                @onConfirm="handleSingleDelete(scope.row)"
-              >
+                
                 <el-button
                   slot="reference"
                   type="text"
                   size="small"
                   icon="el-icon-delete"
+                  @click="handleSingleDelete(scope.row)"
                 >删除</el-button>
-              </el-popconfirm>
             </template>
           </el-table-column>
         </el-table>