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 @@
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 @@
-->
-