|
楼主 |
发表于 2023-5-20 10:51:07
|
显示全部楼层
代码如下:async function query(values: any) {
let obj = JSON.parse(JSON.stringify(values));
let params = { userNo: obj.userNo };
try {
let customList = await defHttp.get({ url: '/charge/query', params });
let userInfo = JSON.parse(JSON.stringify(customList));
// alert(userInfo.userName);
document.getElementById('userName').value = userInfo.userName;
document.getElementById('address').value = userInfo.address;
document.getElementById('tel').value = userInfo.tel;
document.getElementById('chargeMode').value = userInfo.chargeMode;
document.getElementById('userNo').value = userInfo.userNo;
let params = { username: 'zhangsan' };
//location.reload();
// Address.value = userInfo.address;
listNoCareTenant = await defHttp.get({ url: '/sys/user/listByParm', params });
// console.log('0000000' + refundTimeTableData);
// alert(listNoCareTenant);
console.log(listNoCareTenant);
getDataSource();
await reload();
//await tablist();
// console.log(customList);
} catch (err: any) {
console.log(err);
}
} |
|