Showing
2 changed files
with
8 additions
and
7 deletions
| @@ -129,10 +129,10 @@ | @@ -129,10 +129,10 @@ | ||
| 129 | const s = Number(this.form && this.form.status || 0) | 129 | const s = Number(this.form && this.form.status || 0) |
| 130 | const t = this.todoType || '' | 130 | const t = this.todoType || '' |
| 131 | return [ | 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,4 +310,4 @@ | ||
| 310 | } | 310 | } |
| 311 | } | 311 | } |
| 312 | } | 312 | } |
| 313 | -</style> | ||
| 313 | +</style> |
| @@ -7,9 +7,10 @@ | @@ -7,9 +7,10 @@ | ||
| 7 | @input="onSearchInput" /> | 7 | @input="onSearchInput" /> |
| 8 | <view class="tool-icons"> | 8 | <view class="tool-icons"> |
| 9 | <image class="tool-icon" | 9 | <image class="tool-icon" |
| 10 | + v-if="$auth.hasPermi('customer-dev-manage:customer-dev-plan:batchReview')" | ||
| 10 | :src="batchMode ? '/static/images/dev_manage/close_icon.png' : '/static/images/dev_manage/batch_icon.png'" | 11 | :src="batchMode ? '/static/images/dev_manage/close_icon.png' : '/static/images/dev_manage/batch_icon.png'" |
| 11 | @click="toggleBatch" /> | 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 | <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> | 14 | <image class="tool-icon" src="/static/images/dev_manage/filter_icon.png" @click="openFilter" /> |
| 14 | </view> | 15 | </view> |
| 15 | </view> | 16 | </view> |
| @@ -811,4 +812,4 @@ | @@ -811,4 +812,4 @@ | ||
| 811 | } | 812 | } |
| 812 | } | 813 | } |
| 813 | } | 814 | } |
| 814 | -</style> | ||
| 815 | +</style> |