Procházet zdrojové kódy

数据查询按钮权限

zhongxiaoyu před 2 roky
rodič
revize
9eca6c39b8

+ 10 - 1
src/components/minheader/index.vue

@@ -55,7 +55,7 @@
           placeholder="请输入您要搜索的内容"
           placeholder="请输入您要搜索的内容"
           clearable
           clearable
         /> -->
         /> -->
-        <Search @clear="clear" @search="search" />
+        <Search v-permission="[searchPermission]" @clear="clear" @search="search" />
         <!-- <el-button type="danger" size="default" class="br L12">搜索</el-button> -->
         <!-- <el-button type="danger" size="default" class="br L12">搜索</el-button> -->
       </template>
       </template>
       <template v-if="isSlot">
       <template v-if="isSlot">
@@ -98,6 +98,7 @@
       </template>
       </template>
       <template v-if="isShow">
       <template v-if="isShow">
         <img
         <img
+          v-permission="[columnSetPermission]"
           class="btn-img"
           class="btn-img"
           src="@/assets/baggage/ic_setting.png"
           src="@/assets/baggage/ic_setting.png"
           title="列设置"
           title="列设置"
@@ -172,6 +173,14 @@ const props = defineProps({
     type: String,
     type: String,
     default: "",
     default: "",
   },
   },
+  searchPermission: {
+    type: String,
+    default: ''
+  },
+  columnSetPermission: {
+    type: String,
+    default: ''
+  }
 });
 });
 // console.log(props.power);
 // console.log(props.power);
 //搜索内容
 //搜索内容

+ 2 - 0
src/views/dataQuery/flightQuery/index.vue

@@ -6,6 +6,8 @@
         :is-statuser="true"
         :is-statuser="true"
         :is-Show="true"
         :is-Show="true"
         :is-Time="true"
         :is-Time="true"
+        search-permission="flight_query_search_button"
+        column-set-permission="flight_query_column_setting_button"
         @showForm="showForm"
         @showForm="showForm"
         @searchForm="searchForm"
         @searchForm="searchForm"
       >
       >

+ 2 - 0
src/views/dataQuery/freightInquiry/index.vue

@@ -6,6 +6,8 @@
         :is-statuser="true"
         :is-statuser="true"
         :is-Show="true"
         :is-Show="true"
         :is-Time="true"
         :is-Time="true"
+        search-permission="goods_query_search_button"
+        column-set-permission="goods_query_column_settings_button"
         @showForm="showForm"
         @showForm="showForm"
         @searchForm="searchForm"
         @searchForm="searchForm"
       >
       >

+ 2 - 0
src/views/dataQuery/waybillQuery/index.vue

@@ -6,6 +6,8 @@
         :is-statuser="true"
         :is-statuser="true"
         :is-Show="true"
         :is-Show="true"
         :is-Time="true"
         :is-Time="true"
+        search-permission="waybill_query_search_button"
+        column-set-permission="waybill_query_column_settings_button"
         @showForm="showForm"
         @showForm="showForm"
         @searchForm="searchForm"
         @searchForm="searchForm"
       >
       >