yangjie #45
|
|
@ -385,7 +385,6 @@ const Index: React.FC = () => {
|
|||
placeholder="请输入房间号"
|
||||
style={{ flexGrow: 1 }}
|
||||
className={styles.letterSpacing}
|
||||
showCount
|
||||
maxLength={8}
|
||||
value={createRoomFrom.roomNum}
|
||||
onChange={(e) => {
|
||||
|
|
@ -422,7 +421,6 @@ const Index: React.FC = () => {
|
|||
<Input.TextArea
|
||||
placeholder="请输入房间名字"
|
||||
style={{ flexGrow: 1 }}
|
||||
showCount
|
||||
maxLength={30}
|
||||
value={createRoomFrom.roomName}
|
||||
onChange={(e) => {
|
||||
|
|
@ -437,6 +435,7 @@ const Index: React.FC = () => {
|
|||
<span>届:</span>
|
||||
<Input
|
||||
placeholder="请输入届"
|
||||
maxLength={4}
|
||||
style={{ flexGrow: 1 }}
|
||||
value={createRoomFrom.year}
|
||||
onChange={(e) => {
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ const User: React.FC = () => {
|
|||
onClick={() => {
|
||||
const file = document.createElement("input") as any;
|
||||
file.type = "file";
|
||||
// file.accept = ".xls,.xlsx";
|
||||
file.accept = ".xls,.xlsx";
|
||||
file.onchange = async () => {
|
||||
const setting = await JSON.parse(storage.getItem('setting') as string)
|
||||
const fileInfo = file.files[0];
|
||||
|
|
@ -669,7 +669,7 @@ const User: React.FC = () => {
|
|||
onClick={() => {
|
||||
const file = document.createElement("input") as any;
|
||||
file.type = "file";
|
||||
// file.accept = ".xls,.xlsx";
|
||||
file.accept = ".xls,.xlsx";
|
||||
file.onchange = async () => {
|
||||
const setting = await JSON.parse(storage.getItem('setting') as string)
|
||||
const fileInfo = file.files[0];
|
||||
|
|
@ -762,12 +762,17 @@ const User: React.FC = () => {
|
|||
<Button type="primary" style={{ backgroundColor: '#31353A', marginRight: '14px' }}
|
||||
onClick={() => setSignInUserModal(false)}>取消</Button>
|
||||
<Button type="primary" className='m-ant-btn' onClick={() => {
|
||||
PutSigns(signInUserForm.uid, signInUserForm.currentUserList).then(res => {
|
||||
if (res.code === 200) {
|
||||
message.success('签到绑定成功')
|
||||
setSignInUserModal(false)
|
||||
}
|
||||
})
|
||||
let signInNameNull = signInUserForm.currentUserList.find((item: any) => !item.signInName)
|
||||
if (signInNameNull) {
|
||||
message.error('请输入用户名称');
|
||||
} else {
|
||||
PutSigns(signInUserForm.uid, signInUserForm.currentUserList).then(res => {
|
||||
if (res.code === 200) {
|
||||
message.success('签到绑定成功')
|
||||
setSignInUserModal(false)
|
||||
}
|
||||
})
|
||||
}
|
||||
}}>确定</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue