fix: 流程设计页面优化

rf
tony 2023-01-06 21:27:54 +08:00
parent 942f5e1f54
commit b80568dfd7
1 changed files with 43 additions and 49 deletions

View File

@ -172,13 +172,16 @@
</el-dialog> </el-dialog>
<!-- 流程图 --> <!-- 流程图 -->
<el-dialog :title="flowImageTitle" :visible.sync="flowImageOpen" width="70%" append-to-body> <el-dialog :title="readImage.title" :visible.sync="readImage.open" width="70%" append-to-body>
<!-- <el-image :src="readImage.src"></el-image> -->
<flow :flowData="flowData"/> <flow :flowData="flowData"/>
</el-dialog> </el-dialog>
<!--表单配置详情--> <!--表单配置详情-->
<el-dialog :title="formTitle" :visible.sync="formConfOpen" width="50%" append-to-body> <el-dialog :title="formTitle" :visible.sync="formConfOpen" width="50%" append-to-body>
<v-form-render :form-data="formRenderData" ref="vFormRef"/> <div class="test-form">
<parser :key="new Date().getTime()" :form-conf="formConf" />
</div>
</el-dialog> </el-dialog>
<!--挂载表单--> <!--挂载表单-->
@ -212,7 +215,9 @@
/> />
</el-col> </el-col>
<el-col :span="14" :xs="24"> <el-col :span="14" :xs="24">
<v-form-render :form-data="formRenderData" ref="vFormRef"/> <div v-if="currentRow">
<parser :key="new Date().getTime()" :form-conf="currentRow" />
</div>
</el-col> </el-col>
</el-row> </el-row>
</el-dialog> </el-dialog>
@ -282,9 +287,11 @@ export default {
formDeployTitle: "", formDeployTitle: "",
formList: [], formList: [],
formTotal:0, formTotal:0,
flowImageTitle: '', formConf: {}, //
flowImageOpen: false, readImage:{
formRenderData:{}, open: false,
src: "",
},
// bpmn.xml // bpmn.xml
upload: { upload: {
// xml // xml
@ -324,6 +331,7 @@ export default {
deployId: null deployId: null
}, },
deployId: '', deployId: '',
currentRow: null,
// xml // xml
flowData: {}, flowData: {},
// //
@ -412,8 +420,9 @@ export default {
}, },
/** 流程图查看 */ /** 流程图查看 */
handleReadImage(deployId){ handleReadImage(deployId){
this.flowImageTitle = "流程图"; this.readImage.title = "流程图";
this.flowImageOpen = true; this.readImage.open = true;
// this.readImage.src = process.env.VUE_APP_BASE_API + "/flowable/definition/readImage/" + deploymentId;
flowXmlAndNode({deployId:deployId}).then(res => { flowXmlAndNode({deployId:deployId}).then(res => {
this.flowData = res.data; this.flowData = res.data;
}) })
@ -423,14 +432,7 @@ export default {
getForm(formId).then(res =>{ getForm(formId).then(res =>{
this.formTitle = "表单详情"; this.formTitle = "表单详情";
this.formConfOpen = true; this.formConfOpen = true;
// this.formConf = JSON.parse(res.data.formContent)
this.$nextTick(() => {
this.$refs.vFormRef.setFormJson(res.data.formContent);
this.$nextTick(() => {
//
this.$refs.vFormRef.disableForm();
})
})
}) })
}, },
/** 启动流程 */ /** 启动流程 */
@ -477,15 +479,7 @@ export default {
}, },
handleCurrentChange(data) { handleCurrentChange(data) {
if (data) { if (data) {
// this.currentRow = JSON.parse(data.formContent);
this.$nextTick(() => {
this.$refs.vFormRef.setFormJson(JSON.parse(data.formContent));
//
this.$nextTick(() => {
//
this.$refs.vFormRef.disableForm();
})
})
} }
}, },
/** 挂起/激活流程 */ /** 挂起/激活流程 */