数据新增或编辑发起流程时,配置自定义标题可以手动输入流程标题
parent
1bd2742cfc
commit
771f54bbe8
|
|
@ -197,6 +197,7 @@
|
||||||
let content = JSON.parse(data.scheme.content);
|
let content = JSON.parse(data.scheme.content);
|
||||||
let wfData = content.wfData;
|
let wfData = content.wfData;
|
||||||
const currentNode = wfData.find((t) => t.type == 'bpmn:StartEvent');
|
const currentNode = wfData.find((t) => t.type == 'bpmn:StartEvent');
|
||||||
|
designerData.isCustmerTitle = currentNode.isCustmerTitle;
|
||||||
if (currentNode.authFields.length > 0) {
|
if (currentNode.authFields.length > 0) {
|
||||||
formVisble.value = true;
|
formVisble.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -269,6 +270,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function handleCreateFlow(processId, pkeyValue) {
|
async function handleCreateFlow(processId, pkeyValue) {
|
||||||
|
let values;
|
||||||
|
if (designerData.isCustmerTitle) {
|
||||||
|
values = await formRef.value
|
||||||
|
.validate()
|
||||||
|
.then(() => {
|
||||||
|
return true;
|
||||||
|
})
|
||||||
|
.catch((error: ValidateErrorEntity<FormState>) => {
|
||||||
|
console.log('error', error);
|
||||||
|
processVisble.value = true;
|
||||||
|
activeName.value = 'flow';
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
values = true;
|
||||||
|
}
|
||||||
|
if (values) {
|
||||||
var commit = {
|
var commit = {
|
||||||
schemeId: designerData.formCurrentNode.formVerison,
|
schemeId: designerData.formCurrentNode.formVerison,
|
||||||
pkey: keyValue.value,
|
pkey: keyValue.value,
|
||||||
|
|
@ -297,6 +315,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
async function getFormHistory() {
|
async function getFormHistory() {
|
||||||
const data = await LoadFormScheme({
|
const data = await LoadFormScheme({
|
||||||
schemeId: designerData.formCurrentNode.formVerison,
|
schemeId: designerData.formCurrentNode.formVerison,
|
||||||
|
|
|
||||||
|
|
@ -353,7 +353,6 @@
|
||||||
} else {
|
} else {
|
||||||
values = true;
|
values = true;
|
||||||
}
|
}
|
||||||
console.log(values);
|
|
||||||
if (values) {
|
if (values) {
|
||||||
var commit = {
|
var commit = {
|
||||||
schemeId: designerData.formCurrentNode.formVerison,
|
schemeId: designerData.formCurrentNode.formVerison,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue