diff --git a/src/api/dataMergingRules.js b/src/api/dataMergingRules.js new file mode 100644 index 0000000..7f014ec --- /dev/null +++ b/src/api/dataMergingRules.js @@ -0,0 +1,19 @@ +import { getAction, deleteAction, putAction, postAction } from '@/api/manage' + +const createRules = (params)=>postAction("/dataMergingRules/createRules",params); +const updateRules = (params)=>putAction("/dataMergingRules/updateRules",params); +const deleteRules = (params)=>deleteAction("/dataMergingRules/deleteRules",params); +const queryPage = (params)=>getAction("/dataMergingRules/queryPage",params); +const queryById = (params)=>getAction("/dataMergingRules/queryById",params); +const querytableColumns = (params)=>getAction("/dataMergingRules/getTableColumns",params); +const queryRulesByTableName = (params)=>getAction("/dataMergingRules/queryRulesByTableName",params); + +export { + createRules, + updateRules, + deleteRules, + queryPage, + queryById, + querytableColumns, + queryRulesByTableName +} \ No newline at end of file diff --git a/src/api/desensitizationRules.js b/src/api/desensitizationRules.js new file mode 100644 index 0000000..85dde70 --- /dev/null +++ b/src/api/desensitizationRules.js @@ -0,0 +1,20 @@ +import { getAction, deleteAction, putAction, postAction } from '@/api/manage' + +const createRules = (params)=>postAction("/desensitizationRules/createRules",params); +const updateRules = (params)=>putAction("/desensitizationRules/updateRules",params); +const deleteRules = (params)=>deleteAction("/desensitizationRules/deleteRules",params); +const queryPage = (params)=>getAction("/desensitizationRules/queryPage",params); +const queryById = (params)=>getAction("/desensitizationRules/queryById",params); +const querytableColumns = (params)=>getAction("/desensitizationRules/getTableColumns",params); +const queryRulesByTableName = (params)=>getAction("/desensitizationRules/queryRulesByTableName",params); + + +export { + createRules, + updateRules, + deleteRules, + queryPage, + queryById, + querytableColumns, + queryRulesByTableName +} \ No newline at end of file diff --git a/src/api/rangeValidatorRules.js b/src/api/rangeValidatorRules.js new file mode 100644 index 0000000..ad85a93 --- /dev/null +++ b/src/api/rangeValidatorRules.js @@ -0,0 +1,20 @@ +import { getAction, deleteAction, putAction, postAction } from '@/api/manage' + +const createRules = (params)=>postAction("/rangeValidatorRules/createRules",params); +const updateRules = (params)=>putAction("/rangeValidatorRules/updateRules",params); +const deleteRules = (params)=>deleteAction("/rangeValidatorRules/deleteRules",params); +const queryPage = (params)=>getAction("/rangeValidatorRules/queryPage",params); +const queryById = (params)=>getAction("/rangeValidatorRules/queryById",params); +const querytableColumns = (params)=>getAction("/rangeValidatorRules/getTableColumns",params); +const queryRulesByTableName = (params)=>getAction("/rangeValidatorRules/queryRulesByTableName",params); + + +export { + createRules, + updateRules, + deleteRules, + queryPage, + queryById, + querytableColumns, + queryRulesByTableName +} \ No newline at end of file diff --git a/src/views/datawashing/dataformatsRules/rulesModel.vue b/src/views/datawashing/dataformatsRules/rulesModel.vue index cd64131..0a1d73a 100644 --- a/src/views/datawashing/dataformatsRules/rulesModel.vue +++ b/src/views/datawashing/dataformatsRules/rulesModel.vue @@ -102,7 +102,6 @@ export default { this.visible = true; }, eidt(record, dataType1) { - console.log('sfdsafa',record, dataType1) if (record.id) { queryById({ id: record.id }).then(res => { if (res.code == 200) { diff --git a/src/views/datawashing/deEmphasisRules/modules/rulesModel.vue b/src/views/datawashing/deEmphasisRules/modules/rulesModel.vue index da50651..4751373 100644 --- a/src/views/datawashing/deEmphasisRules/modules/rulesModel.vue +++ b/src/views/datawashing/deEmphasisRules/modules/rulesModel.vue @@ -121,10 +121,14 @@ export default { } if (record.id) { queryById({ id: record.id }).then(res => { - if (res.code == 200) this.form = res.result + if (res.code == 200) { + this.form = res.result + this.checkedList = this.form.judgmentField.split(',') + } }) } this.dataType = dataType + this.getQuerytableColumns(dataType, record.tableName) this.visible = true; }, diff --git a/src/views/datawashing/tempfive/index.vue b/src/views/datawashing/tempfive/index.vue index ae45fe6..f7cafdb 100644 --- a/src/views/datawashing/tempfive/index.vue +++ b/src/views/datawashing/tempfive/index.vue @@ -12,8 +12,7 @@ - + {{ item.cnName }} @@ -41,14 +40,18 @@
+ 配置 - + 删除 @@ -62,11 +65,12 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/datawashing/tempfour/index.vue b/src/views/datawashing/tempfour/index.vue index ae45fe6..64b494a 100644 --- a/src/views/datawashing/tempfour/index.vue +++ b/src/views/datawashing/tempfour/index.vue @@ -12,8 +12,7 @@ - + {{ item.cnName }} @@ -41,34 +40,34 @@
配置 - - 删除 +
- - + \ No newline at end of file diff --git a/src/views/datawashing/tempfour/rulesModel.vue b/src/views/datawashing/tempfour/rulesModel.vue index a54e4e2..098a428 100644 --- a/src/views/datawashing/tempfour/rulesModel.vue +++ b/src/views/datawashing/tempfour/rulesModel.vue @@ -7,28 +7,24 @@ - - - 直接删除 - 复制上条数据 - 复制下条数据 - + + + + + + 填充0 + 取均值 + 复制上条数据 + 复制下条数据 - - - 直接删除 - 复制上条数据 - 复制下条数据 - 前后均值填充 - 填0 - + + - - - 直接删除 - 前后均值填充 - + + @@ -38,7 +34,7 @@ \ No newline at end of file diff --git a/src/views/datawashing/tempthree/index.vue b/src/views/datawashing/tempthree/index.vue index ae45fe6..8968f53 100644 --- a/src/views/datawashing/tempthree/index.vue +++ b/src/views/datawashing/tempthree/index.vue @@ -12,8 +12,7 @@ - + {{ item.cnName }} @@ -41,34 +40,34 @@
配置 - - 删除 +
- - + \ No newline at end of file diff --git a/src/views/datawashing/tempthree/rulesModel.vue b/src/views/datawashing/tempthree/rulesModel.vue index a54e4e2..c1248a3 100644 --- a/src/views/datawashing/tempthree/rulesModel.vue +++ b/src/views/datawashing/tempthree/rulesModel.vue @@ -5,30 +5,29 @@ - + - - - 直接删除 - 复制上条数据 - 复制下条数据 - + + + + 替换脱敏 + + + 加密脱敏 + - - - 直接删除 - 复制上条数据 - 复制下条数据 - 前后均值填充 - 填0 - - - - - 直接删除 - 前后均值填充 - + + + @@ -38,8 +37,9 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/datawashing/tempthree/subPage.vue b/src/views/datawashing/tempthree/subPage.vue new file mode 100644 index 0000000..f5895cd --- /dev/null +++ b/src/views/datawashing/tempthree/subPage.vue @@ -0,0 +1,159 @@ + + \ No newline at end of file