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:
@ -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%" }}
|
||||
/>
|
||||
|
@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user