Commit 74cbec0a by 李耀琨

解决冲突

parents f75d681c 4e9ff468
ENV = 'development'
#VUE_APP_BASE_API = 'http://147.1.3.180:9888/'
#VUE_APP_WS_API = 'ws://147.1.3.180:9888/'
VUE_APP_BASE_API = 'http://192.168.0.44:9888/'
VUE_APP_WS_API = 'ws://192.168.0.44:9888/'
......
......@@ -18,7 +18,7 @@
<el-tab-pane label="元数据">
<el-button
size="small"
type="primary"
type="text"
style="margin: 10px"
@click="customClick(true)"
>添加元数据</el-button
......@@ -57,7 +57,7 @@
<el-tab-pane label="数据">
<el-button
size="small"
type="primary"
type="text"
style="margin: 10px"
@click="valueClick(true)"
>添加数据</el-button
......
......@@ -43,7 +43,7 @@
<el-card class="box-card">
<el-button
size="small"
type="primary"
type="text"
style="margin: 10px"
@click="addField(true)"
>添加字段</el-button
......
......@@ -9,7 +9,7 @@
</el-form>
<el-form ref="form" :model="form" label-width="0px">
<el-button type="primary" @click="addSheet(true)" style="margin: 10px"
<el-button type="text" @click="addSheet(true)" style="margin: 10px"
>添加字段</el-button
>
<el-form-item>
......
......@@ -6,8 +6,8 @@
</el-form-item>
</el-form>
<el-button type="primary" @click="fieldClick(true)">添加字段</el-button>
<el-button type="primary" @click="getTheField">获取字段</el-button>
<el-button type="text" @click="fieldClick(true)">添加字段</el-button>
<el-button type="text" @click="getTheField">获取字段</el-button>
<el-table :data="fields" style="width: 100%">
<el-table-column prop="field_name" label="字段名称"> </el-table-column>g
......
......@@ -37,7 +37,7 @@
{{"匹配的关键字:"}}
<br>
<br>
<el-button type="primary" @click="matchingFieldClick(true)"
<el-button type="text" @click="matchingFieldClick(true)"
>添加字段</el-button
>
......@@ -70,7 +70,7 @@
{{"数据字段:"}}
<br>
<br>
<el-button type="primary" @click="fieldClick(true)"
<el-button type="text" @click="fieldClick(true)"
>添加字段</el-button
>
......
......@@ -8,7 +8,7 @@
</el-form>
<el-form ref="form" :model="form" label-width="0px">
<el-button type="primary" @click="addSheet(true)" style="margin: 10px"
<el-button type="text" @click="addSheet(true)" style="margin: 10px"
>添加字段</el-button
>
<el-form-item>
......
......@@ -8,8 +8,8 @@
<el-tabs type="border-card">
<el-tab-pane label="选择和修改">
<el-button type="primary" @click="selectModify(true)">添加字段</el-button>
<el-button type="primary" @click="selectModifyGetTheField">获取字段</el-button>
<el-button type="text" @click="selectModify(true)">添加字段</el-button>
<el-button type="text" @click="selectModifyGetTheField">获取字段</el-button>
<el-table :data="fields" style="width: 100%">
<el-table-column prop="name" label="字段名称"> </el-table-column>
......@@ -36,8 +36,8 @@
</el-tab-pane>
<el-tab-pane label="移除">
<el-button type="primary" @click="fieldClick(true)">添加字段</el-button>
<el-button type="primary" @click="getTheField">获取字段</el-button>
<el-button type="text" @click="fieldClick(true)">添加字段</el-button>
<el-button type="text" @click="getTheField">获取字段</el-button>
<el-table :data="remove" style="width: 100%">
<el-table-column prop="name" label="字段名称"> </el-table-column>
......@@ -62,8 +62,8 @@
</el-tab-pane>
<el-tab-pane label="元数据">
<el-button type="primary" @click="metadata(true)">添加字段</el-button>
<el-button type="primary" @click="metadataGetTheField">获取字段</el-button>
<el-button type="text" @click="metadata(true)">添加字段</el-button>
<el-button type="text" @click="metadataGetTheField">获取字段</el-button>
<el-table :data="meta" style="width: 100%">
<el-table-column prop="name" label="字段名称"> </el-table-column>
......
......@@ -6,8 +6,8 @@
</el-form-item>
</el-form>
<el-button type="primary" @click="fieldClick(true)">添加字段</el-button>
<el-button type="primary" @click="getTheField">获取字段</el-button>
<el-button type="text" @click="fieldClick(true)">添加字段</el-button>
<el-button type="text" @click="getTheField">获取字段</el-button>
<el-table :data="fields" style="width: 100%">
<el-table-column prop="field_name" label="字段名称"> </el-table-column>g
......
......@@ -47,8 +47,8 @@
</el-form-item>
</el-form>
<el-card class="box-card">
<el-button type="primary" @click="fieldClick(true)">添加字段</el-button>
<el-button type="primary" @click="getTheField">获取字段</el-button>
<el-button type="text" @click="fieldClick(true)">添加字段</el-button>
<el-button type="text" @click="getTheField">获取字段</el-button>
<el-table :data="fields" style="width: 100%">
<el-table-column prop="name" label="字段名称"> </el-table-column>g
......
......@@ -145,7 +145,7 @@
</span>
</el-dialog>
<estab-dialog
ref="establishDia"
......@@ -229,7 +229,7 @@ export default {
created() {
this.listDatabasesFun();
}, // 监听编号好后获取选择的数据库的树形里列表
// watch: {
// formDataBaseName: {
// handler(newValue, oldValue) {
......@@ -251,7 +251,7 @@ export default {
}, 500);
},
tableInputName() {
this.stepName;
},
......@@ -259,7 +259,7 @@ export default {
//  //获取新建弹窗返回来的值
getSonValue(res) {
if (typeof res == "string") {
this.formDataBaseName = res;
console.log("接收子组件的值1111111----", this.formDataBaseName);
} else if (typeof res == "object") {
......@@ -303,7 +303,7 @@ export default {
getGraphDataBases() {
// var graph = this.getGraph();
var root = this.newGraph.getDefaultParent(),
data = [];
if (root.getAttribute("databases") != null)
......@@ -327,7 +327,7 @@ export default {
this.dialogVisibleFourth = true;
// this.$refs.establishDia.database();
// this.$refs.establishDia.accessMethod(); //获取连接方式
this.$refs.establishDia.clickFun(this.newGraph); //先把画布传过去
this.$refs.establishDia.getTransDatabase();
this.$refs.establishDia.accessMethod(); //获取连接方式
......@@ -338,7 +338,7 @@ export default {
dialogVisibleFourthFun() {
this.dialogVisibleFourth = true;
// this.$refs.establishDia.database(this.connectionName);
this.$refs.establishDia.clickFun(this.newGraph); //先把画布传过去
if (this.form.connection) {
this.dialogVisibleFourth = true;
......@@ -346,8 +346,8 @@ export default {
this.$refs.establishDia.accessMethod(); //获取连接方式
}
// this.$refs.establishDia.database(this.selectName);
},
lastStep() {
......@@ -390,7 +390,7 @@ export default {
mps.append("table", this.tableDetails.text);
tableFields(mps).then((res) => {
// console.log(res);
for (let i = 0; i < res.length; i++) {
......@@ -398,7 +398,7 @@ export default {
// this.fieldName = this.fieldName + element + ","
if (!i == 0) {
this.fieldName = this.fieldName + "," + element;
this.fieldName = this.fieldName + "\n," + element;
} else {
this.fieldName = element;
}
......@@ -406,7 +406,7 @@ export default {
console.log(this.fieldName, 464564564);
}
this.form.sql = `select ${this.fieldName} from ${this.tableDetails.nodeId}.${this.tableDetails.text}`;
this.form.sql = `select `+"\n"+`${this.fieldName} `+"\n"+`from `+"\n"+`${this.tableDetails.nodeId}.${this.tableDetails.text}`;
});
},
......@@ -414,7 +414,7 @@ export default {
if (this.form.connection) {
this.browsing = !this.browsing;
this.scanFlag = true;
} else {
this.$message.error("请选择数据库");
console.log(this.stepName);
......@@ -463,7 +463,7 @@ export default {
handleNodeClick(data, node) {
console.log("点击当前节点node===", node);
console.log("点击当前节点data===", data);
this.tableDetails = data;
},
......
......@@ -432,7 +432,7 @@
</el-form>
</el-tab-pane>
<el-tab-pane label="过滤">
<el-button type="primary" @click="filterClick(true)"
<el-button type="text" @click="filterClick(true)"
>添加过滤字段</el-button
>
......@@ -470,8 +470,8 @@
</el-tab-pane>
<el-tab-pane label="字段">
<el-button type="primary" @click="fieldClick(true)">添加字段</el-button>
<el-button type="primary" @click="getTheField">获取字段</el-button>
<el-button type="text" @click="fieldClick(true)">添加字段</el-button>
<el-button type="text" @click="getTheField">获取字段</el-button>
<el-table :data="inputFields" style="width: 100%">
<el-table-column prop="name" label="名称"> </el-table-column>g
......
......@@ -1099,16 +1099,33 @@
></successDialog>
<!-- 作业弹窗组件end------------------------------------->
<!-- 转换弹窗组件start333 ------------------------------>
<switchDialog
ref="switch"
:switchVisible.sync="switchVisible"
<!-- 流程弹窗组件start333 ------------------------------>
<!-- 流程弹窗组件end33333------------------------------ -->
<!-- 脚本弹窗组件start -->
<sqlScriptDialog
ref="script"
:scriptVisible.sync="scriptVisible"
:saveOutputDialog="saveOutputDialog"
:doubleClickCell="doubleClickCell"
:scriptFormSend="outPutFormData16"
></sqlScriptDialog>
<!-- 脚本弹窗组件end -->
<!-- 转换弹窗组件start -->
<columnChoose
ref="insertOrdate"
:columnVisible.sync="columnVisible"
:saveOutputDialog="saveOutputDialog"
:doubleClickCell="doubleClickCell"
:switchFormSend="outPutFormData15"
></switchDialog>
<!-- 转换弹窗组件end33333------------------------------ -->
:getXmlVal="getXmlVal"
:insertOrUpdateFormSend="outPutFormData2"
></columnChoose>
<!-- 转换弹窗组件end -->
<!-- 执行转换开始 -->
<trans-graph
ref="transRef"
......@@ -1208,9 +1225,16 @@ import homeworkDialog from "../../../job-dialog/homework";
// 流程弹窗组件start3333--------------------
import switchDialog from "../../../stream-dialog/switch";
// 流程弹窗组件end3333333333----------------
// 脚本弹窗组件start---------------------
import sqlScriptDialog from "../../../script-dialog/sql-script";
// 脚本弹窗组件end-----------------------
// 转换弹窗组件start----------
import columnChoose from "../../../trans-dialog/column-choose";
// 转换弹窗组件end------------
import mxgraph from "@/utils/mxgraph";
const {
......@@ -1264,10 +1288,11 @@ export default {
outPutFormData14: {}, //作业---成功
outPutFormData: {}, //输出弹窗组件的表单值
// 转换33start---------
outPutFormData15: {}, //转换--字段选择
// 转换3end------------
getField: [],
transGraphVisible: false, //执行转换弹窗
outPutFormData16:{},//脚本--执行sql脚本
doubleClickCell:{},
getField:[],
transGraphVisible:false,//执行转换弹窗
monitorCanvas: "", //监听画布
getXmlVal: "", //获取上一个xml
keyHandler: null,
......@@ -1307,8 +1332,10 @@ export default {
selectFieldDialog:false,//选择字段
// 流程弹窗组件start----------
switchVisible: false,
// 流程弹窗组件end------------
// 脚本组件start-----
scriptVisible:false,
// 脚本组件end-----
// 输入模块
file: [],
......@@ -1402,9 +1429,17 @@ export default {
mergeRecords, //合并记录
selectField,//选择字段
// 作业弹簧组件end----------------------
// 转换弹窗组件start---------
// 流程弹窗组件start---------
switchDialog,
// 转换弹窗组件end-----------
// 流程弹窗组件end-----------
// 脚本弹窗组件---
sqlScriptDialog,
// 脚本弹窗组件---
// 转换弹窗组件start---
columnChoose,
// 转换弹窗组件end-----
},
//自定义指令 https://www.jb51.net/article/108047.htm
directives: {
......@@ -2471,16 +2506,13 @@ export default {
this.$refs.mytrans.clickFun(this.graph); //向子组件传递画布
}, 500);
return;
} else if (
(this.curFileType == "transformation" && cell.ids == "step36") ||
cell.value.attributes.ctype.value == "SwitchCase"
) {
//流程--Switch / Case
this.switchVisible = !this.switchVisible;
this.outPutFormData15 = this.showDataFunc();
setTimeout(() => {
this.$refs.switch.clickFun(this.graph); //向子组件传递画布
}, 500);
} else if((this.curFileType=="transformation" && cell.ids == "step45") || cell.value.attributes.ctype.value == "ExecSQL"){
//流程--Switch / Case
this.scriptVisible = !this.scriptVisible;
this.outPutFormData16 = this.showDataFunc();
setTimeout(() => {
this.$refs.script.clickFun(this.graph);//向子组件传递画布
}, 500);
return;
}
});
......
......@@ -1209,22 +1209,17 @@ props: ["dragItem"],
},
// 新建任务
createJob(){
if(this.curNodeIconCls =='imageFolder'){
this.estabDialogVisible=true;
this.estabTitle='任务';
}else{
this.$message.error('请选择资源库中的一个目录');
}
},
// 新建目录
createFile(){
if(this.curNodeIconCls =='imageFolder'){
this.estabDialogVisible=true;
this.estabTitle='目录';
}else{
this.$message.error('请选择资源库中的一个目录');
}
},
// 删除资源库文件
......@@ -1257,6 +1252,7 @@ props: ["dragItem"],
this.curNode=node;//当前选中节点
this.nodePath=data.path;//当前选择数
this.curNodeIconCls=node.data.iconCls;
console.log('当前节点的文件夹路径:',this.nodePath);
if(node.data.leaf){
this.curNodeText=node.data.text;//当前节点
......@@ -1270,12 +1266,12 @@ props: ["dragItem"],
// this.tabShowFlag=true;//核心对象显项卡显示
//mxl判断作业和转换----------------------
if(node.data.type=="transformation"){
this.$refs.nodeMenu2.stepsFun();
let that=this;
setTimeout(function(){
that.$refs.graphContainer.initGraphClick("transformation");
},500)
})
}else if(node.data.type=="job"){
this.$refs.nodeMenu2.jobentrysFun();
let that=this;
......@@ -1297,16 +1293,16 @@ props: ["dragItem"],
})
}
// else{
// this.$message.error('请选择一个资源库!');
// return;
// }
// console.log(data,'当前节点的父节点:',node.parent.data);
},
//修改资源库
......@@ -1341,7 +1337,7 @@ props: ["dragItem"],
console.log('导出资源库====');
this.exportDialogVisible=true;
},
// 导入资源库弹窗
importTreeDialog(){
console.log('导入资源库====');
......
......@@ -24,7 +24,7 @@
</div>
</div>
</el-col>
<el-col :span="8" >
<el-col :span="8" >
<div class="grid-content bg-purpleThree">
<i class="el-icon-circle-close grid-icon"></i>
<div class="num-content">
......@@ -89,7 +89,7 @@
@current-change="pageChange"
/>
</div>
<!-- 分页end -->
<!-- 分页end -->
</div>
</el-card>
......@@ -146,7 +146,7 @@
{{ transStatusList[scope.row.recordStatus] }}
</template>
</el-table-column>
<el-table-column prop label="操作" width="200" align="center">
<template slot-scope="scope">
<el-button
......@@ -195,9 +195,9 @@
<pre v-highlightjs="logContent"><code class="java" /></pre>
</el-dialog>
</div>
</template>
......@@ -350,7 +350,7 @@ export default {
}else{
this.$message.error(res.errMsg)
}
});
},
// 获取总列表
......@@ -361,7 +361,7 @@ export default {
if(res.success){
this.allTableData = res.data;
}
});
},
......@@ -373,7 +373,7 @@ export default {
this.alRunningTransNum = res.data;
this.panelArr[0].num=this.alRunningTransNum;
}
});
},
......@@ -385,7 +385,7 @@ export default {
this.allSuccessCount = res.data;
this.panelArr[1].num=this.allSuccessCount;
}
});
},
// 获取总执行失败次数
......@@ -396,7 +396,7 @@ export default {
this.allFailCount = res.data;
this.panelArr[2].num=this.allFailCount;
}
});
},
......@@ -418,8 +418,7 @@ export default {
//查看详情
checkDetail(row) {
      console.log('打开查看详情弹窗id不为为null');
this.pageLog.transId=row.id;
this.pageLog.transId=row.transId;
this.getKettleTransRecordList();// 分页获取转换执行日志记录列表
this.getSimpleList();//获取我添加的作业列表 搜索下拉框列表
this.dialogShow=true;     
......@@ -427,7 +426,6 @@ export default {
//获取转换下拉列表
getSimpleList(){
getList().then((res)=>{
console.log('获取转换日志下拉列表:',res);
if(res.success){
this.simpleList=res.data;
}
......@@ -510,28 +508,28 @@ export default {
}
}
fileName = decodeURIComponent(fileName)
// 获取数据类型
let type = res.data.headers['Content-Type'][0];
let blob = new Blob([res.data], { type: type })
const a = document.createElement('a')
// 创建URL
const blobUrl = window.URL.createObjectURL(blob)
a.download = fileName;
a.href = blobUrl;
document.body.appendChild(a);
// 下载文件
a.click()
// 释放内存
URL.revokeObjectURL(blobUrl)
document.body.removeChild(a)
} else {
console.log('error', data)
}
// var returnUrl=res.data;
// var httpUrl= process.env.VUE_APP_BASE_API+returnUrl;
// this.downLoadFile(httpUrl);
......@@ -568,7 +566,7 @@ export default {
this.getKettleTransRecordList();
},
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment