UNPKG

w-vue-middle

Version:

统一公共服务组件

77 lines (72 loc) 1.9 kB
/* * @Author: Jason Liu * @Date: 2023-05-04 14:33:45 * @Desc: */ //数据源选择 const dataSourcesSelection = require("../dataSourcesSelection").default; //schema选择 const dataSchemaSelection = require("../dataSchemaSelection").default; const dataTableSelection = require("../dataTableSelection").default; const setDistinctSql = require("./setDistinctSql").default; const $dataIntegration = require("w-vue-middle/api/dataIntegration"); export default { components: { dataSourcesSelection, dataSchemaSelection, dataTableSelection, setDistinctSql }, props: { value: { type: Object, }, referData: { type: Object, default: () => { return undefined } }, getSource: { type: Function, default: () => { return false } } }, data() { return { nodeData: this.value, loading: false, tables: [], //表格列表 setScript: false, viewSetDistinct: false } }, created() { }, methods: { /** * @Author: Jason Liu * @description: 修改数据源事件 */ changeNodeData(value) { this.$emit("change", this.nodeData); }, /** * @Author: Jason Liu * @description: 修改schema事件 */ changeSchema() { this.changeNodeData(); }, /** * @Author: Jason Liu * @description: 刷新表格事件 */ changeTableData() { }, }, watch: { value(value) { this.nodeData = value; }, nodeData() { this.$emit("input", this.nodeData); } } }