提交 39357ace authored 作者: liuluyu's avatar liuluyu

更新月报字段

上级 45acbaf6
import type { VxeGridProps, VxeColumnPropTypes } from 'vxe-table';
import XEUtils from 'xe-utils';
......@@ -26,139 +25,132 @@ interface VxeColumn {
export const tableFormData = [
{
serialNumber: "1",
project: "监管部门发布的基础软硬件产品缺陷信息通报情况处置结果",
serialNumber: '1',
project: '监管部门发布的基础软硬件产品缺陷信息通报情况处置结果',
code: 'TM1002',
content: [
{ type: "text", value: "(1) 监管部门发布的上期基础软硬件产品缺陷信息通报中涉及本机构缺陷数量:" },
{ type: "number", value: "", unit: "个", field: "COL31" },
{ type: "br" },
{ type: "text", value: "(2) 根据历史通报,本月处置基础软硬件产品缺陷数量合计:" },
{ type: "number", value: "", unit: "台/套/次", field: "C23A001" },
{ type: "brspace" },
{ type: "text", value: "涉及本机构重要信息系统数量:" },
{ type: "number", value: "", unit: "个", field: "C23A002" },
{ type: 'text', value: '(1) 监管部门发布的上期基础软硬件产品缺陷信息通报中涉及本机构缺陷数量:' },
{ type: 'number', value: '', unit: '个', field: 'COL31' },
{ type: 'br' },
{ type: 'text', value: '(2) 根据历史通报,本月处置基础软硬件产品缺陷数量合计:' },
{ type: 'number', value: '', unit: '台/套/次', field: 'C23A001' },
{ type: 'brspace' },
{ type: 'text', value: '涉及本机构重要信息系统数量:' },
{ type: 'number', value: '', unit: '个', field: 'C23A002' },
],
remarks: {
rows:3,
field:"C23A002"
}
rows: 3,
field: 'C23A002',
},
},
{
serialNumber: "2",
project: "本月新发现基础软硬件产品缺陷清单",
serialNumber: '2',
project: '本月新发现基础软硬件产品缺陷清单',
code: 'TM1001',
type: "MultiColumnTable",
type: 'MultiColumnTable',
content: [
{
name: "产品类型",
formType: 'radio-group',
field: "COL1",
options: [
"机房基础设施", "服务器", "存储", "网络设备", "信息安全设备",
"操作系统", "数据库", "中间件"
],
{
name: '产品类型',
formType: 'radio-group',
field: 'COL1',
options: ['机房基础设施', '服务器', '存储', '网络设备', '信息安全设备', '操作系统', '数据库', '中间件', '其他'],
otherOption: true,
otherFormType: 'input',
otherField: "COL0"
otherField: 'COL0',
},
{ name: "设备型号/软件版本", formType: 'input', field: "COL3" },
{ name: "配件型号", formType: 'input', field: "COL4" },
{ name: "软件版本", formType: 'input', field: "COL5" },
{ name: "生产厂家", formType: 'input', field: "COL7" },
{
name: "缺陷情况外在表现",
formType: 'textarea',
field: "COL9",
width: 200
{ name: '设备型号/软件版本', formType: 'input', field: 'COL3' },
{ name: '配件型号', formType: 'input', field: 'COL4' },
{ name: '软件版本', formType: 'input', field: 'COL5' },
{ name: '生产厂家', formType: 'input', field: 'COL7' },
{
name: '缺陷情况外在表现',
formType: 'textarea',
field: 'COL9',
width: 200,
},
{
name: "缺陷情况实际影响",
formType: 'checkbox-group',
field: "COL11",
options: [
"敏感数据损毁、丢失、泄露", "服务水平下降", "业务运营中断"
],
{
name: '缺陷情况实际影响',
formType: 'checkbox-group',
field: 'COL11',
options: ['敏感数据损毁、丢失、泄露', '服务水平下降', '业务运营中断', '其他'],
otherOption: true,
otherFormType: 'input',
otherField: "COL10"
otherField: 'COL10',
},
{
name: "缺陷情况潜在影响",
formType: 'checkbox-group',
field: "COL13",
options: [
"敏感数据损毁、丢失、泄露", "服务水平下降", "业务运营中断"
],
{
name: '缺陷情况潜在影响',
formType: 'checkbox-group',
field: 'COL13',
options: ['敏感数据损毁、丢失、泄露', '服务水平下降', '业务运营中断', '其他'],
otherOption: true,
otherFormType: 'input',
otherField: "COL12"
otherField: 'COL12',
},
{
name: "缺陷原因",
formType: 'textarea',
field: "COL14",
width: 200
{
name: '缺陷原因',
formType: 'textarea',
field: 'COL14',
width: 200,
},
{
name: "缺陷发现途径",
formType: 'radio-group',
field: "COL16",
options: ["自主发现", "生产厂家主动提示"],
{
name: '缺陷发现途径',
formType: 'radio-group',
field: 'COL16',
options: ['自主发现', '生产厂家主动提示', '其他'],
otherOption: true,
otherFormType: 'input',
otherField: "COL17"
otherField: 'COL17',
},
{
name: '解决方案已采取措施',
formType: 'textarea',
field: 'COL19',
width: 200,
},
{
name: "解决方案已采取措施",
formType: 'textarea',
field: "COL19",
width: 200
{
name: '生产厂家提供的解决方案',
formType: 'textarea',
field: 'COL20',
width: 200,
},
{
name: "生产厂家提供的解决方案",
formType: 'textarea',
field: "COL20",
width: 200
{
name: '补丁版本',
formType: 'input',
field: 'COL22',
},
{
name: "补丁版本",
formType: 'input',
field: "COL22"
{
name: '发现时间',
formType: 'date',
field: 'COL24',
},
{
name: "发现时间",
formType: 'date',
field: "COL24"
{
name: '解决情况',
formType: 'radio-group',
field: 'COL26',
options: ['已解决', '未解决'],
},
{
name: "解决情况",
formType: 'radio-group',
field: "COL26",
options: ["已解决", "未解决"]
{
name: '缺陷信息联系人',
formType: 'input',
field: 'COL28',
},
{
name: "缺陷信息联系人",
formType: 'input',
field: "COL28"
{
name: '缺陷信息联系电话',
formType: 'input',
field: 'COL29',
},
{
name: "缺陷信息联系电话",
formType: 'input',
field: "COL29"
}
],
datas: [],
remarks: {
rows:3,
field:"C23A002"
}
}
rows: 3,
field: 'C23A002',
},
},
];
export const attachmentData = [
{ name: "基础软硬件产品缺陷详细报告", field: "TM1001.COL30" },
{ name: "生产厂家提供的解决方案文件", field: "TM1001.COL21" }
{ name: '基础软硬件产品缺陷详细报告', field: 'TM1001.COL30' },
{ name: '生产厂家提供的解决方案文件', field: 'TM1001.COL21' },
];
// 数据结构定义
......@@ -210,56 +202,56 @@ export interface TM1Data {
// 示例数据
export const sampleTM1Data: TM1Data = {
FILLIN_DEPT: "",
FILLIN_DATE: "",
FILLIN_PERSON: "",
TELEPHONE: "",
RES_PERSON: "",
jiaoyanwei: "0",
isempty: "0",
itTitle: "T-M-1 基础软硬件产品缺陷信息表",
itVersion: "23A",
FILLIN_DEPT: '',
FILLIN_DATE: '',
FILLIN_PERSON: '',
TELEPHONE: '',
RES_PERSON: '',
jiaoyanwei: '0',
isempty: '0',
itTitle: 'T-M-1 基础软硬件产品缺陷信息表',
itVersion: '23A',
TM1002: {
COL31: "",
C23A001: "",
C23A002: "",
COL34: ""
COL31: '',
C23A001: '',
C23A002: '',
COL34: '',
},
TM1001: [createEmptyTM1001Item()]
TM1001: [createEmptyTM1001Item()],
};
// 创建空数据函数
export function createEmptyTM1Data(): TM1Data {
return {
...sampleTM1Data,
TM1001: [createEmptyTM1001Item()]
TM1001: [createEmptyTM1001Item()],
};
}
// 创建空的TM1001项
export function createEmptyTM1001Item(): TM1001Item {
return {
COL1: "",
COL0: "",
COL3: "",
COL4: "",
COL5: "",
COL7: "",
COL9: "",
COL11: "",
COL10: "",
COL13: "",
COL12: "",
COL14: "",
COL16: "",
COL17: "",
COL19: "",
COL20: "",
COL22: "",
COL24: "",
COL26: "",
COL28: "",
COL29: "",
COL30: ""
COL1: '',
COL0: '',
COL3: '',
COL4: '',
COL5: '',
COL7: '',
COL9: '',
COL11: '',
COL10: '',
COL13: '',
COL12: '',
COL14: '',
COL16: '',
COL17: '',
COL19: '',
COL20: '',
COL22: '',
COL24: '',
COL26: '',
COL28: '',
COL29: '',
COL30: '',
};
}
\ No newline at end of file
}
......@@ -14,7 +14,11 @@
</div>
</template>
<template #other_input="{ row, column }">
<vxe-input v-model="row[column.field]" placeholder="请输入" :disabled="row.COL4 !== '其他'" />
<vxe-input
v-model="row[column.field]"
placeholder="请输入"
:disabled="!(row.COL1 === '其他' || row.COL001 === '其他' || row.COL016 === '其他' || row.COL4 === '其他')"
/>
</template>
<template #input="{ row, column }">
<vxe-input
......@@ -27,7 +31,7 @@
<span>{{ row[column.field] }}</span>
</template>
<template #default_other="{ row, column }">
<span v-if="row.COL4 === '其他'"> {{ row[column.field] }}</span>
<span v-if="row.COL1 === '其他' || row.COL001 === '其他' || row.COL016 === '其他' || row.COL4 === '其他'"> {{ row[column.field] }}</span>
</template>
<template #default_input="{ row, column }">
<span v-if="(row.COL4 === '软件类(银行业)' || row.COL4 === '软件类(保险业)') && row.COL5 === '其他'"> {{ row[column.field] }}</span>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论