Commit c2d2d0a8 by Tianqing Liu

feat: 优化数据重跑功能,成功后,展示日志

1 parent dde112ee
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<!--新的日志--> <!--新的日志-->
<div v-if="queryForm.dataType === 1" class="card-container"> <div v-if="queryForm.dataType === 1" class="card-container">
<a-card title="全店重跑日志" style="width: 600px"> <a-card title="全店重跑日志" style="width: 600px">
<el-row v-for="item in msgLogList" style="padding: 2px 0;"> <el-row v-for="item in msgLogList" :key="item.name" style="padding: 2px 0;">
<el-col :span="8"> <el-col :span="8">
{{ item.name + ':' }} {{ item.name + ':' }}
</el-col> </el-col>
...@@ -340,12 +340,14 @@ export default { ...@@ -340,12 +340,14 @@ export default {
dataRerunApi.getResult2(params).then( dataRerunApi.getResult2(params).then(
(r) => { (r) => {
console.log('getResult2', r) console.log('getResult2', r)
// msgLogList.value.push(getLogMsgList(r.data.id), '完成') if (r.data && r.data[0]) {
msgLogList.value.push(getLogMsgList(r.data[0].mallId), '完成!')
}
} }
) )
} }
} }
const getLogMsgList = function(id, text = '开始') { const getLogMsgList = function(id, text = '开始...') {
const targetMall = plazaList.value.find(item => item.value === id) const targetMall = plazaList.value.find(item => item.value === id)
if (targetMall) { if (targetMall) {
return { return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!