|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-card class="box-card" :body-style="{ padding: '0px' }">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <el-tag class="tag_NO">{{ Number(index) + 1 }}</el-tag>
|
|
|
+ <el-tag class="tag_NO">{{ dtName }}</el-tag>
|
|
|
<!-- <span class="title">{{ cardData.title }}</span> -->
|
|
|
<el-button icon="el-icon-plus" type="primary" @click="handleAdd">新增数据</el-button>
|
|
|
</div>
|
|
@@ -31,7 +31,6 @@
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
-
|
|
|
>修改
|
|
|
</el-button>
|
|
|
</el-dropdown-item>
|
|
@@ -144,12 +143,13 @@ export default {
|
|
|
templateInfo: {},
|
|
|
tableName: '',
|
|
|
queryFromWhere:'',
|
|
|
- condition: []
|
|
|
+ condition: [],
|
|
|
+ // 表名
|
|
|
+ dtName: '',
|
|
|
};
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
- // currentValues
|
|
|
cardDataWatcher: function(){
|
|
|
return this.cardData
|
|
|
},
|
|
@@ -204,6 +204,7 @@ export default {
|
|
|
// 根据拖拽时设置当前列表排列顺序
|
|
|
this.queryParams.isAsc = this.sortOrder ? "DESC" : "ASC"
|
|
|
this.tableName = this.templateInfo.template.dtTableName;
|
|
|
+ this.dtName = this.templateInfo.template.dtName;
|
|
|
// 得到查询条件
|
|
|
this.queryFromWhere = res.data.resultMap.where;
|
|
|
// 得到当前列表信息
|
|
@@ -250,8 +251,8 @@ export default {
|
|
|
},
|
|
|
// 获取表数据
|
|
|
async getDataHandler(contion, list){
|
|
|
- console.log(contion);
|
|
|
- console.log(list);
|
|
|
+ // console.log(contion);
|
|
|
+ // console.log(list);
|
|
|
if(contion){
|
|
|
let key = contion.split('.')
|
|
|
this.queryParams.queryMap['#{' + contion] = "'" + list[key[1]] + "'";
|