Explorar el Código

【修改】预留单按钮限制

howie hace 2 años
padre
commit
331f8ad67d
Se han modificado 1 ficheros con 12 adiciones y 2 borrados
  1. 12 2
      src/views/supply/reserve/reserve_list.vue

+ 12 - 2
src/views/supply/reserve/reserve_list.vue

@@ -107,8 +107,18 @@
               v-if="$checkBtnRole('add', $route.meta.roles)"
               >新增</el-button
             >
-            <ExportButton class="ml" :exUrl="'reserve/download'" exText="下载模板" :exParams="{}" />
-            <ImportButton :imUrl="'reserve/importData'" @importSuccess="getList" />
+            <ExportButton
+              class="ml"
+              :exUrl="'reserve/download'"
+              v-if="$checkBtnRole('add', $route.meta.roles)"
+              exText="下载模板"
+              :exParams="{}"
+            />
+            <ImportButton
+              :imUrl="'reserve/importData'"
+              v-if="$checkBtnRole('add', $route.meta.roles)"
+              @importSuccess="getList"
+            />
           </div>
           <div class="fr">
             <ExportButton :exUrl="'reserve/export'" :exParams="exParams" />