|
|
@@ -36,7 +36,7 @@
|
|
|
{{ QuoteSceneStatusDesc[row.status] }}
|
|
|
</el-table-column>
|
|
|
<el-table-column label="所属架构" prop="deptName"></el-table-column>
|
|
|
- <el-table-column label="操作" v-slot:default="{ row }: { row: QuoteScene }" width="340px">
|
|
|
+ <el-table-column label="操作" v-slot:default="{ row }: { row: QuoteScene }" width="370px">
|
|
|
<span class="oper-span" v-pdpath="['view']" @click="downHash(row)">
|
|
|
Hash
|
|
|
</span>
|
|
|
@@ -46,7 +46,14 @@
|
|
|
<span class="oper-span" v-pdpath="['edit']" @click="openSceneUrl(row, OpenType.edit)">
|
|
|
编辑
|
|
|
</span>
|
|
|
- <span class="oper-span" v-pdpath="['del']" v-if="pagging.state.query.searchType === '0'" @click="genMeshScene(row)">
|
|
|
+ <span v-if=" [SceneType.SWSS, SceneType.SWYDSS].includes(row.type) && [QuoteSceneStatus.SUCCESS].includes(row.status) && row.location === LocationEnum.Scene_Location_PointCloud"
|
|
|
+ v-pdpath="['gen']"
|
|
|
+ class="oper-span"
|
|
|
+ @click="genMeshScene(row)"
|
|
|
+ >
|
|
|
+ 生成obj
|
|
|
+ </span>
|
|
|
+ <span class="oper-span" v-pdpath="['del']" v-if="pagging.state.query.searchType === '0'" @click="openSceneShareDialog(row)">
|
|
|
权限
|
|
|
</span>
|
|
|
<span class="oper-span" v-pdpath="['view']" @click="sceneDownloadHandler(row)">
|
|
|
@@ -68,6 +75,7 @@ import {
|
|
|
LocationEnum,
|
|
|
copyQuoteScene,
|
|
|
downQuoteSceneHash,
|
|
|
+ genMeshScene,
|
|
|
} from "@/store/scene";
|
|
|
import { ScenePagging } from "./pagging";
|
|
|
import { QuoteSceneStatusDesc } from "@/constant/scene";
|
|
|
@@ -97,7 +105,7 @@ const sceneDownloadHandler = (scene: QuoteScene) => {
|
|
|
};
|
|
|
|
|
|
// 权限弹窗:与 mesh 列表一致,传入 num 与 isObj
|
|
|
-const genMeshScene = async (scene: QuoteScene) => {
|
|
|
+const openSceneShareDialog = async (scene: QuoteScene) => {
|
|
|
const isObj = (scene as any).isObj ?? Number(![SceneType.SWSS, SceneType.SWYDSS].includes(scene.type as any));
|
|
|
await openSceneShare({ num: scene.num, isObj });
|
|
|
};
|