|
@@ -46,10 +46,17 @@
|
|
<el-table-column label="操作" v-slot:default="{ row }" width="350px">
|
|
<el-table-column label="操作" v-slot:default="{ row }" width="350px">
|
|
<span
|
|
<span
|
|
class="oper-span"
|
|
class="oper-span"
|
|
|
|
+ @click="downOrigin(row)"
|
|
|
|
+ v-if="row.createStatus === ModelSceneStatus.SUCCESS && row.fileNewName"
|
|
|
|
+ >
|
|
|
|
+ 下载原始资源
|
|
|
|
+ </span>
|
|
|
|
+ <span
|
|
|
|
+ class="oper-span"
|
|
@click="downHash(row)"
|
|
@click="downHash(row)"
|
|
v-if="row.createStatus === ModelSceneStatus.SUCCESS"
|
|
v-if="row.createStatus === ModelSceneStatus.SUCCESS"
|
|
>
|
|
>
|
|
- 下载Hash
|
|
|
|
|
|
+ Hash
|
|
</span>
|
|
</span>
|
|
<span
|
|
<span
|
|
class="oper-span"
|
|
class="oper-span"
|
|
@@ -110,7 +117,6 @@ import {
|
|
ModelMaxSize,
|
|
ModelMaxSize,
|
|
ModelSceneStatusDesc,
|
|
ModelSceneStatusDesc,
|
|
ModelSupportFormats,
|
|
ModelSupportFormats,
|
|
- SceneTypePaths,
|
|
|
|
} from "@/constant/scene";
|
|
} from "@/constant/scene";
|
|
import { confirm } from "@/helper/message";
|
|
import { confirm } from "@/helper/message";
|
|
import { useUpload } from "@/hook/upload";
|
|
import { useUpload } from "@/hook/upload";
|
|
@@ -119,7 +125,7 @@ import { watchPolling } from "@/hook/watchPolling";
|
|
import { OpenType, openSceneUrl } from "../case/help";
|
|
import { OpenType, openSceneUrl } from "../case/help";
|
|
import { operateIsPermissionByPath } from "@/directive/permission";
|
|
import { operateIsPermissionByPath } from "@/directive/permission";
|
|
import { editModelScene } from "./quisk";
|
|
import { editModelScene } from "./quisk";
|
|
-import { downModelHash } from "@/request";
|
|
|
|
|
|
+import saveAs from "@/util/file-serve";
|
|
|
|
|
|
const props = defineProps<{ pagging: ScenePagging }>();
|
|
const props = defineProps<{ pagging: ScenePagging }>();
|
|
|
|
|
|
@@ -191,6 +197,10 @@ const refreshStatus = (models: ModelScene[]) => {
|
|
return Promise.all(refreshStatusAll);
|
|
return Promise.all(refreshStatusAll);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const downOrigin = async (model: ModelScene) => {
|
|
|
|
+ await saveAs(model.fileNewName, model.modelTitle + ".zip");
|
|
|
|
+};
|
|
|
|
+
|
|
watchPolling(() => {
|
|
watchPolling(() => {
|
|
const payload = (props.pagging.state.table.rows as ModelScene[]).filter(
|
|
const payload = (props.pagging.state.table.rows as ModelScene[]).filter(
|
|
(item) => item.createStatus === ModelSceneStatus.RUN
|
|
(item) => item.createStatus === ModelSceneStatus.RUN
|