瀏覽代碼

添加仪表盘按钮权限

liu.tao3 1 年之前
父節點
當前提交
69e8357fb9

+ 1 - 1
data-room-ui/packages/DataSetManagement/src/CustomEditForm.vue

@@ -51,7 +51,7 @@
             <el-row :gutter="20">
               <el-col :span="12">
                 <el-form-item
-                  label="名称"
+                  label="数据集名称"
                   prop="name"
                 >
                   <el-input

+ 1 - 1
data-room-ui/packages/DataSetManagement/src/JsEditForm.vue

@@ -49,7 +49,7 @@
             <el-row :gutter="20">
               <el-col :span="12">
                 <el-form-item
-                  label="名称"
+                  label="数据集名称"
                   prop="name"
                 >
                   <el-input

+ 1 - 1
data-room-ui/packages/DataSetManagement/src/JsonEditForm.vue

@@ -50,7 +50,7 @@
             <el-row :gutter="20">
               <el-col :span="12">
                 <el-form-item
-                  label="名称"
+                  label="数据集名称"
                   prop="name"
                 >
                   <el-input

+ 1 - 1
data-room-ui/packages/DataSetManagement/src/ScriptEditForm.vue

@@ -50,7 +50,7 @@
             <el-row :gutter="20">
               <el-col :span="12">
                 <el-form-item
-                  label="名称"
+                  label="数据集名称"
                   prop="name"
                 >
                   <el-input

+ 1 - 1
data-room-ui/packages/DataSetManagement/src/StoredProcedureEditForm.vue

@@ -51,7 +51,7 @@
             <el-row :gutter="20">
               <el-col :span="12">
                 <el-form-item
-                  label="名称"
+                  label="数据集名称"
                   prop="name"
                 >
                   <el-input

+ 40 - 0
data-room-ui/packages/DataSetSetting/dataSetSetting.vue

@@ -23,6 +23,9 @@
           class="bs-data-set-management"
           :is-border="true"
           :is-dialog="true"
+          :ToAdd='isAdd'
+          :doEdit='doEdit'
+          :isDelete='isDelete'
           :ds-id="dataSetId"
           :multiple="multiple"
           :ds-value="DataDsValue"
@@ -39,6 +42,9 @@
       class="bs-data-set-management"
       :is-border="true"
       :is-dialog="true"
+      :ToAdd='isAdd'
+      :doEdit='doEdit'
+      :isDelete='isDelete'
       :ds-id="dataSetId"
       :multiple="multiple"
       :ds-value="DataDsValue"
@@ -107,7 +113,41 @@ export default {
           id: this.dsId
         }
       }
+    },
+    isAdd(){
+      let a=-1
+      if(window.BS_CONFIG?.datasetAuth) {
+       a=window.BS_CONFIG?.datasetAuth.findIndex(item=>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