|
@@ -1,58 +1,73 @@
|
|
<template>
|
|
<template>
|
|
<div class="wrapper-content">
|
|
<div class="wrapper-content">
|
|
-
|
|
|
|
<div class="ibox" id="mainDiv">
|
|
<div class="ibox" id="mainDiv">
|
|
<div class="ibox-title">数据建模</div>
|
|
<div class="ibox-title">数据建模</div>
|
|
<div class="ibox-content">
|
|
<div class="ibox-content">
|
|
<el-tabs tab-position="left" :style="autoHeight()">
|
|
<el-tabs tab-position="left" :style="autoHeight()">
|
|
<el-tab-pane label="数据源">
|
|
<el-tab-pane label="数据源">
|
|
- <dsource></dsource>
|
|
|
|
|
|
+ <dsource></dsource>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="数据集">
|
|
<el-tab-pane label="数据集">
|
|
- <dset></dset>
|
|
|
|
|
|
+ <dset ref="dsetGrid"></dset>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="立方体">
|
|
<el-tab-pane label="立方体">
|
|
- <cube></cube>
|
|
|
|
|
|
+ <cube></cube>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <operationDailog
|
|
|
|
+ mainDiv="mainDiv"
|
|
|
|
+ :title="dsetOperTitle"
|
|
|
|
+ ref="dsetOper"
|
|
|
|
+ :callback="saveDset"
|
|
|
|
+ >
|
|
|
|
+ <dsetAdd ref="dsetAddForm"></dsetAdd>
|
|
|
|
+ </operationDailog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { baseUrl, ajax } from "@/common/biConfig";
|
|
import { baseUrl, ajax } from "@/common/biConfig";
|
|
-import operationDailog from '@/components/OperationDailog'
|
|
|
|
-import $ from "jquery"
|
|
|
|
-import cube from '@/view/model/Cube'
|
|
|
|
-import dset from '@/view/model/Dset'
|
|
|
|
-import dsource from '@/view/model/Dsource'
|
|
|
|
|
|
+import operationDailog from "@/components/OperationDailog";
|
|
|
|
+import $ from "jquery";
|
|
|
|
+import cube from "@/view/model/Cube";
|
|
|
|
+import dset from "@/view/model/Dset";
|
|
|
|
+import dsource from "@/view/model/Dsource";
|
|
|
|
+import dsetAdd from "@/view/model/DsetAdd";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ name:"modelIndex",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- }
|
|
|
|
|
|
+ dsetOperTitle:""
|
|
|
|
+
|
|
|
|
+ };
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
- cube, dset, dsource
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
-
|
|
|
|
|
|
+ cube,
|
|
|
|
+ dset,
|
|
|
|
+ dsource,
|
|
|
|
+ operationDailog,
|
|
|
|
+ dsetAdd
|
|
},
|
|
},
|
|
|
|
+ mounted() {},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
- autoHeight:function(){
|
|
|
|
- let h = $(".page-wrapper").height();
|
|
|
|
- if(h){
|
|
|
|
- return "height:"+ (h - 110 )+ "px;";
|
|
|
|
- }else{
|
|
|
|
- return "height:460px;";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ autoHeight: function () {
|
|
|
|
+ let h = $(".page-wrapper").height();
|
|
|
|
+ if (h) {
|
|
|
|
+ return "height:" + (h - 110) + "px;";
|
|
|
|
+ } else {
|
|
|
|
+ return "height:460px;";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ saveDset(){
|
|
|
|
+ let update = this.$refs['dsetGrid'].isupdate;
|
|
|
|
+ return this.$refs['dsetAddForm'].saveDset(update);
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ watch: {},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|