提交 deb7c7bb authored 作者: kxjia's avatar kxjia

修改了 Tb6 bug

上级 4f132000
...@@ -138,41 +138,53 @@ export const tableFormData = [ ...@@ -138,41 +138,53 @@ export const tableFormData = [
}, },
{ type: 'brspace' }, { type: 'brspace' },
{ type: 'text', value: '本年度对三级及以上级别信息系统开展等级保护测评:' }, { type: 'text', value: '本年度对三级及以上级别信息系统开展等级保护测评:' },
{
type: 'radio-group-extraFields', {
type: 'radio-group',
field: 'COL20', field: 'COL20',
options: [ options: ['是', '否'],
{
label: '是',
value: '是',
extraFields: [
{ label: '测评系统', field: 'COL21', formType: 'number', unit: '个,' },
{ label: '安全建设整改', field: 'COL22', formType: 'number', unit: '个' },
],
},
{ label: '否', value: '否' },
],
}, },
{ type: 'brspace' },
{ type: 'text', value: '<strong>如果是:</strong>' },
{ type: 'text', value: '测评系统' },
{ type: 'number', value: '', unit: '%', field: 'COL21' },
{ type: 'text', value: '安全建设整改' },
{ type: 'number', value: '', unit: '%', field: 'COL22' },
{ type: 'br' }, { type: 'br' },
{ {
serialNumber: '1003', serialNumber: '1003',
code: 'TB60101', code: 'TB60101',
type: 'MultiColumnTable', type: 'VxeTable',
project: '信息安全检查明细', project: '信息安全检查明细',
content: [ columns: [
{ name: '检查名称', formType: 'input', field: 'COL24' }, { field: 'COL24', title: '检查名称', width: 200, editRender: { name: 'VxeInput' } },
{ name: '检查形式', formType: 'checkbox-group', field: 'COL25', options: ['安全自查', '渗透测试', '等级保护测评', '其他'] }, {
{ name: '检查日期起', formType: 'date', field: 'COL26' }, field: 'COL25',
{ name: '检查日期止', formType: 'date', field: 'COL193' }, title: '检查形式',
{ name: '实施部门', formType: 'input', field: 'COL27' }, width: 200,
{ name: '目标、范围和主要内容', formType: 'input', field: 'COL28' }, editRender: {
{ name: '发现问题数量(个)', formType: 'number', field: 'COL29' }, name: 'VxeSelect',
{ name: '已整改问题数量(个)', formType: 'number', field: 'COL30' }, options: [
{ name: '问题整改率(%)', formType: 'number', field: 'COL31' }, { label: '安全自查', value: '安全自查' },
{ name: '备注', formType: 'input', field: 'COL32' }, { label: '渗透测试', value: '渗透测试' },
{ label: '等级保护测评', value: '等级保护测评' },
{ label: '其他', value: '其他' },
],
},
},
{ field: 'COL26', title: '检查日期起', width: 150, editRender: { name: 'VxeDatePicker' } },
{ field: 'COL193', title: '检查日期止', width: 150, editRender: { name: 'VxeDatePicker' } },
{ field: 'COL27', title: '实施部门', width: 150, editRender: { name: 'VxeInput' } },
{ field: 'COL28', title: '目标、范围和主要内容', width: 250, editRender: { name: 'VxeInput' } },
{ field: 'COL29', title: '发现问题数量(个)', width: 150, editRender: { name: 'VxeNumberInput' } },
{ field: 'COL30', title: '已整改问题数量(个)', width: 160, editRender: { name: 'VxeNumberInput' } },
{ field: 'COL31', title: '问题整改率(%)', width: 150, editRender: { name: 'VxeNumberInput' } },
{ field: 'COL32', title: '备注', width: 200, editRender: { name: 'VxeInput' } },
{ title: '操作', slots: { default: 'action' }, width: 100 },
], ],
data: [{}], datas: [],
}, },
{ type: 'brspace' }, { type: 'brspace' },
{ type: 'text', value: '合计' }, { type: 'text', value: '合计' },
......
...@@ -72,12 +72,13 @@ ...@@ -72,12 +72,13 @@
<div class="content-cell"> <div class="content-cell">
<!-- 多列表格 --> <!-- 多列表格 -->
<template v-if="row.type === 'MultiColumnTable'"> <template v-if="row.type === 'MultiColumnTable'">
<MultiColumnTable <MultiColumnTable
:title="row.project" :title="row.project"
:columnsPerRow="1"
:records="[]" :records="[]"
:fields="row.content" :fields="row.content"
:ref="(el) => setMultiColumnTableRef(el, row.code)" :ref="(el) => setMultiColumnTableRef(el, row.code)"
style="margin:0px;padding:0px" class="embedded-table"
/> />
</template> </template>
...@@ -127,7 +128,6 @@ ...@@ -127,7 +128,6 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</template> </template>
</span> </span>
<!-- 单选组 --> <!-- 单选组 -->
<span v-else-if="item.type === 'radio-group'" class="radio-group"> <span v-else-if="item.type === 'radio-group'" class="radio-group">
<vxe-radio-group <vxe-radio-group
...@@ -206,6 +206,21 @@ ...@@ -206,6 +206,21 @@
</span> </span>
</div> </div>
<!-- 嵌套VxeTable -->
<div v-else-if="item.type === 'VxeTable'" style="margin-top: 10px;">
<MyVxeTable1
:title="item.project"
:data="item.datas"
:columns="item.columns"
:pcode="item.code"
:footerData="item.footerData"
:showFooter="item.showFooter"
:ref="(el) => setMyVxeTableRef(el, item.code)"
:disabled="!item.hasRight"
style="margin:0px;padding:0px"
/>
</div>
<!-- 普通输入框 --> <!-- 普通输入框 -->
<template v-else> <template v-else>
<div class="input-wrapper"> <div class="input-wrapper">
...@@ -698,6 +713,11 @@ const fillSimpleFields = async (row: TableRow, valueMap: Record<string, string>) ...@@ -698,6 +713,11 @@ const fillSimpleFields = async (row: TableRow, valueMap: Record<string, string>)
if (!row.content || !Array.isArray(row.content)) return if (!row.content || !Array.isArray(row.content)) return
for (const item of row.content) { for (const item of row.content) {
if (item.type === 'VxeTable' && item.code) {
await fillVxeTable(item, valueMap)
continue
}
if (!item.field) continue if (!item.field) continue
const key = getFieldKey(row.code, item.field) const key = getFieldKey(row.code, item.field)
...@@ -716,7 +736,6 @@ const fillSimpleFields = async (row: TableRow, valueMap: Record<string, string>) ...@@ -716,7 +736,6 @@ const fillSimpleFields = async (row: TableRow, valueMap: Record<string, string>)
formData[key] = dataVal formData[key] = dataVal
} }
// 处理特殊字段类型
if (item.type === 'checkboxAndInput' && item.optionItemField) { if (item.type === 'checkboxAndInput' && item.optionItemField) {
await fillCheckboxInputFields(row, item, valueMap) await fillCheckboxInputFields(row, item, valueMap)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论