clay : 任意节点退回完成 #34
|
|
@ -60,26 +60,26 @@ export default {
|
||||||
initUser(user) {
|
initUser(user) {
|
||||||
let state = user.state
|
let state = user.state
|
||||||
//创建节点
|
//创建节点
|
||||||
if (state === 'create') {
|
if (state === 'CREATE') {
|
||||||
this.$set(user, "icon", "el-icon-check")
|
this.$set(user, "icon", "el-icon-check")
|
||||||
this.$set(user, "color", "#0bbd87")
|
this.$set(user, "color", "#0bbd87")
|
||||||
}
|
}
|
||||||
//审批通过
|
//审批通过
|
||||||
if (state === 'agree') {
|
if (state === 'AGREE') {
|
||||||
this.$set(user, "icon", "el-icon-check")
|
this.$set(user, "icon", "el-icon-check")
|
||||||
this.$set(user, "color", "#0bbd87")
|
this.$set(user, "color", "#0bbd87")
|
||||||
}
|
}
|
||||||
//审批处理中
|
//审批处理中
|
||||||
if (state === 'running') {
|
if (state === 'RUNNING') {
|
||||||
this.$set(user, "icon", "el-icon-loading")
|
this.$set(user, "icon", "el-icon-loading")
|
||||||
this.$set(user, "color", "#f78f5f")
|
this.$set(user, "color", "#f78f5f")
|
||||||
}
|
}
|
||||||
//拒绝后评论
|
//拒绝后评论
|
||||||
if (state === 'refuse') {
|
if (state === 'REFUSE') {
|
||||||
this.$set(user, "icon", "el-icon-close")
|
this.$set(user, "icon", "el-icon-close")
|
||||||
this.$set(user, "color", "#f56c6c")
|
this.$set(user, "color", "#f56c6c")
|
||||||
}
|
}
|
||||||
if (state === 'pass') {
|
if (state === 'PASS') {
|
||||||
this.$set(user, "icon", "el-icon-more")
|
this.$set(user, "icon", "el-icon-more")
|
||||||
this.$set(user, "color", "#c0c4cc")
|
this.$set(user, "color", "#c0c4cc")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,26 +148,26 @@ export default {
|
||||||
initUser(user) {
|
initUser(user) {
|
||||||
let state = user.state
|
let state = user.state
|
||||||
//创建节点
|
//创建节点
|
||||||
if (state === 'create') {
|
if (state === 'CREATE') {
|
||||||
this.$set(user, "icon", "el-icon-check")
|
this.$set(user, "icon", "el-icon-check")
|
||||||
this.$set(user, "color", "#0bbd87")
|
this.$set(user, "color", "#0bbd87")
|
||||||
}
|
}
|
||||||
//审批通过
|
//审批通过
|
||||||
if (state === 'agree') {
|
if (state === 'AGREE') {
|
||||||
this.$set(user, "icon", "el-icon-check")
|
this.$set(user, "icon", "el-icon-check")
|
||||||
this.$set(user, "color", "#0bbd87")
|
this.$set(user, "color", "#0bbd87")
|
||||||
}
|
}
|
||||||
//审批处理中
|
//审批处理中
|
||||||
if (state === 'running') {
|
if (state === 'RUNNING') {
|
||||||
this.$set(user, "icon", "el-icon-loading")
|
this.$set(user, "icon", "el-icon-loading")
|
||||||
this.$set(user, "color", "#f78f5f")
|
this.$set(user, "color", "#f78f5f")
|
||||||
}
|
}
|
||||||
//拒绝后评论
|
//拒绝后评论
|
||||||
if (state === 'refuse') {
|
if (state === 'REFUSE') {
|
||||||
this.$set(user, "icon", "el-icon-close")
|
this.$set(user, "icon", "el-icon-close")
|
||||||
this.$set(user, "color", "#f56c6c")
|
this.$set(user, "color", "#f56c6c")
|
||||||
}
|
}
|
||||||
if (state === 'pass'){
|
if (state === 'PASS'){
|
||||||
this.$set(user, "icon", "el-icon-more")
|
this.$set(user, "icon", "el-icon-more")
|
||||||
this.$set(user, "color", "#c0c4cc")
|
this.$set(user, "color", "#c0c4cc")
|
||||||
}
|
}
|
||||||
|
|
@ -177,47 +177,47 @@ export default {
|
||||||
let state = operation.state
|
let state = operation.state
|
||||||
let type = operation.operation
|
let type = operation.operation
|
||||||
//创建节点
|
//创建节点
|
||||||
if (state === 'create') {
|
if (state === 'CREATE') {
|
||||||
this.$set(operation, "icon", "el-icon-check")
|
this.$set(operation, "icon", "el-icon-check")
|
||||||
this.$set(operation, "color", "#0bbd87")
|
this.$set(operation, "color", "#0bbd87")
|
||||||
this.$set(operation, "remark", operation.userInfo.name)
|
this.$set(operation, "remark", operation.userInfo.name)
|
||||||
}
|
}
|
||||||
//审批通过
|
//审批通过
|
||||||
if (state === 'agree') {
|
if (state === 'AGREE') {
|
||||||
this.$set(operation, "icon", "el-icon-check")
|
this.$set(operation, "icon", "el-icon-check")
|
||||||
this.$set(operation, "color", "#0bbd87")
|
this.$set(operation, "color", "#0bbd87")
|
||||||
this.$set(operation, "remark", operation.userInfo.name + ' (已同意)')
|
this.$set(operation, "remark", operation.userInfo.name + ' (已同意)')
|
||||||
}
|
}
|
||||||
if (state === 'pass'){
|
if (state === 'PASS'){
|
||||||
this.$set(operation, "icon", "el-icon-more")
|
this.$set(operation, "icon", "el-icon-more")
|
||||||
this.$set(operation, "color", "#c0c4cc")
|
this.$set(operation, "color", "#c0c4cc")
|
||||||
}
|
}
|
||||||
//审批处理中
|
//审批处理中
|
||||||
if (state === 'running') {
|
if (state === 'RUNNING') {
|
||||||
this.$set(operation, "icon", "el-icon-loading")
|
this.$set(operation, "icon", "el-icon-loading")
|
||||||
this.$set(operation, "color", "#f78f5f")
|
this.$set(operation, "color", "#f78f5f")
|
||||||
this.$set(operation, "remark", operation.userInfo.name + ' (处理中)')
|
this.$set(operation, "remark", operation.userInfo.name + ' (处理中)')
|
||||||
}
|
}
|
||||||
//抄送
|
//抄送
|
||||||
if (type === 'cc') {
|
if (type === 'CC') {
|
||||||
this.$set(operation, "icon", "el-icon-s-promotion")
|
this.$set(operation, "icon", "el-icon-s-promotion")
|
||||||
this.$set(operation, "color", "#3395f8")
|
this.$set(operation, "color", "#3395f8")
|
||||||
this.$set(operation, "remark", operation.userInfo.name + ' (抄送成功)')
|
this.$set(operation, "remark", operation.userInfo.name + ' (抄送成功)')
|
||||||
}
|
}
|
||||||
//评论
|
//评论
|
||||||
if (state === 'comment') {
|
if (state === 'COMMENT') {
|
||||||
this.$set(operation, "icon", "el-icon-chat-dot-round")
|
this.$set(operation, "icon", "el-icon-chat-dot-round")
|
||||||
this.$set(operation, "color", "#0bbd87")
|
this.$set(operation, "color", "#0bbd87")
|
||||||
this.$set(operation, "remark", operation.userInfo.name + ' (添加了评论)')
|
this.$set(operation, "remark", operation.userInfo.name + ' (添加了评论)')
|
||||||
}
|
}
|
||||||
//拒绝后评论
|
//拒绝后评论
|
||||||
if (state === 'refuse' && type === 'comment') {
|
if (state === 'REFUSE' && type === 'COMMENT') {
|
||||||
this.$set(operation, "icon", "el-icon-chat-dot-round")
|
this.$set(operation, "icon", "el-icon-chat-dot-round")
|
||||||
this.$set(operation, "color", "#f56c6c")
|
this.$set(operation, "color", "#f56c6c")
|
||||||
this.$set(operation, "remark", operation.userInfo.name + ' (填写拒绝理由)')
|
this.$set(operation, "remark", operation.userInfo.name + ' (填写拒绝理由)')
|
||||||
}
|
}
|
||||||
//拒绝操作
|
//拒绝操作
|
||||||
if (state === 'refuse' && type === 'opinion') {
|
if (state === 'REFUSE' && type === 'OPINION') {
|
||||||
this.$set(operation, "icon", "el-icon-close")
|
this.$set(operation, "icon", "el-icon-close")
|
||||||
this.$set(operation, "color", "#f56c6c")
|
this.$set(operation, "color", "#f56c6c")
|
||||||
this.$set(operation, "remark", operation.userInfo.name + ' (拒绝)')
|
this.$set(operation, "remark", operation.userInfo.name + ' (拒绝)')
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export default {
|
||||||
computed:{
|
computed:{
|
||||||
selectUser(){
|
selectUser(){
|
||||||
return {
|
return {
|
||||||
show: this.config.props.shouldAdd,
|
show: this.config.props.assignedType !== 'ASSIGN_USER',
|
||||||
multiple: true
|
multiple: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -120,10 +120,12 @@ export default {
|
||||||
// todo 提交流程测试
|
// todo 提交流程测试
|
||||||
submitForm(){
|
submitForm(){
|
||||||
let processInstance = this.$refs.processInstance;
|
let processInstance = this.$refs.processInstance;
|
||||||
|
let selectUserMap = {}
|
||||||
|
this.$store.state.selectUserMap.forEach(((value, key) => {selectUserMap[key]=value}))
|
||||||
let paramsData = {
|
let paramsData = {
|
||||||
processDefinitionId: this.selectForm.processDefinitionId,
|
processDefinitionId: this.selectForm.processDefinitionId,
|
||||||
formData: JSON.stringify(processInstance.formData),
|
formData: JSON.stringify(processInstance.formData),
|
||||||
selectUserMap: this.$store.state.selectUserMap
|
optionalUser: selectUserMap
|
||||||
}
|
}
|
||||||
processInstance.validate(valid => {
|
processInstance.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue