diff --git a/src/pages/exchangepage/mytemplate/main.js b/src/pages/exchangepage/mytemplate/main.js index 55291b25..6d22d2b2 100644 --- a/src/pages/exchangepage/mytemplate/main.js +++ b/src/pages/exchangepage/mytemplate/main.js @@ -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',