fix:更新BUG档案
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m22s
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m22s
This commit is contained in:
parent
b18446c060
commit
2040d6ee3a
@ -17,9 +17,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/': {
|
'/api/': {
|
||||||
// target: 'http://10.39.13.78:8001/',
|
target: 'http://10.39.13.78:8002/',
|
||||||
// target: 'https://test-company.linyikj.com.cn/',
|
// target: 'https://test-company.linyikj.com.cn/',
|
||||||
target: 'https://company.linyikj.com.cn/',
|
// target: 'https://company.linyikj.com.cn/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^': '' },
|
pathRewrite: { '^': '' },
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,6 +16,15 @@ import { Form, message } from 'antd';
|
|||||||
|
|
||||||
export default function Delivery(props: MyBetaModalFormProps) {
|
export default function Delivery(props: MyBetaModalFormProps) {
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
|
|
||||||
|
const GetOwners = () => {
|
||||||
|
let owner =
|
||||||
|
props.item?.house_occupants?.filter(
|
||||||
|
(res: any) => res?.house_relation === 'Owner',
|
||||||
|
) || [];
|
||||||
|
return owner?.length > 0;
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BetaSchemaForm<ApiTypes.Archive.HouseRegisters.Store>
|
<BetaSchemaForm<ApiTypes.Archive.HouseRegisters.Store>
|
||||||
{...MyModalFormProps.props}
|
{...MyModalFormProps.props}
|
||||||
@ -26,7 +35,7 @@ export default function Delivery(props: MyBetaModalFormProps) {
|
|||||||
<MyButtons.View
|
<MyButtons.View
|
||||||
title={props.title}
|
title={props.title}
|
||||||
size={props.item?.size || 'small'}
|
size={props.item?.size || 'small'}
|
||||||
disabled={props.item?.house_occupants?.length}
|
disabled={GetOwners()}
|
||||||
type="primary"
|
type="primary"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user