meixioacomponent 0.3.50 → 0.3.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.50",
3
+ "version": "0.3.52",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="oa-pro-table-wrap" :style="{ height: height }">
2
+ <div class="oa-pro-table-wrap" :style="{ height: height }" v-if="isAuth">
3
3
  <!-- 表格的头部 -->
4
4
  <div
5
5
  class="oa-pro-header-wrap"
@@ -20,7 +20,6 @@
20
20
  </oaProHeader>
21
21
  </div>
22
22
  <!-- 表格搜索 -->
23
-
24
23
  <div class="oa-pro-table-search">
25
24
  <oa_pro_table_searchVue
26
25
  v-model="module"
@@ -199,6 +198,15 @@
199
198
  ></baseButtonHandle>
200
199
  </base-dialog>
201
200
  </div>
201
+
202
+ <div class="oa-pro-table-wrap no-auth" v-else>
203
+ <baseDefaultSvgVue
204
+ :width="440"
205
+ :height="440"
206
+ :svgName="`404`"
207
+ :text="`无权限查看该表格`"
208
+ ></baseDefaultSvgVue>
209
+ </div>
202
210
  </template>
203
211
 
204
212
  <script>
@@ -415,6 +423,12 @@ export default {
415
423
  type: Boolean,
416
424
  default: true,
417
425
  },
426
+
427
+ // 是否有查看表格的权限
428
+ isAuth: {
429
+ default: true,
430
+ type: Boolean,
431
+ },
418
432
  },
419
433
  components: {
420
434
  oaProHeader,
@@ -970,8 +984,17 @@ export default {
970
984
 
971
985
  /deep/ .el-table__cell {
972
986
  .gutter {
973
- border-color: transparent !important;
987
+ border-color: var(--color-table-border) !important;
988
+ &:last-of-type {
989
+ border-color: var(--color-table-border) !important;
990
+ }
974
991
  }
975
992
  }
976
993
  }
994
+ .no-auth {
995
+ display: flex;
996
+ align-items: center;
997
+ flex-flow: column nowrap;
998
+ justify-content: center;
999
+ }
977
1000
  </style>
@@ -315,6 +315,7 @@ export default {
315
315
  <div class="page-table-wrap" ref="pageTableWrap" v-if="show">
316
316
  <base-pro-table
317
317
  :align="`left`"
318
+ :isAuth="false"
318
319
  v-model="keyWords"
319
320
  :height="pageHeight"
320
321
  :isAverageWidth="false"