|
@@ -3,8 +3,8 @@
|
|
|
<h3>{{ fileDesc[type] }}</h3>
|
|
|
<div class="def-image-set">
|
|
|
<el-button type="primary" @click="emit('trackImage')" ghost>
|
|
|
- 设置{{ fileDesc[type] }}</el-button
|
|
|
- >
|
|
|
+ {{ route.name == 'drawShareFile'?'方位图': `设置${fileDesc[type]}` }}
|
|
|
+ </el-button>
|
|
|
<el-upload
|
|
|
:multiple="false"
|
|
|
:limit="1"
|
|
@@ -23,7 +23,7 @@
|
|
|
:class="{ dispable: cover.percentage }"
|
|
|
:style="{ width: '100%' }"
|
|
|
>
|
|
|
- {{ cover.percentage ? "文件上传中" : "上传" + fileDesc[type] }}
|
|
|
+ {{ cover.percentage ? "文件上传中" : route.name == 'drawShareFile'?'上传':("上传" + fileDesc[type]) }}
|
|
|
</el-button>
|
|
|
</el-upload>
|
|
|
</div>
|
|
@@ -87,6 +87,7 @@ import { coverImageSize } from "@/util/image-rotate";
|
|
|
import { uploadFile } from "@/store/system";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import { confirm } from "@/helper/message";
|
|
|
+import { router } from "@/router";
|
|
|
|
|
|
const props = defineProps<{
|
|
|
type: BoardType;
|
|
@@ -94,6 +95,8 @@ const props = defineProps<{
|
|
|
addShape: MetaShapeType | null;
|
|
|
}>();
|
|
|
|
|
|
+const route = router.currentRoute.value;
|
|
|
+
|
|
|
const fileDesc = {
|
|
|
[BoardType.scene]: "户型图",
|
|
|
[BoardType.map]: "方位图",
|