fix:按钮权限
Some checks failed
/ Explore-Gitea-Actions (push) Failing after 5m51s

This commit is contained in:
dev_ljl 2025-08-22 12:58:16 +08:00
parent a599e72a6b
commit 5fa41f6d85
3 changed files with 5 additions and 4 deletions

View File

@ -39,10 +39,11 @@ export const querySchema: FormSchemaGetter = () => [
{ {
component: 'Select', component: 'Select',
componentProps: {}, componentProps: {
options: getDictOptions('wy_zccgfs'),
},
fieldName: 'buyType', fieldName: 'buyType',
label: '采购方式', label: '采购方式',
options: getDictOptions('wy_zccgfs'),
}, },
{ {
component: 'Select', component: 'Select',

View File

@ -155,7 +155,7 @@ const { hasAccessByCodes } = useAccess();
:unCheckedValue="0" :unCheckedValue="0"
v-model:value="row.state" v-model:value="row.state"
:api="() => suppliersUpdate(row)" :api="() => suppliersUpdate(row)"
:disabled="!hasAccessByCodes(['property:suppliers:update'])" :disabled="!hasAccessByCodes(['property:suppliers:edit'])"
@reload="() => tableApi.query()" @reload="() => tableApi.query()"
/> />
</template> </template>

View File

@ -187,7 +187,7 @@ function handleDownloadExcel() {
:unCheckedValue="0" :unCheckedValue="0"
v-model:value="row.status" v-model:value="row.status"
:api="() => groupUpdate(row)" :api="() => groupUpdate(row)"
:disabled="!hasAccessByCodes(['property:depot:edit'])" :disabled="!hasAccessByCodes(['Property:group:edit'])"
@reload="() => tableApi.query()" @reload="() => tableApi.query()"
/> />
</template> </template>