Commit e9ee7ce8ed34efe790430949e03cb1ab9ce8c61e
1 parent
48302ce4
feat: 新增业务员有分析利润按钮权限
Showing
2 changed files
with
6 additions
and
2 deletions
.vscode/settings.json
... | ... | @@ -91,7 +91,8 @@ |
91 | 91 | "editor.codeActionsOnSave": { |
92 | 92 | "source.fixAll.eslint": "explicit", |
93 | 93 | "source.fixAll.stylelint": "explicit" |
94 | - } | |
94 | + }, | |
95 | + "editor.defaultFormatter": "esbenp.prettier-vscode" | |
95 | 96 | }, |
96 | 97 | "i18n-ally.localesPaths": ["src/locales/lang"], |
97 | 98 | "i18n-ally.keystyle": "nested", | ... | ... |
src/views/project/order/index.vue
... | ... | @@ -89,7 +89,10 @@ |
89 | 89 | <a-button type="primary" @click="handleExportModal" v-if="role !== ROLE.INSPECT" |
90 | 90 | >导出</a-button |
91 | 91 | > |
92 | - <a-button type="primary" @click="handleProfitModal" v-if="role === ROLE.ADMIN" | |
92 | + <a-button | |
93 | + type="primary" | |
94 | + @click="handleProfitModal" | |
95 | + v-if="role === ROLE.ADMIN || role === ROLE.BUSINESS" | |
93 | 96 | >分析利润</a-button |
94 | 97 | > |
95 | 98 | <a-button | ... | ... |