更新权限配置

This commit is contained in:
weipengfei 2023-09-14 10:15:40 +08:00
parent 7d23d66dda
commit 751b3ca1e4
2 changed files with 18 additions and 6 deletions

View File

@ -395,13 +395,14 @@
v-if="formData?.status == 0"
:on-exceed="handleExceed"
ref="upload"
v-perms="['contract.contract/wind_control']"
v-perms="['shop_contract/evidence']"
>
<el-button type="primary">{{
formData.file ? "重新上传" : "上传"
}}</el-button>
</el-upload>
<a
v-perms="['shop_contract/file']"
v-if="formData.file"
style="margin-left: 10px; color: #4a5dff; align-self: flex-start"
:href="formData.file"
@ -411,7 +412,7 @@
</el-form-item>
<el-form-item v-if="isshow || formData.status == 0">
<el-button
v-perms="['contract.contract/wind_control']"
v-perms="['shop_contract/evidence']"
type="primary"
@click="submitContract"
>确定</el-button
@ -419,6 +420,7 @@
</el-form-item>
<el-form-item v-else-if="formData.file && formData.status">
<a
v-perms="['shop_contract/file']"
v-if="formData.file"
style="margin-left: 10px; color: #4a5dff"
:href="

View File

@ -107,7 +107,11 @@
<el-table-column label="操作" width="220" fixed="right">
<template #default="{ row }">
<el-button type="primary" link>
<el-button
type="primary"
v-perms="['shop_contract/details']"
link
>
<router-link
:to="{
path: '/contract/shop_contract_detail',
@ -117,7 +121,12 @@
>
</el-button>
<template v-if="row.status == 0">
<el-button v-if="row.check_status == 1" type="warning" link>
<el-button
v-perms="['shop_contract/details']"
v-if="row.check_status == 1"
type="warning"
link
>
<router-link
:to="{
path: '/contract/shop_contract_detail',
@ -128,7 +137,7 @@
</el-button>
<el-button
v-else-if="row.check_status == 2"
v-perms="['contract.contract/contract_send']"
v-perms="['shop_contract/contract_send']"
type="primary"
link
@click="showCreateConctPop(row)"
@ -136,7 +145,7 @@
>
<el-button
v-else-if="row.check_status == 3"
v-perms="['contract.contract/contract_send_again']"
v-perms="['shop_contract/contract_send_again']"
type="primary"
link
@click="(showPop = true), (contractId = row.party_b)"
@ -146,6 +155,7 @@
<el-button
v-else
type="primary"
v-perms="['shop_contract/evidence']"
link
@click="loadContractZip(row)"
>