From fcfbafa62aa6f3e57f2e68a0afbfb393a2a876ca Mon Sep 17 00:00:00 2001
From: clay <20932067@zju.edu.cn>
Date: Tue, 28 Feb 2023 00:31:11 +0800
Subject: [PATCH 1/2] =?UTF-8?q?clay=20:=20=E9=80=80=E5=9B=9E=E5=81=9A?=
=?UTF-8?q?=E4=BA=86=E4=B8=80=E5=8D=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/common/AvatarEllipsis.vue | 2 +-
.../src/components/common/Comment.vue | 11 ++--
.../src/components/common/RolePicker.vue | 1 -
flowable-engine-web/src/store/index.js | 2 +
.../admin/layout/process/ProcessTree.vue | 50 +++++++++++--------
.../src/views/common/form/FormRenderView.vue | 6 ---
.../common/operation/OperationRender.vue | 10 +---
.../common/process/nodes/ConcurrentNode.vue | 6 +--
.../src/views/workspace/AboutInstance.vue | 5 +-
.../src/views/workspace/DisposalTask.vue | 3 +-
.../src/views/workspace/InitiateProcess.vue | 1 -
.../src/views/workspace/InitiatedInstance.vue | 5 +-
.../src/views/workspace/TaskView.vue | 2 -
13 files changed, 53 insertions(+), 51 deletions(-)
diff --git a/flowable-engine-web/src/components/common/AvatarEllipsis.vue b/flowable-engine-web/src/components/common/AvatarEllipsis.vue
index aa73eeb..34e4618 100644
--- a/flowable-engine-web/src/components/common/AvatarEllipsis.vue
+++ b/flowable-engine-web/src/components/common/AvatarEllipsis.vue
@@ -70,7 +70,7 @@ export default {
this.$set(user, "color", "#0bbd87")
}
//审批处理中
- if (state === 'process') {
+ if (state === 'running') {
this.$set(user, "icon", "el-icon-loading")
this.$set(user, "color", "#f78f5f")
}
diff --git a/flowable-engine-web/src/components/common/Comment.vue b/flowable-engine-web/src/components/common/Comment.vue
index d317bfc..46b11d2 100644
--- a/flowable-engine-web/src/components/common/Comment.vue
+++ b/flowable-engine-web/src/components/common/Comment.vue
@@ -9,7 +9,7 @@
回退节点:
-
+
@@ -61,7 +61,7 @@
添加图片 {{ sizeTip }}
-
+
@@ -140,7 +140,7 @@ export default {
authorization: localStorage.getItem("token")
},
context: null,
- backNode: null,
+ rollBackId: null,
dialogImageUrl: '',
dialogVisible: false
};
@@ -196,7 +196,7 @@ export default {
deleteFile(file.id).then(res => {
if (res.code === 1000) {
this.$message.success("删除成功")
- this.fileList.splice( this.fileList.findIndex((item)=>item.id===file.id),1)
+ this.fileList.splice(this.fileList.findIndex((item) => item.id === file.id), 1)
}
})
},
@@ -222,7 +222,8 @@ export default {
})
let data = {
context: this.context,
- attachments: fileList
+ attachments: fileList,
+ rollBackId: this.rollBackId,
}
this.$emit("ok", data, this.type)
this.visible = false;
diff --git a/flowable-engine-web/src/components/common/RolePicker.vue b/flowable-engine-web/src/components/common/RolePicker.vue
index 03ab18a..402aec3 100644
--- a/flowable-engine-web/src/components/common/RolePicker.vue
+++ b/flowable-engine-web/src/components/common/RolePicker.vue
@@ -82,7 +82,6 @@ export default {
//获取角色信息
getRole() {
getRole().then(res => {
- console.log('系统角色',res.data);
this.roleList= res.data.map(function (val){
return {roleId:val.value,roleName:val.label}
})
diff --git a/flowable-engine-web/src/store/index.js b/flowable-engine-web/src/store/index.js
index 246ad8b..65d06b5 100644
--- a/flowable-engine-web/src/store/index.js
+++ b/flowable-engine-web/src/store/index.js
@@ -14,6 +14,8 @@ export default new Vuex.Store({
runningList: [],
endList: [],
noTakeList: [],
+ refuseList: [],
+ passList: [],
design:{},
},
mutations: {
diff --git a/flowable-engine-web/src/views/admin/layout/process/ProcessTree.vue b/flowable-engine-web/src/views/admin/layout/process/ProcessTree.vue
index 64258bd..1ae49c8 100644
--- a/flowable-engine-web/src/views/admin/layout/process/ProcessTree.vue
+++ b/flowable-engine-web/src/views/admin/layout/process/ProcessTree.vue
@@ -32,20 +32,26 @@ export default {
dom() {
return this.$store.state.design.process;
},
- viewer(){
+ viewer() {
return this.$store.state.diagramMode === 'viewer'
},
- preview(){
+ preview() {
return this.$store.state.preview;
},
- runningList(){
- return this.$store.state.runningList
+ runningList() {
+ return this.$store.state.runningList
},
- endList(){
- return this.$store.state.endList
+ endList() {
+ return this.$store.state.endList
},
- noTakeList(){
- return this.$store.state.noTakeList
+ noTakeList() {
+ return this.$store.state.noTakeList
+ },
+ refuseList() {
+ return this.$store.state.refuseList
+ },
+ passList() {
+ return this.$store.state.passList
},
},
render(h, ctx) {
@@ -63,17 +69,19 @@ export default {
return []
}
if (node.props && this.viewer && !this.preview) {
- let headerBgc = '#ff943e'
- if (this.runningList.includes(node.id)) {
- headerBgc = '#1e90ff'
- }
- else if (this.endList.includes(node.id)) {
- headerBgc = '#20b2aa'
- }
- else if (this.noTakeList.includes(node.id)) {
- headerBgc = '#909399'
- }
- node.props.headerBgc = headerBgc
+ let headerBgc = '#ff943e'
+ if (this.runningList.includes(node.id)) {
+ headerBgc = '#1e90ff'
+ } else if (this.endList.includes(node.id)) {
+ headerBgc = '#20b2aa'
+ } else if (this.noTakeList.includes(node.id)) {
+ headerBgc = '#909399'
+ } else if (this.refuseList.includes(node.id)) {
+ headerBgc = '#f56c6c'
+ } else if (this.passList.includes(node.id)) {
+ headerBgc = '#ff943e'
+ }
+ node.props.headerBgc = headerBgc
}
if (this.isPrimaryNode(node)) {
//普通业务节点
@@ -97,7 +105,7 @@ export default {
//插入添加分支/条件的按钮
branchItems.unshift(h('div', {'class': {'add-branch-btn': true}}, [
h('el-button', {
- 'class': {'add-branch-btn-el': !this.viewer},
+ 'class': {'add-branch-btn-el': !this.viewer},
props: {size: 'small', round: true},
on: {click: () => this.addBranchNode(node)},
domProps: {
@@ -160,7 +168,7 @@ export default {
this.nodeMap.set(nodeItem.id, nodeItem)
this.parentMap.set(nodeItem.parentId, nodeItem)
})
- }catch (e){
+ } catch (e) {
}
},
//id映射到map,用来向上遍历
diff --git a/flowable-engine-web/src/views/common/form/FormRenderView.vue b/flowable-engine-web/src/views/common/form/FormRenderView.vue
index d9f45c3..0de5034 100644
--- a/flowable-engine-web/src/views/common/form/FormRenderView.vue
+++ b/flowable-engine-web/src/views/common/form/FormRenderView.vue
@@ -88,9 +88,7 @@ export default {
});
},
loadFormConfig(formItems) {
- console.log(formItems)
formItems.forEach(item => {
- console.log(item.perm === 'E',item,"item")
if (item.name === 'SpanLayout') {
this.loadFormConfig(item.props.items)
} else {
@@ -98,11 +96,8 @@ export default {
if (this.isPreview) {
this.$set(item, 'perm', this.model)
}
- console.log(item.perm === 'E',item,"item")
if (item.perm === 'E') {
- console.log("进去了")
if (item.props.required) {
- console.log("开始制作权限了")
this.$set(this.rules, item.id, [{
type: item.valueType === 'Array' ? 'array' : undefined,
required: true,
@@ -112,7 +107,6 @@ export default {
}
}
})
- console.log(this.rules)
}
}
}
diff --git a/flowable-engine-web/src/views/common/operation/OperationRender.vue b/flowable-engine-web/src/views/common/operation/OperationRender.vue
index 8a88a96..3ebf6f8 100644
--- a/flowable-engine-web/src/views/common/operation/OperationRender.vue
+++ b/flowable-engine-web/src/views/common/operation/OperationRender.vue
@@ -82,7 +82,6 @@ export default {
}
},
created() {
- console.log(this.operationList)
this.init()
},
methods: {
@@ -120,22 +119,18 @@ export default {
break
}
// let operationListNew = []
- console.log(this.operationList.length, "sdjshjdhasjds")
for (let i = 0;i
-