720e5ba4 by lihua

fix

1 parent 6b807be5
......@@ -328,6 +328,20 @@ onBeforeMount(() => {
});
onActivated(() => {
let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath);
if (tab) {
if (route.query.detail) {
tab.meta.title = `新建规则(${route.query.planName})`;
if (fullPath === route.fullPath) {
document.title = tab.meta.title;
}
} else if (route.query.planName) {
tab.meta.title = `方案编辑-${route.query.planName}`;
if (fullPath === route.fullPath) {
document.title = tab.meta.title;
}
}
}
if (modelGuid.value || groupGuid.value) {
return;
}
......@@ -1524,10 +1538,10 @@ const batchFiltersValueChange = (value) => {
destroy-on-close align-center>
<div style="height:450px">
<TreeTransfer :readOnly="isDetail" mode="transfer" :title="['可选表', '已选表']" :defaultProps="{
label: 'name',
value: 'guid',
isLeaf: 'isLeaf'
}" :from-tree-data-loading="dsFromTreeDataLoading" :from_data="dsFromTreeData" :to_data="dsToTreeData"
label: 'name',
value: 'guid',
isLeaf: 'isLeaf'
}" :from-tree-data-loading="dsFromTreeDataLoading" :from_data="dsFromTreeData" :to_data="dsToTreeData"
checkOnClickNode :from_checked_all="false" node_key="guid" :transferOpenNode="true" width="100%"
@left-check-change="handleModelLeftCheckChange" lazy :lazyFn="loadNode" height="100%">
<template v-slot:from>
......@@ -1550,9 +1564,9 @@ const batchFiltersValueChange = (value) => {
:close-on-click-modal="false" destroy-on-close align-center>
<div style="height:450px">
<TreeTransferChecked class="one-level" mode="transfer" :title="['可选表', '已选表']" :defaultProps="{
label: 'name',
value: 'guid'
}" :from-tree-data-loading="dsByGroupFromTreeDataLoading" :from_data="dsByGroupFromTreeData" checkOnClickNode
label: 'name',
value: 'guid'
}" :from-tree-data-loading="dsByGroupFromTreeDataLoading" :from_data="dsByGroupFromTreeData" checkOnClickNode
:to_data="dsByGroupToTreeData" node_key="guid" :transferOpenNode="true" width="100%"
:defaultCheckedKeys="dsByGroupToTreeData.map(d => d.guid)" :rootPidValue="''"
@left-check-changed="handleModelByGroupLeftCheckedChange" height="100%">
......
......@@ -262,6 +262,16 @@ onBeforeMount(() => {
})
})
onActivated(() => {
let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath);
if (tab && detailInfo.value?.ruleConfName) {
tab.meta.title = `编辑-${detailInfo.value.ruleConfName}(${detailInfo.value.subjectZhName})`
if (fullPath === route.fullPath) {
document.title = tab.meta.title;
}
}
});
</script>
<template>
......
......@@ -269,6 +269,16 @@ onBeforeMount(() => {
})
})
onActivated(() => {
let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath);
if (tab && route.query.name) {
tab.meta.title = `新建规则(${route.query.name})`;
if (fullPath === route.fullPath) {
document.title = tab.meta.title;
}
}
});
const cancel = () => {
ElMessageBox.confirm(
"当前页面尚未保存,确定放弃修改吗?",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!