|
@@ -866,6 +866,7 @@ export default {
|
|
|
handleDelete(row, btnData) {
|
|
|
let delIds = this.ids;
|
|
|
let primary = camelCase(this.templateInfo.template?.primaryKey);
|
|
|
+ // let realyKey=
|
|
|
this.addRealFieldName(row);
|
|
|
if (row[primary] != undefined && row[primary] != null) {
|
|
|
delIds = [];
|
|
@@ -949,12 +950,13 @@ export default {
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
let primary = camelCase(this.templateInfo.template?.primaryKey);
|
|
|
+ let realyKey = camelCase(this.tableName + "_" + primary);
|
|
|
if (this.ids.length > 0) {
|
|
|
this.queryParams["execlMap"] = [];
|
|
|
this.ids.forEach((item) => {
|
|
|
this.queryParams.execlMap.push(
|
|
|
this.tableList.find((ttem) => {
|
|
|
- return ttem[primary] === item;
|
|
|
+ return ttem[realyKey] === item;
|
|
|
})
|
|
|
);
|
|
|
});
|