This commit is contained in:
Qiuxia Fan 2022-03-18 15:40:55 +08:00
parent 475f235435
commit ea81614aaf
2 changed files with 6 additions and 2 deletions

View File

@ -155,8 +155,12 @@ function visitLayout(row: { id: string }) {
d.layer === layer.value && d.entity === EntityType[0].value && d.isRoot
)[0] || {};
dashboardStore.setCurrentDashboard(l);
if (!l.name) {
ElMessage.info("Please set a root dashboard");
return;
}
router.push(
`/dashboard/${layer.value}/${EntityType[0].value}/${row.id}/${(l.name || "")
`/dashboard/${layer.value}/${EntityType[0].value}/${row.id}/${l.name
.split(" ")
.join("-")}`
);

View File

@ -43,7 +43,7 @@ limitations under the License. -->
:default-sort="{ prop: 'name' }"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="35" />
<el-table-column type="selection" width="55" />
<el-table-column prop="name" label="Name" />
<el-table-column prop="layer" label="Layer" width="200" />
<el-table-column prop="entity" label="Entity" width="200" />