Selaa lähdekoodia

feature:创建巡检增加按钮权限

liuzhenlin 4 viikkoa sitten
vanhempi
commit
3c38476d21
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 2 0
      components.d.ts
  2. 1 1
      src/view/laboratory/inspection/index.vue

+ 2 - 0
components.d.ts

@@ -23,6 +23,7 @@ declare module 'vue' {
     VanCellGroup: typeof import('vant/es')['CellGroup']
     VanCheckbox: typeof import('vant/es')['Checkbox']
     VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
+    VanCol: typeof import('vant/es')['Col']
     VanDatePicker: typeof import('vant/es')['DatePicker']
     VanDialog: typeof import('vant/es')['Dialog']
     VanEmpty: typeof import('vant/es')['Empty']
@@ -51,6 +52,7 @@ declare module 'vue' {
     VanTabs: typeof import('vant/es')['Tabs']
     VanTag: typeof import('vant/es')['Tag']
     VanTextEllipsis: typeof import('vant/es')['TextEllipsis']
+    VanTimePicker: typeof import('vant/es')['TimePicker']
     VanUploader: typeof import('vant/es')['Uploader']
   }
 }

+ 1 - 1
src/view/laboratory/inspection/index.vue

@@ -85,7 +85,7 @@
           :text="state.instDetail.following ? '取消收藏' : '收藏'"
           @click="handleFollowInst"
         /> -->
-      <van-action-bar-button type="primary" text="创建巡检" @click="onAdd" />
+      <van-action-bar-button type="primary" v-auth="'lab_inspection_add'" text="创建巡检" @click="onAdd" />
     </van-action-bar>
     <!-- <van-floating-bubble v-model:offset="offset" icon="plus" @click="onAdd" axis="y" /> -->
   </div>