完成清洗剩余两个规则

This commit is contained in:
RenCheng 2025-06-08 13:48:17 +08:00
parent a1d2aa7003
commit 9b84e9f4da
7 changed files with 338 additions and 152 deletions

View File

@ -0,0 +1,15 @@
import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
const createRules = (params)=>postAction("/consistencyCheckRules/createRules",params);
const updateRules = (params)=>putAction("/consistencyCheckRules/updateRules",params);
const deleteRules = (params)=>deleteAction("/consistencyCheckRules/deleteRules",params);
const queryPage = (params)=>getAction("/consistencyCheckRules/queryPage",params);
const queryById = (params)=>getAction("/consistencyCheckRules/queryById",params);
export {
createRules,
updateRules,
deleteRules,
queryPage,
queryById
}

View File

@ -0,0 +1,18 @@
import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
const createRules = (params)=>postAction("/outlierReplaceRules/createRules",params);
const updateRules = (params)=>putAction("/outlierReplaceRules/updateRules",params);
const deleteRules = (params)=>deleteAction("/outlierReplaceRules/deleteRules",params);
const queryPage = (params)=>getAction("/outlierReplaceRules/queryPage",params);
const queryById = (params)=>getAction("/outlierReplaceRules/queryById",params);
const queryRulesByTableName = (params)=>getAction("/outlierReplaceRules/queryRulesByTableName",params);
const querytableColumns = (params)=>getAction("/outlierReplaceRules/getTableColumns",params);
export {
createRules,
updateRules,
deleteRules,
queryPage,
queryById,
queryRulesByTableName,
querytableColumns
}

View File

@ -12,8 +12,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="数据类型"> <a-form-item label="数据类型">
<a-select placeholder="选择数据类型" option-filter-prop="children" <a-select placeholder="选择数据类型" option-filter-prop="children" v-model="queryParam.dataType" @change="handleTypeChange">
v-model="queryParam.dataType" @change="handleTypeChange">
<a-select-option v-for="item in dataTypeList" :value="item.enName"> <a-select-option v-for="item in dataTypeList" :value="item.enName">
{{ item.cnName }} {{ item.cnName }}
</a-select-option> </a-select-option>
@ -22,7 +21,7 @@
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="报文名"> <a-form-item label="报文名">
<a-input placeholder="请输入报文名" v-model="queryParam.msgName" allow-clear></a-input> <a-input placeholder="请输入报文名" v-model="queryParam.msgName" allow-clear></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
@ -41,34 +40,34 @@
<!-- 表格区域 --> <!-- 表格区域 -->
<div style="height:calc(100vh - 316px);background: #e6e9f1;overflow:hidden;padding: 15px;"> <div style="height:calc(100vh - 316px);background: #e6e9f1;overflow:hidden;padding: 15px;">
<a-table size="middle" bordered :columns="columns" :data-source="dataSource" :loading="loading" <a-table size="middle" bordered :columns="columns" :data-source="dataSource" :loading="loading"
:pagination="pagination" :scroll="{ y: 'calc(100vh - 380px)' }" rowKey="id" :pagination="pagination" :scroll="{ y: 'calc(100vh - 420px)' }" rowKey="ROW_ID"
@change="handleTableChange"> @change="handleTableChange">
<!-- <span slot="createTime" slot-scope="text, record"> <!-- <span slot="createTime" slot-scope="text, record">
{{ moment(text).format('YYYY-MM-DD') }} {{ moment(text).format('YYYY-MM-DD') }}
</span> --> </span> -->
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">配置</a> <a @click="handleEdit(record)">配置</a>
<a-divider v-if="record.id" type="vertical" /> <!-- <a-divider type="vertical" />
<a v-if="record.id" @click="handleRemove(record.id)">删除</a> <a @click="handleRemove(record.id)">删除</a> -->
</span> </span>
</a-table> </a-table>
</div> </div>
<div class="linese"></div> <div class="linese"></div>
</a-col> </a-col>
</a-row> </a-row>
<subPage ref="subPage" />
<rulesModel ref="modalForm" @fatherMethod="getQueryPage" />
</a-card> </a-card>
</template> </template>
<script> <script>
import moment from 'moment' import moment from 'moment'
import { deleteRules, queryPage } from '@/api/missingvalueRules' import { queryPage } from '@/api/outlierReplaceRules'
import { dataTypeQueryAll } from '@/api/dataType' import { dataTypeQueryAll } from '@/api/dataType'
import rulesModel from './rulesModel.vue' import {getAction} from '@/api/manage'
import subPage from './subPage.vue'
export default { export default {
name: "tempOne", name: "outlierReplaceRules",
components: { components: {
rulesModel subPage
}, },
data() { data() {
return { return {
@ -108,45 +107,6 @@ export default {
align: "center", align: "center",
dataIndex: 'msgName', dataIndex: 'msgName',
}, },
// {
// title: '',
// align: "center",
// width: 110,
// dataIndex: 'stringStrategy',
// },
{
title: '字符串策略',
align: "center",
dataIndex: 'stringStrategyDescribe',
},
// {
// title: '',
// align: "center",
// width: 100,
// dataIndex: 'digitStrategy',
// },
{
title: '数值策略',
align: "center",
dataIndex: 'digitStrategyDescribe',
},
// {
// title: '',
// align: "center",
// width: 100,
// dataIndex: 'dateTimeStrategy',
// },
{
title: '时间策略',
align: "center",
dataIndex: 'dateTimeStrategyDescribe',
},
{
title: '创建时间',
align: "center",
dataIndex: 'createTime',
scopedSlots: { customRender: 'createTime' },
},
{ {
title: '操作', title: '操作',
key: 'action', key: 'action',
@ -165,17 +125,25 @@ export default {
}, },
created() { created() {
this.getQueryPage()
this.getDataType() this.getDataType()
}, },
methods: { methods: {
getDataType() { getDataType() {
dataTypeQueryAll().then(res => { getAction("/dataType/getExistingDataTypes", {}).then((res) => {
if (res.code == 200) this.dataTypeList = res.result if (res.success) {
}) this.dataTypeList = res.result.result.DATA_CONN_ORIGINAL
if(res.result.result.DATA_CONN_ORIGINAL.length > 0){
this.queryParam.dataType = res.result.result.DATA_CONN_ORIGINAL[0].enName
}
this.getQueryPage()
} else {
this.$message.warning(res.message);
}
});
}, },
handleTypeChange(value) { handleTypeChange(value) {
this.queryParam.dataType = value this.queryParam.dataType = value
this.getQueryPage()
}, },
handleTableChange(pagination, filters, sorter) { handleTableChange(pagination, filters, sorter) {
this.pagination = pagination this.pagination = pagination
@ -191,48 +159,26 @@ export default {
this.dataSource = res.result.rows this.dataSource = res.result.rows
this.pagination = pagination this.pagination = pagination
} else { } else {
// this.$notification.error({ this.$notification.error({
// message: '', message: '系统提示',
// description: res.message description: res.message
// }) })
} }
}) })
}, },
handleAdd() {
this.$refs.modalForm.add();
this.$refs.modalForm.title = "新增";
},
handleEdit(record) { handleEdit(record) {
this.$refs.modalForm.eidt(record); console.log('编辑', this.queryParam.dataType)
this.$refs.modalForm.title = "配置"; // this.$refs.modalForm.eidt(record, this.queryParam.dataType);
// this.$refs.modalForm.title = "";
this.$refs.subPage.queryParam.tableName = record.tableName
this.$refs.subPage.queryParam.schemaName = record.schemaName
this.$refs.subPage.datetypeF = this.queryParam.dataType
this.$refs.subPage.title = "配置";
this.$refs.subPage.pagevisible = true
this.$refs.subPage.getTableInfo()
}, },
handleRemove(recordId) {
console.log('dfs', recordId)
const _that = this
_that.$confirm({
title: '你确认执行删除操作吗?',
okText: '确认',
cancelText: '取消',
onOk() {
console.log('dfs', recordId)
deleteRules({ id: recordId }).then(res => {
if (res.code === 200) {
_that.$notification.success({
message: '系统提示',
description: res.message
})
_that.getQueryPage()
} else {
_that.$notification.warning({
message: '系统提示',
description: res.message
})
}
})
},
onCancel() { }
})
}
} }
} }
</script> </script>

View File

@ -7,27 +7,21 @@
<a-form-model-item label="表名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tableName"> <a-form-model-item label="表名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tableName">
<a-input v-model="form.tableName" placeholder="请输入"></a-input> <a-input v-model="form.tableName" placeholder="请输入"></a-input>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="字符串策略" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="stringStrategy"> <a-form-model-item label="转换字段" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="field">
<a-select v-model="form.stringStrategy"> <a-tree-select v-model="form.field" style="width: 100%"
<a-select-option :value="1">直接删除</a-select-option> :tree-data="treeData" :show-checked-strategy="SHOW_PARENT" search-placeholder="请选项"
<a-select-option :value="2">复制上条数据</a-select-option> :dropdownStyle="{ maxHeight: '400px', overflowY: 'auto'}"/>
<a-select-option :value="3">复制下条数据</a-select-option> </a-form-model-item>
<a-select-option :value="4"></a-select-option> <a-form-model-item label="识别算法" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="algorithm">
<a-select v-model="form.algorithm">
<a-select-option :value="1">标准差法</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="数值策略" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="digitStrategy"> <a-form-model-item label="替换策略" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="strategy">
<a-select v-model="form.digitStrategy"> <a-select v-model="form.strategy">
<a-select-option :value="1">直接删除</a-select-option> <a-select-option :value="1">填充0</a-select-option>
<a-select-option :value="2">复制上条数据</a-select-option> <a-select-option :value="2">复制上条数据</a-select-option>
<a-select-option :value="3">复制下条数据</a-select-option> <a-select-option :value="3">删除</a-select-option>
<a-select-option :value="4">前后均值填充</a-select-option>
<a-select-option :value="5">填0</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item label="时间策略" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dateTimeStrategy">
<a-select v-model="form.dateTimeStrategy">
<a-select-option :value="1">直接删除</a-select-option>
<a-select-option :value="2">前后均值填充</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>
@ -38,8 +32,9 @@
<script> <script>
import JCron from "@/components/jeecg/JCron"; import JCron from "@/components/jeecg/JCron";
import JSelectMultiple from '@/components/jeecg/JSelectMultiple' import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
import { createRules, updateRules, queryById } from '@/api/missingvalueRules' import { createRules, updateRules, queryById,querytableColumns } from '@/api/outlierReplaceRules'
import { TreeSelect } from 'ant-design-vue';
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
export default { export default {
name: "rulesModal", name: "rulesModal",
@ -49,21 +44,23 @@ export default {
}, },
data() { data() {
return { return {
SHOW_PARENT,
title: "操作", title: "操作",
visible: false, visible: false,
model: {}, model: {},
confirmLoading: false, confirmLoading: false,
form: { form: {
tableName: null, tableName: null,
stringStrategy: null, field: null,
digitStrategy: null, algorithm: null,
dateTimeStrategy: null strategy: null,
schemaName:""
}, },
rules: { rules: {
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }], tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
stringStrategy: [{ required: true, message: '请选择字符串策略', trigger: 'change' }], field: [{ required: true, message: '请选择', trigger: 'change' }],
digitStrategy: [{ required: true, message: '请选择数值策略', trigger: 'change' }], strategy: [{ required: true, message: '请选择', trigger: 'change' }],
dateTimeStrategy: [{ required: true, message: '请选择时间策略', trigger: 'change' }] algorithm: [{ required: true, message: '请选择', trigger: 'change' }]
}, },
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
@ -73,23 +70,48 @@ export default {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 16 }, sm: { span: 16 },
}, },
treeData: [] treeData: [],
checkedList: []
} }
}, },
created() { created() {
// this.loadData();
}, },
methods: { methods: {
add() { getQuerytableColumns(dataType, tableName) {
this.form = { querytableColumns({ dataType: dataType, tableName: tableName }).then(res => {
tableName: null, if (res.code == 200) {
stringStrategy: null, this.treeData = []
digitStrategy: null, res.result.forEach(element => {
dateTimeStrategy: null, this.treeData.push({
schemaName: null title: element,
value: element,
key: element,
})
});
}
})
},
handleChange(value) {
if (value == 1) {
this.form.judgmentField = 'ALL'
} else {
} }
},
add(schemaName,tableName, dataType) {
this.getQuerytableColumns(dataType, tableName)
this.form = {
tableName: tableName,
field: null,
algorithm: null,
strategy: null,
schemaName :schemaName
}
this.checkedList = []
this.visible = true; this.visible = true;
}, },
eidt(record) { eidt(record, dataType1) {
if (record.id) { if (record.id) {
queryById({ id: record.id }).then(res => { queryById({ id: record.id }).then(res => {
if (res.code == 200) { if (res.code == 200) {
@ -100,14 +122,14 @@ export default {
this.form = { this.form = {
id: null, id: null,
tableName: record.tableName, tableName: record.tableName,
stringStrategy: null, field: null,
digitStrategy: null, algorithm: null,
dateTimeStrategy: null, strategy: null,
schemaName: record.schemaName schemaName:record.schemaName
} }
} }
this.getQuerytableColumns(dataType1, record.tableName)
this.visible = true; this.visible = true;
}, },
close() { close() {
this.visible = false; this.visible = false;
@ -116,6 +138,7 @@ export default {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
this.confirmLoading = true; this.confirmLoading = true;
this.form.transfFileds = this.checkedList.join(',')
if (!this.form.id) { if (!this.form.id) {
createRules(this.form).then(res => { createRules(this.form).then(res => {
if (res.code === 200) { if (res.code === 200) {
@ -129,7 +152,7 @@ export default {
} else { } else {
this.$notification.error({ this.$notification.error({
message: '系统提示', message: '系统提示',
description: '操作失败' description: res.message
}) })
this.confirmLoading = false this.confirmLoading = false
} }
@ -147,7 +170,7 @@ export default {
} else { } else {
this.$notification.error({ this.$notification.error({
message: '系统提示', message: '系统提示',
description: '操作失败' description: res.message
}) })
this.confirmLoading = false this.confirmLoading = false
} }

View File

@ -0,0 +1,169 @@
<template>
<a-modal :title="title" :width="900" :visible="pagevisible" :footer="null"
@cancel="handleCancel" >
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline">
<a-row :gutter="30">
<a-col :md="20">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
</span>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :md="24" :sm="24" style="text-align: right;">
<a-button type="primary" style="right: 10px" icon="plus" @click="handleAdd">新建</a-button>
</a-col>
</a-row>
</a-form>
</div>
<!-- 查询区域 -->
<a-row :gutter="30" style="padding: 0 10px;">
<a-col :md="24">
<div class="linese"></div>
<!-- 表格区域 -->
<div style="height:calc(100vh - 316px);background: #e6e9f1;overflow:hidden;padding: 15px;">
<a-table size="middle" bordered :columns="columns" :data-source="dataSource"
:pagination="false" :scroll="{ y: 'calc(100vh - 380px)' }" rowKey="id"
>
<span slot="algorithm" slot-scope="text, record">
<span v-if="text == 1">标准差法</span>
</span>
<span slot="strategy" slot-scope="text, record">
<span v-if="text == 1">填充0</span>
<span v-if="text == 2">复制上条数据</span>
<span v-if="text == 3">删除</span>
</span>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a @click="handleRemove(record.id)">删除</a>
</span>
</a-table>
</div>
<div class="linese"></div>
</a-col>
</a-row>
<rulesModel ref="modalForm" @fatherMethod="getTableInfo" />
</a-card>
</a-modal>
</template>
<script>
import { deleteRules, queryRulesByTableName } from '@/api/outlierReplaceRules'
import rulesModel from './rulesModel.vue'
export default {
name: "outlierReplaceRulessubpage",
components: {
rulesModel
},
data() {
return {
title: '',
datetypeF: '',
pagevisible: false,
queryParam: {
tableName: null
},
dataSource: [],
columns: [
{
title: '序号',
width: 70,
customRender: (text, record, index) => `${index + 1}`,
},
{
title: '表名',
align: "center",
dataIndex: 'tableName',
},
{
title: '字段名称',
align: "center",
dataIndex: 'field',
},
{
title: '识别算法',
align: "center",
dataIndex: 'algorithm',
scopedSlots: { customRender: 'algorithm' },
},
{
title: '替换策略',
align: "center",
dataIndex: 'strategy',
scopedSlots: { customRender: 'strategy' },
},
{
title: '操作',
key: 'action',
width: 130,
align: "center",
scopedSlots: { customRender: 'action' },
},
]
}
},
mounted() {
},
computed: {
},
created() { },
methods: {
getTableInfo() {
queryRulesByTableName(this.queryParam).then(res => {
if (res.code == 200) {
this.dataSource = res.result
} else {
this.$notification.error({
message: '系统提示',
description: res.message
})
}
})
},
handleAdd() {
this.$refs.modalForm.add(this.queryParam.schemaName,this.queryParam.tableName, this.datetypeF);
this.$refs.modalForm.title = "新增";
},
handleEdit(record) {
this.$refs.modalForm.eidt(record, this.datetypeF);
this.$refs.modalForm.title = "编辑";
},
handleRemove(recordId) {
console.log('dfs', recordId)
const _that = this
_that.$confirm({
title: '你确认执行删除操作吗?',
okText: '确认',
cancelText: '取消',
onOk() {
console.log('dfs', recordId)
deleteRules({ id: recordId }).then(res => {
if (res.code === 200) {
_that.$notification.success({
message: '系统提示',
description: res.message
})
_that.getTableInfo()
} else {
_that.$notification.warning({
message: '系统提示',
description: res.message
})
}
})
},
onCancel() { }
})
},
handleCancel() {
this.pagevisible = false
},
}
}
</script>

View File

@ -12,8 +12,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="数据类型"> <a-form-item label="数据类型">
<a-select placeholder="选择数据类型" option-filter-prop="children" <a-select placeholder="选择数据类型" option-filter-prop="children" v-model="queryParam.dataType" @change="handleTypeChange">
v-model="queryParam.dataType" @change="handleTypeChange">
<a-select-option v-for="item in dataTypeList" :value="item.enName"> <a-select-option v-for="item in dataTypeList" :value="item.enName">
{{ item.cnName }} {{ item.cnName }}
</a-select-option> </a-select-option>
@ -22,7 +21,13 @@
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="报文名"> <a-form-item label="报文名">
<a-input placeholder="请输入报文名" v-model="queryParam.msgName" allow-clear></a-input> <a-input placeholder="请输入报文名" v-decorator="['msgName',{
rules: [
{ required: true, message: '报文名不能为空' },
{ min: 1, max: 60, message: '长度1-60位' },
],
validateTrigger: 'change'
}]" v-model="queryParam.msgName" allow-clear></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
@ -41,7 +46,7 @@
<!-- 表格区域 --> <!-- 表格区域 -->
<div style="height:calc(100vh - 316px);background: #e6e9f1;overflow:hidden;padding: 15px;"> <div style="height:calc(100vh - 316px);background: #e6e9f1;overflow:hidden;padding: 15px;">
<a-table size="middle" bordered :columns="columns" :data-source="dataSource" :loading="loading" <a-table size="middle" bordered :columns="columns" :data-source="dataSource" :loading="loading"
:pagination="pagination" :scroll="{ y: 'calc(100vh - 380px)' }" rowKey="id" :pagination="pagination" :scroll="{ y: 'calc(100vh - 420px)' }" rowKey="id"
@change="handleTableChange"> @change="handleTableChange">
<!-- <span slot="createTime" slot-scope="text, record"> <!-- <span slot="createTime" slot-scope="text, record">
{{ moment(text).format('YYYY-MM-DD') }} {{ moment(text).format('YYYY-MM-DD') }}
@ -62,11 +67,12 @@
</template> </template>
<script> <script>
import moment from 'moment' import moment from 'moment'
import { deleteRules, queryPage } from '@/api/missingvalueRules' import { deleteRules, queryPage } from '@/api/consistencyCheckRules'
import { dataTypeQueryAll } from '@/api/dataType' import { dataTypeQueryAll } from '@/api/dataType'
import rulesModel from './rulesModel.vue' import rulesModel from './rulesModel.vue'
import {getAction} from '@/api/manage'
export default { export default {
name: "missingvalueRules", name: "consistencyCheckRules",
components: { components: {
rulesModel rulesModel
}, },
@ -165,17 +171,25 @@ export default {
}, },
created() { created() {
this.getQueryPage()
this.getDataType() this.getDataType()
}, },
methods: { methods: {
getDataType() { getDataType() {
dataTypeQueryAll().then(res => { getAction("/dataType/getExistingDataTypes", {}).then((res) => {
if (res.code == 200) this.dataTypeList = res.result if (res.success) {
}) this.dataTypeList = res.result.result.DATA_CONN_ORIGINAL
if(res.result.result.DATA_CONN_ORIGINAL.length > 0){
this.queryParam.dataType = res.result.result.DATA_CONN_ORIGINAL[0].enName
}
this.getQueryPage()
} else {
this.$message.warning(res.message);
}
});
}, },
handleTypeChange(value) { handleTypeChange(value) {
this.queryParam.dataType = value this.queryParam.dataType = value
this.getQueryPage()
}, },
handleTableChange(pagination, filters, sorter) { handleTableChange(pagination, filters, sorter) {
this.pagination = pagination this.pagination = pagination
@ -191,10 +205,10 @@ export default {
this.dataSource = res.result.rows this.dataSource = res.result.rows
this.pagination = pagination this.pagination = pagination
} else { } else {
// this.$notification.error({ this.$notification.error({
// message: '', message: '系统提示',
// description: res.message description: res.message
// }) })
} }
}) })
}, },

View File

@ -38,7 +38,7 @@
<script> <script>
import JCron from "@/components/jeecg/JCron"; import JCron from "@/components/jeecg/JCron";
import JSelectMultiple from '@/components/jeecg/JSelectMultiple' import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
import { createRules, updateRules, queryById } from '@/api/missingvalueRules' import { createRules, updateRules, queryById } from '@/api/consistencyCheckRules'
export default { export default {
@ -58,7 +58,7 @@ export default {
stringStrategy: null, stringStrategy: null,
digitStrategy: null, digitStrategy: null,
dateTimeStrategy: null, dateTimeStrategy: null,
schemaName: null schemaName:null
}, },
rules: { rules: {
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }], tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
@ -85,7 +85,8 @@ export default {
tableName: null, tableName: null,
stringStrategy: null, stringStrategy: null,
digitStrategy: null, digitStrategy: null,
dateTimeStrategy: null dateTimeStrategy: null,
schemaName:null
} }
this.visible = true; this.visible = true;
}, },
@ -103,7 +104,7 @@ export default {
stringStrategy: null, stringStrategy: null,
digitStrategy: null, digitStrategy: null,
dateTimeStrategy: null, dateTimeStrategy: null,
schemaName: record.schemaName schemaName:record.schemaName
} }
} }
this.visible = true; this.visible = true;