Merge branch 'release_electronic_bid_evaluation_room' of http://gitlab.tianti.tg.unicom.local/eshop/fe_service_ebtp_frontend into release_electronic_bid_evaluation_room

This commit is contained in:
jl-zhoujl2
2022-11-21 11:04:03 +08:00
2 changed files with 15 additions and 5 deletions

View File

@ -314,9 +314,9 @@ const AuthorizeModal: React.FC<AuthorizeModalProps> = (props) => {
rules={rule('权限开始时间')}
>
<DatePicker
format="YYYY-MM-DD"
format="yyyy-MM-DD HH:mm"
disabledDate={disabledDate}
showTime={{ defaultValue: moment('00:00:00', 'HH:mm:ss') }}
showTime={{ defaultValue: moment('00', 'ss') }}
showNow={false}
style={{ width: "90%" }}
/>
@ -327,9 +327,9 @@ const AuthorizeModal: React.FC<AuthorizeModalProps> = (props) => {
rules={rule('权限结束时间')}
>
<DatePicker
format="YYYY-MM-DD"
format="yyyy-MM-DD HH:mm"
disabledDate={disabledDate}
showTime={{ defaultValue: moment('23:59:59', 'HH:mm:ss') }}
showTime={{ defaultValue: moment('00', 'ss') }}
showNow={false}
style={{ width: "90%" }}
/>

View File

@ -42,6 +42,7 @@ const SitePersonModal: React.FC<SitePersonModalProps> = (props) => {
useEffect(() => {
console.log(type)
if (JSON.stringify(values) !== "{}") {
setGroupValue(values.groupStatus);
form.setFieldsValue({
@ -75,13 +76,15 @@ const SitePersonModal: React.FC<SitePersonModalProps> = (props) => {
const renderFooter = () => {
console.log(type == "edit")
console.log(type == "insert")
if (type == "read") {
return (
<>
<Button onClick={onCancel}></Button>
</>
);
} else {
} else if (type == "edit") {
return (
<>
<Popconfirm
@ -95,6 +98,13 @@ const SitePersonModal: React.FC<SitePersonModalProps> = (props) => {
<Button onClick={onCancel}></Button>
</>
);
} else {
return (
<>
<Button type="primary" loading={loading} onClick={onOk}></Button>
<Button onClick={onCancel}></Button>
</>
);
}
}