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

上传失败时更新状态

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