Commit b7a480a9 authored by tianhongyang's avatar tianhongyang

fix

parent fb923445
...@@ -266,12 +266,17 @@ export default { ...@@ -266,12 +266,17 @@ export default {
const template = jsonStrToObject(formTemplate.jsonData); const template = jsonStrToObject(formTemplate.jsonData);
if (template) { if (template) {
console.log(template); console.log(template);
this.createTemplateTable();
this.$set(this.form, "subfieldModuleList", template.subfieldModuleList); this.$set(this.form, "subfieldModuleList", template.subfieldModuleList);
} }
} catch (error) { } catch (error) {
this.$message.error(`解析模板失败,${error.message}`); this.$message.error(`解析模板失败,${error.message}`);
console.log(error); console.log(error);
} }
},
// 创建渲染table展示格式
createTemplateTable() {
}, },
async getCustomFormDataByProjectKey(projectKey) { async getCustomFormDataByProjectKey(projectKey) {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment