This commit is contained in:
yj 2024-12-13 10:27:53 +08:00
parent 41e9742610
commit ec5edabaf0
2 changed files with 15 additions and 11 deletions

View File

@ -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) => {

View File

@ -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={() => {
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>