|
@@ -174,11 +174,47 @@ export default {
|
|
SUCCESS: "成功",
|
|
SUCCESS: "成功",
|
|
ERROR: "失败",
|
|
ERROR: "失败",
|
|
};
|
|
};
|
|
- if (params.row.result) {
|
|
|
|
- return h("span", obj[params.row.result]);
|
|
|
|
- } else {
|
|
|
|
- return h("span");
|
|
|
|
|
|
+ // if (params.row.result) {
|
|
|
|
+ // return h("span", obj[params.row.result]);
|
|
|
|
+ // } else {
|
|
|
|
+ // return h("span");
|
|
|
|
+ // }
|
|
|
|
+ const doms = [h("span", obj[params.row.result])];
|
|
|
|
+ if (!params.row.summary) {
|
|
|
|
+ return h("div", doms);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ doms.push(
|
|
|
|
+ h(
|
|
|
|
+ "Tooltip",
|
|
|
|
+ {
|
|
|
|
+ props: {
|
|
|
|
+ content: params.row.summary,
|
|
|
|
+ placement: "top",
|
|
|
|
+ maxWidth: 400,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ h(
|
|
|
|
+ "Icon",
|
|
|
|
+ {
|
|
|
|
+ props: {
|
|
|
|
+ size: "18",
|
|
|
|
+ type: "md-information-circle",
|
|
|
|
+ color: "#808080",
|
|
|
|
+ },
|
|
|
|
+ style: {
|
|
|
|
+ padding: "0 0 0 5px",
|
|
|
|
+ marginTop: "-3px",
|
|
|
|
+ cursor: "pointer",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ ""
|
|
|
|
+ ),
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ );
|
|
|
|
+ return h("div", doms);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|