fix
Showing
3 changed files
with
41 additions
and
7 deletions
| ... | @@ -328,6 +328,20 @@ onBeforeMount(() => { | ... | @@ -328,6 +328,20 @@ onBeforeMount(() => { |
| 328 | }); | 328 | }); |
| 329 | 329 | ||
| 330 | onActivated(() => { | 330 | onActivated(() => { |
| 331 | let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); | ||
| 332 | if (tab) { | ||
| 333 | if (route.query.detail) { | ||
| 334 | tab.meta.title = `新建规则(${route.query.planName})`; | ||
| 335 | if (fullPath === route.fullPath) { | ||
| 336 | document.title = tab.meta.title; | ||
| 337 | } | ||
| 338 | } else if (route.query.planName) { | ||
| 339 | tab.meta.title = `方案编辑-${route.query.planName}`; | ||
| 340 | if (fullPath === route.fullPath) { | ||
| 341 | document.title = tab.meta.title; | ||
| 342 | } | ||
| 343 | } | ||
| 344 | } | ||
| 331 | if (modelGuid.value || groupGuid.value) { | 345 | if (modelGuid.value || groupGuid.value) { |
| 332 | return; | 346 | return; |
| 333 | } | 347 | } |
| ... | @@ -1524,10 +1538,10 @@ const batchFiltersValueChange = (value) => { | ... | @@ -1524,10 +1538,10 @@ const batchFiltersValueChange = (value) => { |
| 1524 | destroy-on-close align-center> | 1538 | destroy-on-close align-center> |
| 1525 | <div style="height:450px"> | 1539 | <div style="height:450px"> |
| 1526 | <TreeTransfer :readOnly="isDetail" mode="transfer" :title="['可选表', '已选表']" :defaultProps="{ | 1540 | <TreeTransfer :readOnly="isDetail" mode="transfer" :title="['可选表', '已选表']" :defaultProps="{ |
| 1527 | label: 'name', | 1541 | label: 'name', |
| 1528 | value: 'guid', | 1542 | value: 'guid', |
| 1529 | isLeaf: 'isLeaf' | 1543 | isLeaf: 'isLeaf' |
| 1530 | }" :from-tree-data-loading="dsFromTreeDataLoading" :from_data="dsFromTreeData" :to_data="dsToTreeData" | 1544 | }" :from-tree-data-loading="dsFromTreeDataLoading" :from_data="dsFromTreeData" :to_data="dsToTreeData" |
| 1531 | checkOnClickNode :from_checked_all="false" node_key="guid" :transferOpenNode="true" width="100%" | 1545 | checkOnClickNode :from_checked_all="false" node_key="guid" :transferOpenNode="true" width="100%" |
| 1532 | @left-check-change="handleModelLeftCheckChange" lazy :lazyFn="loadNode" height="100%"> | 1546 | @left-check-change="handleModelLeftCheckChange" lazy :lazyFn="loadNode" height="100%"> |
| 1533 | <template v-slot:from> | 1547 | <template v-slot:from> |
| ... | @@ -1550,9 +1564,9 @@ const batchFiltersValueChange = (value) => { | ... | @@ -1550,9 +1564,9 @@ const batchFiltersValueChange = (value) => { |
| 1550 | :close-on-click-modal="false" destroy-on-close align-center> | 1564 | :close-on-click-modal="false" destroy-on-close align-center> |
| 1551 | <div style="height:450px"> | 1565 | <div style="height:450px"> |
| 1552 | <TreeTransferChecked class="one-level" mode="transfer" :title="['可选表', '已选表']" :defaultProps="{ | 1566 | <TreeTransferChecked class="one-level" mode="transfer" :title="['可选表', '已选表']" :defaultProps="{ |
| 1553 | label: 'name', | 1567 | label: 'name', |
| 1554 | value: 'guid' | 1568 | value: 'guid' |
| 1555 | }" :from-tree-data-loading="dsByGroupFromTreeDataLoading" :from_data="dsByGroupFromTreeData" checkOnClickNode | 1569 | }" :from-tree-data-loading="dsByGroupFromTreeDataLoading" :from_data="dsByGroupFromTreeData" checkOnClickNode |
| 1556 | :to_data="dsByGroupToTreeData" node_key="guid" :transferOpenNode="true" width="100%" | 1570 | :to_data="dsByGroupToTreeData" node_key="guid" :transferOpenNode="true" width="100%" |
| 1557 | :defaultCheckedKeys="dsByGroupToTreeData.map(d => d.guid)" :rootPidValue="''" | 1571 | :defaultCheckedKeys="dsByGroupToTreeData.map(d => d.guid)" :rootPidValue="''" |
| 1558 | @left-check-changed="handleModelByGroupLeftCheckedChange" height="100%"> | 1572 | @left-check-changed="handleModelByGroupLeftCheckedChange" height="100%"> | ... | ... |
| ... | @@ -262,6 +262,16 @@ onBeforeMount(() => { | ... | @@ -262,6 +262,16 @@ onBeforeMount(() => { |
| 262 | }) | 262 | }) |
| 263 | }) | 263 | }) |
| 264 | 264 | ||
| 265 | onActivated(() => { | ||
| 266 | let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); | ||
| 267 | if (tab && detailInfo.value?.ruleConfName) { | ||
| 268 | tab.meta.title = `编辑-${detailInfo.value.ruleConfName}(${detailInfo.value.subjectZhName})` | ||
| 269 | if (fullPath === route.fullPath) { | ||
| 270 | document.title = tab.meta.title; | ||
| 271 | } | ||
| 272 | } | ||
| 273 | }); | ||
| 274 | |||
| 265 | </script> | 275 | </script> |
| 266 | 276 | ||
| 267 | <template> | 277 | <template> | ... | ... |
| ... | @@ -269,6 +269,16 @@ onBeforeMount(() => { | ... | @@ -269,6 +269,16 @@ onBeforeMount(() => { |
| 269 | }) | 269 | }) |
| 270 | }) | 270 | }) |
| 271 | 271 | ||
| 272 | onActivated(() => { | ||
| 273 | let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); | ||
| 274 | if (tab && route.query.name) { | ||
| 275 | tab.meta.title = `新建规则(${route.query.name})`; | ||
| 276 | if (fullPath === route.fullPath) { | ||
| 277 | document.title = tab.meta.title; | ||
| 278 | } | ||
| 279 | } | ||
| 280 | }); | ||
| 281 | |||
| 272 | const cancel = () => { | 282 | const cancel = () => { |
| 273 | ElMessageBox.confirm( | 283 | ElMessageBox.confirm( |
| 274 | "当前页面尚未保存,确定放弃修改吗?", | 284 | "当前页面尚未保存,确定放弃修改吗?", | ... | ... |
-
Please register or sign in to post a comment