File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
server/resource/template/web Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 6868 <el-table-column label =" 按钮组" >
6969 <template slot-scope =" scope" >
7070 <el-button class =" table-button" @click =" update{ { .StructName} } (scope.row)" size =" small" type =" primary" icon =" el-icon-edit" >变更</el-button >
71- <el-popover placement =" top" width =" 160" v-model =" scope.row.visible" >
72- <p >确定要删除吗?</p >
73- <div style =" text-align : right ; margin : 0 " >
74- <el-button size =" mini" type =" text" @click =" scope.row.visible = false" >取消</el-button >
75- <el-button type =" primary" size =" mini" @click =" delete{ { .StructName} } (scope.row)" >确定</el-button >
76- </div >
77- <el-button type =" danger" icon =" el-icon-delete" size =" mini" slot =" reference" >删除</el-button >
78- </el-popover >
71+ <el-button type =" danger" icon =" el-icon-delete" size =" mini" @click =" openComfirm(scope.row)" >删除</el-button >
7972 </template >
8073 </el-table-column >
8174 </el-table >
@@ -208,6 +201,15 @@ export default {
208201 handleSelectionChange(val) {
209202 this.multipleSelection = val
210203 } ,
204+ openComfirm(row){
205+ this.$confirm (' 确定要删除吗?' , ' 提示' , {
206+ confirmButtonText: ' 确定' ,
207+ cancelButtonText: ' 取消' ,
208+ type: ' warning'
209+ } ).then(() => {
210+ this.delete{ { .StructName} } (row);
211+ } );
212+ } ,
211213 async onDelete() {
212214 const ids = []
213215 if (this.multipleSelection.length == 0){
@@ -317,4 +319,4 @@ export default {
317319 </script >
318320
319321<style >
320- </style >
322+ </style >
You can’t perform that action at this time.
0 commit comments