管道基础大数据平台系统开发-【前端】-新系統界面
surprise
2024-05-07 8df8b2f6fe629f666fe3fc0b69a1ca94f9dba8cf
src/views/datamanage/metadataManage.vue
@@ -236,13 +236,13 @@
                       @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>
@@ -1726,7 +1726,9 @@
      );
    },
    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)