mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-06-21 15:52:00 +08:00
【代码优化】工作流:去除多余的 debugger 断点
This commit is contained in:
parent
98e9ba49ae
commit
2df0aa20ff
@ -208,9 +208,9 @@ const getApprovalDetail = async (row: any) => {
|
|||||||
} finally {
|
} finally {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
const submitForm = async (formData: any) => {
|
const submitForm = async (formData: any) => {
|
||||||
debugger
|
|
||||||
if (!fApi.value || !props.selectProcessDefinition) {
|
if (!fApi.value || !props.selectProcessDefinition) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ const getApprovalDetail = async () => {
|
|||||||
const formFieldsPermission = data.formFieldsPermission
|
const formFieldsPermission = data.formFieldsPermission
|
||||||
|
|
||||||
if (detailForm.value.rule.length > 0) {
|
if (detailForm.value.rule.length > 0) {
|
||||||
// 避免刷新 form-create 显示不了,
|
// 避免刷新 form-create 显示不了
|
||||||
detailForm.value.value = processInstance.value.formVariables
|
detailForm.value.value = processInstance.value.formVariables
|
||||||
} else {
|
} else {
|
||||||
setConfAndFields2(
|
setConfAndFields2(
|
||||||
|
@ -222,7 +222,6 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
|
|||||||
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
||||||
row.processDefinitionId
|
row.processDefinitionId
|
||||||
)
|
)
|
||||||
debugger
|
|
||||||
if (processDefinitionDetail.formType === 20) {
|
if (processDefinitionDetail.formType === 20) {
|
||||||
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
|
message.error('重新发起流程失败,原因:该流程使用业务表单,不支持重新发起')
|
||||||
return
|
return
|
||||||
|
@ -257,7 +257,6 @@ const resetForm = (appId, code) => {
|
|||||||
const fileBeforeUpload = (file, fileAccept) => {
|
const fileBeforeUpload = (file, fileAccept) => {
|
||||||
let format = '.' + file.name.split('.')[1]
|
let format = '.' + file.name.split('.')[1]
|
||||||
if (format !== fileAccept) {
|
if (format !== fileAccept) {
|
||||||
debugger
|
|
||||||
message.error('请上传指定格式"' + fileAccept + '"文件')
|
message.error('请上传指定格式"' + fileAccept + '"文件')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user