autoApproval拼写
This commit is contained in:
1 parent
95ce71570d
commit
3913e0e702
3 files changed
+7
-7
No files matched your search
+4
-4
@@ -117,7 +117,7 @@ class TaskService extends Service {
|
|||||||
editUserList = taskEditUserList && taskEditUserList.split(',') || [],
|
editUserList = taskEditUserList && taskEditUserList.split(',') || [],
|
||||||
editedUserList = taskEditedUserList && taskEditedUserList.split(',') || [],
|
editedUserList = taskEditedUserList && taskEditedUserList.split(',') || [],
|
||||||
bannedUser = [];
|
bannedUser = [];
|
||||||
const { autoApprovel, abnormalType, abnormalUser } = taskInfo;
|
const { autoApproval, abnormalType, abnormalUser } = taskInfo;
|
||||||
|
|
||||||
// 如果是审批进入,就加上本次审批人,用来判断可以自动审批的人
|
// 如果是审批进入,就加上本次审批人,用来判断可以自动审批的人
|
||||||
if (action == 'updateTask') taskHistoryUser.push(userId)
|
if (action == 'updateTask') taskHistoryUser.push(userId)
|
||||||
@@ -169,7 +169,7 @@ class TaskService extends Service {
|
|||||||
await handleBanned()
|
await handleBanned()
|
||||||
|
|
||||||
// 自动审批
|
// 自动审批
|
||||||
if (autoApprovel == 1 && times == 1) {
|
if (autoApproval == 1 && times == 1) {
|
||||||
var autoApprovelUser = _.intersection(taskHistoryUser, editUserList)
|
var autoApprovelUser = _.intersection(taskHistoryUser, editUserList)
|
||||||
|
|
||||||
taskData = {
|
taskData = {
|
||||||
@@ -212,7 +212,7 @@ class TaskService extends Service {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 自动流转,识别是否需要自动审批
|
// 自动流转,识别是否需要自动审批
|
||||||
if (editUserList.length > 0 && autoApprovel == 1) {
|
if (editUserList.length > 0 && autoApproval == 1) {
|
||||||
var autoApprovelUser = _.intersection(taskHistoryUser, editUserList)
|
var autoApprovelUser = _.intersection(taskHistoryUser, editUserList)
|
||||||
|
|
||||||
if (autoApprovelUser.length > 0) {
|
if (autoApprovelUser.length > 0) {
|
||||||
@@ -255,7 +255,7 @@ class TaskService extends Service {
|
|||||||
|
|
||||||
// 判断下一个是否可以自动审批
|
// 判断下一个是否可以自动审批
|
||||||
if (editUserList.length > 0) {
|
if (editUserList.length > 0) {
|
||||||
if (autoApprovel == 1) {
|
if (autoApproval == 1) {
|
||||||
while (editUserList.length > 0 && taskHistoryUser.includes(editUserList[0])) {
|
while (editUserList.length > 0 && taskHistoryUser.includes(editUserList[0])) {
|
||||||
// 插入历史
|
// 插入历史
|
||||||
taskData = {
|
taskData = {
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
<!-- 仅首个节点需要审批,其余自动同意 -->
|
<!-- 仅首个节点需要审批,其余自动同意 -->
|
||||||
<!-- 仅连续审批时自动同意 -->
|
<!-- 仅连续审批时自动同意 -->
|
||||||
<!-- 每个节点都需要审批 -->
|
<!-- 每个节点都需要审批 -->
|
||||||
<v-radio-group v-model="workflowInfo['autoApprovel']" dense>
|
<v-radio-group v-model="workflowInfo['autoApproval']" dense>
|
||||||
<v-radio
|
<v-radio
|
||||||
label="仅首个节点需要审批,其余自动同意"
|
label="仅首个节点需要审批,其余自动同意"
|
||||||
value="1"
|
value="1"
|
||||||
@@ -173,7 +173,7 @@ Vue.component("workflow-basic-info", {
|
|||||||
addAuthority: false,
|
addAuthority: false,
|
||||||
modifyAuthority: false,
|
modifyAuthority: false,
|
||||||
abnormalType: '-1',
|
abnormalType: '-1',
|
||||||
autoApprovel: '1',
|
autoApproval: '1',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ Vue.component("workflow-editor-drawer", {
|
|||||||
addAuthority: false,
|
addAuthority: false,
|
||||||
modifyAuthority: false,
|
modifyAuthority: false,
|
||||||
abnormalType: '-1',
|
abnormalType: '-1',
|
||||||
autoApprovel: '1',
|
autoApproval: '1',
|
||||||
},
|
},
|
||||||
workflowForm: [],
|
workflowForm: [],
|
||||||
workflowConfig: {lineList: [], nodeList: []}
|
workflowConfig: {lineList: [], nodeList: []}
|
||||||
|
|||||||
Reference in new issue
Block a user