|
@@ -540,7 +540,7 @@ const rowSave = (form, done, loading) => {
|
|
|
handleQuery(null, null);
|
|
|
});
|
|
|
};
|
|
|
-const rowUpdate = (form, index, done, loading) => {
|
|
|
+const rowUpdate = (form: any, index: any, done: any, loading: any) => {
|
|
|
loading();
|
|
|
updateOrder(form).then((data: any) => {
|
|
|
ElMessage({
|
|
@@ -571,7 +571,7 @@ const rowDel = (form: any, index) => {
|
|
|
// catch error
|
|
|
});
|
|
|
};
|
|
|
-const openDialog = (type) => {
|
|
|
+const openDialog = (type: any) => {
|
|
|
dialog.visible = true;
|
|
|
dialog.type = type;
|
|
|
if (dialog.type === "obj-import") {
|
|
@@ -592,7 +592,7 @@ const downloadTemplate = () => {
|
|
|
downFile(response);
|
|
|
});
|
|
|
};
|
|
|
-const handleEdit = (row, index) =>{
|
|
|
+const handleEdit = (row: any, index: any) =>{
|
|
|
crudRef.value && crudRef.value.rowEdit(row, index);
|
|
|
}
|
|
|
/** 弹窗提交 */
|
|
@@ -607,7 +607,7 @@ const handleSubmit = () => {
|
|
|
});
|
|
|
};
|
|
|
/** Excel文件 Change */
|
|
|
-const handleFileChange = (file) => {
|
|
|
+const handleFileChange = (file: any) => {
|
|
|
importData.file = file.raw;
|
|
|
};
|
|
|
/** 文件下载 */
|
|
@@ -629,7 +629,7 @@ const downFile = (response: any) => {
|
|
|
window.URL.revokeObjectURL(downloadUrl);
|
|
|
};
|
|
|
/** Excel文件 Exceed */
|
|
|
-const handleFileExceed = (files) => {
|
|
|
+const handleFileExceed = (files: any) => {
|
|
|
uploadRef.value!.clearFiles();
|
|
|
const file = files[0];
|
|
|
file.uid = genFileId();
|