引用抽屉组件
This commit is contained in:
@@ -25,20 +25,14 @@
|
|||||||
<!-- </el-button>-->
|
<!-- </el-button>-->
|
||||||
<!-- </el-tooltip>-->
|
<!-- </el-tooltip>-->
|
||||||
|
|
||||||
<el-tooltip
|
<el-tooltip class="box-item" effect="dark" content="配置流程全局属性" placement="top">
|
||||||
class="box-item"
|
<el-button :icon="Setting" @click="drawerVisibile=true">
|
||||||
effect="dark"
|
|
||||||
content="配置流程全局属性"
|
|
||||||
placement="top"
|
|
||||||
>
|
|
||||||
<el-button :icon='Setting'>
|
|
||||||
全局配置
|
全局配置
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<Setting />
|
<Setting />
|
||||||
</template>
|
</template>
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="box-scale">
|
<div class="box-scale">
|
||||||
<node-wrap
|
<node-wrap
|
||||||
@@ -69,13 +63,15 @@
|
|||||||
:selector-api-function="selectorApiFunction"
|
:selector-api-function="selectorApiFunction"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 全局属性抽屉组件 -->
|
||||||
|
<drawerTabs v-if="drawerVisibile" v-model="drawerVisibile" @updateDrawer="updateDrawer"></drawerTabs>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import nodeWrap from './nodeWrap.vue'
|
import nodeWrap from './nodeWrap.vue'
|
||||||
import { Warning, Setting, Plus } from '@element-plus/icons-vue'
|
import { Warning, Setting, Plus } from '@element-plus/icons-vue'
|
||||||
import process from './process.vue'
|
import process from './process.vue'
|
||||||
|
import drawerTabs from './components/drawerTabs.vue'
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
Plus() {
|
Plus() {
|
||||||
@@ -86,7 +82,8 @@
|
|||||||
nodeWrap,
|
nodeWrap,
|
||||||
Warning,
|
Warning,
|
||||||
Setting,
|
Setting,
|
||||||
process
|
process,
|
||||||
|
drawerTabs
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
modelValue: { type: Object, default: () => {} },
|
modelValue: { type: Object, default: () => {} },
|
||||||
@@ -102,6 +99,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
drawerVisibile: false,
|
||||||
childNode: this.modelValue,
|
childNode: this.modelValue,
|
||||||
childFormFieldListValue: this.formFieldListValue,
|
childFormFieldListValue: this.formFieldListValue,
|
||||||
childRecordData: this.recordData
|
childRecordData: this.recordData
|
||||||
@@ -120,7 +118,7 @@
|
|||||||
},
|
},
|
||||||
childNode(val) {
|
childNode(val) {
|
||||||
this.$emit('update:modelValue', val)
|
this.$emit('update:modelValue', val)
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toDataLegal(childNode) {
|
toDataLegal(childNode) {
|
||||||
@@ -129,6 +127,9 @@
|
|||||||
} else {
|
} else {
|
||||||
return childNode.dataLegal
|
return childNode.dataLegal
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
updateDrawer(){
|
||||||
|
this.drawerVisibile=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user