Commit 1ad1d94c668864d79a5581e266080ac5690ce412

Authored by 史婷婷
1 parent 58bcbbeb

feat: 客户资信管理-列表&详情-按钮权限

... ... @@ -211,11 +211,11 @@ export default {
211 211 displayButtons() {
212 212 const f = this.statusFlags
213 213 return [
214   - { ...this.buttons[0], visible: f.isRefuse },
215   - { ...this.buttons[1], visible: true },
216   - { ...this.buttons[2], visible: f.isAudit && f.canExamine },
217   - { ...this.buttons[3], visible: f.isPass },
218   - { ...this.buttons[4], visible: f.isRefuse },
  214 + { ...this.buttons[0], visible: f.isRefuse && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:modify') },
  215 + { ...this.buttons[1], visible: this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:review') },
  216 + { ...this.buttons[2], visible: f.isAudit && f.canExamine && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:approve') },
  217 + { ...this.buttons[3], visible: f.isPass && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:change') },
  218 + { ...this.buttons[4], visible: f.isRefuse && this.$auth.hasPermi('customer-credit-manage:customer-credit-plan:close') },
219 219 ]
220 220 }
221 221 },
... ...
... ... @@ -6,7 +6,7 @@
6 6 cancelButton="none" bgColor="#F3F3F3" textColor="rgba(0,0,0,0.4)" @confirm="search"
7 7 @input="onSearchInput" />
8 8 <view class="tool-icons">
9   - <image class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
  9 + <image v-if="$auth.hasPermi('customer-credit-manage:customer-credit-plan:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
10 10 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" />
11 11 </view>
12 12 </view>
... ...