提交 596693f4 authored 作者: kxjia's avatar kxjia

修改 bug

上级 6538bd96
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
></vxe-radio> ></vxe-radio>
</vxe-radio-group> </vxe-radio-group>
<template v-if="field.otherOption&&row[field.field]=='其他'"> <template v-if="field.otherOption&&row[field.field]=='其他'">
<span>其他: </span> <!-- <span>其他: </span> -->
<vxe-input v-model="row[field.otherField]" placeholder="请输入其他" style="width: 200px;"> <vxe-input v-model="row[field.otherField]" placeholder="请输入其他" style="width: 300px;">
</vxe-input> </vxe-input>
</template> </template>
</template> </template>
...@@ -109,8 +109,8 @@ ...@@ -109,8 +109,8 @@
></vxe-radio> ></vxe-radio>
</vxe-radio-group> </vxe-radio-group>
<template v-if="field.otherOption&&row[field.field]=='其他'"> <template v-if="field.otherOption&&row[field.field]=='其他'">
<span>其他: </span> <!-- <span>其他: </span> -->
<vxe-input v-model="row[field.otherField]" placeholder="请输入其他" style="width: 200px;"> <vxe-input v-model="row[field.otherField]" placeholder="请输入其他" style="width:300px;">
</vxe-input> </vxe-input>
</template> </template>
...@@ -135,8 +135,8 @@ ...@@ -135,8 +135,8 @@
) )
" "
> >
<span>其他: </span> <!-- <span>其他: </span> -->
<vxe-input v-model="row[ccopt.otherField]" placeholder="请输入其他" style="width: 200px;"> <vxe-input v-model="row[ccopt.otherField]" placeholder="请输入其他" style="width: 300px;">
</vxe-input> </vxe-input>
</template> </template>
<span class="unit"> {{ ccopt.unit }}</span> <span class="unit"> {{ ccopt.unit }}</span>
...@@ -152,14 +152,9 @@ ...@@ -152,14 +152,9 @@
:value="opt" :value="opt"
:content="opt" :content="opt"
></vxe-checkbox> ></vxe-checkbox>
<template v-if="field.otherField">
<vxe-checkbox label="其他" value="其他">
其他:
</vxe-checkbox>
</template>
</vxe-checkbox-group> </vxe-checkbox-group>
<template v-if="field.otherField&&row[field.field]?.includes('其他')"> <template v-if="field.otherField&&row[field.field]?.includes('其他')">
<vxe-input v-model="row[field.otherField]" placeholder="请输入其他" style="width: 200px; margin-left: 4px;"> <vxe-input v-model="row[field.otherField]" placeholder="请输入其他" style="width: 300px; margin-left: 4px;">
</vxe-input> </vxe-input>
</template> </template>
...@@ -255,7 +250,7 @@ ...@@ -255,7 +250,7 @@
) )
" "
> >
<span>其他: </span> <!-- <span>其他: </span> -->
<vxe-input <vxe-input
v-model="row[extraObject.otherField]" v-model="row[extraObject.otherField]"
placeholder="请输入其他" placeholder="请输入其他"
...@@ -304,7 +299,7 @@ ...@@ -304,7 +299,7 @@
</template> </template>
<template v-else> <template v-else>
<vxe-input v-model="row[field.field]"> </vxe-input> <vxe-input v-model="row[field.field]" style="width:300px;"> </vxe-input>
</template> </template>
</template> </template>
<!-- <template #default="{ row }"> <!-- <template #default="{ row }">
...@@ -558,7 +553,7 @@ const setFormData = (dataVale) => { ...@@ -558,7 +553,7 @@ const setFormData = (dataVale) => {
props.fields.forEach(field => { props.fields.forEach(field => {
if(field.formType === 'table') { if(field.formType === 'table') {
const fieldWithGrid = field as any; const fieldWithGrid = field as any;
fieldWithGrid.gridOptions.data = JSON.parse(row[field.field]) fieldWithGrid.gridOptions.data = JSON.parse(row[field.field] || '[]')
} else if(field.formType === 'AttachTable') { } else if(field.formType === 'AttachTable') {
const key = `${field.field}_${rowIndex}`; const key = `${field.field}_${rowIndex}`;
const child = attchTableRefs.value[key]; const child = attchTableRefs.value[key];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论