Commit 884eb12c by 莫晓莉

字段获取成功

parent 247e0aed
...@@ -104,6 +104,20 @@ ...@@ -104,6 +104,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 {
tableFields, tableFields,
inputOutputFields,//获取表输出 inputOutputFields,//获取表输出
......
...@@ -165,6 +165,20 @@ ...@@ -165,6 +165,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 {
tableFields, tableFields,
inputOutputFields inputOutputFields
......
...@@ -168,6 +168,20 @@ ...@@ -168,6 +168,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 {
formatFunc,//获取已经创建的数据库列表 formatFunc,//获取已经创建的数据库列表
getAvailableCharsets,//获取编码 getAvailableCharsets,//获取编码
......
...@@ -221,6 +221,20 @@ ...@@ -221,6 +221,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 {
tableFields, tableFields,
inputOutputFields,//获取表输出 inputOutputFields,//获取表输出
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-form ref="tableOutForm" :model="tableOutForm" label-width="200px"> <el-form ref="tableOutForm" :model="tableOutForm" label-width="200px">
<el-form-item label="步骤名称:"> <el-form-item label="步骤名称:">
<el-input v-model="tableOutForm.label" value="表输出"></el-input> <el-input v-model="tableOutForm.label" value="表输出" placeholder="表输出"></el-input>
</el-form-item> </el-form-item>
...@@ -335,7 +335,7 @@ export default ({ ...@@ -335,7 +335,7 @@ export default ({
}, 500); }, 500);
}, },
confirm(){ confirm(){
this.tableOutForm.label=this.doubleClickCell.title; // this.tableOutForm.label=this.doubleClickCell.title;
this.tableOutForm.fields=JSON.stringify(this.tableData);//字段复值 this.tableOutForm.fields=JSON.stringify(this.tableData);//字段复值
console.log('表输出表单数据=====',this.tableOutForm) console.log('表输出表单数据=====',this.tableOutForm)
this.saveOutputDialog(this.tableOutForm); this.saveOutputDialog(this.tableOutForm);
...@@ -351,9 +351,9 @@ export default ({ ...@@ -351,9 +351,9 @@ export default ({
}, },
tableFields(){ tableFields(){
if(this.doubleClickCell){ // if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
} // }
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,12 +384,13 @@ export default ({ ...@@ -384,12 +384,13 @@ export default ({
}, },
//获取表输出 //获取表输出
inputOutputFields(){ inputOutputFields(){
if(this.doubleClickCell){ // if(this.doubleClickCell){
var title=this.doubleClickCell.title // var title=this.doubleClickCell.title
} // }
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("graphXml", this.getXmlVal); // pamer.append("graphXml", this.getXmlVal);
// 画布xml转码 // 画布xml转码
......
...@@ -187,6 +187,20 @@ ...@@ -187,6 +187,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 {
tableFields, tableFields,
inputOutputFields,//获取表输出 inputOutputFields,//获取表输出
......
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