提交66 76
This commit is contained in:
parent
65943c1612
commit
1bc5c4c448
|
@ -172,6 +172,7 @@ export default {
|
||||||
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
||||||
// this.$refs.modalForm.title = "配置";
|
// this.$refs.modalForm.title = "配置";
|
||||||
this.$refs.subPage.queryParam.tableName = record.tableName
|
this.$refs.subPage.queryParam.tableName = record.tableName
|
||||||
|
this.$refs.subPage.queryParam.schemaName = record.schemaName
|
||||||
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
||||||
this.$refs.subPage.title = "配置";
|
this.$refs.subPage.title = "配置";
|
||||||
this.$refs.subPage.pagevisible = true
|
this.$refs.subPage.pagevisible = true
|
||||||
|
|
|
@ -47,7 +47,8 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
transfFileds: null,
|
transfFileds: null,
|
||||||
transfStrategy: null
|
transfStrategy: null,
|
||||||
|
schemaName:""
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
||||||
|
@ -91,12 +92,13 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
add(tableName, dataType) {
|
add(schemaName,tableName, dataType) {
|
||||||
this.getQuerytableColumns(dataType, tableName)
|
this.getQuerytableColumns(dataType, tableName)
|
||||||
this.form = {
|
this.form = {
|
||||||
tableName: tableName,
|
tableName: tableName,
|
||||||
transfFileds: null,
|
transfFileds: null,
|
||||||
transfStrategy: null
|
transfStrategy: null,
|
||||||
|
schemaName :schemaName
|
||||||
}
|
}
|
||||||
this.checkedList = []
|
this.checkedList = []
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
@ -114,7 +116,8 @@ export default {
|
||||||
id: null,
|
id: null,
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
transfFileds: null,
|
transfFileds: null,
|
||||||
transfStrategy: null
|
transfStrategy: null,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.getQuerytableColumns(dataType1, record.tableName)
|
this.getQuerytableColumns(dataType1, record.tableName)
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.modalForm.add( this.queryParam.tableName, this.datetypeF);
|
this.$refs.modalForm.add(this.queryParam.schemaName,this.queryParam.tableName, this.datetypeF);
|
||||||
this.$refs.modalForm.title = "新增";
|
this.$refs.modalForm.title = "新增";
|
||||||
},
|
},
|
||||||
handleEdit(record) {
|
handleEdit(record) {
|
||||||
|
|
|
@ -172,6 +172,7 @@ export default {
|
||||||
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
||||||
// this.$refs.modalForm.title = "配置";
|
// this.$refs.modalForm.title = "配置";
|
||||||
this.$refs.subPage.queryParam.tableName = record.tableName
|
this.$refs.subPage.queryParam.tableName = record.tableName
|
||||||
|
this.$refs.subPage.queryParam.schemaName = record.schemaName
|
||||||
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
||||||
this.$refs.subPage.title = "配置";
|
this.$refs.subPage.title = "配置";
|
||||||
this.$refs.subPage.pagevisible = true
|
this.$refs.subPage.pagevisible = true
|
||||||
|
|
|
@ -54,7 +54,8 @@ export default {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
columnName: null,
|
columnName: null,
|
||||||
dataType: null,
|
dataType: null,
|
||||||
dataPrecision: null
|
dataPrecision: null,
|
||||||
|
schemaName:null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
||||||
|
@ -97,13 +98,14 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
add(tableName, dataType) {
|
add(schemaName,tableName, dataType) {
|
||||||
this.getQuerytableColumns(dataType, tableName)
|
this.getQuerytableColumns(dataType, tableName)
|
||||||
this.form = {
|
this.form = {
|
||||||
tableName: tableName,
|
tableName: tableName,
|
||||||
columnName: null,
|
columnName: null,
|
||||||
dataType: null,
|
dataType: null,
|
||||||
dataPrecision: null
|
dataPrecision: null,
|
||||||
|
schemaName:schemaName
|
||||||
}
|
}
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
|
@ -119,7 +121,8 @@ export default {
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
columnName: null,
|
columnName: null,
|
||||||
dataType: null,
|
dataType: null,
|
||||||
dataPrecision: null
|
dataPrecision: null,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.getQuerytableColumns(dataType1, record.tableName)
|
this.getQuerytableColumns(dataType1, record.tableName)
|
||||||
|
|
|
@ -126,7 +126,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.modalForm.add( this.queryParam.tableName, this.datetypeF);
|
this.$refs.modalForm.add(this.queryParam.schemaName,this.queryParam.tableName, this.datetypeF);
|
||||||
this.$refs.modalForm.title = "新增";
|
this.$refs.modalForm.title = "新增";
|
||||||
},
|
},
|
||||||
handleEdit(record) {
|
handleEdit(record) {
|
||||||
|
|
|
@ -60,7 +60,8 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
duplicationType: 1,
|
duplicationType: 1,
|
||||||
judgmentField: null
|
judgmentField: null,
|
||||||
|
schemaName:null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
||||||
|
@ -106,7 +107,8 @@ export default {
|
||||||
this.form = {
|
this.form = {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
duplicationType: 1,
|
duplicationType: 1,
|
||||||
judgmentField: null
|
judgmentField: null,
|
||||||
|
schemaName:null
|
||||||
}
|
}
|
||||||
this.dataType = dataType
|
this.dataType = dataType
|
||||||
this.checkedList =[]
|
this.checkedList =[]
|
||||||
|
@ -117,7 +119,8 @@ export default {
|
||||||
id: null,
|
id: null,
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
duplicationType: 1,
|
duplicationType: 1,
|
||||||
judgmentField: null
|
judgmentField: null,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
if (record.id) {
|
if (record.id) {
|
||||||
queryById({ id: record.id }).then(res => {
|
queryById({ id: record.id }).then(res => {
|
||||||
|
|
|
@ -57,7 +57,8 @@ export default {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
stringStrategy: null,
|
stringStrategy: null,
|
||||||
digitStrategy: null,
|
digitStrategy: null,
|
||||||
dateTimeStrategy: null
|
dateTimeStrategy: null,
|
||||||
|
schemaName:null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
||||||
|
@ -84,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;
|
||||||
},
|
},
|
||||||
|
@ -101,7 +103,8 @@ export default {
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
stringStrategy: null,
|
stringStrategy: null,
|
||||||
digitStrategy: null,
|
digitStrategy: null,
|
||||||
dateTimeStrategy: null
|
dateTimeStrategy: null,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
|
@ -88,7 +88,8 @@ export default {
|
||||||
add(dataType) {
|
add(dataType) {
|
||||||
this.form = {
|
this.form = {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
mergTables: []
|
mergTables: [],
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
this.dataType = dataType
|
this.dataType = dataType
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
@ -98,7 +99,8 @@ export default {
|
||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: null,
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
mergTables: null
|
mergTables: null,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
if (record.id) {
|
if (record.id) {
|
||||||
queryById({ id: record.id }).then(res => {
|
queryById({ id: record.id }).then(res => {
|
||||||
|
|
|
@ -172,6 +172,7 @@ export default {
|
||||||
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
||||||
// this.$refs.modalForm.title = "配置";
|
// this.$refs.modalForm.title = "配置";
|
||||||
this.$refs.subPage.queryParam.tableName = record.tableName
|
this.$refs.subPage.queryParam.tableName = record.tableName
|
||||||
|
this.$refs.subPage.queryParam.schemaName = record.schemaName
|
||||||
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
||||||
this.$refs.subPage.title = "配置";
|
this.$refs.subPage.title = "配置";
|
||||||
this.$refs.subPage.pagevisible = true
|
this.$refs.subPage.pagevisible = true
|
||||||
|
|
|
@ -93,13 +93,14 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
add(tableName, dataType) {
|
add(schemaName,tableName, dataType) {
|
||||||
this.form = {
|
this.form = {
|
||||||
tableName: tableName,
|
tableName: tableName,
|
||||||
strategy: null,
|
strategy: null,
|
||||||
maxVal: null,
|
maxVal: null,
|
||||||
minVal: null,
|
minVal: null,
|
||||||
field:null
|
field:null,
|
||||||
|
schemaName:schemaName
|
||||||
},
|
},
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
this.dataType = dataType
|
this.dataType = dataType
|
||||||
|
@ -119,7 +120,8 @@ export default {
|
||||||
maxVal: null,
|
maxVal: null,
|
||||||
minVal: null,
|
minVal: null,
|
||||||
field:null,
|
field:null,
|
||||||
tableName: record.tableName
|
tableName: record.tableName,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.getQuerytableColumns(dataType, record.tableName)
|
this.getQuerytableColumns(dataType, record.tableName)
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.modalForm.add( this.queryParam.tableName, this.datetypeF);
|
this.$refs.modalForm.add(this.queryParam.schemaName,this.queryParam.tableName, this.datetypeF);
|
||||||
this.$refs.modalForm.title = "新增";
|
this.$refs.modalForm.title = "新增";
|
||||||
},
|
},
|
||||||
handleEdit(record) {
|
handleEdit(record) {
|
||||||
|
|
|
@ -84,7 +84,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;
|
||||||
},
|
},
|
||||||
|
@ -101,7 +102,8 @@ export default {
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
stringStrategy: null,
|
stringStrategy: null,
|
||||||
digitStrategy: null,
|
digitStrategy: null,
|
||||||
dateTimeStrategy: null
|
dateTimeStrategy: null,
|
||||||
|
schemaName: record.schemaName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
|
@ -172,6 +172,7 @@ export default {
|
||||||
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
// this.$refs.modalForm.eidt(record, this.queryParam.dataType);
|
||||||
// this.$refs.modalForm.title = "配置";
|
// this.$refs.modalForm.title = "配置";
|
||||||
this.$refs.subPage.queryParam.tableName = record.tableName
|
this.$refs.subPage.queryParam.tableName = record.tableName
|
||||||
|
this.$refs.subPage.queryParam.schemaName = record.schemaName
|
||||||
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
this.$refs.subPage.datetypeF = this.queryParam.dataType
|
||||||
this.$refs.subPage.title = "配置";
|
this.$refs.subPage.title = "配置";
|
||||||
this.$refs.subPage.pagevisible = true
|
this.$refs.subPage.pagevisible = true
|
||||||
|
|
|
@ -97,12 +97,13 @@ export default {
|
||||||
handleChange(value) {
|
handleChange(value) {
|
||||||
this.getQuerytableColumns(this.dataType, this.form.tableName)
|
this.getQuerytableColumns(this.dataType, this.form.tableName)
|
||||||
},
|
},
|
||||||
add(tableName, dataType) {
|
add(schemaName,tableName, dataType) {
|
||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: null,
|
||||||
tableName: tableName,
|
tableName: tableName,
|
||||||
type: 1,
|
type: 1,
|
||||||
fields: null
|
fields: null,
|
||||||
|
schemaName:schemaName
|
||||||
}
|
}
|
||||||
this.dataType = dataType
|
this.dataType = dataType
|
||||||
this.checkedList =[]
|
this.checkedList =[]
|
||||||
|
@ -114,7 +115,8 @@ export default {
|
||||||
id: null,
|
id: null,
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
type: 1,
|
type: 1,
|
||||||
fields: null
|
fields: null,
|
||||||
|
schemaName:record.schemaName
|
||||||
}
|
}
|
||||||
if (record.id) {
|
if (record.id) {
|
||||||
queryById({ id: record.id }).then(res => {
|
queryById({ id: record.id }).then(res => {
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.modalForm.add( this.queryParam.tableName, this.datetypeF);
|
this.$refs.modalForm.add(this.queryParam.schemaName,this.queryParam.tableName, this.datetypeF);
|
||||||
this.$refs.modalForm.title = "新增";
|
this.$refs.modalForm.title = "新增";
|
||||||
},
|
},
|
||||||
handleEdit(record) {
|
handleEdit(record) {
|
||||||
|
|
|
@ -57,7 +57,8 @@ export default {
|
||||||
tableName: null,
|
tableName: null,
|
||||||
stringStrategy: null,
|
stringStrategy: null,
|
||||||
digitStrategy: null,
|
digitStrategy: null,
|
||||||
dateTimeStrategy: null
|
dateTimeStrategy: null,
|
||||||
|
schemaName: null
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
tableName: [{ required: true, message: '请输入表名', trigger: 'blur' }],
|
||||||
|
@ -101,7 +102,8 @@ export default {
|
||||||
tableName: record.tableName,
|
tableName: record.tableName,
|
||||||
stringStrategy: null,
|
stringStrategy: null,
|
||||||
digitStrategy: null,
|
digitStrategy: null,
|
||||||
dateTimeStrategy: null
|
dateTimeStrategy: null,
|
||||||
|
schemaName: record.schemaName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user