From 69e8357fb9e5998261e7ab96bcd756e457cb4194 Mon Sep 17 00:00:00 2001 From: "liu.tao3" Date: Wed, 26 Jul 2023 09:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataSetManagement/src/CustomEditForm.vue | 2 +- .../DataSetManagement/src/JsEditForm.vue | 2 +- .../DataSetManagement/src/JsonEditForm.vue | 2 +- .../DataSetManagement/src/ScriptEditForm.vue | 2 +- .../src/StoredProcedureEditForm.vue | 2 +- .../DataSetSetting/dataSetSetting.vue | 40 +++++++++++++++++++ 6 files changed, 45 insertions(+), 5 deletions(-) diff --git a/data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue b/data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue index a608b96a..916fa7b5 100644 --- a/data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue +++ b/data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue @@ -51,7 +51,7 @@ item=='unAdd') + } + if(a==-1){ + return true + }else{ + return false + } + }, + doEdit(){ + let a=-1 + if(window.BS_CONFIG?.datasetAuth) { + a=window.BS_CONFIG?.datasetAuth.findIndex(item=>item=='unEdit') + } + if(a==-1){ + return true + }else{ + return false + } + }, + isDelete(){ + let a=-1 + if(window.BS_CONFIG?.datasetAuth) { + a=window.BS_CONFIG?.datasetAuth.findIndex(item=>item=='unDelete') + } + if(a==-1){ + return true + }else{ + return false + } } + }, mounted () { this.dataSetId = this.dsId