|
@@ -60,13 +60,13 @@
|
|
|
/>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<!-- 按钮行 start -->
|
|
|
- <!-- <btn-menu-list
|
|
|
+ <btn-menu-list
|
|
|
@topBtnHandler="topBtnHandler"
|
|
|
:topBtnArr="topBtnArr"
|
|
|
:selection="selection"
|
|
|
- ></btn-menu-list> -->
|
|
|
+ ></btn-menu-list>
|
|
|
<!-- 按钮行 end -->
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
@@ -116,7 +116,7 @@
|
|
|
@click="handleExport"
|
|
|
>导出
|
|
|
</el-button>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<right-toolbar
|
|
|
:showCount.sync="showCount"
|
|
|
:showSearch.sync="showSearch"
|
|
@@ -728,7 +728,17 @@ export default {
|
|
|
// this.reset();
|
|
|
this.defaultValue = {};
|
|
|
this.formType = "dragForm";
|
|
|
- getInfoBySqlKey(this.templateInfo.template.sqlKey).then(({ data }) => {
|
|
|
+ let payLoad = {
|
|
|
+ basicMap: {
|
|
|
+ btnType: this.currentBtnData.btnType,
|
|
|
+ btnKey: this.currentBtnData.btnKey,
|
|
|
+ visible: "false",
|
|
|
+ sqlKey: this.templateInfo.template.sqlKey,
|
|
|
+ tableName: this.tableName,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ // getInfoBySqlKey(this.templateInfo.template.sqlKey)
|
|
|
+ btnCommonApi(payLoad).then(({ data }) => {
|
|
|
if (!data || !data.dfVueTemplate) {
|
|
|
this.jsonData = false;
|
|
|
this.$message.error("当前表格未绑定表单!");
|
|
@@ -2015,7 +2025,7 @@ export default {
|
|
|
this.handleBatchDelete();
|
|
|
break;
|
|
|
case "INSERT":
|
|
|
- this.handleAdd();
|
|
|
+ this.handleUpdate(row, btnData);
|
|
|
break;
|
|
|
case "IMPORT":
|
|
|
this.upload.open = true;
|