diff --git a/public/ico/noPen.ico b/public/ico/noPen.ico index 8c990095..c3a90091 100644 Binary files a/public/ico/noPen.ico and b/public/ico/noPen.ico differ diff --git a/src/font/demo_index.html b/src/font/demo_index.html index dc9058a1..7cdb7e3a 100644 --- a/src/font/demo_index.html +++ b/src/font/demo_index.html @@ -3510,9 +3510,9 @@
@font-face {
   font-family: 'iconfont';
-  src: url('iconfont.woff2?t=1697433388124') format('woff2'),
-       url('iconfont.woff?t=1697433388124') format('woff'),
-       url('iconfont.ttf?t=1697433388124') format('truetype');
+  src: url('iconfont.woff2?t=1698731786246') format('woff2'),
+       url('iconfont.woff?t=1698731786246') format('woff'),
+       url('iconfont.ttf?t=1698731786246') format('truetype');
 }
 

第二步:定义使用 iconfont 的样式

diff --git a/src/font/iconfont.css b/src/font/iconfont.css index a05937a5..34b432dd 100644 --- a/src/font/iconfont.css +++ b/src/font/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 3121635 */ - src: url('iconfont.woff2?t=1697433388124') format('woff2'), - url('iconfont.woff?t=1697433388124') format('woff'), - url('iconfont.ttf?t=1697433388124') format('truetype'); + src: url('iconfont.woff2?t=1698731786246') format('woff2'), + url('iconfont.woff?t=1698731786246') format('woff'), + url('iconfont.ttf?t=1698731786246') format('truetype'); } .iconfont { diff --git a/src/font/iconfont.ttf b/src/font/iconfont.ttf index cf66247f..f5518681 100644 Binary files a/src/font/iconfont.ttf and b/src/font/iconfont.ttf differ diff --git a/src/font/iconfont.woff b/src/font/iconfont.woff index e4145aa6..9cf8f2e5 100644 Binary files a/src/font/iconfont.woff and b/src/font/iconfont.woff differ diff --git a/src/font/iconfont.woff2 b/src/font/iconfont.woff2 index 0de8f0c5..ec760c45 100644 Binary files a/src/font/iconfont.woff2 and b/src/font/iconfont.woff2 differ diff --git a/src/router/index.js b/src/router/index.js index edbda487..2471de88 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -186,15 +186,13 @@ const constantRoutes = [ { path: 'data-particulars', name: 'DataParticulars', - meta: { keepAlive: true }, - meta: { showPublish: false, showPreview: false, showShare: true, showDownload: true }, + meta: { keepAlive: true, showPublish: false, showPreview: false, showShare: true, showDownload: true }, component: () => import(/* webpackChunkName: "analyse" */ '@/views/DataAnalyse/particulars/list') }, { path: 'test-particulars', name: 'TestParticulars', - meta: { keepAlive: true }, - meta: { showPublish: false, showPreview: false, showShare: true, showDownload: true }, + meta: { keepAlive: true, showPublish: false, showPreview: false, showShare: true, showDownload: true }, component: () => import(/* webpackChunkName: "analyse" */ '@/views/DataAnalyse/particulars/test') }, { diff --git a/src/views/Answer/components/AnswerPc.vue b/src/views/Answer/components/AnswerPc.vue index 50e7f1fd..efa9b5c7 100644 --- a/src/views/Answer/components/AnswerPc.vue +++ b/src/views/Answer/components/AnswerPc.vue @@ -22,13 +22,13 @@ +
-
diff --git a/src/views/Creative/3d/crossyo/shelves-vue-demo/view/AddWareWithSeparateTextureDemo.vue b/src/views/Creative/3d/crossyo/shelves-vue-demo/view/AddWareWithSeparateTextureDemo.vue index 9219a081..1c1abd4c 100644 --- a/src/views/Creative/3d/crossyo/shelves-vue-demo/view/AddWareWithSeparateTextureDemo.vue +++ b/src/views/Creative/3d/crossyo/shelves-vue-demo/view/AddWareWithSeparateTextureDemo.vue @@ -1,271 +1,300 @@ - - - - - - - + + + + + + + diff --git a/src/views/Creative/3d/crossyo/shelves-vue/components/SceneSeparateTexturePreviewer.vue b/src/views/Creative/3d/crossyo/shelves-vue/components/SceneSeparateTexturePreviewer.vue index 71f33563..01cd8613 100644 --- a/src/views/Creative/3d/crossyo/shelves-vue/components/SceneSeparateTexturePreviewer.vue +++ b/src/views/Creative/3d/crossyo/shelves-vue/components/SceneSeparateTexturePreviewer.vue @@ -1,125 +1,125 @@ - - - - - + + + + + diff --git a/src/views/Creative/3d/crossyo/shelves-vue/components/editor/Toolbar.vue b/src/views/Creative/3d/crossyo/shelves-vue/components/editor/Toolbar.vue index 6d360532..6889844f 100644 --- a/src/views/Creative/3d/crossyo/shelves-vue/components/editor/Toolbar.vue +++ b/src/views/Creative/3d/crossyo/shelves-vue/components/editor/Toolbar.vue @@ -1,109 +1,125 @@ - - - - - + + + + + diff --git a/src/views/Creative/Model3DPreview.vue b/src/views/Creative/Model3DPreview.vue index 39c2f418..9daa8449 100644 --- a/src/views/Creative/Model3DPreview.vue +++ b/src/views/Creative/Model3DPreview.vue @@ -11,22 +11,41 @@ import SceneSeparateTexturePreviewer from "./3d/crossyo/shelves-vue/components/SceneSeparateTexturePreviewer.vue"; import { ref } from "@vue/reactivity"; -import { getMaterialsById } from "./api"; +import {downloadRes, getMaterialsById} from "./api"; import { useRoute } from "vue-router"; import { regDelTinymceCreativeIframe } from "./utils/iframeEvent"; -import { onMounted } from "vue"; +import { onMounted,defineProps } from "vue"; +import common from "@/api/common"; + +const props = defineProps({ + id: { + type: Number, + default: undefined, + }, + +}) const route = useRoute(); const selCommodity = ref(null); const selTexture = ref(null); +const viewer = ref(); + onMounted(() => { regDelTinymceCreativeIframe(); + + // 在第二层组件的mounted钩子中,将第三层组件的ref方法赋值给第二层组件的ref + // this.$refs.viewer.snapshot = this.$refs.thirdComponentRef.snapshot; }); const onLoadingCompletion = async () => { - const res = await getMaterialsById(route.query.id); + let id = route.query.id; + if (!id) + { + id = props.id; + } + const res = await getMaterialsById(id); const data = JSON.parse(res.data.materials[0].space_json); selCommodity.value = data.commodity; @@ -35,7 +54,12 @@ const onLoadingCompletion = async () => { }, 200); } + +//将数据暴漏出去给父组件用 +defineExpose({ + viewer +}) \ No newline at end of file + diff --git a/src/views/Creative/Ring360Preview.vue b/src/views/Creative/Ring360Preview.vue index 79035838..890966ab 100644 --- a/src/views/Creative/Ring360Preview.vue +++ b/src/views/Creative/Ring360Preview.vue @@ -37,7 +37,7 @@ export default { async mounted() { regDelTinymceCreativeIframe(); - + const res = await getMaterialsById(this.$route.query.id); try{ const data = JSON.parse(res.data.materials[0].space_json); @@ -99,4 +99,4 @@ export default { top: 50%; transform: translate(-50%, -50%); } - \ No newline at end of file + diff --git a/src/views/Creative/components/PreviewerCreation/Model3DPreviewer.vue b/src/views/Creative/components/PreviewerCreation/Model3DPreviewer.vue index a8928144..1fb6901e 100644 --- a/src/views/Creative/components/PreviewerCreation/Model3DPreviewer.vue +++ b/src/views/Creative/components/PreviewerCreation/Model3DPreviewer.vue @@ -1,24 +1,65 @@ \ No newline at end of file + diff --git a/src/views/Creative/components/PreviewerCreation/ScenePreviewer.vue b/src/views/Creative/components/PreviewerCreation/ScenePreviewer.vue index 904bb084..9ce1b795 100644 --- a/src/views/Creative/components/PreviewerCreation/ScenePreviewer.vue +++ b/src/views/Creative/components/PreviewerCreation/ScenePreviewer.vue @@ -1,72 +1,76 @@ - - - - - \ No newline at end of file + + + + + diff --git a/src/views/DataAnalyse/components/CustomTableHeaderCell.vue b/src/views/DataAnalyse/components/CustomTableHeaderCell.vue index 513e6cfb..4c2a2510 100644 --- a/src/views/DataAnalyse/components/CustomTableHeaderCell.vue +++ b/src/views/DataAnalyse/components/CustomTableHeaderCell.vue @@ -9,7 +9,12 @@
{{ content }}
- 下载全部附件 + +
@@ -49,11 +54,12 @@ const question_type = ref(null) // https://stackoverflow.com/questions/15458876/check-if-a-string-is-html-or-not const includeHtmlTag = computed(() =>/<\/?[a-z][\s\S]*>/i.test(content.value)) const shortTitle = computed(() => content.value ? content.value.slice(0, 40) : '') - +const searchParams = ref({}); function download() { const params = JSON.parse(JSON.stringify(props.search_params)) const query = convertQueryToString(params) - + // console.log("serpar",params); + searchParams.value = params; // downloadAnswerFile(props.sn, question_index.value, query).then(res => { // // const url = res.data.url // // downloadFile(url) @@ -72,7 +78,7 @@ const route = useRoute(); const downloadVisible = ref(false); // 下载中心 function downloadCenter() { - let data ={ download_type: '3', question_index:question_index.value } + let data ={ download_type: '3', question_index:question_index.value, ...searchParams.value } addDownloadCenter(props.sn,data).then(res=>{ store.dispatch('downloadCenter/changeCenterUrl',route.path) // downloadVisible.value = true @@ -110,7 +116,7 @@ watchEffect(() => { display: flex; align-items: center; .label { - width: 50%; + width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; diff --git a/src/views/DataAnalyse/components/DataTable.vue b/src/views/DataAnalyse/components/DataTable.vue index a2988e66..42e398c2 100644 --- a/src/views/DataAnalyse/components/DataTable.vue +++ b/src/views/DataAnalyse/components/DataTable.vue @@ -32,14 +32,13 @@ \ No newline at end of file + diff --git a/src/views/DataAnalyse/composables/useCustomHeaderTitle.js b/src/views/DataAnalyse/composables/useCustomHeaderTitle.js index 71f678a2..e065fc7c 100644 --- a/src/views/DataAnalyse/composables/useCustomHeaderTitle.js +++ b/src/views/DataAnalyse/composables/useCustomHeaderTitle.js @@ -1,7 +1,7 @@ import { ref, watch } from "vue"; import CustomTableHeaderCell from '@/views/DataAnalyse/components/CustomTableHeaderCell' export default function renderCustomHeader(columns, sn ,search_params) { - + const customHeaders = ref([]) function renderCell(data, sn, search_params) { @@ -12,12 +12,25 @@ export default function renderCustomHeader(columns, sn ,search_params) { customHeaders.value = data.map(item => { return { ...item, - title: renderCell(item, sn, search_params) + title: renderCell(item, sn, search_params.value) } }) } }, { immediate: true }) - return { customHeaders } + watch(search_params, (data) => { + + if(columns) { + customHeaders.value = columns.value.map(item => { + return { + ...item, + title: renderCell(item, sn, data) + } + }) + } + }, { + deep:true + }) + return {customHeaders} } diff --git a/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue b/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue index ee16c39f..eee2921a 100644 --- a/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue +++ b/src/views/DataAnalyse/diagram/components/DiagramTableFile.vue @@ -84,7 +84,7 @@ export default defineComponent({ const permission = inject("permission"); const searchParams = inject("searchParams"); - + console.log('searchParams',searchParams); const tableSource = ref([]); const columns = ref([ @@ -138,7 +138,12 @@ export default defineComponent({ async function handleClick() { const sn = props.sn; const question_index = props.data.question_index; - let data ={ download_type: '3', question_index } + const tableSearchInfo = searchParams.value; + delete tableSearchInfo.type;//文件下载没有type类型,去掉 + console.log(tableSearchInfo); + + let data ={ download_type: '3', question_index,...tableSearchInfo } + addDownloadCenter(sn,data).then(res=>{ store.dispatch('downloadCenter/changeCenterUrl',route.path) store.dispatch('downloadCenter/changeCenterShow',true) diff --git a/src/views/DataAnalyse/particulars/list.vue b/src/views/DataAnalyse/particulars/list.vue index 2f2eb556..111cdd7c 100644 --- a/src/views/DataAnalyse/particulars/list.vue +++ b/src/views/DataAnalyse/particulars/list.vue @@ -17,7 +17,7 @@
--> - + { return { ...queryState.value, page: page.value, - per_page: per_page.value + per_page: per_page.value, + ...subInfo.value } }) diff --git a/src/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewerPreview.vue b/src/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewerPreview.vue index 774fa101..ec574bbe 100644 --- a/src/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewerPreview.vue +++ b/src/views/planetDesign/Design/components/config/Viewer3D/SceneSurveyViewerPreview.vue @@ -23,12 +23,12 @@ export default { methods: { tryInitView() { if (!this.viewer_) { - + this.viewer_ = new SurveyViewer({ container: this.$el, surveyId: this.surveyId, shopData: this.shopData, - + prefixAsset: '/shelves-v5-asset', // v5, #20230104 }); this.viewer_.on("loadingCompletion", () => { @@ -48,19 +48,27 @@ export default { } return this.viewer_; }, + + snapshot() { + if (this.viewer_) { + return this.viewer_.snapshot() + } else { + return null + } + }, }, watch: { page(newVal, oldVal) { // console.log('page ........', newVal, oldVal) if (this.viewer_) { - + this.viewer_.flyAnimation = !(this.defaultWare?.planetid && this.isLocked); this.viewer_.frostFarScene = this.isLocked; - + this.viewer_.arrange(newVal).then(() => { this.$emit("onPageCompletion"); - + if(!this.defaultWare) return; // #20221018 @@ -72,7 +80,7 @@ export default { }); } }, - + page_shelves(newVal, oldVal) { console.log('page ........', newVal, oldVal) if (this.viewer_) { @@ -80,7 +88,7 @@ export default { this.$emit("onPageCompletion") if(!this.defaultWare) return; - + // #20221018 this.viewer_.hold({ wareId: this.defaultWare?.planetid, @@ -118,4 +126,4 @@ div.container-viewer-1-:focus { div.container-viewer-1- >>> canvas:focus { outline: none; } - \ No newline at end of file + diff --git a/src/views/planetDesign/Logical/fragment/RandomList.vue b/src/views/planetDesign/Logical/fragment/RandomList.vue index e80cb844..9bbfab01 100644 --- a/src/views/planetDesign/Logical/fragment/RandomList.vue +++ b/src/views/planetDesign/Logical/fragment/RandomList.vue @@ -534,4 +534,4 @@ export default { .right-10 { margin-right: 10px; } - \ No newline at end of file + diff --git a/src/views/planetDesign/Logical/fragment/RandomListV2.vue b/src/views/planetDesign/Logical/fragment/RandomListV2.vue index 256f7503..0084012a 100644 --- a/src/views/planetDesign/Logical/fragment/RandomListV2.vue +++ b/src/views/planetDesign/Logical/fragment/RandomListV2.vue @@ -1,7 +1,7 @@