Commit eec346be authored by tianhongyang's avatar tianhongyang

fix bug

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