From 5d3e5eaeaee5ddd4a43d8a5c88a6141aaedd1e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Tue, 30 Nov 2021 04:57:30 +0800 Subject: [PATCH] Update main.js --- src/pages/exchangepage/mytemplate/main.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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',