1、新增复评权限判断

This commit is contained in:
2026-08-07 13:15:38 +08:00
parent 52d4b6b486
commit f550b55341
2 changed files with 11 additions and 5 deletions

View File

@@ -1075,7 +1075,7 @@
<el-input
v-model="detail.reviewScore"
maxlength="10"
:disabled="readonly"
:disabled="readonly || !hasPermission('customer_type_re_cert')"
@input="value => handleScoreDetailScoreInput(detail, 'reviewScore', value)"
>
<template #suffix>分</template>
@@ -1148,7 +1148,13 @@
<template #footer>
<el-button type="primary" v-if="!readonly" @click="saveScoreDetail">保存</el-button>
<el-button type="primary" v-if="!readonly" @click="confirmReviewScore">复评确认</el-button>
<el-button
v-if="!readonly && hasPermission('customer_type_re_cert')"
type="primary"
@click="confirmReviewScore"
>
复评确认
</el-button>
<el-button type="primary" @click="scoreBox = false">关闭</el-button>
</template>
</el-dialog>

View File

@@ -62,11 +62,11 @@ export default ({
server: {
port: 2888,
proxy: {
// 开发期同源代理:浏览器请求 /api/xxx -> 由 Vite 转发到 http://172.16.203.228:8000/api/xxx
// 必须保留 /api 前缀(不要 rewrite 去掉),与 openresty/nginx 期望的路径一致,从而规避跨域(CORS)问题
'/api': {
target: 'http://172.16.203.228:8000',
target: 'http://localhost',
//target: 'https://saber3.bladex.cn/api',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),
},
},
},