Compare commits
2 Commits
fca04ba44b
...
9db6a589f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9db6a589f0 | ||
|
|
896490e57b |
@@ -248,7 +248,7 @@ export default defineComponent({
|
|||||||
const addPrintELement = async (data:any)=>{
|
const addPrintELement = async (data:any)=>{
|
||||||
if(!editPrintElementData.isSketchLoad)return
|
if(!editPrintElementData.isSketchLoad)return
|
||||||
let {scale,location} = await setScaleLocation(data)
|
let {scale,location} = await setScaleLocation(data)
|
||||||
let printIndex = 0
|
let printIndex = 1
|
||||||
let allElementPrint = []
|
let allElementPrint = []
|
||||||
if(props.type == 'print'){
|
if(props.type == 'print'){
|
||||||
allElementPrint = [
|
allElementPrint = [
|
||||||
@@ -262,9 +262,9 @@ export default defineComponent({
|
|||||||
...(editPrintElementData.selectDetail.printObject.prints || []),
|
...(editPrintElementData.selectDetail.printObject.prints || []),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
if(allElementPrint.length > 1){
|
||||||
printIndex = Math.max(...allElementPrint.map(item => Number(item.priority))) + 1
|
printIndex = Math.max(...allElementPrint.map(item => Number(item.priority))) + 1
|
||||||
console.log(printIndex)
|
}
|
||||||
let item = {
|
let item = {
|
||||||
angle:0,
|
angle:0,
|
||||||
designType:data.designType,
|
designType:data.designType,
|
||||||
|
|||||||
Reference in New Issue
Block a user