Commit 119a3cb2afdfe961ad10994f2a90c22c42d56abd

Authored by 史婷婷
1 parent a180df8d

feat: 框架合同-列表&详情-按钮权限

... ... @@ -34,8 +34,7 @@ export default {
34 34 computed: {
35 35 displayButtons() {
36 36 return [
37   - // { text: '删除', variant: 'danger' },
38   - { text: '编辑', variant: 'outline' }
  37 + { text: '编辑', variant: 'outline', visible: this.$auth.hasPermi('contract-manage:contract-framework:modify') }
39 38 ]
40 39 }
41 40 },
... ...
... ... @@ -5,7 +5,7 @@
5 5 <uni-search-bar v-model="searchKeyword" radius="6" placeholder="请输入客户名称或编号" clearButton="auto"
6 6 cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="search" @input="onSearchInput" />
7 7 <view class="tool-icons">
8   - <image class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
  8 + <image v-if="$auth.hasPermi('contract-manage:contract-framework:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
9 9 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" />
10 10 </view>
11 11 </view>
... ...