|
|
@@ -5,6 +5,10 @@
|
|
|
:menu="[
|
|
|
{
|
|
|
type:'setting'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'跳转主图详情',
|
|
|
+ click:openPhotographyDetail
|
|
|
}
|
|
|
]"
|
|
|
/>
|
|
|
@@ -159,7 +163,8 @@ import icpList from '@/utils/ipc'
|
|
|
import client from "@/stores/modules/client";
|
|
|
import socket from "@/stores/modules/socket";
|
|
|
import { ElMessage ,ElMessageBox } from 'element-plus'
|
|
|
-import { getFilePath } from '@/utils/appfun'
|
|
|
+import { getFilePath,getRouterUrl } from '@/utils/appfun'
|
|
|
+import {useRouter} from "vue-router";
|
|
|
|
|
|
|
|
|
const loading = ref(false)
|
|
|
@@ -169,6 +174,7 @@ const takePictureLoading = ref(false)
|
|
|
|
|
|
const clientStore = client();
|
|
|
|
|
|
+const Router = useRouter()
|
|
|
const goodsList = ref([])
|
|
|
const goods_art_no_tpl = ref('')
|
|
|
const goods_art_no = ref('')
|
|
|
@@ -358,6 +364,30 @@ onBeforeUnmount(() => {
|
|
|
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+//打开主图详情
|
|
|
+function openPhotographyDetail() {
|
|
|
+
|
|
|
+ const { href } = Router.resolve({
|
|
|
+ name: 'PhotographyDetail',
|
|
|
+ query:{
|
|
|
+ goods_art_nos:goodsList.value.map(item=>item.goods_art_no),
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ clientStore.ipc.removeAllListeners(icpList.utils.openMain);
|
|
|
+ let params = {
|
|
|
+ title: '主图与详情生成',
|
|
|
+ width: 1000,
|
|
|
+ height: 630,
|
|
|
+ frame: true,
|
|
|
+ id: "PhotographyDetail",
|
|
|
+ url: getRouterUrl(href)
|
|
|
+ }
|
|
|
+ clientStore.ipc.send(icpList.utils.openMain, params);
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|