|
|
@@ -61,15 +61,14 @@ const typeName = computed(() => {
|
|
|
const renameVisible = ref(false);
|
|
|
const renameTitle = ref("");
|
|
|
const isPreview = computed(() => route.query.preview as string || '');
|
|
|
-const fromRoute = computed(() => route.query.fromRoute as string || appId);
|
|
|
-// 标题:fire 使用 tmProject.projectName;criminal 使用 caseTitle
|
|
|
+const fromRoute = computed(() => route.query.fromRoute ? route.query.fromRoute == 'criminal' ? 'criminal' : 'fire' : appId);
|
|
|
+
|
|
|
const headerTitle = computed(() => {
|
|
|
const cr: any = props.currentRecord || {};
|
|
|
return fromRoute.value === 'fire' ? (cr?.tmProject?.projectName || '') : (cr?.caseTitle || '');
|
|
|
});
|
|
|
const openRenameDialog = () => {
|
|
|
renameVisible.value = true;
|
|
|
- console.log(props.currentRecord)
|
|
|
const cr: any = props.currentRecord || {};
|
|
|
renameTitle.value = fromRoute.value === 'fire' ? (cr?.tmProject?.projectName || '') : (cr?.caseTitle || '');
|
|
|
}
|