|
@@ -30,7 +30,8 @@
|
|
|
</div>
|
|
|
<div class="main">
|
|
|
<div class="label label-title">
|
|
|
- <aceEditor ref="editor" :font-size="16" :value="value" @change="onChange" height="500" lang="sql" snippets wrap />
|
|
|
+ <aceEditor ref="editor" :font-size="16" :value="value" @change="onChange" height="500" lang="sql" snippets
|
|
|
+ wrap />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="panel" style="margin-right: 10px">
|
|
@@ -90,7 +91,7 @@ import { funcList } from "@/api/newbi/func";
|
|
|
export default {
|
|
|
components: { aceEditor },
|
|
|
model: { prop: "value", event: "change" },
|
|
|
- props: ["cubeId", "value"],
|
|
|
+ props: ["cubeId", "value", "dsId"],
|
|
|
data() {
|
|
|
return {
|
|
|
datasourceId: "",
|
|
@@ -132,6 +133,8 @@ export default {
|
|
|
created() {
|
|
|
this.getInitData();
|
|
|
this.getGlobalData();
|
|
|
+ this.datasourceId = this.dsId;
|
|
|
+ this.onDsChange(this.dsId);
|
|
|
},
|
|
|
methods: {
|
|
|
onChange(val) {
|
|
@@ -229,7 +232,6 @@ export default {
|
|
|
this.funcAttrList = list;
|
|
|
});
|
|
|
funcList({ dsType: "mysql" }).then((res) => {
|
|
|
- logjson(res.data.data)
|
|
|
this.functionList = res.data.data;
|
|
|
this.functionListSearched = [...this.functionList];
|
|
|
this.funcAttr = -1;
|