| | |
| | | @click="handlePreview(scope.row)" |
| | | style="margin-left: 10px">{{ $t("common.preview") }} |
| | | </el-button> |
| | | <el-button plain |
| | | <!-- <el-button plain |
| | | size="small" |
| | | type="success" |
| | | v-if="showCAD(scope.row)" |
| | | @click="handleCAD(scope.row)" |
| | | style="margin-left: 10px"> |
| | | {{ $t('common.preview') }}</el-button> |
| | | {{ $t('common.preview') }}</el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | ); |
| | | }, |
| | | async handleCAD (row) { |
| | | const data=await meta_selectConvertToDwg(row.id) |
| | | const data=await meta_selectConvertToDwg({ |
| | | id: row.id,type: false |
| | | }) |
| | | if(data.result) { |
| | | var url=iisHost+"/dwg/cad/browse/?file=data/"+data.result; |
| | | window.open(url) |