|
@@ -25,12 +25,13 @@
|
|
<a-form-item
|
|
<a-form-item
|
|
label="关联的自定义表格"
|
|
label="关联的自定义表格"
|
|
>
|
|
>
|
|
- <el-select v-model="config.tdId" placeholder="请选择">
|
|
|
|
|
|
+ <el-select v-model="config.tdId" @change="relationTableChange" filterable placeholder="请选择">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in tableList"
|
|
v-for="item in tableList"
|
|
:key="item.tId"
|
|
:key="item.tId"
|
|
:label="item.dtName"
|
|
:label="item.dtName"
|
|
:value="item.tId">
|
|
:value="item.tId">
|
|
|
|
+ <!-- <span v-show="false">{{ $sessionStorage.setItem('sqlKey',item.sqlKey) }}</span> -->
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -161,7 +162,11 @@ export default {
|
|
|
|
|
|
this.config.wrapperCol.xs = this.config.wrapperCol.sm = this.config.wrapperCol.md = this.config.wrapperCol.lg = this.config.wrapperCol.xl = this.config.wrapperCol.xxl =
|
|
this.config.wrapperCol.xs = this.config.wrapperCol.sm = this.config.wrapperCol.md = this.config.wrapperCol.lg = this.config.wrapperCol.xl = this.config.wrapperCol.xxl =
|
|
24 - e;
|
|
24 - e;
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ relationTableChange(tId) {
|
|
|
|
+ let sqlKey = this.tableList.filter(item => item.tId == tId)[0].sqlKey;
|
|
|
|
+sessionStorage.setItem('sqlKey',sqlKey)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
async created () {
|
|
async created () {
|
|
let res = await dragTableList()
|
|
let res = await dragTableList()
|
|
@@ -171,6 +176,7 @@ export default {
|
|
this.$message.error("请选择数据表");
|
|
this.$message.error("请选择数据表");
|
|
this.$message.error(res.msg)
|
|
this.$message.error(res.msg)
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|