Update main.js

This commit is contained in:
姜棚 2021-11-30 04:57:30 +08:00
parent 930d04fd4c
commit 5d3e5eaeae
1 changed files with 15 additions and 0 deletions

View File

@ -92,6 +92,13 @@ export default class acclist extends React.Component{
this.getTableList(data);
}
editFn(e,row){
if(row.creator == 0 )
{
Notify.error("系统模板不可编辑");
return
}
sessionStorage.setItem("pageInfo", JSON.stringify(row))
@ -160,6 +167,14 @@ newTemplate(e){
delFn(e,row){
if(row.creator == 0 )
{
Notify.error("系统模板不可删除");
return
}
let self=this;
Sweetalert.confirm({
type:'warning',