新建任务
This commit is contained in:
1 parent
ae997fe850
commit
b3fa84e828
6 files changed
+425
-586
No files matched your search
@@ -79,7 +79,6 @@
|
||||
<div :style="{'width': isMobile ? 'auto' : '350px'}">
|
||||
<!-- 右上 模式切换区 >>>>>>>>>>>>> -->
|
||||
<v-card class="mb-1 d-flex align-center" :class="{'ml-2': !isMobile}" >
|
||||
<!-- <div>{{constantObj.displayModes[displayModeIndex].text}}</div> -->
|
||||
<v-btn v-for="(displayMode, index) in constantObj.displayModes" v-if="index != displayModeIndex" class="ml-1 my-2" style="flex: 1;" color="primary"
|
||||
small outlined @click="doUiAction('changeDisplayMode', displayMode.value)">
|
||||
<span>切换展示模式</span>
|
||||
@@ -167,6 +166,10 @@ Vue.component("process-flow", {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
isDrawerShown: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
},
|
||||
data: () => {
|
||||
return {
|
||||
@@ -242,7 +245,6 @@ Vue.component("process-flow", {
|
||||
created(){
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
async doUiAction(uiActionId, uiActionData) {
|
||||
@@ -266,7 +268,10 @@ Vue.component("process-flow", {
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
setDisplayMode(index){
|
||||
this.displayModeIndex = index
|
||||
this.displayMode = this.constantObj.displayModes[index].value
|
||||
},
|
||||
showMenuShown(event){
|
||||
this.activeMenuIndex = event?.target.dataset.menuIndex
|
||||
},
|
||||
@@ -378,7 +383,7 @@ Vue.component("process-flow", {
|
||||
|
||||
await this.$emit('reflesh-workflow-config', _this.workflowConfig)
|
||||
// 两种模式统一数据,待优化
|
||||
// this.initLogicFlowData()
|
||||
this.initLogicFlowData()
|
||||
},
|
||||
// 切换展示模式
|
||||
changeDisplayMode(displayMode){
|
||||
@@ -432,6 +437,7 @@ Vue.component("process-flow", {
|
||||
window.vtoast.fail("当前结构不能切换到简易模式:" + changeText + "!");
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 初始化logicFlow实例
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user