|
@@ -2,6 +2,7 @@
|
|
|
<el-card class="box-card" :body-style="{ padding: '0px' }">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<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>
|
|
|
<!-- body -->
|
|
@@ -85,6 +86,7 @@
|
|
|
import {
|
|
|
delTableData,
|
|
|
dragTableInfo,
|
|
|
+ listTable,
|
|
|
unionListTableData,
|
|
|
getInfoBySqlKey,
|
|
|
addTableData,
|
|
@@ -196,7 +198,7 @@ export default {
|
|
|
const res = await dragTableInfo({queryMap: {tableKey : tableKey }})
|
|
|
this.getTableHandle(res, paramsContion = [],defaultVal = {})
|
|
|
},
|
|
|
- // 处理请求回来的数据
|
|
|
+ // 处理表格表头
|
|
|
async getTableHandle(res){
|
|
|
this.columns = []
|
|
|
// 得到当前模版信息 --- sql columns queryWhere
|
|
@@ -259,7 +261,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- // 获取表数据
|
|
|
+ // 获取表格数据
|
|
|
async getDataHandler(contion, list){
|
|
|
// console.log(contion);
|
|
|
this.myContion=contion;
|
|
@@ -359,7 +361,7 @@ export default {
|
|
|
console.log("验证未通过,获取失败");
|
|
|
});
|
|
|
},
|
|
|
- //提交编辑结果按钮回调
|
|
|
+ //提交编辑结果按钮回调
|
|
|
editConfirmHandler() {
|
|
|
this.$refs.addFromRef
|
|
|
.getData()
|
|
@@ -414,8 +416,6 @@ export default {
|
|
|
this.$emit('getEditHandle', this.index)
|
|
|
}
|
|
|
}
|
|
|
- // this.getDataHandler(this.contion, this.row)
|
|
|
- // this.gettableListHandler(this.tableKey)
|
|
|
this.defaultValue = {};
|
|
|
this.open = false;
|
|
|
|