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