Commit 3d637ef4 by Jaxon

Merge branch 'SAAS+V5.8.3' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into feature/marketing-sop-push-strategy
2 parents bc495238 284532ec
...@@ -122,7 +122,6 @@ ...@@ -122,7 +122,6 @@
</el-button> </el-button>
</div> </div>
</template> </template>
</div>
</el-dialog> </el-dialog>
</template> </template>
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
:get-list-api="getListApi" :get-list-api="getListApi"
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams"> :table-params="tableParams">
<template #executeResult="scope">
<span :class="scope.scope.executeResult == 1 ? 'success' : 'fail'">{{ baseData.executeResultOpt.find(item => item.confId == scope.scope.executeResult).confLabel }}</span>
</template>
<el-button slot="auth-button" <el-button slot="auth-button"
slot-scope="scope" slot-scope="scope"
type="text" type="text"
...@@ -74,13 +77,14 @@ export default { ...@@ -74,13 +77,14 @@ export default {
}, { }, {
label: "执行结果", label: "执行结果",
prop: "executeResult", prop: "executeResult",
formatter: (cellValue) => { addHtml: "executeResult",
const obj = { // formatter: (cellValue) => {
1: "成功", // const obj = {
2: "失败", // 1: "成功",
}; // 2: "失败",
return obj[cellValue.executeResult]; // };
}, // return obj[cellValue.executeResult];
// },
}, { }, {
label: "描述", label: "描述",
prop: "errorMessage", prop: "errorMessage",
...@@ -90,6 +94,15 @@ export default { ...@@ -90,6 +94,15 @@ export default {
detailVisible: false, detailVisible: false,
detailInfo: {}, detailInfo: {},
}, },
baseData: {
executeResultOpt: [{
confId: 1,
confLabel: "成功",
}, {
confId: 2,
confLabel: "失败",
}],
},
}; };
}, },
...@@ -122,5 +135,25 @@ export default { ...@@ -122,5 +135,25 @@ export default {
}; };
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.fail {
display: inline-block;
width: 44px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 4px;
color: #ff4d4f;
background-color: #fff2f0;
}
.success {
display: inline-block;
width: 44px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 4px;
color: #52c41a;
background-color: #f6ffed;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!