权限
Some checks failed
/ Explore-Gitea-Actions (push) Failing after 5m54s

This commit is contained in:
FLL 2025-08-22 11:07:08 +08:00
parent 7b2c8e47dd
commit 06a710d1f8
6 changed files with 10 additions and 31 deletions

View File

@ -140,6 +140,7 @@ function handleMultiDelete() {
<Space>
<ghost-button
@click.stop="handleInfo(row)"
v-access:code="['property:workOrdersType:query']"
>
{{ $t('pages.common.info') }}
</ghost-button>

View File

@ -85,12 +85,14 @@ async function handleEdit(row: Required<PaymentReviewForm>) {
<Space>
<ghost-button
@click.stop="handleInfo(row)"
v-access:code="['property:payFeeAudit:query']"
>
{{ $t('pages.common.info') }}
</ghost-button>
<ghost-button
:disabled="row.state!=='0'"
@click.stop="handleEdit(row)"
v-access:code="['property:payFeeAudit:query']"
>
{{ '审核' }}
</ghost-button>

View File

@ -110,13 +110,13 @@ function handleMultiDelete() {
:disabled="!vxeCheckboxChecked(tableApi)"
danger
type="primary"
v-access:code="['property:property:remove']"
v-access:code="['property:plantsProduct:remove']"
@click="handleMultiDelete">
{{ $t('pages.common.delete') }}
</a-button>
<a-button
type="primary"
v-access:code="['property:property:add']"
v-access:code="['property:plantsProduct:add']"
@click="handleAdd"
>
{{ $t('pages.common.add') }}
@ -126,12 +126,13 @@ function handleMultiDelete() {
<template #action="{ row }">
<Space>
<ghost-button
v-access:code="['property:plantsProduct:query']"
@click.stop="handleInfo(row)"
>
{{ $t('pages.common.info') }}
</ghost-button>
<ghost-button
v-access:code="['property:property:edit']"
v-access:code="['property:plantsProduct:edit']"
@click.stop="handleEdit(row)"
>
{{ $t('pages.common.edit') }}
@ -144,7 +145,7 @@ function handleMultiDelete() {
>
<ghost-button
danger
v-access:code="['property:property:remove']"
v-access:code="['property:plantsProduct:remove']"
@click.stop=""
>
{{ $t('pages.common.delete') }}

View File

@ -10,7 +10,6 @@ import { inspectionPointAdd, inspectionPointInfo, inspectionPointUpdate } from '
import { defaultFormValueGetter, useBeforeCloseDiff } from '#/utils/popup';
import { modalSchema } from './data';
import {workOrdersTypeList} from "#/api/property/businessManagement/workOrdersType";
const emit = defineEmits<{ reload: [] }>();
@ -54,7 +53,6 @@ const [BasicModal, modalApi] = useVbenModal({
return null;
}
modalApi.modalLoading(true);
await queryWorkOrdersType()
const { id } = modalApi.getData() as { id?: number | string };
isUpdate.value = !!id;
@ -92,31 +90,6 @@ async function handleClosed() {
await formApi.resetForm();
resetInitialized();
}
async function queryWorkOrdersType() {
let params = {
pageSize: 1000,
pageNum: 1
}
const res = await workOrdersTypeList(params)
const options = res.rows.map((item) => ({
label: item.orderTypeName,
value: item.id,
}));
formApi.updateSchema([{
componentProps: () => ({
options: options,
filterOption: filterOption,
showSearch:true,
}),
fieldName: 'type',
}])
}
const filterOption = (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
};
</script>
<template>

View File

@ -99,6 +99,7 @@ function handleAdd() {
<Space>
<ghost-button
@click.stop="handleInfo(row)"
v-access:code="['property:visitorManagement:query']"
>
{{ $t('pages.common.info') }}
</ghost-button>

View File

@ -90,6 +90,7 @@ const [VisitorTodoModal, modalApi] = useVbenModal({
<Space>
<ghost-button
@click.stop="handleInfo(row)"
v-access:code="['property:visitorManagement:query']"
>
{{ $t('pages.common.info') }}
</ghost-button>