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

更新月报字段

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