| | |
| | | import DxfParser from 'dxf-parser'; |
| | | import { Leafer, Polygon,Ellipse,Line,Path } from 'leafer-ui' |
| | | import {round} from "xe-utils"; |
| | | import {add} from '@/utils/decimal' |
| | | const { t } = useI18n() |
| | | |
| | | const router = useRouter() |
| | |
| | | } |
| | | case 'computedSize' :{ |
| | | let result = toolbarButtonClickEvent() |
| | | if(!result || result.cell!=='childWidth'){ |
| | | if(!result || !(result.cell==='childWidth' || result.cell==='childHeight')){ |
| | | break |
| | | } |
| | | ElMessageBox.prompt('', '', { |
| | |
| | | const value1 = value*1 |
| | | $grid.getTableData().visibleData.forEach((item,index) =>{ |
| | | if(index>=result.start && index<=result.end){ |
| | | |
| | | item[result.cell] = item[result.cell]*1+value1 |
| | | item[result.cell] =add(item[result.cell]*1,value1) |
| | | } |
| | | |
| | | }) |
| | |
| | | //初始化判断是否有id传入 |
| | | onMounted(()=>{ |
| | | addListener(xGrid.value,gridOptions) |
| | | qrcodeLocation.value['默认'] = "" |
| | | qrcodeLocation.value[t('craft.default')] = "" |
| | | trademarkLocation.value.forEach(item =>{ |
| | | qrcodeLocation.value[item] = item |
| | | }) |