|
@@ -691,11 +691,11 @@ export default {
|
|
|
obj[str] = row[key];
|
|
|
}
|
|
|
// console.log("row", row);
|
|
|
- getInfoBySqlKey(this.templateInfo.template.sqlKey).then(({ data }) => {
|
|
|
- if (!data || !data.dfVueTemplate) {
|
|
|
- this.$message.error("当前表格未绑定表单!");
|
|
|
- return;
|
|
|
- }});
|
|
|
+ // getInfoBySqlKey(this.templateInfo.template.sqlKey).then(({ data }) => {
|
|
|
+ // if (!data || !data.dfVueTemplate) {
|
|
|
+ // this.$message.error("当前表格未绑定表单!");
|
|
|
+ // return;
|
|
|
+ // }});
|
|
|
|
|
|
// 新的修改请求
|
|
|
try {
|
|
@@ -717,8 +717,10 @@ export default {
|
|
|
let res = await btnCommonApi(payLoad);
|
|
|
// 判断是否绑定dialog弹窗
|
|
|
if (!this.currentBtnData.btnTableFormGroupKey) {
|
|
|
- //this.$message.error("当前表格未绑定表单!");
|
|
|
- //return;
|
|
|
+ if (!res.data || !res.data.template) {
|
|
|
+ this.$message.error("当前表格未绑定表单!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
res.data.template.dfFormSql &&
|
|
|
(this.dynamicData = JSON.parse(res.data.template.dfFormSql));
|