Commit 58bcbbebd4ed357893b720e5a031fa26ada11748

Authored by 史婷婷
1 parent f398d0a1

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

... ... @@ -129,10 +129,10 @@
129 129 const s = Number(this.form && this.form.status || 0)
130 130 const t = this.todoType || ''
131 131 return [
132   - { ...this.buttons[0], visible: (s === 3 && t === '') },
133   - { ...this.buttons[1] },
134   - { ...this.buttons[2], visible: (s === 1 && t === 'WAIT') },
135   - { ...this.buttons[3], visible: (s === 3 && t === '') }
  132 + { ...this.buttons[0], visible: (s === 3 && t === '' && this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:modify')) },
  133 + { ...this.buttons[1], visible: this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:reviewDetail') },
  134 + { ...this.buttons[2], visible: (s === 1 && t === 'WAIT' && this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:review')) },
  135 + { ...this.buttons[3], visible: (s === 3 && t === '' && this.$auth.hasPermi('customer-dev-manage:customer-dev-plan:close')) }
136 136 ]
137 137 }
138 138 },
... ... @@ -310,4 +310,4 @@
310 310 }
311 311 }
312 312 }
313   -</style>
\ No newline at end of file
  313 +</style>
... ...
... ... @@ -7,9 +7,10 @@
7 7 @input="onSearchInput" />
8 8 <view class="tool-icons">
9 9 <image class="tool-icon"
  10 + v-if="$auth.hasPermi('customer-dev-manage:customer-dev-plan:batchReview')"
10 11 :src="batchMode ? '/static/images/dev_manage/close_icon.png' : '/static/images/dev_manage/batch_icon.png'"
11 12 @click="toggleBatch" />
12   - <image class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
  13 + <image v-if="$auth.hasPermi('customer-dev-manage:customer-dev-plan:add')" class="tool-icon" src="/static/images/dev_manage/add_icon.png" @click="onAdd" />
13 14 <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" />
14 15 </view>
15 16 </view>
... ... @@ -811,4 +812,4 @@
811 812 }
812 813 }
813 814 }
814   -</style>
\ No newline at end of file
  815 +</style>
... ...