|
@@ -390,7 +390,7 @@ export default {
|
|
let data = {tableName:tableName,dataMap:dataMap}
|
|
let data = {tableName:tableName,dataMap:dataMap}
|
|
console.log(data)
|
|
console.log(data)
|
|
api.fetch({
|
|
api.fetch({
|
|
- action: 'http://192.168.10.103:8088/system/mobilePageDesignData/normal/insertData',
|
|
|
|
|
|
+ action: 'http://175.27.169.173:8088/system/mobilePageDesignData/normal/insertData',
|
|
method: 'post',
|
|
method: 'post',
|
|
data: data,
|
|
data: data,
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
@@ -601,11 +601,14 @@ export default {
|
|
this.$refs.designer.form.rule = [databaseTableField, ...defaultForm];
|
|
this.$refs.designer.form.rule = [databaseTableField, ...defaultForm];
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
let f = this.$refs.designer.form.rule.find(item => item.field === 'formInDatabase');
|
|
let f = this.$refs.designer.form.rule.find(item => item.field === 'formInDatabase');
|
|
|
|
+ // console.log('f---',f)
|
|
|
|
+
|
|
if (f) {
|
|
if (f) {
|
|
let changeOpt = {
|
|
let changeOpt = {
|
|
field: 'formInDatabase',
|
|
field: 'formInDatabase',
|
|
value: f.value,
|
|
value: f.value,
|
|
}
|
|
}
|
|
|
|
+ // console.log('changeOpt---',changeOpt)
|
|
this.formOptChange(changeOpt, true)
|
|
this.formOptChange(changeOpt, true)
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -625,15 +628,17 @@ export default {
|
|
formOptChange(changeOpt, mode) {
|
|
formOptChange(changeOpt, mode) {
|
|
const designer = this.$refs.designer;
|
|
const designer = this.$refs.designer;
|
|
if (!designer) return;
|
|
if (!designer) return;
|
|
|
|
+ console.log('changeOpt',changeOpt)
|
|
if (changeOpt && changeOpt.field == "formInDatabase") {
|
|
if (changeOpt && changeOpt.field == "formInDatabase") {
|
|
this.clearFormData()
|
|
this.clearFormData()
|
|
this.clearLabelData()
|
|
this.clearLabelData()
|
|
let data = {
|
|
let data = {
|
|
databaseName: this.databaseName,
|
|
databaseName: this.databaseName,
|
|
databaseType: this.databaseType,
|
|
databaseType: this.databaseType,
|
|
- tableName: changeOpt.value,
|
|
|
|
|
|
+ tableName: changeOpt?.value,
|
|
};
|
|
};
|
|
- getListName(data).then((res) => {
|
|
|
|
|
|
+ if(changeOpt.value){
|
|
|
|
+ getListName(data).then((res) => {
|
|
this.infoTable = res.map(item => {
|
|
this.infoTable = res.map(item => {
|
|
return {
|
|
return {
|
|
...item,
|
|
...item,
|
|
@@ -665,6 +670,8 @@ export default {
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.infoTable = []
|
|
this.infoTable = []
|
|
});
|
|
});
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
checkJson(data) {
|
|
checkJson(data) {
|