8/19 账单-时间类型-自然/滚动
This commit is contained in:
@@ -236,7 +236,7 @@ const rules = ref({
|
||||
if (val === '' || val === null || val === undefined) {
|
||||
return callback(new Error('请输入名称'));
|
||||
}
|
||||
return validator(val, 'ChineseName') ? callback() : callback(new Error('请输入中文字符'));
|
||||
return validator(val, 'Character') ? callback() : callback(new Error('请输入正确的名称'));
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -320,7 +320,7 @@ const rules = ref({
|
||||
const userid = ref(null);
|
||||
const treeData = ref(null);
|
||||
const houseFacilities = ref([]);
|
||||
// !== 楼栋房屋 =============================================================================╬
|
||||
// !== 楼栋房屋 =============================================================================
|
||||
async function getTreeData() {
|
||||
const resList = await listHouseFacilities();
|
||||
houseFacilities.value = resList.rows
|
||||
@@ -358,13 +358,12 @@ getHouseUseType();
|
||||
function handleChange(val: CascaderValue) {
|
||||
userHousePath.value = val;
|
||||
form.value.houseId = val[2];
|
||||
form.value.rentalName = '';
|
||||
if (val[2]) {
|
||||
getHouseOwnUser(val[2]).then((res) => {
|
||||
if (res.msg.trim()) {
|
||||
if (res.msg && res.msg.trim()) {
|
||||
form.value.rentalName = res.msg.trim();
|
||||
} else {
|
||||
form.value.rentalName = '';
|
||||
form.value.rentalName = undefined;
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -382,7 +381,7 @@ const handleAvatarSuccess: UploadProps['onSuccess'] = (response) => {
|
||||
};
|
||||
|
||||
const blockedExits = ['.exe', '.bat', '.cmd', '.msi'];
|
||||
const allowExits = ['.bmp", ".gif", ".jpg", ".jpeg", ".png'];
|
||||
const allowExits = ['.bmp', '.gif', '.jpg', '.jpeg', '.png'];
|
||||
const handleChangeFile = (uploadFile: UploadFile, uploadFiles: UploadFiles) => {
|
||||
const ext = uploadFile.name.toLowerCase().slice(uploadFile.name.lastIndexOf('.'));
|
||||
if (blockedExits.includes(ext)) {
|
||||
|
||||
Reference in New Issue
Block a user