Commit eec346be authored by tianhongyang's avatar tianhongyang

fix bug

parent b974b741
......@@ -169,6 +169,8 @@ export default {
const classParams = {
[`custom-render-item-${comType}`]: true
};
if (!this.comIsModify) classParams["is-detail-custom-render-item"] = true;
if (this.comIsModify) classParams["is-edit-custom-render-item"] = true;
return classParams;
},
detailRender(item) {
......@@ -229,25 +231,30 @@ export default {
}
&.custom-render-item-textarea {
height: 73px;
&.is-detail-custom-render-item {
.dsk-cutom-form-render-detail-item {
height: 100%;
height: 73px;
line-height: 22px;
padding: 0px;
overflow-x: auto;
overflow-y: auto;
overflow: hidden;
box-sizing: border-box;
.render-detail-item-inner {
height: 100%;
overflow: inherit;
padding: 9px 12px;
overflow: auto;
::v-deep .text-over-flow-tip-inner {
::v-deep .dsk-text-over-flow-tip {
.text-over-flow-tip-inner {
overflow: visible;
}
}
}
}
}
/* 编辑模式 */
&.is-edit-custom-render-item {
}
}
}
</style>
......@@ -312,7 +312,7 @@ export default {
// 缺失模板不渲染
if (!formTemplate || !formTemplate.jsonData) return;
const template = jsonStrToObject(formTemplate.jsonData);
const templateFormData = formData && formData.jsonData ? JSON.parse(formData.jsonData) : null;
const templateFormData = formData && formData.jsonData ? jsonStrToObject(formData.jsonData) : null;
if (template) {
// 模板
let subfieldModuleListTemplate = template.subfieldModuleList;
......@@ -530,9 +530,8 @@ export default {
templateId: this.formTemplate.templateId,
jsonData: serialize(customFormData)
};
console.log(serialize(customFormData));
// 处理自定义表单数据
// this.$emit("editComProjectDetailSuccess", paramsData, customFormParamsData);
this.$emit("editComProjectDetailSuccess", paramsData, customFormParamsData);
}
}
} catch (error) {
......
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