Commit b83d37e5 by 李耀琨

解决冲突

parents 4fab0b48 48437588
...@@ -191,6 +191,7 @@ import { ...@@ -191,6 +191,7 @@ import {
} from "@/api/kettle/link"; } from "@/api/kettle/link";
export default { export default {
props: [ "stepName", "form", "graphXml", "getXmlVal","nodeData","graph"], //从父组件传过来的值 props: [ "stepName", "form", "graphXml", "getXmlVal","nodeData","graph"], //从父组件传过来的值
components: { components: {
main, main,
...@@ -228,6 +229,7 @@ export default { ...@@ -228,6 +229,7 @@ export default {
created() { created() {
this.listDatabasesFun(); this.listDatabasesFun();
}, // 监听编号好后获取选择的数据库的树形里列表 }, // 监听编号好后获取选择的数据库的树形里列表
// watch: { // watch: {
// formDataBaseName: { // formDataBaseName: {
// handler(newValue, oldValue) { // handler(newValue, oldValue) {
...@@ -249,6 +251,7 @@ export default { ...@@ -249,6 +251,7 @@ export default {
}, 500); }, 500);
}, },
tableInputName() { tableInputName() {
this.stepName; this.stepName;
}, },
...@@ -256,6 +259,7 @@ export default { ...@@ -256,6 +259,7 @@ export default {
//  //获取新建弹窗返回来的值 //  //获取新建弹窗返回来的值
getSonValue(res) { getSonValue(res) {
if (typeof res == "string") { if (typeof res == "string") {
this.formDataBaseName = res; this.formDataBaseName = res;
console.log("接收子组件的值1111111----", this.formDataBaseName); console.log("接收子组件的值1111111----", this.formDataBaseName);
} else if (typeof res == "object") { } else if (typeof res == "object") {
...@@ -296,8 +300,10 @@ export default { ...@@ -296,8 +300,10 @@ export default {
// }, // },
//获取新建弹窗返回来的值 //获取新建弹窗返回来的值
getGraphDataBases() { getGraphDataBases() {
// var graph = this.getGraph(); // var graph = this.getGraph();
var root = this.newGraph.getDefaultParent(), var root = this.newGraph.getDefaultParent(),
data = []; data = [];
if (root.getAttribute("databases") != null) if (root.getAttribute("databases") != null)
...@@ -321,6 +327,7 @@ export default { ...@@ -321,6 +327,7 @@ export default {
this.dialogVisibleFourth = true; this.dialogVisibleFourth = true;
// this.$refs.establishDia.database(); // this.$refs.establishDia.database();
// this.$refs.establishDia.accessMethod(); //获取连接方式 // this.$refs.establishDia.accessMethod(); //获取连接方式
this.$refs.establishDia.clickFun(this.newGraph); //先把画布传过去 this.$refs.establishDia.clickFun(this.newGraph); //先把画布传过去
this.$refs.establishDia.getTransDatabase(); this.$refs.establishDia.getTransDatabase();
this.$refs.establishDia.accessMethod(); //获取连接方式 this.$refs.establishDia.accessMethod(); //获取连接方式
...@@ -331,6 +338,7 @@ export default { ...@@ -331,6 +338,7 @@ export default {
dialogVisibleFourthFun() { dialogVisibleFourthFun() {
this.dialogVisibleFourth = true; this.dialogVisibleFourth = true;
// this.$refs.establishDia.database(this.connectionName); // this.$refs.establishDia.database(this.connectionName);
this.$refs.establishDia.clickFun(this.newGraph); //先把画布传过去 this.$refs.establishDia.clickFun(this.newGraph); //先把画布传过去
if (this.form.connection) { if (this.form.connection) {
this.dialogVisibleFourth = true; this.dialogVisibleFourth = true;
...@@ -339,6 +347,7 @@ export default { ...@@ -339,6 +347,7 @@ export default {
} }
// this.$refs.establishDia.database(this.selectName); // this.$refs.establishDia.database(this.selectName);
}, },
lastStep() { lastStep() {
...@@ -356,9 +365,11 @@ export default { ...@@ -356,9 +365,11 @@ export default {
}, },
getField(val) { getField(val) {
this.library = this.namesList.find((e) => { this.library = this.namesList.find((e) => {
return e.name == val; return e.name == val;
}); });
console.log(this.library, "////////////////////////"); console.log(this.library, "////////////////////////");
this.connectionName = val; this.connectionName = val;
}, },
...@@ -371,12 +382,15 @@ export default { ...@@ -371,12 +382,15 @@ export default {
var grXml = mxUtils.getPrettyXml(node); var grXml = mxUtils.getPrettyXml(node);
let mps = new FormData(); // 创建form对象 let mps = new FormData(); // 创建form对象
mps.append("graphXml", grXml); mps.append("graphXml", grXml);
mps.append("databaseName", this.library.name); mps.append("databaseName", this.library.name);
mps.append("schema", this.tableDetails.nodeId); mps.append("schema", this.tableDetails.nodeId);
mps.append("table", this.tableDetails.text); mps.append("table", this.tableDetails.text);
tableFields(mps).then((res) => { tableFields(mps).then((res) => {
// console.log(res); // console.log(res);
for (let i = 0; i < res.length; i++) { for (let i = 0; i < res.length; i++) {
...@@ -400,6 +414,7 @@ export default { ...@@ -400,6 +414,7 @@ export default {
if (this.form.connection) { if (this.form.connection) {
this.browsing = !this.browsing; this.browsing = !this.browsing;
this.scanFlag = true; this.scanFlag = true;
} else { } else {
this.$message.error("请选择数据库"); this.$message.error("请选择数据库");
console.log(this.stepName); console.log(this.stepName);
...@@ -448,6 +463,7 @@ export default { ...@@ -448,6 +463,7 @@ export default {
handleNodeClick(data, node) { handleNodeClick(data, node) {
console.log("点击当前节点node===", node); console.log("点击当前节点node===", node);
console.log("点击当前节点data===", data); console.log("点击当前节点data===", data);
this.tableDetails = data; this.tableDetails = data;
}, },
......
...@@ -886,12 +886,13 @@ ...@@ -886,12 +886,13 @@
<textFileDialog <textFileDialog
ref="textFile" ref="textFile"
:fileVisible.sync="fileVisible" :fileVisible.sync="fileVisible"
:getXmlVal="getXmlVal" :saveOutputDialog="saveOutputDialog" :textFileForm="outPutFormData8"></textFileDialog> :getXmlVal="getXmlVal" :saveOutputDialog="saveOutputDialog" :textFileForm="outPutFormData8" :doubleClickCell="doubleClickCell"></textFileDialog>
<microDialog ref="mic" :microVisible.sync="microVisible" :saveOutputDialog="saveOutputDialog" :microForm="outPutFormData9" :doubleClickCell="doubleClickCell"></microDialog> <microDialog ref="mic" :microVisible.sync="microVisible" :saveOutputDialog="saveOutputDialog" :microForm="outPutFormData9" :doubleClickCell="doubleClickCell"></microDialog>
<!-- 输出弹窗end================== --> <!-- 输出弹窗end================== -->
<trans-graph <trans-graph
ref="transRef"
:transGraphVisible.sync="transGraphVisible" :transGraphVisible.sync="transGraphVisible"
:getXmlVal="getXmlVal" :getXmlVal="getXmlVal"
></trans-graph> ></trans-graph>
...@@ -1794,11 +1795,15 @@ previousField(){ ...@@ -1794,11 +1795,15 @@ previousField(){
//mico-Excel输出 //mico-Excel输出
this.microVisible = !this.microVisible; this.microVisible = !this.microVisible;
this.outPutFormData9 = this.showDataFunc(); this.outPutFormData9 = this.showDataFunc();
this.$refs.mic.clickFun(this.graph);//向子组件传递画布
return; return;
} else if (cell.ids == "step9" || cell.value.attributes.ctype.value == "ExcelOutput" ) { } else if (cell.ids == "step9" || cell.value.attributes.ctype.value == "ExcelOutput" ) {
//Excel输出 //Excel输出
this.excelOutPutVisible = !this.excelOutPutVisible; this.excelOutPutVisible = !this.excelOutPutVisible;
this.outPutFormData3 = this.showDataFunc(); this.outPutFormData3 = this.showDataFunc();
setTimeout(() => {
this.$refs.excelOut.clickFun(this.graph);//向子组件传递画布
}, 500);
return; return;
} }
...@@ -2155,6 +2160,8 @@ previousField(){ ...@@ -2155,6 +2160,8 @@ previousField(){
// 执行转换 // 执行转换
doTrans() { doTrans() {
this.transGraphVisible = !this.transGraphVisible; this.transGraphVisible = !this.transGraphVisible;
this.$refs.transRef.clickFun(this.graph);
}, },
// //重绘流程图 // //重绘流程图
......
...@@ -4,17 +4,11 @@ ...@@ -4,17 +4,11 @@
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="14"> <el-col :span="14">
<!-- <el-select style="width: 100%" v-model="selectName" placeholder="请选择选择数据库连接" @focus="clickFunc" @change="selectNameFunc">
<el-option v-for="(item,index) in namesList" :key="index" :label="item.name" :value="item.name"></el-option> <el-select style="width: 100%" v-model="form.connection" placeholder="请选择选择数据库连接" @focus="getGraphDataBases">
</el-select> -->
<el-select style="width: 100%" v-model="selectName" placeholder="请选择选择数据库连接" @focus="getGraphDataBases">
<el-option v-for="(item,index) in namesList" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in namesList" :key="index" :label="item.name" :value="item.name"></el-option>
</el-select> </el-select>
<!-- <el-select style="width: 100%" v-model="selectName" placeholder="请选择选择数据库连接" @focus="getGraphDataBases" @change="selectNameFunc">
<el-option v-for="(item,index) in namesList" :key="index" :label="item.name" :value="item"></el-option>
</el-select> -->
</el-col> </el-col>
<el-col class="line" :span="3"> <el-col class="line" :span="3">
<el-button size="mini" @click.native="editDataBaseModal()">编辑</el-button></el-col <el-button size="mini" @click.native="editDataBaseModal()">编辑</el-button></el-col
...@@ -30,7 +24,7 @@ ...@@ -30,7 +24,7 @@
<el-form-item label="目的模式:" > <el-form-item label="目的模式:" >
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="20"> <el-col :span="20">
<el-input v-model="newForm.schema"></el-input> <el-input v-model="form.schema"></el-input>
</el-col> </el-col>
<el-col class="line" :span="3"> <el-col class="line" :span="3">
...@@ -41,7 +35,7 @@ ...@@ -41,7 +35,7 @@
<el-form-item label="目标表:" prop="text"> <el-form-item label="目标表:" prop="text">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="20"> <el-col :span="20">
<el-input ref="goal" v-model="newForm.table"></el-input> <el-input ref="goal" v-model="form.table"></el-input>
</el-col> </el-col>
<el-col class="line" :span="3"> <el-col class="line" :span="3">
...@@ -50,7 +44,7 @@ ...@@ -50,7 +44,7 @@
</el-row> </el-row>
</el-form-item> </el-form-item>
<estab-dialog ref="establishDia" :noneRespository="noneRespository" :graph.sync="newGraph" :getXmlVal="getXmlVal" :form="newForm" :dialogVisibleFourth.sync='dialogVisibleFourth' @getSonValue="getSonValue" :listNames="listNames" :chooseFlag.sync="chooseFlag" :chooseType="chooseType"></estab-dialog> <estab-dialog ref="establishDia" :noneRespository="noneRespository" :graph.sync="newGraph" :getXmlVal="getXmlVal" :form="form" :dialogVisibleFourth.sync='dialogVisibleFourth' @getSonValue="getSonValue" :listNames="listNames" :chooseFlag.sync="chooseFlag" :chooseType="chooseType"></estab-dialog>
</div> </div>
</template> </template>
...@@ -83,11 +77,11 @@ export default { ...@@ -83,11 +77,11 @@ export default {
noneRespository:1,//判断是保存画布还是传后台 noneRespository:1,//判断是保存画布还是传后台
dialogVisibleFourth:false, dialogVisibleFourth:false,
namesList:[], namesList:[],
selectName:'',//当前选中的下拉框的数据 // selectName:'',//当前选中的下拉框的数据
connectionName:'', connectionName:'',
curNode:[], curNode:[],
chooseFlag:false,//选择模式 chooseFlag:false,//选择模式
newForm:{}, // newForm:{},
chooseType:'', chooseType:'',
newGraph:{} newGraph:{}
} }
...@@ -102,7 +96,7 @@ export default { ...@@ -102,7 +96,7 @@ export default {
props:["form","getXmlVal","graph"], props:["form","getXmlVal","graph"],
created() { created() {
this.listNames(); this.listNames();
this.newForm = this.form // this.newForm = this.form
}, },
methods: { methods: {
clickFun(graph){ clickFun(graph){
...@@ -120,21 +114,21 @@ export default { ...@@ -120,21 +114,21 @@ export default {
// this.$refs.goal.refreshData(this.from) // this.$refs.goal.refreshData(this.from)
if(this.chooseType=='表'){ if(this.chooseType=='表'){
console.log('进入表----',res); console.log('进入表----',res);
this.$set(this.newForm,'table',this.curNode.data.text); this.$set(this.form,'table',this.curNode.data.text);
this.$forceUpdate() this.$forceUpdate()
} }
console.log('this.curNode.data.leaf=====:',this.curNode.data.leaf); console.log('this.curNode.data.leaf=====:',this.curNode.data.leaf);
if(this.chooseType=='模式'&& this.curNode.data.leaf && this.curNode.parent.data.text ==this.chooseType){ if(this.chooseType=='模式'&& this.curNode.data.leaf && this.curNode.parent.data.text ==this.chooseType){
console.log('进入模式----',res); console.log('进入模式----',res);
this.$set(this.newForm,'schema',this.curNode.data.text); this.$set(this.form,'schema',this.curNode.data.text);
this.$forceUpdate() this.$forceUpdate()
} }
// this.$forceUpdate() // this.$forceUpdate()
console.log('chuanhuo=====', this.newForm); console.log('chuanhuo=====', this.form);
// 发射回父组件 // 发射回父组件
this.newForm.connection=this.selectName; this.form.connection=this.form.connection;
this.$emit("update:form", this.newForm); this.$emit("update:form", this.form);
}else if(typeof(res)=='boolean'){ }else if(typeof(res)=='boolean'){
this.dialogVisibleFourth=res; this.dialogVisibleFourth=res;
...@@ -168,9 +162,9 @@ export default { ...@@ -168,9 +162,9 @@ export default {
//选择数据库编辑 //选择数据库编辑
selectNameFunc(e){ selectNameFunc(e){
console.log('当前选中的数',e); console.log('当前选中的数',e);
console.log('当前选中的数-===',this.selectName); console.log('当前选中的数-===',this.form.connection);
this.selectName=this.se // this.selectName=this.se
this.newForm.connection=this.selectName; // this.form.connection=this.form.connection;
}, },
//点击选择获取已经创建的数据库列表 //点击选择获取已经创建的数据库列表
clickFunc(){ clickFunc(){
...@@ -180,20 +174,20 @@ export default { ...@@ -180,20 +174,20 @@ export default {
editDataBaseModal(){ editDataBaseModal(){
// this.$refs.establishDia.clickFun(this.newGraph);//先传画布 // this.$refs.establishDia.clickFun(this.newGraph);//先传画布
this.$refs.establishDia.clickFun(this.graph);//先把画布传过去 this.$refs.establishDia.clickFun(this.graph);//先把画布传过去
if(this.selectName){ if(this.form.connection){
this.dialogVisibleFourth=true; this.dialogVisibleFourth=true;
} }
// this.$refs.establishDia.database(this.selectName); // this.$refs.establishDia.database(this.selectName);
this.$refs.establishDia.getTransDatabase(this.selectName); this.$refs.establishDia.getTransDatabase(this.form.connection);
this.$refs.establishDia.accessMethod();//获取连接方式 this.$refs.establishDia.accessMethod();//获取连接方式
}, },
//浏览 //浏览
scanTree(type){ scanTree(type){
console.log('当前选中链接***************',this.selectName); console.log('当前选中链接***************',this.form.selectName);
this.chooseType=type; this.chooseType=type;
if(this.selectName){ if(this.form.connection){
// this.$refs.establishDia.database(this.selectName); // this.$refs.establishDia.database(this.selectName);
this.$refs.establishDia.getTransDatabase(this.selectName); this.$refs.establishDia.getTransDatabase(this.form.connection);
console.log('当前选中数据库***************',this.connectionName); console.log('当前选中数据库***************',this.connectionName);
if(this.connectionName){//判断后台有数据发射回来后再调用弹窗不然不显示树数据或者加载数据延迟 if(this.connectionName){//判断后台有数据发射回来后再调用弹窗不然不显示树数据或者加载数据延迟
this.$refs.establishDia.scanDialogOpen(); this.$refs.establishDia.scanDialogOpen();
......
...@@ -256,9 +256,10 @@ ...@@ -256,9 +256,10 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:before-close="handleCloseTest" :before-close="handleCloseTest"
> >
<div class="table-container table-container-repos" style="height: 42vh"> <!-- <div class="table-container table-container-repos" style="height: 42vh">
{{ linkInfo }} {{ linkInfo }}
</div> </div> -->
<div style="height:50vh;overflow-y:auto;white-space:pre-line;" v-html="linkInfo"></div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- <el-button @click="handleClose">取 消</el-button> --> <!-- <el-button @click="handleClose">取 消</el-button> -->
<el-button type="primary" @click="handleCloseTest">确 定</el-button> <el-button type="primary" @click="handleCloseTest">确 定</el-button>
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="日志" name="second" :disabled="!finished"> <el-tab-pane label="日志" name="second" :disabled="!finished">
<div style="height:50vh;overflow-y:auto;">{{mylog}}</div> <!-- <div style="height:50vh;overflow-y:auto;">{{mylog}}</div> -->
<div style="height:50vh;overflow-y:auto;white-space:pre-line;" v-html="mylog"></div>
</el-tab-pane> </el-tab-pane>
...@@ -39,7 +40,7 @@ ...@@ -39,7 +40,7 @@
</el-tabs> </el-tabs>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="transGraphVisible = false">取 消</el-button> <el-button @click="handleClose">确定</el-button>
<!-- <el-button type="primary" @click.native="confirm()">确 定</el-button> --> <!-- <el-button type="primary" @click.native="confirm()">确 定</el-button> -->
</span> </span>
</el-dialog> </el-dialog>
...@@ -47,6 +48,20 @@ ...@@ -47,6 +48,20 @@
</template> </template>
<script> <script>
import mxgraph from "@/utils/mxgraph";
const {
mxGraph,
mxUtils,
mxEvent,
mxKeyHandler,
mxRubberband,
mxConstants,
mxStencilRegistry,
mxStencil,
mxCodec,
mxGraphModel,
mxGeometry,
} = mxgraph
import { import {
doTrans,//获取表输出 doTrans,//获取表输出
doRun,//启动 doRun,//启动
...@@ -55,6 +70,7 @@ export default ({ ...@@ -55,6 +70,7 @@ export default ({
name: "trans-graph", name: "trans-graph",
data(){ data(){
return{ return{
newGraph:{},
finished:false,//只有执行成功才显示日志 finished:false,//只有执行成功才显示日志
executionId:null,//执行转换返回id executionId:null,//执行转换返回id
mylog:'',//日志 mylog:'',//日志
...@@ -151,8 +167,8 @@ export default ({ ...@@ -151,8 +167,8 @@ export default ({
], ],
tableData: [{ tableData: [{
name: '3', name: '',
num: '鞠婧祎', num: '',
r:'', r:'',
x:'', x:'',
i:'', i:'',
...@@ -194,6 +210,10 @@ export default ({ ...@@ -194,6 +210,10 @@ export default ({
}, },
methods:{ methods:{
clickFun(graph){
console.log(graph,1)
this.newGraph = graph
},
handleClose(){ handleClose(){
this.$emit("update:transGraphVisible", false); this.$emit("update:transGraphVisible", false);
}, },
...@@ -216,6 +236,7 @@ export default ({ ...@@ -216,6 +236,7 @@ export default ({
doTrans(pamer).then((res) => { doTrans(pamer).then((res) => {
if(res){ if(res){
console.log('返回执行的数据====',res); console.log('返回执行的数据====',res);
if(res.finished){
// this.tableData=res; // this.tableData=res;
this.stepMeasure=res.stepMeasure this.stepMeasure=res.stepMeasure
this.mylog=res.log; this.mylog=res.log;
...@@ -233,14 +254,28 @@ export default ({ ...@@ -233,14 +254,28 @@ export default ({
}) })
this.tableData = tableData this.tableData = tableData
}else{
setTimeout(() => {
this.doTrans();
}, 100);
}
} }
}) })
}, },
// 启动 // 启动
doRun(){ doRun(){
// 画布xml转码
const codec = new mxCodec();
const encodedModel = codec.encode(this.newGraph.getModel());
console.log(encodedModel,46546465456);
var myXmlVal = mxUtils.getXml(encodedModel);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
pamer.append("graphXml", this.getXmlVal); pamer.append("graphXml", myXmlVal);
var executParam={ var executParam={
"exec_local":"Y", "exec_local":"Y",
......
...@@ -7,13 +7,14 @@ ...@@ -7,13 +7,14 @@
:before-close="handleClose" :before-close="handleClose"
top="10%" top="10%"
> >
<el-form ref="stepName" :model="stepName" label-width="120px"> <!-- <el-form ref="stepName" :model="stepName" label-width="120px"> -->
<el-form ref="excelForm" :model="excelForm" label-width="200px">
<el-form-item label="步骤名称:"> <el-form-item label="步骤名称:">
<el-input v-model="stepName.name"></el-input> <el-input v-model="excelForm.label"></el-input>
</el-form-item> </el-form-item>
</el-form> <!-- </el-form> -->
<el-form ref="excelForm" :model="excelForm" label-width="200px"> <!-- <el-form ref="excelForm" :model="excelForm" label-width="200px"> -->
<el-tabs v-model="activeName" type="border-card"> <el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="文件" name="content"> <el-tab-pane label="文件" name="content">
<el-form-item label="文件名:"> <el-form-item label="文件名:">
...@@ -376,6 +377,7 @@ ...@@ -376,6 +377,7 @@
<el-card class="box-card" style="margin-top:15px;"> <el-card class="box-card" style="margin-top:15px;">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<el-button style="padding: 3px 0" type="text" @click="fieldClick(true)">新增字段</el-button> <el-button style="padding: 3px 0" type="text" @click="fieldClick(true)">新增字段</el-button>
<el-button style="padding: 3px 0" type="text" @click="inputOutputFields">获取字段</el-button>
</div> </div>
<table-list ref="tableDia" :tableHead="tableHead" :tableData="tableData" :field.sync="editDia" :fieldClick="fieldClick"></table-list> <table-list ref="tableDia" :tableHead="tableHead" :tableData="tableData" :field.sync="editDia" :fieldClick="fieldClick"></table-list>
...@@ -454,11 +456,13 @@ import { ...@@ -454,11 +456,13 @@ import {
getFontalignment,//表头对齐方式 getFontalignment,//表头对齐方式
// getFontname,//数据字体 // getFontname,//数据字体
getValueMetaStore, getValueMetaStore,
getValueFormatStore getValueFormatStore,
inputOutputFields,
} from "@/api/kettle/file"; } from "@/api/kettle/file";
export default ({ export default ({
data(){ data(){
return{ return{
newGraph:{},
metaStoreList:[],//类型 metaStoreList:[],//类型
formatStoreList:[],//字段格式 formatStoreList:[],//字段格式
field:false,//编辑弹窗 field:false,//编辑弹窗
...@@ -537,21 +541,21 @@ export default ({ ...@@ -537,21 +541,21 @@ export default ({
], ],
// 表格数据 // 表格数据
tableData: [ tableData: [
{ // {
name: '31', // name: '31',
type: '鞠婧祎', // type: '鞠婧祎',
format: '女' // format: '女'
}, // },
{ // {
name: '32', // name: '32',
type: '鞠婧祎', // type: '鞠婧祎',
format: '女' // format: '女'
}, // },
{ // {
name: '33', // name: '33',
type: '鞠婧祎', // type: '鞠婧祎',
format: '女' // format: '女'
}, // },
], ],
formatTimeList:[],//时间日期格式 formatTimeList:[],//时间日期格式
codeList:[],//编码 codeList:[],//编码
...@@ -599,6 +603,7 @@ export default ({ ...@@ -599,6 +603,7 @@ export default ({
default:false default:false
}, },
saveOutputDialog:Function, saveOutputDialog:Function,
doubleClickCell:Object
}, },
// mounted(){ // mounted(){
...@@ -615,6 +620,10 @@ export default ({ ...@@ -615,6 +620,10 @@ export default ({
}, },
methods:{ methods:{
clickFun(graph){
console.log(graph,1)
this.newGraph = graph
},
handleClose(){ handleClose(){
this.$emit("update:excelOutPutVisible", false); this.$emit("update:excelOutPutVisible", false);
}, },
...@@ -720,8 +729,8 @@ export default ({ ...@@ -720,8 +729,8 @@ export default ({
confirm(){ confirm(){
console.log('步骤名称==:',this.stepName); // console.log('步骤名称==:',this.stepName);
this.excelForm.label=this.stepName.name; // this.excelForm.label=this.stepName.name;
this.excelForm.fields=JSON.stringify(this.tableData);//更新字段 this.excelForm.fields=JSON.stringify(this.tableData);//更新字段
console.log('弹窗数据:',this.excelForm); console.log('弹窗数据:',this.excelForm);
this.saveOutputDialog(this.excelForm); this.saveOutputDialog(this.excelForm);
...@@ -776,6 +785,31 @@ export default ({ ...@@ -776,6 +785,31 @@ export default ({
} }
}) })
}, },
// 获取字段
inputOutputFields(){
if(this.doubleClickCell){
var title=this.doubleClickCell.value.attributes.label.value
}
console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象
pamer.append("stepName", encodeURIComponent(title));
// pamer.append("graphXml", this.getXmlVal);
// 画布xml转码
const codec = new mxCodec();
const encodedModel = codec.encode(this.newGraph.getModel());//xml对象
console.log("获取字段的画布详情:", encodedModel);
// var myXmlVal = mxUtils.getXml(encodedModel);//xml字符串
var myXmlVal = mxUtils.getPrettyXml(encodedModel);//xml字符串
pamer.append("graphXml", myXmlVal);
pamer.append("before", true);
pamer.append("query", '');
inputOutputFields(pamer).then(res=>{
console.log('字段',res);
// this.fieldsList2=res;
this.tableData=res;
})
},
} }
}) })
......
...@@ -252,7 +252,9 @@ export default ({ ...@@ -252,7 +252,9 @@ export default ({
clickFun(graph){ clickFun(graph){
console.log(graph,'双击获取值') console.log(graph,'双击获取值')
this.newGraph = graph; this.newGraph = graph;
setTimeout(() => {
this.$refs.databaseChoose.clickFun(this.newGraph); this.$refs.databaseChoose.clickFun(this.newGraph);
}, 500);
}, },
handleClose(){ handleClose(){
this.$emit("update:deleteVisible", false); this.$emit("update:deleteVisible", false);
...@@ -288,7 +290,8 @@ export default ({ ...@@ -288,7 +290,8 @@ export default ({
}, },
tableFields(){ tableFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
...@@ -320,7 +323,8 @@ export default ({ ...@@ -320,7 +323,8 @@ export default ({
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
......
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
top="10%" top="10%"
> >
<div id="ExcelInputDialog"></div> <div id="ExcelInputDialog"></div>
<el-form ref="stepName" :model="stepName" label-width="120px"> <!-- <el-form ref="stepName" :model="stepName" label-width="120px"> -->
<el-form :model="insertOrUpdateForm" label-width="200px">
<el-form-item label="步骤名称:"> <el-form-item label="步骤名称:">
<el-input v-model="stepName.name"></el-input> <el-input v-model="insertOrUpdateForm.label"></el-input>
</el-form-item> </el-form-item>
</el-form> <!-- </el-form> -->
<el-form :model="insertOrUpdateForm" label-width="200px"> <!-- <el-form :model="insertOrUpdateForm" label-width="200px"> -->
<el-tabs v-model="activeName" type="border-card"> <el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="基本配置" name="content"> <el-tab-pane label="基本配置" name="content">
<database-choose ref="databaseChoose" :form.sync="insertOrUpdateForm" :getXmlVal="getXmlVal" :graph="newGraph"></database-choose> <database-choose ref="databaseChoose" :form.sync="insertOrUpdateForm" :getXmlVal="getXmlVal" :graph="newGraph"></database-choose>
...@@ -195,7 +196,7 @@ export default ({ ...@@ -195,7 +196,7 @@ export default ({
fieldUpdate:false,//更新弹窗 fieldUpdate:false,//更新弹窗
editDiaUpdate:false,//更新字段 editDiaUpdate:false,//更新字段
fieldFormUpdate:{},//更新弹窗 fieldFormUpdate:{},//更新弹窗
stepName:{name:'删除'}, stepName:{name:'插入/更新'},
// insertOrUpdateForm:{ // insertOrUpdateForm:{
// commit: "100", // commit: "100",
// connection: "", // connection: "",
...@@ -333,7 +334,10 @@ export default ({ ...@@ -333,7 +334,10 @@ export default ({
clickFun(graph){ clickFun(graph){
console.log(graph,'双击获取值') console.log(graph,'双击获取值')
this.newGraph = graph; this.newGraph = graph;
setTimeout(() => {
this.$refs.databaseChoose.clickFun(this.newGraph); this.$refs.databaseChoose.clickFun(this.newGraph);
}, 500);
}, },
handleClose(){ handleClose(){
this.$emit("update:InsertOrUpdateVisible", false); this.$emit("update:InsertOrUpdateVisible", false);
...@@ -400,12 +404,20 @@ export default ({ ...@@ -400,12 +404,20 @@ export default ({
//获取字段 //获取字段
getFields(num){ getFields(num){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value;
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
pamer.append("stepName", encodeURIComponent(title)); pamer.append("stepName", encodeURIComponent(title));
pamer.append("graphXml", this.getXmlVal); // pamer.append("graphXml", this.getXmlVal);
// 画布xml转码
const codec = new mxCodec();
const encodedModel = codec.encode(this.newGraph.getModel());//xml对象
console.log("获取字段的画布详情:", encodedModel);
var myXmlVal = mxUtils.getXml(encodedModel);//xml字符串
pamer.append("graphXml", myXmlVal);
// pamer.append("graphXml", this.getXmlVal);
pamer.append("before", true); pamer.append("before", true);
pamer.append("query", ''); pamer.append("query", '');
inputOutputFields(pamer).then(res=>{ inputOutputFields(pamer).then(res=>{
...@@ -442,7 +454,8 @@ export default ({ ...@@ -442,7 +454,8 @@ export default ({
}, },
tableFields(){ tableFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
...@@ -472,7 +485,8 @@ export default ({ ...@@ -472,7 +485,8 @@ export default ({
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
var title=this.doubleClickCell.value.attributes.label.value
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
......
...@@ -401,6 +401,7 @@ getValueFormatStore ...@@ -401,6 +401,7 @@ getValueFormatStore
export default ({ export default ({
data(){ data(){
return{ return{
newGraph:{},
formName:'',//当前那个属性选择文件夹 formName:'',//当前那个属性选择文件夹
metaStoreList:[],//类型 metaStoreList:[],//类型
formatStoreList:[],//字段格式 formatStoreList:[],//字段格式
...@@ -567,6 +568,13 @@ export default ({ ...@@ -567,6 +568,13 @@ export default ({
this.excelwritemethod();//如果输出文件中已存在工作表 this.excelwritemethod();//如果输出文件中已存在工作表
}, },
methods:{ methods:{
clickFun(graph){
console.log(graph,1)
this.newGraph = graph
setTimeout(() => {
this.$refs.databaseChoose.clickFun(graph,121331);
}, 500);
},
handleClose(){ handleClose(){
this.$emit("update:microVisible", false); this.$emit("update:microVisible", false);
}, },
...@@ -645,7 +653,8 @@ export default ({ ...@@ -645,7 +653,8 @@ export default ({
//超链接 //超链接
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
var title=this.doubleClickCell.value.attributes.label.value
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
> >
<el-form ref="synForm" :model="synForm" label-width="200px"> <el-form ref="synForm" :model="synForm" label-width="200px">
<el-form-item label="步骤名称:" label-width="120px"> <el-form-item label="步骤名称:" label-width="120px">
<el-input v-model="synForm.name" placeholder="数据同步" value="数据同步"></el-input> <el-input v-model="synForm.label" placeholder="数据同步" value="数据同步"></el-input>
</el-form-item> </el-form-item>
<el-tabs v-model="activeName" type="border-card"> <el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="一般" name="content"> <el-tab-pane label="一般" name="content">
...@@ -123,12 +123,12 @@ ...@@ -123,12 +123,12 @@
width="500px" width="500px"
:before-close="handleCloseEditUpdate" :before-close="handleCloseEditUpdate"
append-to-body> append-to-body>
<el-form ref="form" :model="fieldFormUpdate" label-width="80px"> <el-form ref="formUpdate" :model="fieldFormUpdate" label-width="80px">
<el-form-item label="表字段:"> <el-form-item label="表字段:">
<!-- <el-select v-model="fieldFormUpdate.name" style="width: 100%"> <!-- <el-select v-model="fieldFormUpdate.name" style="width: 100%">
<el-option v-for="(item,index) in fieldsList" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in fieldsList" :key="index" :label="item.name" :value="item.name"></el-option>
</el-select> --> </el-select> -->
<el-select v-model="fieldForm.field" style="width: 100%" @focus="tableFields"> <el-select v-model="fieldFormUpdate.name" style="width: 100%" @focus="tableFields">
<el-option v-for="(item,index) in fieldsList1" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in fieldsList1" :key="index" :label="item.name" :value="item.name"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<!-- <el-select v-model="fieldFormUpdate.rename" style="width: 100%"> <!-- <el-select v-model="fieldFormUpdate.rename" style="width: 100%">
<el-option v-for="(item,index) in fieldsList" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in fieldsList" :key="index" :label="item.name" :value="item.name"></el-option>
</el-select> --> </el-select> -->
<el-select v-model="fieldForm.name" style="width: 100%" @focus="inputOutputFields"> <el-select v-model="fieldFormUpdate.rename" style="width: 100%" @focus="inputOutputFields">
<el-option v-for="(item,index) in fieldsList2" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in fieldsList2" :key="index" :label="item.name" :value="item.name"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -301,24 +301,25 @@ export default ({ ...@@ -301,24 +301,25 @@ export default ({
], ],
// 表格数据 // 表格数据
tableData: [{ tableData: [
field: '3', // {
condition: '鞠婧祎', // field: '3',
name: '女', // condition: '鞠婧祎',
name2:'1', // name: '女',
}, // name2:'1',
{ // },
field: '4', // {
condition: '鞠婧祎', // field: '4',
name: '女', // condition: '鞠婧祎',
name2:'1', // name: '女',
}, // name2:'1',
{ // },
field: '5', // {
condition: '鞠婧祎', // field: '5',
name: '女', // condition: '鞠婧祎',
name2:'1', // name: '女',
}, // name2:'1',
// },
], ],
// 查询字段--end------------ // 查询字段--end------------
// 更新字段start------------ // 更新字段start------------
...@@ -336,16 +337,18 @@ export default ({ ...@@ -336,16 +337,18 @@ export default ({
], ],
// 表格数据 // 表格数据
tableDataUpdate: [{ tableDataUpdate: [
name: '1', // {
rename: '鞠婧祎1', // name: '1',
update: '女', // rename: '鞠婧祎1',
}, // update: '女',
{ // },
name: '2', // {
rename: '鞠婧祎2', // name: '2',
update: '女2', // rename: '鞠婧祎2',
},], // update: '女2',
// },
],
yesOrNoList:[{value: 'Y', text: '是'}, yesOrNoList:[{value: 'Y', text: '是'},
{value: 'N', text: '否'}] {value: 'N', text: '否'}]
// 更新字段end------------------- // 更新字段end-------------------
...@@ -469,7 +472,9 @@ export default ({ ...@@ -469,7 +472,9 @@ export default ({
clickFun(graph){ clickFun(graph){
console.log(graph,'双击获取值') console.log(graph,'双击获取值')
this.newGraph = graph; this.newGraph = graph;
setTimeout(() => {
this.$refs.databaseChoose.clickFun(this.newGraph); this.$refs.databaseChoose.clickFun(this.newGraph);
}, 500);
}, },
handleClose(){ handleClose(){
this.$emit("update:synVisible", false); this.$emit("update:synVisible", false);
...@@ -532,7 +537,9 @@ export default ({ ...@@ -532,7 +537,9 @@ export default ({
// -----更新end------------------ // -----更新end------------------
tableFields(){ tableFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value;
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
...@@ -562,7 +569,9 @@ export default ({ ...@@ -562,7 +569,9 @@ export default ({
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
var title=this.doubleClickCell.value.attributes.label.value;
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<el-form-item label="分区字段:" > <el-form-item label="分区字段:" >
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="23"> <el-col :span="23">
<el-select v-model="tableOutForm.partitioning_field" style="width: 100%" :disabled="tableOutForm.partitioning_enabled=='Y'? false :true"> <el-select v-model="tableOutForm.partitioning_field" style="width: 100%" :disabled="tableOutForm.partitioning_enabled=='Y'? false :true" @focus="inputOutputFields">
<!-- <el-option label="区域一" value="shanghai"></el-option> <!-- <el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option> --> <el-option label="区域二" value="beijing"></el-option> -->
<el-option v-for="(item,index) in fieldsList2" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in fieldsList2" :key="index" :label="item.name" :value="item.name"></el-option>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<el-form-item label="包含表名的字段:"> <el-form-item label="包含表名的字段:">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="23"> <el-col :span="23">
<el-select v-model="tableOutForm.tablename_field" :disabled="tableOutForm.tablename_in_field=='Y'? false :true" style="width: 100%"> <el-select @focus="inputOutputFields" v-model="tableOutForm.tablename_field" :disabled="tableOutForm.tablename_in_field=='Y'? false :true" style="width: 100%">
<!-- <el-option label="区域一" value="shanghai"></el-option> <!-- <el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option> --> <el-option label="区域二" value="beijing"></el-option> -->
<el-option v-for="(item,index) in fieldsList2" :key="index" :label="item.name" :value="item.name"></el-option> <el-option v-for="(item,index) in fieldsList2" :key="index" :label="item.name" :value="item.name"></el-option>
...@@ -309,19 +309,27 @@ export default ({ ...@@ -309,19 +309,27 @@ export default ({
}, },
watch:{ watch:{
tableOutForm:{ // tableOutForm:{
// deep:true, // // deep:true,
// immediate:true, // // immediate:true,
handler:function(n,o){ // handler:function(n,o){
// console.log("回显的表单数据===",n);
// if(n){
// var ny=JSON.parse(n.fields);
// this.tableData=ny;
// }
// }
// },
tableOutForm(n,o){
console.log("回显的表单数据===",n); console.log("回显的表单数据===",n);
if(n){ if(n){
var ny=JSON.parse(n.fields); var ny=JSON.parse(n.fields);
this.tableData=ny; this.tableData=ny;
} }
}
}, },
graph(n,o){ graph(n,o){
console.log("表输出拿到的画布1111===",n); console.log("表输出拿到的画布1111===",n);
} }
...@@ -351,9 +359,10 @@ export default ({ ...@@ -351,9 +359,10 @@ export default ({
}, },
tableFields(){ tableFields(){
// if(this.doubleClickCell){ if(this.doubleClickCell){
// var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
// } var title=this.doubleClickCell.value.attributes.label.value
}
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
// pamer.append("stepName", encodeURIComponent(title)); // pamer.append("stepName", encodeURIComponent(title));
...@@ -384,13 +393,14 @@ export default ({ ...@@ -384,13 +393,14 @@ export default ({
}, },
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
// if(this.doubleClickCell){ if(this.doubleClickCell){
// var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
// } var title=this.doubleClickCell.value.attributes.label.value
}
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
// pamer.append("stepName", encodeURIComponent(title)); pamer.append("stepName", encodeURIComponent(title));
pamer.append("stepName", encodeURIComponent(this.tableOutForm.label)); // pamer.append("stepName", encodeURIComponent(this.tableOutForm.label));
// pamer.append("graphXml", this.getXmlVal); // pamer.append("graphXml", this.getXmlVal);
// 画布xml转码 // 画布xml转码
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div id="ExcelInputDialog"></div> <div id="ExcelInputDialog"></div>
<el-form ref="textFileForm" :model="textFileForm" label-width="200px"> <el-form ref="textFileForm" :model="textFileForm" label-width="200px">
<el-form-item label="步骤名称:" label-width="120px"> <el-form-item label="步骤名称:" label-width="120px">
<el-input v-model="textFileForm.name"></el-input> <el-input v-model="textFileForm.label" value="文件文本输出"></el-input>
</el-form-item> </el-form-item>
<el-tabs v-model="activeName" type="border-card"> <el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="文件" name="content"> <el-tab-pane label="文件" name="content">
...@@ -689,11 +689,14 @@ export default ({ ...@@ -689,11 +689,14 @@ export default ({
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
pamer.append("stepName", encodeURIComponent(title)); pamer.append("stepName", encodeURIComponent(title));
// pamer.append("stepName", encodeURIComponent(this.textFileForm.label));
// pamer.append("graphXml", this.getXmlVal); // pamer.append("graphXml", this.getXmlVal);
// 画布xml转码 // 画布xml转码
const codec = new mxCodec(); const codec = new mxCodec();
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
> >
<el-form ref="updateForm" :model="updateForm" label-width="200px"> <el-form ref="updateForm" :model="updateForm" label-width="200px">
<el-form-item label="步骤名称:" label-width="120px"> <el-form-item label="步骤名称:" label-width="120px">
<el-input v-model="updateForm.name"></el-input> <el-input v-model="updateForm.label"></el-input>
</el-form-item> </el-form-item>
...@@ -362,7 +362,9 @@ export default ({ ...@@ -362,7 +362,9 @@ export default ({
clickFun(graph){ clickFun(graph){
console.log(graph,'双击获取值') console.log(graph,'双击获取值')
this.newGraph = graph; this.newGraph = graph;
setTimeout(() => {
this.$refs.databaseChoose.clickFun(this.newGraph); this.$refs.databaseChoose.clickFun(this.newGraph);
}, 500);
}, },
handleClose(){ handleClose(){
this.$emit("update:updateVisible", false); this.$emit("update:updateVisible", false);
...@@ -426,7 +428,9 @@ export default ({ ...@@ -426,7 +428,9 @@ export default ({
tableFields(){ tableFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value;
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
...@@ -456,7 +460,8 @@ export default ({ ...@@ -456,7 +460,8 @@ export default ({
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title;
var title=this.doubleClickCell.value.attributes.label.value;
} }
console.log('获取cell888888===',this.doubleClickCell); console.log('获取cell888888===',this.doubleClickCell);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
......
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