|
@@ -150,7 +150,18 @@ const onUpload = (e: { model: string; value: Array<[]> }) => {
|
|
};
|
|
};
|
|
// 提交保存
|
|
// 提交保存
|
|
const autoSave = async (data) => {
|
|
const autoSave = async (data) => {
|
|
- console.log(data);
|
|
|
|
|
|
+ if (data && data.file && data.file.length > 0) {
|
|
|
|
+ let object = {
|
|
|
|
+ url: data.file[0].uri
|
|
|
|
+ };
|
|
|
|
+ let res: IQueryResult = await cpcmessageAxios.cimport(object);
|
|
|
|
+ if (res.errcode == '0') {
|
|
|
|
+ ElMessage({ type: `success`, message: `分发成功` });
|
|
|
|
+ toClose();
|
|
|
|
+ } else {
|
|
|
|
+ ElMessage({ type: `error`, message: `${res.errmsg}` });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
// 关闭弹框
|
|
// 关闭弹框
|
|
const toClose = () => {
|
|
const toClose = () => {
|