This commit is contained in:
xuyucheng 2022-02-22 16:41:05 +08:00
parent fcf8dea72f
commit 23b82eb8c8
3 changed files with 37 additions and 18 deletions

View File

@ -150,8 +150,15 @@ class Dashboard extends Component {
callback(e, value) {
if (e === "详 情") {
const newPanes = [...this.props.panes]
const state = newPanes.every(item => {
return item.title === value["企业名称"] + '(' + value["企业ID"] + ')' ? false : true
})
if (state) {
newPanes.push({ title: value["企业名称"] + '(' + value["企业ID"] + ')', content: "/manager/company/details", key: (Number(newPanes[newPanes.length - 1].key) + 1).toString() });
store.dispatch(operationAction(newPanes, (newPanes[newPanes.length - 1].key)))
} else {
return null
}
}
}

View File

@ -41,10 +41,15 @@ class ManageCompany extends Component {
}
callback(e, value) {
if (e === "详 情") {
const newPanes = [...this.props.panes]
const state = newPanes.every(item => {
return item.title === value["企业名称"] + '(' + value["企业ID"] + ')' ? false : true
})
if (state) {
newPanes.push({ title: value["企业名称"] + '(' + value["企业ID"] + ')', content: "/manager/company/details", key: (Number(newPanes[newPanes.length - 1].key) + 1).toString() });
store.dispatch(operationAction(newPanes, (newPanes[newPanes.length - 1].key)))
} else {
return null
}
}

View File

@ -69,8 +69,15 @@ class ManageRate extends Component {
if (!this.isJump) {
if (e === "详 情") {
const newPanes = [...this.props.panes]
const state = newPanes.every(item => {
return item.title === value["评价项目"] + '(' + value["评价ID"] + ')' ? false : true
})
if (state) {
newPanes.push({ title: value["评价项目"] + '(' + value["评价ID"] + ')', content: "/manage/rate/details", key: (Number(newPanes[newPanes.length - 1].key) + 1).toString() });
store.dispatch(operationAction(newPanes, newPanes[newPanes.length - 1].key))
store.dispatch(operationAction(newPanes, (newPanes[newPanes.length - 1].key)))
} else {
return null
}
}
}
this.isJump = false