09082212:规则引擎查询资产展示的修改

master
冷调 2024-09-08 22:12:35 +08:00
parent 52c389868e
commit 667bceea9f
1 changed files with 73 additions and 55 deletions

View File

@ -356,60 +356,77 @@
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>选择资产集</span> <span>选择资产集</span>
<template> <template>
<el-table <!-- <el-table-->
:data="tableOrigin" <!-- :data="tableOrigin"-->
style="width: 100%"> <!-- style="width: 100%">-->
<el-table-column <!-- <el-table-column-->
label="主键" <!-- label="主键"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.id }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.id }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="数据源ID" <!-- label="数据源ID"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.basicId }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.basicId }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="表名称" <!-- label="表名称"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.tableName }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.tableName }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="表备注" <!-- label="表备注"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.tableRemark }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.tableRemark }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="类型" <!-- label="类型"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.type }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.type }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="数据量" <!-- label="数据量"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.dataNum }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.dataNum }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="是否核心" <!-- label="是否核心"-->
width="180"> <!-- width="180">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<span style="margin-left: 10px">{{ scope.row.center }}</span> <!-- <span style="margin-left: 10px">{{ scope.row.center }}</span>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="操作"> <!-- <el-table-column label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- @click="handleEditSelect(scope.row)">选择-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<el-table>
<el-table-column
v-for="(value,key) in tableDatas"
:label="key"
width="180">
{{value}}
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -418,7 +435,8 @@
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table>
</el-table>
</template> </template>
</div> </div>
<span> <span>
@ -566,7 +584,7 @@ export default {
}, },
// //
measurements(data) { measurements(data) {
this.form=data this.tableDatas=data
measurement(data).then(res => { measurement(data).then(res => {
this.$modal.msgSuccess("操作成功"); this.$modal.msgSuccess("操作成功");
}) })