|
@@ -65,7 +65,14 @@
|
|
{{ node.label }}
|
|
{{ node.label }}
|
|
</span>
|
|
</span>
|
|
<span :class="{ disable: data.disable }" class="name">
|
|
<span :class="{ disable: data.disable }" class="name">
|
|
- {{ data.raw.name }}
|
|
|
|
|
|
+ <span
|
|
|
|
+ class="color"
|
|
|
|
+ :style="{
|
|
|
|
+ backgroundColor:
|
|
|
|
+ pointColorMap[data.raw.type || PointTypeEnum.other],
|
|
|
|
+ }"
|
|
|
|
+ ></span>
|
|
|
|
+ {{ data.raw.name }}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
@@ -115,9 +122,17 @@
|
|
type="primary"
|
|
type="primary"
|
|
:icon="Download"
|
|
:icon="Download"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
- @click="exportFile(getSelectPoints(), 2, relics?.name)"
|
|
|
|
|
|
+ @click="exportFile(getSelectPoints(), 2, relics?.name, 'V2')"
|
|
>
|
|
>
|
|
- 导出本体边界坐标
|
|
|
|
|
|
+ 导出本体边界坐标(V1.4模板)
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ :icon="Download"
|
|
|
|
+ style="width: 100%; margin-top: 20px; margin-left: 0"
|
|
|
|
+ @click="exportFile(getSelectPoints(), 2, relics?.name, 'V1')"
|
|
|
|
+ >
|
|
|
|
+ 导出本体边界坐标(V1.2模板)
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
@@ -127,20 +142,16 @@
|
|
@click="exportImage(getSelectPoints(), relics?.name)"
|
|
@click="exportImage(getSelectPoints(), relics?.name)"
|
|
>
|
|
>
|
|
下载全景图
|
|
下载全景图
|
|
- {{ inputPoint?.name }}
|
|
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<SingleInput
|
|
<SingleInput
|
|
- :key="inputPoint?.id"
|
|
|
|
|
|
+ v-if="inputPoint"
|
|
:visible="!!inputPoint"
|
|
:visible="!!inputPoint"
|
|
@update:visible="inputPoint = null"
|
|
@update:visible="inputPoint = null"
|
|
- :value="inputPoint?.name || ''"
|
|
|
|
|
|
+ :value="inputPoint"
|
|
:update-value="updatePointName"
|
|
:update-value="updatePointName"
|
|
- is-allow-empty
|
|
|
|
- title="测点说明"
|
|
|
|
- placeholder="请填写测点说明"
|
|
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -167,7 +178,7 @@ import {
|
|
scenePoints,
|
|
scenePoints,
|
|
} from "@/store/scene";
|
|
} from "@/store/scene";
|
|
import { relics } from "@/store/relics";
|
|
import { relics } from "@/store/relics";
|
|
-import SingleInput from "@/components/single-input.vue";
|
|
|
|
|
|
+import SingleInput from "@/components/point-input.vue";
|
|
import { selectScenes } from "../quisk";
|
|
import { selectScenes } from "../quisk";
|
|
import { addRelicsScenesFetch, delRelicsScenesFetch } from "@/request";
|
|
import { addRelicsScenesFetch, delRelicsScenesFetch } from "@/request";
|
|
import { exportFile, exportImage } from "./pc4Helper";
|
|
import { exportFile, exportImage } from "./pc4Helper";
|
|
@@ -181,25 +192,29 @@ import {
|
|
PolygonsPointAttrib,
|
|
PolygonsPointAttrib,
|
|
getWholeLineLinesByPointId,
|
|
getWholeLineLinesByPointId,
|
|
getWholeLinePoint,
|
|
getWholeLinePoint,
|
|
|
|
+ pointColorMap,
|
|
|
|
+ PointTypeEnum,
|
|
} from "drawing-board";
|
|
} from "drawing-board";
|
|
import { flyScene, gotoPointPage, mapManage } from "./install";
|
|
import { flyScene, gotoPointPage, mapManage } from "./install";
|
|
import { board } from "./install";
|
|
import { board } from "./install";
|
|
|
|
|
|
const inputPoint = ref<ScenePoint | null>(null);
|
|
const inputPoint = ref<ScenePoint | null>(null);
|
|
-const updatePointName = async (title: string) => {
|
|
|
|
|
|
+const updatePointName = async (scenePoint: ScenePoint) => {
|
|
const point = getWholeLinePoint(
|
|
const point = getWholeLinePoint(
|
|
boardData.value,
|
|
boardData.value,
|
|
inputPoint.value.id.toString()
|
|
inputPoint.value.id.toString()
|
|
) as PolygonsPointAttrib;
|
|
) as PolygonsPointAttrib;
|
|
|
|
+
|
|
await Promise.all([
|
|
await Promise.all([
|
|
boardDataChange(() => {
|
|
boardDataChange(() => {
|
|
if (point) {
|
|
if (point) {
|
|
- point.title = inputPoint.value.index
|
|
|
|
- ? inputPoint.value.index + "-" + title
|
|
|
|
- : title;
|
|
|
|
|
|
+ point.title = scenePoint.index
|
|
|
|
+ ? scenePoint.index + "-" + scenePoint.name
|
|
|
|
+ : scenePoint.name;
|
|
|
|
+ point.type = scenePoint.type;
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
- updateScenePointName(inputPoint.value!, title),
|
|
|
|
|
|
+ updateScenePointName(scenePoint),
|
|
]);
|
|
]);
|
|
};
|
|
};
|
|
|
|
|
|
@@ -382,6 +397,14 @@ onBeforeUnmount(() => {
|
|
text-overflow: ellipsis; //文本溢出显示省略号
|
|
text-overflow: ellipsis; //文本溢出显示省略号
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
white-space: nowrap; //文本不会换行
|
|
white-space: nowrap; //文本不会换行
|
|
|
|
+
|
|
|
|
+ .color {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ width: 8px;
|
|
|
|
+ height: 8px;
|
|
|
|
+ margin-right: 8px;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|