|
@@ -62,6 +62,30 @@
|
|
|
@change="updateNodeDescription"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ v-show="isProcess && myProcessType == 1"
|
|
|
+ label="表单类型"
|
|
|
+ prop="formType"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model="elFormData.formType"
|
|
|
+ @change="updateFormType"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in formTypeOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ <span class="discribe" style="float: left">{{ item.label }}</span>
|
|
|
+ <span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
+ item.value
|
|
|
+ }}</span>
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item
|
|
|
v-show="isProcess && myProcessType == 1"
|
|
|
label="审批表单"
|
|
@@ -173,6 +197,8 @@ import {
|
|
|
getNodeDescription,
|
|
|
setFId,
|
|
|
getFId,
|
|
|
+ setFormType,
|
|
|
+ getFormType,
|
|
|
} from "@packages/bo-utils/myFieldUtil";
|
|
|
import EventEmitter from "@utils/EventEmitter";
|
|
|
import { getActive } from "@packages/bpmn-utils/BpmnDesignerUtils";
|
|
@@ -233,7 +259,18 @@ export default {
|
|
|
scriptTriggerType: false,
|
|
|
formKey: "",
|
|
|
fId: "",
|
|
|
+ formType: "",
|
|
|
},
|
|
|
+ formTypeOptions: [
|
|
|
+ {
|
|
|
+ label: "单独表单",
|
|
|
+ value: "dragForm",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "表单组",
|
|
|
+ value: "dragFormGroup",
|
|
|
+ },
|
|
|
+ ],
|
|
|
|
|
|
isProcess: false,
|
|
|
// rules: {
|
|
@@ -267,9 +304,13 @@ export default {
|
|
|
return this.processType();
|
|
|
},
|
|
|
formList() {
|
|
|
- console.log(this.myProcessType);
|
|
|
if (this.myProcessType == "1") {
|
|
|
- return this.dragFormList();
|
|
|
+ //OA类型
|
|
|
+ if (this.elFormData.formType == "dragForm") {
|
|
|
+ return this.dragFormList();
|
|
|
+ } else {
|
|
|
+ return this.groupDragFormList();
|
|
|
+ }
|
|
|
}
|
|
|
return formList;
|
|
|
},
|
|
@@ -283,6 +324,10 @@ export default {
|
|
|
from: "dragFormList",
|
|
|
default: [],
|
|
|
},
|
|
|
+ groupDragFormList: {
|
|
|
+ from: "groupDragFormList",
|
|
|
+ default: [],
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.reloadGenerationData();
|
|
@@ -304,6 +349,7 @@ export default {
|
|
|
this.elFormData.elementVersion =
|
|
|
getProcessVersionTag(getActive()) || "";
|
|
|
this.elFormData.fId = getFId(getActive()) || "";
|
|
|
+ this.elFormData.formType = getFormType(getActive()) || "dragForm";
|
|
|
} else {
|
|
|
this.elFormData.nodeDescription = getNodeDescription(getActive()) || "";
|
|
|
this.elFormData.formKey = getFormKey(getActive()) || "";
|
|
@@ -321,6 +367,9 @@ export default {
|
|
|
updateFId(value) {
|
|
|
setFId(getActive(), value);
|
|
|
},
|
|
|
+ updateFormType(value) {
|
|
|
+ setFormType(getActive(), value);
|
|
|
+ },
|
|
|
updateElementVersion(value) {
|
|
|
const reg = /((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/;
|
|
|
if (reg.test(value)) {
|