diff --git a/public/static/your-word-document.docx b/public/static/your-word-document.docx new file mode 100644 index 0000000..8b2a686 --- /dev/null +++ b/public/static/your-word-document.docx @@ -0,0 +1,797 @@ +HNZY +湖南中烟吴忠卷烟厂企业标准 + +HNZY/WZ/GL-HQ-01-231113 + + + +办事公开民主管理制度 + + + + +2023- 11 -13发布 +2023 -11- 14实施 +湖南中烟吴忠卷烟厂 发布 + +前 言 + +本标准依据《标准的结构和编写》所规定的规则而起草,并结合本厂实际情况制订。 +本标准与前一版相比,除编辑性修改外,主要技术变化如下: + -- -- 将4.4条款纪检监察部改为纪检监察部(法规部); + -- -- 将4.10条款安全法规部改为安全管理部; + -- -- 对4.11条款进行修订; + -- -- 对5.1.1条款进行修订; + -- -- 对5.2条款进行修订; + -- -- 对附录D公开类别进行修订。 +本标准由湖南中烟工业有限责任公司吴忠卷烟厂标准化委员会办公室提出。 +本标准由工会办公室(群团工作部)起草并归口。 +本标准由李占保批准。 +本标准主要起草人:朱雷、刘骁、张婕 +本标准的历次版本发布情况为。 + -- -- HNZY/WZ/GL-QT-01-a.0, 发布日期为2013-8-30; + -- -- HNZY/WZ/GL-QT-01-a.1, 发布日期为2015-7-15; + -- -- HNZY/WZ/GL-QT-01-a.2, 发布日期为2016-12-30; + -- -- HNZY/WZ/GL-QT-01-a.3, 发布日期为2018-2-8; + -- -- HNZY/WZ/GL-QT-01-191203, 发布日期为2019-12-03; + -- -- HNZY/WZ/GL-QT-01-201215, 发布日期为2020-12-15; + -- -- HNZY/WZ/GL-QT-01-231113, 发布日期为2023-11-13。 + + + + + + + +办事公开民主管理制度 + 1  范围 +本标准规定了办事公开民主管理的程序和要求。 +本标准适用于本厂办事公开的民主管理。 + 2  规范性引用文件 +下列文件对于本文件的应用是必不可少的。凡是注日期(版本)的引用文件,仅所注日期的版本适用于本文件。凡是不注日期(版本)的引用文件,其最新版本(包括所有的修改单)适用于本文件。 +《宁夏回族自治区厂务公开条例》 +《宁夏回族自治区企业民主管理条例》 +《烟草行业办事公开民主管理工作规范》 +《中国烟草总公司关于印发三个保障机制文件的通知》 +《国家烟草专卖局关于印发烟草行业办事公开民主管理工作规范(试行)补充规定的通知》 +HNZY/WZ/GL-ZH-06 经济责任制管理办法 + 3  术语和定义 +无 + 4  监督检查与考评 + 工会办公室(群团工作部)每月对公开目录要求的公开内容进行监督检查,发现公开事项有不符合要求情况,对照《经济责任制管理办法》进行考核。 + 5  报告和记录 + 本标准形成的报告和记录的要求如下: + 记录编号 + 记录名称 + 保存处 + 保存期限 + ----- +办事公开民主管理公开报表(A类)(工程投资、采购部分项目清单) + 工会办工室(群团工作部) + 三年 + ---- +办事公开民主管理公开报表(B类)("三重一大"部分项目清单) + 工会办工室(群团工作部) + 三年 + ---- +办事公开民主管理公开报表(C类)(生产经营及专卖管理部分项目清单) + 工会办工室(群团工作部) + 三年 + ---- +办事公开民主管理公开报表(D类)(涉及干部职工切身利益及其他部分项目清单) + 工会办工室(群团工作部) + 三年 + + + (资料性附录)办事公开民主管理公开报表(A类)(工程投资、采购部分项目清单) + 年度 月 + 公开类别 + 事项名称 + 事项编号 + 承办部门 + + 备注 + 工程投资 + + + + + + + + + + + + + + + + + + + + 物资采购 + + + + + + + + + + + + + + + + + + + + 服务类采购 + + + + + + + + + + + + + + + 填报人: 部门负责人: + 说明: + 1.事项名称是指年度内计划实施的具体事项的称谓。 + 2.承办部门是指承办该业务事项的具体部门。 + (资料性附录)办事公开民主管理公开报表(B类)("三重一大"部分项目清单) + 年度 月 + 公开类别 + 事项分类 + 事项名称 + 事项编号 + 承办部门 + + 备注 + + 重大事项决策 + 发展战略 + + + + + + + + + + + + 发展规划 + + + + + + + + + + + + 资产调整 + + + + + + + + + + + + 产权转让 + + + + + + + + + + + + 对外投资 + + + + + + + + + + + + 利益调配 + + + + + + + + + + + + 机构调整 + + + + + + + + + + + + 年度工作报告 + + + + + + + + + + + + 年度财务情况及预算安排 + + + + + + + + + + + 重要项目安排 + 年度投资计划 + + + + + + + + + + + + 重要设备和技术引进情况 + + + + + + + + + + + + 重大工程建设项目情况 + + + + + + + + + + + + 大宗物资(服务)采购情况 + + + + + + + + + + + 重要干部任免 + 干部选拔实施 + 方案 + + + + + + + + + + + + 干部职务岗位变动情况 + + + + + + + + + + + + 公开选拔干部的公告、竞聘结果、任前公示、任命通知 + + + + + + + + + + + 大额度资金使用情况 + 年度预算内大额度资金调动和使用 + + + + + + + + + + + + 超预算资金调动和使用 + + + + + + + + + + + + 对外捐赠、赞助 + + + + + + + + + + + + 其他大额度资金运作事项 + + + + + + + + + + + 填报人: 部门负责人: + + + (资料性附录)办事公开民主管理公开报表(C类)(生产经营及专卖管理部分项目清单) + 年度 月 + 公开类别 + 事项分类 + 事项名称 + 事项编号 + 承办部门 + + 备注 + + 企业管理方面 + 经济运行通报 + + + + + + + + + + + + 生产经营管理目标及完成情况 + + + + + + + + + + + + 绩效考核情况 + + + + + + + + + + + + 制度建设方面 + + + + + + 招投标情况 + + + + + + 采购方式审核情况 + + + + + + 采购项目执行情况 + + + + + 财务管理方面 + 财务预算及执行情况 + + + + + + + + + + + + 内部审计工作情况 + + + + + + + + + + + + 年度财务报告情况 + + + + + + 年度财务预算批复情况 + + + + + + 资产报废批复情况 + + + + + 物资配送方面 + 月度经营情况通报 + + + + + + + + + + + + 产品销售情况 + 通报 + + + + + + + + + + + + 报废烟草物资处置情况 + + + + + + + + + + + + 烟草专卖许可证申请、受理和办理情况 + + + + + + + + + + + + + + + + + 人事劳资管理方面 + 公开招聘公告、录用 + 结果 + + + + + + + + + + + + 福利费年度使用情况 + + + + + + + + + + + +职工养老、医疗、工伤、失业、生育保险等社会保障基金的缴纳情况 + + + + + + + + + + + + 年度岗位考核方案和结果 + + + + + + + + + + + + 技能鉴定结果 + + + + + + + + + + + + 职称评审结果 + + + + + + + + + + + + 员工退休信息情况 + + + + + 安全保卫、法律法规方面 + 安全生产例会情况 + + + + + + 安全生产及劳动保护情况 + + + + + + 职业健康体系运行情况 + + + + + + 安全检查通报及整改情况 + + + + + 填报人: 部门负责人: + + + + + + (资料性附录)办事公开民主管理公开报表(D类)(涉及干部职工切身利益及其他部分项目清单) + 年度 月 + 公开类别 + 事项分类 + 事项名称 + 事项编号 + 承办部门 + + 备注 + + 重要事项 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 工间餐物资采购定价 + + + + + + 职工福利 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 其他 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 填报人: 部门负责人: diff --git a/src/assets/images/j-icon1.svg b/src/assets/images/j-icon1.svg new file mode 100644 index 0000000..4fb9bea --- /dev/null +++ b/src/assets/images/j-icon1.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/images/j-icon2.svg b/src/assets/images/j-icon2.svg new file mode 100644 index 0000000..f9beb57 --- /dev/null +++ b/src/assets/images/j-icon2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/images/j-icon3.svg b/src/assets/images/j-icon3.svg new file mode 100644 index 0000000..f3acdca --- /dev/null +++ b/src/assets/images/j-icon3.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/images/j-icon4.svg b/src/assets/images/j-icon4.svg new file mode 100644 index 0000000..c23247b --- /dev/null +++ b/src/assets/images/j-icon4.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/styles/datastyle.css b/src/styles/datastyle.css index 857ef8a..edff045 100644 --- a/src/styles/datastyle.css +++ b/src/styles/datastyle.css @@ -171,13 +171,23 @@ body .hasTagsView .app-main .el-card{ border: 0; border-radius: 0; } +body .el-card.box-card.is-always-shadow, body .hasTagsView .app-main .el-card.box-card.is-always-shadow{ box-shadow: none; } +body .el-card .el-card__header, body .hasTagsView .app-main .el-card .el-card__header{ border-bottom: 1px solid #E5E6EB; padding: 10px 20px; } +body .el-card .el-card__header .clearfix::before, +body .el-card .el-card__header .clearfix::after{ + content: ""; + display: table; +} +body .el-card .el-card__header .clearfix::after{ + clear: both; +} body .hasTagsView .app-main .el-card .el-card__header>.clearfix>span{ line-height: 29px; font-weight: bold; @@ -403,9 +413,28 @@ body .el-table--medium .el-table__cell { body .el-table--border { border: 0; } +body .el-table--border::after, +body .el-table--group::after, +body .el-table::before { + background-color: #e5e6eb; +} +body .el-table--border::after { + content: none; +} +body .el-table--border.btable::after { + content: ""; +} body .el-table--border .el-table__cell { border-right: 0; } +body .el-table.btable{ + border-top: 1px solid #e5e6eb !important; + border-left: 1px solid #e5e6eb !important; +} +body .el-table.btable .el-table__cell { + border-right: 1px solid #EBEEF5; +} + /*el-tree*/ body .el-tree { @@ -531,6 +560,12 @@ body .el-form-item .el-form-item__label { body .el-progress-bar__inner { background-color: #233A82 !important; } +body .pro1 .el-progress-bar__inner { + background-color: #F53F3F !important; +} +body .el-progress-bar__inner .el-progress-bar__innerText{ + color: #fff !important; +} /*modellist*/ .modellist{ @@ -670,3 +705,189 @@ body ,html{ .login-page .loright .locont .el-button{ border-radius: 2px; } + + + +* { + --color: #233A82; + --color_shallow: #233A82; + --count_number: #233A82; + --count_number_shallow: #233A82; + --primary_color: #233A82; + --aside_color: #233A82; +} + + +.ftitle{ + display: block; + text-align: center; + font-size: 20px; + line-height: 28px; + font-weight: bold; + color: #1D2129; + margin: 0; + padding: 0; +} +.stitle{ + display: block; + text-align: left; + color: #1D2129; + font-size: 16px; + font-weight: bold; + line-height: 24px; + padding: 0 0 8px 0; + margin: 30px 0 0 0; + border-bottom: 1px solid #e5e6eb; +} +.ttitle{ + display: block; + text-align: left; + color: #1D2129; + font-size: 14px; + font-weight: bold; + line-height: 22px; + padding: 0 0 8px 0; + margin: 24px 0 0 0; +} + +/*test-list*/ +.test-list{ + display: flex; +} +.test-list .list{ + display: block; + flex: 1; + padding: 24px 24px 0 24px; +} +.test-list .list+.list{ + margin-left: 24px; +} +.test-list .list .title{ + display: flex; + align-items: center; +} +.test-list .list .title img{ + display: block; + width: 16px; + margin: 0 4px 0 0; +} +.test-list .list .title .tit{ + display: block; + color: #86909C; + font-size: 14px; + line-height: 22px; + margin: 0; + padding: 0; +} +.test-list .list .figure{ + display: block; + margin: 12px 0 0 0; + padding: 0; + color: #1D2129; + font-size: 24px; + line-height: 32px; + font-weight: bold; +} + +/*badge*/ +body .el-badge.newbadge{ + display: inline-flex; + flex-direction: row-reverse; + align-items: center; +} +body .el-badge.newbadge+.el-badge.newbadge{ + margin-left: 20px; +} +body .el-badge.newbadge .sz{ + color: #1D2129; + font-size: 14px; + font-weight: 300; + line-height: 22px; + margin: 0 0 0 10px; +} +body .el-badge.newbadge .el-badge__content.is-fixed{ + position: inherit; + transform: inherit; + right: 0; + width: 18px; + height: 18px; + line-height: 18px; + text-align: center; + margin: 0; + padding: 0; + font-size: 12px; +} +body .el-badge__content{ + background-color: #F53F3F; +} +body .el-badge__content--warning { + background-color: #F7BA1E; +} +body .el-badge__content--primary { + background-color: #0FC6C2; +} + + +/*ncoll*/ +body .ncoll{ + margin: 5px 0 0 0; +} +body .ncoll.el-collapse{ + border: 0; +} +body .ncoll.el-collapse .el-collapse-item>div:first-child{ + text-align: center; +} +body .ncoll.el-collapse .el-collapse-item__header{ + border-bottom: 0; + height: 30px; + line-height: 30px; + justify-content: center; + display: inline-flex; + color: #233A82; +} +body .ncoll.el-collapse .el-collapse-item__header:hover{ + color: #2B50C4; +} +body .ncoll.el-collapse .el-collapse-item__header .tit{ + display: block; + margin: 0; + display: block; + text-align: left; + font-size: 12px; + font-weight: normal; + line-height: 20px; +} +body .ncoll.el-collapse .el-collapse-item__header .el-collapse-item__arrow{ + display: block; + width: 18px; + height: 18px; + text-align: center; + line-height: 18px; + padding: 0; + font-size: 14px; + margin: 0; + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} +body .ncoll.el-collapse .el-collapse-item__arrow.is-active { + -webkit-transform: rotate(-90deg); + transform: rotate(-90deg); +} +body .ncoll.el-collapse .el-collapse-item__wrap{ + border-bottom: 0; +} +body .ncoll.el-collapse .el-collapse-item__wrap .el-collapse-item__content{ + padding: 5px 0; +} + +.dbox{ + border: 1px dashed #e5e6eb; + padding: 10px; + box-sizing: border-box; + margin: 10px 0 0 0; + border-radius: 4px; +} +.dbox .ttitle:first-child{ + margin-top: 0; +} diff --git a/src/views/quality/checkcontentrule/CheckContentRuleAdd.vue b/src/views/quality/checkcontentrule/CheckContentRuleAdd.vue index 9b31f3a..6880e97 100644 --- a/src/views/quality/checkcontentrule/CheckContentRuleAdd.vue +++ b/src/views/quality/checkcontentrule/CheckContentRuleAdd.vue @@ -195,16 +195,16 @@ /> - - - - - + + + + + + + + + + @@ -219,6 +219,26 @@ /> + + + + + + + + + + + 手机号码 + 邮箱 + 整数 + 负数 + 身份证 + 日期格式yyyy-mm-dd + IP + + + - - - - - + + + + + + + + + + - - - - - + + + + + + + + + + - + diff --git a/src/views/quality/checkrelevancerule/CheckRelevanceRuleAdd.vue b/src/views/quality/checkrelevancerule/CheckRelevanceRuleAdd.vue index 9a608a7..1df96cd 100644 --- a/src/views/quality/checkrelevancerule/CheckRelevanceRuleAdd.vue +++ b/src/views/quality/checkrelevancerule/CheckRelevanceRuleAdd.vue @@ -193,16 +193,16 @@ /> - - - - - + + + + + + + + + + @@ -321,9 +321,6 @@ export default { ruleItemId: [ { required: true, message: '核查类型不能为空', trigger: 'change' } ], - ruleLevelId: [ - { required: true, message: '规则级别不能为空', trigger: 'change' } - ], ruleSourceId: [ { required: true, message: '数据源不能为空', trigger: 'change' } ], diff --git a/src/views/quality/checkrelevancerule/CheckRelevanceRuleDetail.vue b/src/views/quality/checkrelevancerule/CheckRelevanceRuleDetail.vue index 5c2e1d4..1d24b95 100644 --- a/src/views/quality/checkrelevancerule/CheckRelevanceRuleDetail.vue +++ b/src/views/quality/checkrelevancerule/CheckRelevanceRuleDetail.vue @@ -21,16 +21,16 @@ /> - - - - - + + + + + + + + + + - - - - - + + + + + + + + + + { this.loading = false if (response.success) { + console.log('response',response) const { data } = response this.tableDataList = data.data this.total = data.total @@ -225,8 +227,10 @@ checkReportTypeFormatter(row, column, cellValue, index) { if (cellValue === 'structure') { return '结构符合性检测报告' - } else { + } else if (cellValue === 'content') { return '内容符合性检测报告' + } else { + return '关联符合性检测报告' } }, checkResultFormatter(row, column, cellValue, index) { diff --git a/src/views/quality/checkreport/CheckReportStructure.vue b/src/views/quality/checkreport/CheckReportStructure.vue index be694b4..0492464 100644 --- a/src/views/quality/checkreport/CheckReportStructure.vue +++ b/src/views/quality/checkreport/CheckReportStructure.vue @@ -1,302 +1,305 @@ @@ -352,22 +355,44 @@ // 表字段标准检测 table_key: [], + no_table_key: [], // 长度标准检测 length_key: [], + no_length_key: [], // 空值标准检测 null_key: [], + no_null_key: [], // 主键标准检测 pk_key: [], + no_pk_key: [], // 外键标准检测 fk_key: [], + no_fk_key: [], // 完整性标准检测 integrity: [], + no_integrity: [], // 准确性标准检测 accuracy: [], + no_accuracy: [], // 一致性标准检测 consistent: [], + no_consistent: [], // 正则表达式标准检测 regular: [], + no_regular: [], + // 检测表总数 + checkTotalCount: null, + // 检测总耗时 + checkTimeConsuming: null, + // 不合规总数 + checkErrorCount: null, + + // 检测表总数 + checkTotalCount_new: null, + // 检测总耗时 + checkTimeConsuming_new: null, + // 不合规总数 + checkErrorCount_new: null, like: true, value1: 4154.564, @@ -382,30 +407,43 @@ mounted () { // 表字段标准检测 this.table_key = dataJson.caseType.table_key + this.no_table_key = dataJson.caseType.no_table_key // 长度标准检测 this.length_key = dataJson.caseType.length_key + this.no_length_key = dataJson.caseType.no_length_key // 空值标准检测 this.null_key = dataJson.caseType.null_key + this.no_null_key = dataJson.caseType.no_null_key // 主键标准检测 this.pk_key = dataJson.caseType.pk_key + this.no_pk_key = dataJson.caseType.no_pk_key // 外键标准检测 this.fk_key = dataJson.caseType.fk_key + this.no_fk_key = dataJson.caseType.no_fk_key // 完整性标准检测 this.integrity = dataJson.caseType.integrity + this.no_integrity = dataJson.caseType.no_integrity // 准确性标准检测 this.accuracy = dataJson.caseType.accuracy + this.no_accuracy = dataJson.caseType.no_accuracy // 一致性标准检测 this.consistent = dataJson.caseType.consistent + this.no_consistent = dataJson.caseType.no_consistent // 正则表达式标准检测 this.regular = dataJson.caseType.regular + this.no_regular = dataJson.caseType.no_regular // 初始化按数据源统计不合规数量 this.spanArr1 = [] this.spanArr2 = [] - this.reportTableData1 = dataJson.dataAmount.reportTableData1 - this.reportTableData2 = dataJson.dataAmount.reportTableData2 + this.reportTableData1 = dataJson.dataReport.reportTableData1 + this.reportTableData2 = dataJson.dataReport.reportTableData2 this.rowspan1() this.rowspan2() + + this.checkTotalCount_new = dataJson.checkTotalCount + this.checkTimeConsuming_new = dataJson.checkTimeConsuming + this.checkErrorCount_new = dataJson.checkErrorCount }, methods: { showCard() { @@ -415,9 +453,9 @@ this.spanArr1 = [] this.spanArr2 = [] // this.getReportData1() - this.getReportData2() - this.getReportData3() - this.date = moment(this.queryParams.checkDate).format('YYYY年MM月DD日') + // this.getReportData2() + // this.getReportData3() + // this.date = moment(this.queryParams.checkDate).format('YYYY年MM月DD日') }, // getReportData1() { // getReportBySource({ checkDate: this.queryParams.checkDate }).then(response => { @@ -521,6 +559,15 @@ this.timelinessTableData = response.data.timeliness } }) + }, + exportWord() { + const filePath = './static/your-word-document.docx' + const link = document.createElement('a') + link.href = filePath + link.download = '测结果报告.docx' + document.body.appendChild(link) + link.click() + document.body.removeChild(link) } } } diff --git a/src/views/quality/checkreport/CheckReportStructure_bak1.vue b/src/views/quality/checkreport/CheckReportStructure_bak1.vue new file mode 100644 index 0000000..697271d --- /dev/null +++ b/src/views/quality/checkreport/CheckReportStructure_bak1.vue @@ -0,0 +1,750 @@ + + + + + diff --git a/src/views/quality/checkreport/Data.json b/src/views/quality/checkreport/Data.json index 9811ed7..b4ee396 100644 --- a/src/views/quality/checkreport/Data.json +++ b/src/views/quality/checkreport/Data.json @@ -1,132 +1,570 @@ { - "caseType": - { - "table_key":[ - { - "ruleName":"表字段标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "length_key":[ - { - "ruleName":"长度标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "pk_key":[ - { - "ruleName":"主键标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "null_key":[ - { - "ruleName":"空值标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "fk_key":[ - { - "ruleName":"外键标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "integrity":[ - { - "ruleName":"完整性标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "accuracy":[ - { - "ruleName":"准确性标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "consistent":[ - { - "ruleName":"一致性标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ], - "regular":[ - { - "ruleName":"正则表达式标准检测分析", - "ruleSourceName":"数据平台", - "ruleTableName":"全表", - "checkTotalCount":"500", - "checkErrorCount":"28" - } - ] - }, - "dataAmount": - { - "reportTableData1":[ - { - "ruleSourceId":1, - "ruleSourceName":"数据平台", - "ruleLevelName": "低", - "checkErrorCount":9 - }, - { - "ruleSourceId":1, - "ruleSourceName":"数据平台", - "ruleLevelName": "高", - "checkErrorCount":56 - }, - { - "ruleSourceId":1, - "ruleSourceName":"数据平台", - "ruleLevelName": "中", - "checkErrorCount":78 - } - ], - "reportTableData2":[ - { - "checkErrorCount":7, - "ruleTypeId":"1", - "ruleTypeName":"数据平台", - "ruleLevelName":"中", - "ruleName": "表字段标准检测分析" - }, - { - "checkErrorCount":20, - "ruleTypeId":"1", - "ruleTypeName":"数据平台", - "ruleLevelName":"高", - "ruleName": "长度标准检测分析" - }, - { - "checkErrorCount":5, - "ruleTypeId":"1", - "ruleTypeName":"数据平台", - "ruleLevelName":"低", - "ruleName": "空值标准检测分析" - } - ] - } + "caseType": { + "table_key": [ + { + "ruleName": "表字段标准检测用列", + "ruleSourceName": "数据平台", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "78", + "checkErrorCount": "1" + }, + { + "ruleName": "表字段标准检测用列", + "ruleSourceName": "演示应用", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "449", + "checkErrorCount": "4" + } + ], + "no_table_key": [ + { + "caseName": "表字段标准检测用列", + "source": "数据平台", + "tableName": "TABLE_A", + "trueTableName": "TABLE_A", + "standardTableName": "TABLE_A", + "trueColumn": "column_AAA", + "standardColumn": "column_AAC", + "notDetail": "字段名与标准不一致" + }, + { + "caseName": "表字段标准检测用列", + "source": "演示应用", + "tableName": "TABLE_D", + "trueTableName": "TABLE_D", + "standardTableName": "TABLE_K", + "trueColumn": "", + "standardColumn": "", + "notDetail": "表名与标准不一致" + }, + { + "caseName": "表字段标准检测用列", + "source": "演示应用", + "tableName": "TABLE_E", + "trueTableName": "TABLE_E", + "standardTableName": "TABLE_E", + "trueColumn": "columnE", + "standardColumn": "column_E", + "notDetail": "字段名与标准不一致" + }, + { + "caseName": "表字段标准检测用列", + "source": "演示应用", + "tableName": "TABLE_F", + "trueTableName": "TABLE_F", + "standardTableName": "TABLE_F", + "trueColumn": "columnF", + "standardColumn": "column_F", + "notDetail": "字段名与标准不一致" + }, + { + "caseName": "表字段标准检测用列", + "source": "演示应用", + "tableName": "TABLE_G", + "trueTableName": "TABLE_G", + "standardTableName": "TABLE_G", + "trueColumn": "columnG", + "standardColumn": "column_G", + "notDetail": "字段名与标准不一致" + } + ], + "length_key": [ + { + "ruleName": "长度标准检测用列", + "ruleSourceName": "演示应用", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "449", + "checkErrorCount": "10" + } + ], + "no_length_key": [ + { + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_A", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "2000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_B", + "standardColumn": "column_C", + "standardLength": "100", + "trueLength": "150", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_C", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "4000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_D", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "2000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_E", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "2000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_F", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "2000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_G", + "standardColumn": "column_C", + "standardLength": "2000", + "trueLength": "4000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_H", + "standardColumn": "column_C", + "standardLength": "100", + "trueLength": "150", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_I", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "2000", + "notDetail": "字段长度不符合标准约束" + },{ + "caseName": "长度标准检测用列", + "source": "演示应用", + "tableName": "TABLE_J", + "standardColumn": "column_C", + "standardLength": "200", + "trueLength": "2000", + "notDetail": "字段长度不符合标准约束" + } + ], + "pk_key": [ + { + "ruleName": "主键标准检测用列", + "ruleSourceName": "数据平台", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "78", + "checkErrorCount": "8" + },{ + "ruleName": "主键标准检测用列", + "ruleSourceName": "演示应用", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "449", + "checkErrorCount": "5" + } + + ], + "no_pk_key": [ + { + "caseName": "主键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_A", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + }, + { + "caseName": "主键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_W", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "否", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "是" + },{ + "caseName": "主键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_Q", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + }, + { + "caseName": "主键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_E", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "否", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "是" + },{ + "caseName": "主键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_R", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + }, + { + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_A", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "否", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "是" + },{ + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_D", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + }, + { + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_W", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "否", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "是" + },{ + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_G", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + }, + { + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_L", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "否", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "是" + },{ + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_P", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + }, + { + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_U", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "否", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "是" + },{ + "caseName": "主键标准检测用列", + "source": "数据平台", + "tableName": "TABLE_M", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "truePk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardPk": "否" + } + ], + "null_key": [ + { + "ruleName": "空值标准检测分析", + "ruleSourceName": "演示应用", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "449", + "checkErrorCount": "9" + } + ], + "no_null_key": [ + { + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_A", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "trueNull": "是", + "notDetail": "表字段不符合空值校验", + "standardNull": "否" + }, + { + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_B", + "standardColumn": "column_BBB", + "trueColumn": "column_BBB", + "trueNull": "否", + "notDetail": "表字段不符合空值校验", + "standardNull": "是" + },{ + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_Y", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "trueNull": "是", + "notDetail": "表字段不符合空值校验", + "standardNull": "否" + }, + { + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_W", + "standardColumn": "column_BBB", + "trueColumn": "column_BBB", + "trueNull": "否", + "notDetail": "表字段不符合空值校验", + "standardNull": "是" + },{ + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_H", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "trueNull": "是", + "notDetail": "表字段不符合空值校验", + "standardNull": "否" + }, + { + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_UU", + "standardColumn": "column_BBB", + "trueColumn": "column_BBB", + "trueNull": "否", + "notDetail": "表字段不符合空值校验", + "standardNull": "是" + },{ + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_QQ", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "trueNull": "是", + "notDetail": "表字段不符合空值校验", + "standardNull": "否" + }, + { + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_PP", + "standardColumn": "column_BBB", + "trueColumn": "column_BBB", + "trueNull": "否", + "notDetail": "表字段不符合空值校验", + "standardNull": "是" + },{ + "caseName": "空值标准检测用列", + "source": "演示应用", + "tableName": "TABLE_K", + "standardColumn": "column_BBB", + "trueColumn": "column_BBB", + "trueNull": "否", + "notDetail": "表字段不符合空值校验", + "standardNull": "是" + } + ], + "fk_key": [ + { + "ruleName": "外键标准检测分析", + "ruleSourceName": "演示应用", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "449", + "checkErrorCount": "2" + } + ], + "no_fk_key": [ + { + "caseName": "外键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_A", + "standardColumn": "column_AAA", + "trueColumn": "column_AAA", + "trueFk": "是", + "notDetail": "表字段不符合主键标准约束", + "standardFk": "否" + }, + { + "caseName": "外键标准检测用列", + "source": "演示应用", + "tableName": "TABLE_B", + "standardColumn": "column_BBB", + "trueColumn": "column_BBB", + "trueFk": "否", + "notDetail": "表字段不符合外键标准约束", + "standardFk": "是" + } + ], + "integrity": [ + { + "ruleName": "完整性标准检测用列", + "ruleSourceName": "数据平台", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "500", + "checkErrorCount": "28" + } + ], + "no_integrity":[{ + "caseName": "完整性标准检测用列", + "source": "数据平台", + "tableName": "TABLE_A", + "trueColumn": "column_AAA", + "notDetail": "数据不符合标准表字段非空约束" + }], + "accuracy": [ + { + "ruleName": "准确性标准检测用列", + "ruleSourceName": "数据平台", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "500", + "checkErrorCount": "28" + } + ], + "no_accuracy": [{ + "caseName": "准确性标准检测用列", + "source": "数据平台", + "tableName": "TABLE_A", + "trueColumn": "column_AAA", + "notDetail": "数据不符合标准表字段长度约束" + }], + "consistent": [ + { + "ruleName": "一致性标准检测用列", + "ruleSourceName": "数据平台", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "500", + "checkErrorCount": "28" + } + ], + "no_consistent": [{ + "caseName": "一致性标准检测用列", + "source": "数据平台", + "tableName": "TABLE_A", + "trueColumn": "column_AAA", + "notDetail": "数据不符合标准值域范围" + }], + "regular": [ + { + "ruleName": "正则表达式标准检测用列", + "ruleSourceName": "数据平台", + "ruleTableName": "全表", + "version": "1.0", + "checkTotalCount": "500", + "checkErrorCount": "28" + } + ], + "no_regular": [{ + "caseName": "手机号码验证用列", + "source": "数据平台", + "tableName": "TABLE_A", + "trueColumn": "column_AAA", + "dataColumn": "271727122", + "notDetail": "数据不符合标准正则表达式约束" + }] + }, + "dataReport": { + "reportTableData1": [ + { + "ruleSourceId": 1, + "ruleSourceName": "数据平台", + "tableSum": "78", + "tableTime": "3879", + "ruleLevelName": "1.0", + "checkErrorCount": 9 + }, + { + "ruleSourceId": 1, + "ruleSourceName": "演示应用", + "tableSum": "449", + "tableTime": "15264", + "ruleLevelName": "1.0", + "checkErrorCount": 30 + } + ], + "reportTableData2": [ + { + "checkErrorCount": 5, + "ruleTypeId": "1", + "ruleTypeName": "数据平台", + "ruleLevelName": "中", + "ruleName": "表字段标准检测分析" + }, + { + "checkErrorCount": 10, + "ruleTypeId": "1", + "ruleTypeName": "数据平台", + "ruleLevelName": "中", + "ruleName": "长度标准检测用列" + }, + { + "checkErrorCount": 9, + "ruleTypeId": "1", + "ruleTypeName": "数据平台", + "ruleLevelName": "中", + "ruleName": "空值标准检测分析" + }, + { + "checkErrorCount": 13, + "ruleTypeId": "1", + "ruleTypeName": "数据平台", + "ruleLevelName": "中", + "ruleName": "主键标准检测用列" + }, + { + "checkErrorCount": 2, + "ruleTypeId": "1", + "ruleTypeName": "数据平台", + "ruleLevelName": "中", + "ruleName": "外键标准检测分析" + } + ] + }, + "checkTotalCount": "527", + "checkTimeConsuming": "19,143", + "checkErrorCount": "39" } diff --git a/src/views/quality/checkrule/CheckRuleAdd.vue b/src/views/quality/checkrule/CheckRuleAdd.vue index 0fb4ae3..9d7279c 100644 --- a/src/views/quality/checkrule/CheckRuleAdd.vue +++ b/src/views/quality/checkrule/CheckRuleAdd.vue @@ -29,16 +29,16 @@ /> - - - - - + + + + + + + + + + @@ -58,6 +58,7 @@ filterable :titles="['备选', '已选']" :filter-method="filterMethod" + :format="formatTransfer" filter-placeholder="请输入表名" :data="transferData" />--> @@ -163,7 +164,8 @@ export default { }, status: '1', zzStatus: '0', // 状态正则 - transferValue: [] + transferValue: [], + transferValueName: [] }, // 表单校验 rules: { @@ -173,9 +175,6 @@ export default { ruleItemId: [ { required: true, message: '核查类型不能为空', trigger: 'change' } ], - ruleLevelId: [ - { required: true, message: '规则级别不能为空', trigger: 'change' } - ], ruleSourceId: [ { required: true, message: '数据源不能为空', trigger: 'change' } ], @@ -218,20 +217,23 @@ export default { methods: { filterMethod(query, item) { - return item.pinyin.indexOf(query) > -1 + return item.tableNameStr.indexOf(query) > -1 + }, + formatTransfer(item) { + return item.label }, generateData(tableData) { const data = [] - const tableName = tableData - const pinyin = tableData - tableName.forEach((tableData, index) => { + const tableName = tableData // 确保 tableData 是数组,包含有 label 属性的对象 + tableName.forEach((tableItem) => { data.push({ - label: tableData, - key: tableData, - pinyin: pinyin[index] + label: tableItem.label, + key: tableItem.key, + tableNameStr: tableItem.label // 直接使用 tableItem.label }) }) this.transferData = data + console.log('this.transferData==', this.transferData) }, showCard() { this.$emit('showCard', this.showOptions) @@ -293,8 +295,12 @@ export default { const tableNameList = [] for (let i = 0; i < response.data.length; i++) { const tableName = response.data[i].tableName + const tableId = response.data[i].id + const map = {} if (!tableNameOldList.some((str) => str === tableName)) { - tableNameList.push(tableName) + map.key = tableId + map.label = tableName + tableNameList.push(map) } } await this.generateData(tableNameList) @@ -395,6 +401,7 @@ export default { }, /** 提交按钮 */ submitForm: function () { + console.log('transferValue', this.form.transferValue) this.$refs['form'].validate(valid => { if (valid) { this.loadingOptions.loading = true diff --git a/src/views/quality/checkrule/CheckRuleDetail.vue b/src/views/quality/checkrule/CheckRuleDetail.vue index e154aae..deaa10c 100644 --- a/src/views/quality/checkrule/CheckRuleDetail.vue +++ b/src/views/quality/checkrule/CheckRuleDetail.vue @@ -21,16 +21,16 @@ /> - - - - - + + + + + + + + + + - - - - - + + + + + + + + + +