发起审批 && 清理代码

This commit is contained in:
ChenXinXin committed 2024-04-30 16:40:08 +08:00
1 parent 5f7e5a038f
commit b64c952d0f
30 files changed
+308 -1228

No files matched your search

+3 -16
View File
@@ -16,7 +16,7 @@
<div class="px-4 mt-2">
<v-form ref="form">
<template>
<v-stepper non-linear flat outlined>
<v-stepper non-linear flat outlined v-model="step">
<v-stepper-header>
<v-stepper-step
editable
@@ -94,10 +94,7 @@
</template>
{% include 'component/tpl/tplFormDesign.html' %}
{% include 'component/tpl/formItemListGenerator.html' %}
{% include 'component/flow/processFlow.html' %}
{% include 'component/flow/editLine.html' %}
{% include 'component/flow/editNode.html' %}
{% include 'component/workflowBasicInfo.html' %}
<script type="module">
Vue.component("workflow-editor-drawer", {
@@ -125,7 +122,7 @@ Vue.component("workflow-editor-drawer", {
isHelpPageDrawerShown: false,
formSubmitData: null,
tab: null
step: 1
}
},
computed: {
@@ -144,7 +141,6 @@ Vue.component("workflow-editor-drawer", {
switch (uiActionId) {
case 'open':
await this.prepareFormObj(uiActionData);
// await this.buildConstantWorkflowFormList();
await this.buildConstantWorkflowConfig();
await this.openDrawer();
break;
@@ -202,6 +198,7 @@ Vue.component("workflow-editor-drawer", {
async closeDrawer() {
this.$refs.processFlow.setDisplayMode(1)
this.step = 1
this.isDrawerShown = false;
},
@@ -261,16 +258,6 @@ Vue.component("workflow-editor-drawer", {
},
// -- <<<<<<<<<<<<< 获取数据 --------------------
// -- constantObj 数据构建 >>>>>>>>>>> ---------------
buildConstantWorkflowFormList() {
if (!this.formObj.workflowForm) return;
this.constantObj.workflowFormList = [];
for (const item of this.formObj.workflowForm) {
this.constantObj.workflowFormList.push({
text: item.statement,
value: item.id
})
}
},
buildConstantWorkflowConfig() {
if (!this.formObj.workflowConfig) return;