{{ t("Canvas.angle") }}
{
+ let index = sketchWH.value[0] > sketchWH.value[1]?0:1;
+ return sketchWH.value[index] / printWH.value[index] * scale.value / 5;
+ });
+ const printWH = ref([0,0])
+ const sketchWH = ref([0,0])
+ const mask = ref(false)
const offset = ref([0,0])
const sketchSize:any = async ()=>{
let img = new Image();
@@ -102,10 +108,27 @@
});
return size
}
+ const printSize:any = async ()=>{
+ let img = new Image();
+ let size = [0,0];
+ img.src = props.sketchPath;
+ console.log(props.sketchPath)
+ await new Promise((resolve, reject) => {
+ img.onload = () => {
+ size = [img.width, img.height]
+ resolve([img.width, img.height]);
+ }
+ img.onerror = reject;
+ });
+ return size
+ }
watch (() => props.object.path || props.object.location, async () => {
- let size = await sketchSize();
- offset.value[0] = props.object.location[0] / size[0] * 100;
- offset.value[1] = props.object.location[1] / size[1] * 100;
+ mask.value = true
+ sketchWH.value = await sketchSize();
+ printWH.value = await printSize();
+ offset.value[0] = props.object.location[0] / sketchWH.value[0] * 100;
+ offset.value[1] = props.object.location[1] / sketchWH.value[1] * 100;
+ mask.value = false
},{immediate: true})
const gapX = computed(() => props.object.object?.gapX || 0);
const gapY = computed(() => props.object.object?.gapY || 0);
@@ -121,7 +144,6 @@
]);
const inputFillScale = (e) => {
const scale = e / 100;
- console.log(scale.toFixed(2))
emit("inputFillScale", scale.toFixed(2));
};
const inputOffset = async (e:any)=>{
@@ -133,6 +155,7 @@
.repeat-setting {
user-select: none;
width: 228px;
+ overflow: hidden;
> .title {
line-height: 35px;
font-size: 14px;
diff --git a/src/component/Detail/model/modelNav.vue b/src/component/Detail/model/modelNav.vue
index 3b3033d2..0e89a132 100644
--- a/src/component/Detail/model/modelNav.vue
+++ b/src/component/Detail/model/modelNav.vue
@@ -9,7 +9,7 @@
@click="selectDetailItem(item,index)">
-
+
{{ getTypeLang(item.type) }}
@@ -41,6 +41,7 @@ export default defineComponent({
const store = useStore();
const {t} = useI18n()
const detailData = reactive({
+ probjects:computed(()=>store.state.Workspace.probjects),
selectDetail:computed(()=>store.state.DesignDetail.selectDetail),
frontBack_:computed(()=>store.state.DesignDetail.frontBack),
designDetail:computed(()=>store.state.DesignDetail.designDetail),
diff --git a/src/component/Detail/model/modelPosition copy.vue b/src/component/Detail/model/modelPosition copy.vue
new file mode 100644
index 00000000..f7524167
--- /dev/null
+++ b/src/component/Detail/model/modelPosition copy.vue
@@ -0,0 +1,705 @@
+
+
+
+
+
+
![]()
+
+
+
![]()
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/Detail/model/modelPosition.vue b/src/component/Detail/model/modelPosition.vue
index 52869e50..8ba34db3 100644
--- a/src/component/Detail/model/modelPosition.vue
+++ b/src/component/Detail/model/modelPosition.vue
@@ -27,8 +27,9 @@
![]()
+ style="object-fit: cover;"
+ :style="observerWH.width > 0?{width:observerWH.width+'px',height:observerWH.height+'px'}:{width:'100%',height:'auto','object-fit': 'contain'}"
+ :src="designDetail.designItemUrl" alt="">
diff --git a/src/component/HomePage/ColorboardUpload.vue b/src/component/HomePage/ColorboardUpload.vue
index bcc1614a..314df251 100644
--- a/src/component/HomePage/ColorboardUpload.vue
+++ b/src/component/HomePage/ColorboardUpload.vue
@@ -271,7 +271,7 @@ export default defineComponent({
},
selectColor:{
handler(newVal,oldVal){
- if(typeof newVal?.rgba?.r !== 'number' && typeof newVal?.rgba?.r !== 'string'){
+ if(newVal?.rgba?.r == null){
this.colorList[this.selectIndex] = {}
return
}
@@ -388,7 +388,7 @@ export default defineComponent({
//选择不同的色块
selectColorItem(index,color){
let hex
- if(color?.rgba?.r){
+ if(color?.rgba?.r != null){
hex = this.rgbaToHex([color.rgba.r,color.rgba.g,color.rgba.b,color.rgba.a?color.rgba.a:1])
}else{
hex = '#FFFFFF'
@@ -402,7 +402,7 @@ export default defineComponent({
if(this.driver__.driver){
driverObj__.moveNext()
}
- if(color?.rgba?.r){
+ if(color?.rgba?.r != null){
this.selectColor = color
this.selectColor.hex = hex
}
diff --git a/src/component/home/design/collection/ColorboardUpload.vue b/src/component/home/design/collection/ColorboardUpload.vue
index b42d6c2c..780e3228 100644
--- a/src/component/home/design/collection/ColorboardUpload.vue
+++ b/src/component/home/design/collection/ColorboardUpload.vue
@@ -283,7 +283,7 @@ export default defineComponent({
},
selectColor:{
handler(newVal,oldVal){
- if(typeof newVal?.rgba?.r !== 'number' && typeof newVal?.rgba?.r !== 'string'){
+ if(newVal?.rgba?.r == null){
this.colorList[this.selectIndex] = {}
return
}
@@ -400,7 +400,7 @@ export default defineComponent({
//选择不同的色块
selectColorItem(index,color){
let hex
- if(color?.rgba?.r){
+ if(color?.rgba?.r != null){
hex = this.rgbaToHex([color.rgba.r,color.rgba.g,color.rgba.b,color.rgba.a?color.rgba.a:1])
}else{
hex = '#FFFFFF'
@@ -414,7 +414,7 @@ export default defineComponent({
if(this.driver__.driver){
driverObj__.moveNext()
}
- if(color?.rgba?.r){
+ if(color?.rgba?.r != null){
this.selectColor = color
this.selectColor.hex = hex
}
diff --git a/src/lang/en.ts b/src/lang/en.ts
index 1794a793..ae823e1e 100644
--- a/src/lang/en.ts
+++ b/src/lang/en.ts
@@ -1184,7 +1184,7 @@ export default {
CanvasTitle: {
ModifySketch: 'Modify Sketch',
ModifyItem: 'Modify Item',
- RedGreen: 'Front and back section',
+ RedGreen: 'Edit Front and Back Section',
},
Canvas: {
Canvas: 'Canvas',
diff --git a/src/router/index.ts b/src/router/index.ts
index 7daf5d8c..b264f4f2 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -532,7 +532,7 @@ function isTimeRangePassed(timeRange) {
router.beforeEach((to: any, from, next) => {
store.commit("set_view_loading", true);
//系统维护时间
- const time = '2025-12-19T21:00:00 - 2025-12-19T22:00:00';
+ const time = '2026-01-23T21:00:00 - 2026-01-23T22:00:00';
if (isTimeRangePassed(time) == 'in_progress') {
// 系统维护
const toName = to.name === 'upgrade';
diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue
index 834e2e0c..b26e5803 100644
--- a/src/views/HomeMain.vue
+++ b/src/views/HomeMain.vue
@@ -615,10 +615,10 @@ export default defineComponent({
homeMainData.openTypeChild = ''
homeMainData.openType = ''
}
- if ((query?.id || query?.history) && !(await getIdExistToHistory())) {
- router.push('/home')
- return
- }
+ // if ((query?.id || query?.history) && !(await getIdExistToHistory())) {
+ // router.push('/home')
+ // return
+ // }
} else {
homeMainData.openType = ''
homeMainData.openTypeChild = ''
diff --git a/src/views/Upgrade.vue b/src/views/Upgrade.vue
index a32762e0..14527a10 100644
--- a/src/views/Upgrade.vue
+++ b/src/views/Upgrade.vue
@@ -11,12 +11,18 @@
-
Due to system server upgrades, maintenance will be carried out from 21:00 to 22:00 on December 19.
The AiDA system will be temporarily unavailable during this period. We sincerely apologize for any inconvenience caused and thank you for your understanding.
+
+ Due to system server upgrades, maintenance will be carried out from 21:00 to 22:00 on January 19, 2026 (today).
+
+ The AiDA system will be temporarily unavailable during this period. We sincerely apologize for any inconvenience caused and thank you for your understanding.
-
由于系统服务器升级,我们将于12月19日21:00 至12月19日22:00进行升级。
在此期间,AiDA系统将暂时无法访问。给您带来的不便,我们深表歉意,并感谢您的理解
+
+ 由于系统服务器升级,我们将于1月23日21:00 至1月23日22:00进行升级。
+
+ 在此期间,AiDA系统将暂时无法访问。给您带来的不便,我们深表歉意,并感谢您的理解