Commit e4307e69 authored by 沈翠玲's avatar 沈翠玲

资产导入

parent e228a557
......@@ -193,15 +193,7 @@
downloadfile('/LoanExcel/downloadTemplate', {}, '模版.xls');
};
const checkData = () => {};
const submitData = () => {
LoanSubmit({
file: form.path,
code: form.code,
contractNo: form.contractNo,
}).then((res) => {});
uploadRef.value.clearFiles();
form.path = '';
};
const handleFileSuccess = (response, file, fileList) => {
if (!response.success) {
ElMessage.error({
......@@ -231,7 +223,21 @@
downloadfile(envs.VITE_GLOB_API_URL_PREFIX + '/sys/static/' + row.file, {}, name);
};
const query = () => ProTableRef.value?.search();
const submitData = () => {
LoanSubmit({
file: form.path,
code: form.code,
contractNo: form.contractNo,
}).then((res) => {
ElMessage.success({
message: '提交成功',
plain: true,
});
uploadRef.value.clearFiles();
form.path = '';
query()
});
};
onMounted(() => {
query();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment