diff --git a/src/components/work-flow/super-flow.vue b/src/components/work-flow/super-flow.vue index 96698428333e1744a54899427157f751b4924ab8..ee1010f491cae73f18848a9c545bf2a0ab128322 100644 --- a/src/components/work-flow/super-flow.vue +++ b/src/components/work-flow/super-flow.vue @@ -5,39 +5,17 @@

节点类型

请拖拽添加到流程中

- - {{item.label}} + + {{item.label}}
- +
@@ -48,7 +26,7 @@ @@ -296,6 +272,7 @@ export default { height: 800px; background-color: #f5f5f5; @list-width: 200px; + position: relative; > .node-container { width: @list-width; position: absolute; @@ -326,6 +303,10 @@ export default { box-shadow: none; border: none; background-color: transparent; + border-radius: 8px; + &:focus { + box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8); + } .flow-node-begin { width: 100%; height: 100%; @@ -338,9 +319,6 @@ export default { text-overflow: ellipsis; border-radius: 8px; border: 2px solid #444; - &:focus { - border: 2px solid #0f0; - } } .flow-node-end { width: 100%; @@ -353,9 +331,6 @@ export default { text-overflow: ellipsis; border-radius: 8px; border: 2px solid #f80; - &:focus { - border: 2px solid #0f0; - } } .flow-node-default { width: 100%; @@ -368,9 +343,6 @@ export default { text-overflow: ellipsis; border-radius: 8px; border: 2px solid #3a9; - &:focus { - border: 2px solid #0f0; - } } } } @@ -391,9 +363,6 @@ export default { &:hover { box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.4); } - &:focus { - background-color: chocolate; - } } diff --git a/src/pages/workbench/component-center/process-management/designer/index.vue b/src/pages/workbench/component-center/process-management/designer/index.vue index 2b3131567f05c1b2761b5d8d08bff0b8ec53a754..4998334fa1417c915722734fd0418db8e1ddd671 100644 --- a/src/pages/workbench/component-center/process-management/designer/index.vue +++ b/src/pages/workbench/component-center/process-management/designer/index.vue @@ -140,6 +140,79 @@ export default { console.log(error); }); }, + iniHeader() { + this.listHeader = [ + { + label: "流程编号", + prop: "id", + width: 180, + }, + { + label: "流程名称", + prop: "name", + type: "button", + callback: this.detailItem, + }, + { + label: "服务领域", + prop: "sectors_name", + align: "center", + width: 240, + }, + { + label: "创建时间", + prop: "create_time", + getText(item) { + return helper.dateStringTransform(item.create_time || ""); + }, + align: "center", + width: 180, + }, + { + label: "状态", + prop: "state", + getText(item) { + return ["未部署", "已部署", "已发布"][item.state || 0]; + }, + align: "center", + width: 180, + }, + { + label: "操作", + type: "buttons", + align: "center", + width: 300, + actionList: [ + { + label: "发布", + callback: this.publishItem, + disableHide: true, + disabledRule(item) { + return item.state == 2; + }, + }, + { + label: "编辑", + callback: this.editItem, + }, + ], + moreActionList: [ + { + label: "取消部署", + callback: this.canceldeployItem, + }, + { + label: "复制", + callback: this.copyItem, + }, + { + label: "删除", + callback: this.deleteItem, + }, + ], + }, + ]; + }, refresh() { this.init(this.tempFilter); }, @@ -150,94 +223,24 @@ export default { this.$router.push(`/progress/designer/detail/${item.id}`); }, publishItem(item) { - console.log(item); + console.log(`publish ${item.name}`); }, editItem(item) { - console.log(item); + console.log(`edit ${item.name}`); }, canceldeployItem(item) { - console.log(item); + console.log(`cancel deploy ${item.name}`); }, copyItem(item) { - console.log(item); + console.log(`copy ${item.name}`); }, deleteItem(item) { - console.log(item); + console.log(`delete ${item.name}`); }, }, created() { this.initFilter(); - this.listHeader = [ - { - label: "流程编号", - prop: "id", - width: 180, - }, - { - label: "流程名称", - prop: "name", - type: "button", - callback: this.detailItem, - }, - { - label: "服务领域", - prop: "sectors_name", - align: "center", - width: 240, - }, - { - label: "创建时间", - prop: "create_time", - getText(item) { - return helper.dateStringTransform(item.create_time || ""); - }, - align: "center", - width: 180, - }, - { - label: "状态", - prop: "state", - getText(item) { - return ["未部署", "已部署", "已发布"][item.state || 0]; - }, - align: "center", - width: 180, - }, - { - label: "操作", - type: "buttons", - align: "center", - width: 300, - actionList: [ - { - label: "发布", - callback: this.publishItem, - disableHide: true, - disabledRule(item) { - return item.state == 2; - }, - }, - { - label: "编辑", - callback: this.editItem, - }, - ], - moreActionList: [ - { - label: "取消部署", - callback: this.canceldeployItem, - }, - { - label: "复制", - callback: this.copyItem, - }, - { - label: "删除", - callback: this.deleteItem, - }, - ], - }, - ]; + this.iniHeader(); }, }; diff --git a/src/pages/workbench/component-center/process-management/process-design/index.vue b/src/pages/workbench/component-center/process-management/process-design/index.vue index 01a999210ab2a9d43307bce762394ef5f065258a..13aa9b54e55ac910886bd146720e678641c313cf 100644 --- a/src/pages/workbench/component-center/process-management/process-design/index.vue +++ b/src/pages/workbench/component-center/process-management/process-design/index.vue @@ -1,15 +1,72 @@ + +