|
@@ -403,7 +403,6 @@ export default {
|
|
},
|
|
},
|
|
// 分页查询
|
|
// 分页查询
|
|
pageList(row) {
|
|
pageList(row) {
|
|
- console.log(row);
|
|
|
|
// 调用子组件-》携带子组件参数请求后台
|
|
// 调用子组件-》携带子组件参数请求后台
|
|
this.$refs.mychild.pageList(
|
|
this.$refs.mychild.pageList(
|
|
row == undefined
|
|
row == undefined
|
|
@@ -441,8 +440,6 @@ export default {
|
|
// this.reset();
|
|
// this.reset();
|
|
this.defaultValue = {};
|
|
this.defaultValue = {};
|
|
getInfoBySqlKey(this.sqlkey).then(({ data }) => {
|
|
getInfoBySqlKey(this.sqlkey).then(({ data }) => {
|
|
- // const htmlCode = data.dfHtmlTemplate;
|
|
|
|
- // this.iframeUrl = "data:text/html;charset=utf-8," + encodeURI(htmlCode);
|
|
|
|
if (!data || !data.dfVueTemplate) {
|
|
if (!data || !data.dfVueTemplate) {
|
|
this.$message.error("当前表格未绑定表单!");
|
|
this.$message.error("当前表格未绑定表单!");
|
|
return;
|
|
return;
|
|
@@ -459,8 +456,6 @@ export default {
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
getInfoBySqlKey(this.sqlkey).then(({ data }) => {
|
|
getInfoBySqlKey(this.sqlkey).then(({ data }) => {
|
|
- // const htmlCode = data.dfHtmlTemplate;
|
|
|
|
- // this.iframeUrl = "data:text/html;charset=utf-8," + encodeURI(htmlCode);
|
|
|
|
if (!data || !data.dfVueTemplate) {
|
|
if (!data || !data.dfVueTemplate) {
|
|
this.$message.error("当前表格未绑定表单!");
|
|
this.$message.error("当前表格未绑定表单!");
|
|
return;
|
|
return;
|
|
@@ -514,7 +509,6 @@ export default {
|
|
* 删除提示信息语句(标识)
|
|
* 删除提示信息语句(标识)
|
|
* */
|
|
* */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
- console.log(this.ids);
|
|
|
|
let delIds = this.ids;
|
|
let delIds = this.ids;
|
|
let primary = camelCase(this.templateInfo.template?.primaryKey);
|
|
let primary = camelCase(this.templateInfo.template?.primaryKey);
|
|
if (row[primary] != undefined && row[primary] != null) {
|
|
if (row[primary] != undefined && row[primary] != null) {
|
|
@@ -544,18 +538,18 @@ export default {
|
|
},
|
|
},
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
handleExport() {
|
|
|
|
+ let primary = camelCase(this.templateInfo.template?.primaryKey);
|
|
if (this.ids.length > 0) {
|
|
if (this.ids.length > 0) {
|
|
this.queryParams["execlMap"] = [];
|
|
this.queryParams["execlMap"] = [];
|
|
this.ids.forEach((item) => {
|
|
this.ids.forEach((item) => {
|
|
this.queryParams.execlMap.push(
|
|
this.queryParams.execlMap.push(
|
|
this.tableList.find((ttem) => {
|
|
this.tableList.find((ttem) => {
|
|
- return ttem.id === item;
|
|
|
|
|
|
+ return ttem[primary] === item;
|
|
})
|
|
})
|
|
);
|
|
);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.queryParams.execlMap = JSON.stringify(this.queryParams.execlMap);
|
|
this.queryParams.execlMap = JSON.stringify(this.queryParams.execlMap);
|
|
- console.log(this.queryParams);
|
|
|
|
this.download(
|
|
this.download(
|
|
process.env.VUE_APP_BASE_API3 + "dragform/common/export",
|
|
process.env.VUE_APP_BASE_API3 + "dragform/common/export",
|
|
{
|
|
{
|
|
@@ -656,7 +650,6 @@ export default {
|
|
this.open = false;
|
|
this.open = false;
|
|
})
|
|
})
|
|
.catch((res) => {
|
|
.catch((res) => {
|
|
- console.log(res);
|
|
|
|
console.log("验证未通过,获取失败");
|
|
console.log("验证未通过,获取失败");
|
|
});
|
|
});
|
|
},
|
|
},
|