Commit 8db74bcc authored by 全洪江's avatar 全洪江

上传失败时更新状态

parent 6eeba212
......@@ -114,9 +114,9 @@
</template>
</el-table-column>
<el-table-column label="上传sap时间" align="center" prop="uploadTime" width="180">
<!-- <template slot-scope="scope">-->
<!-- <span>{{ parseTime(scope.row.uploadTime, '{y}-{m}-{d}') }}</span>-->
<!-- </template>-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ parseTime(scope.row.uploadTime, '{y}-{m}-{d}') }}</span>-->
<!-- </template>-->
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
......@@ -306,12 +306,13 @@ export default {
switch (type) {
case 1:
this.$modal.confirm('是否确认上传客户SAP特性信息编号为"' + id + '"的数据项?').then(function () {
return uploadSapdata(id,relationId);
return uploadSapdata(id, relationId);
}).then((response) => {
this.getList();
this.$modal.msgSuccess(response.msg||"上传成功");
this.$modal.msgSuccess(response.msg || "上传成功");
}).catch(() => {
});
}).finally(() => {
this.getList();
})
case 2:
case 3:
case 4:
......
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