| | |
| | | // 搜索 |
| | | onFilterSearch(searchText) { |
| | | this.getDataParams.keyword=searchText, |
| | | this.pagerOptions.currPage = 1; |
| | | this.getData() |
| | | }, |
| | | // 新增 |
| | |
| | | }) |
| | | }, |
| | | rowClick(row,type){ |
| | | if(type==="查看"){ |
| | | this.editConfig.dialogTitle="查看" |
| | | this.editConfig.visible=true |
| | | this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex} |
| | | }else if(type==="修改"){ |
| | | this.editConfig.dialogTitle="修改" |
| | | if(type!=="删除"){ |
| | | this.editConfig.dialogTitle=type |
| | | this.editConfig.visible=true |
| | | this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex} |
| | | }else if(type==="删除"){ |
| | |
| | | }).then(() => { |
| | | deleteDict({id:row.ID}).then((res)=>{ |
| | | if(res&&res.code===200){ |
| | | this.pagerOptions.currPage = 1; |
| | | this.getData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | }); |
| | | } |
| | | }) |
| | | }) |
| | | }).catch(() => { |
| | | console.log("取消删除") |
| | | }); |
| | | } |
| | | } |
| | | } |