Sfoglia il codice sorgente

feature/删除流程增加提示

dy 11 mesi fa
parent
commit
8ce586a768
1 ha cambiato i file con 13 aggiunte e 2 eliminazioni
  1. 13 2
      src/views/base/excel/template/index.vue

+ 13 - 2
src/views/base/excel/template/index.vue

@@ -35,9 +35,20 @@
             <el-button @click="editTep(row)" text type="primary"
               >编辑</el-button
             >
-            <el-button @click="deleteTep(row)" text type="primary"
-              >删除</el-button
+
+            <el-popconfirm
+              :visible="row.dialogVisible"
+              title="您确认删除吗?"
+              width="200"
+              @cancel="row.dialogVisible = false"
+              @confirm="deleteTep(row)"
             >
+              <template #reference>
+                <el-button @click="row.dialogVisible = true" text type="primary"
+                  >删除</el-button
+                >
+              </template>
+            </el-popconfirm>
           </template>
         </avue-crud>
       </div>