|
@@ -12,9 +12,13 @@ export default {
|
|
|
type: String,
|
|
type: String,
|
|
|
default: "",
|
|
default: "",
|
|
|
},
|
|
},
|
|
|
|
|
+ path: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: "",
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
render(h, context) {
|
|
render(h, context) {
|
|
|
- const { icon, title } = context.props;
|
|
|
|
|
|
|
+ const { icon, title, path } = context.props;
|
|
|
const vnodes = [];
|
|
const vnodes = [];
|
|
|
|
|
|
|
|
if (icon) {
|
|
if (icon) {
|
|
@@ -62,27 +66,27 @@ export default {
|
|
|
) : (
|
|
) : (
|
|
|
""
|
|
""
|
|
|
)}
|
|
)}
|
|
|
- {icon === "select" && title === "项目机会" && investOppNum ? (
|
|
|
|
|
|
|
+ {icon === "#" && path.includes("/myTask") && title === "项目机会" && investOppNum ? (
|
|
|
<span class="hint">{investOppNum}</span>
|
|
<span class="hint">{investOppNum}</span>
|
|
|
) : (
|
|
) : (
|
|
|
""
|
|
""
|
|
|
)}
|
|
)}
|
|
|
- {icon === "select" && title === "项目立项" && approvalNum ? (
|
|
|
|
|
|
|
+ {icon === "#" && path.includes("/myTask") && title === "项目立项" && approvalNum ? (
|
|
|
<span class="hint">{approvalNum}</span>
|
|
<span class="hint">{approvalNum}</span>
|
|
|
) : (
|
|
) : (
|
|
|
""
|
|
""
|
|
|
)}
|
|
)}
|
|
|
- {icon === "select" && title === "项目背调" && investigateNum ? (
|
|
|
|
|
|
|
+ {icon === "#" && path.includes("/myTask") && title === "项目背调" && investigateNum ? (
|
|
|
<span class="hint">{investigateNum}</span>
|
|
<span class="hint">{investigateNum}</span>
|
|
|
) : (
|
|
) : (
|
|
|
""
|
|
""
|
|
|
)}
|
|
)}
|
|
|
- {icon === "select" && title === "项目投决" && decisionNum ? (
|
|
|
|
|
|
|
+ {icon === "#"&& path.includes("/myTask") && title === "项目投决" && decisionNum ? (
|
|
|
<span class="hint">{decisionNum}</span>
|
|
<span class="hint">{decisionNum}</span>
|
|
|
) : (
|
|
) : (
|
|
|
""
|
|
""
|
|
|
)}
|
|
)}
|
|
|
- {icon === "select" && title === "项目终止" && terminationNum ? (
|
|
|
|
|
|
|
+ {icon === "#" && path.includes("/myTask") && title === "项目终止" && terminationNum ? (
|
|
|
<span class="hint">{terminationNum}</span>
|
|
<span class="hint">{terminationNum}</span>
|
|
|
) : (
|
|
) : (
|
|
|
""
|
|
""
|