chentaisen 2024-09-10 14:35:04 +08:00
commit 4b04066d53
1 changed files with 4 additions and 67 deletions

View File

@ -356,77 +356,13 @@
<div slot="header" class="clearfix">
<span>选择资产集</span>
<template>
<!-- <el-table-->
<!-- :data="tableOrigin"-->
<!-- style="width: 100%">-->
<!-- <el-table-column-->
<!-- label="主键"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.id }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="数据源ID"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.basicId }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="表名称"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.tableName }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="表备注"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.tableRemark }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="类型"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.type }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="数据量"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.dataNum }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="是否核心"-->
<!-- width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span style="margin-left: 10px">{{ scope.row.center }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- @click="handleEditSelect(scope.row)">选择-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
{{tableDatas}}
<el-table>
<el-table-column
v-for="tableData in tableDatas"
:key="key"
v-for="tableData in tableDatas"
:label="tableData.label"
:prop="tableData.value"
width="180">
{{tableData.value}}
</el-table-column>
<el-table-column label="操作">
@ -569,7 +505,6 @@ export default {
this.findById();
this.findList()
this.getDataOrigin()
this.findTableValueByTableName();
},
// - 访DOM",
mounted() {
@ -578,6 +513,8 @@ export default {
methods: {
//
handleEditSelect(data) {
console.log(data.basicId);
console.log(data.tableName);
findTableValueByTableName(data.basicId, data.tableName).then(res => {
console.log(res.data)
this.tableDatas = res.data