sunzehua 2 months ago
commit f3efa5077e

@ -552,6 +552,7 @@
width: 120, width: 120,
data: 'rentDirect', data: 'rentDirect',
type: 'dropdown', type: 'dropdown',
readOnly: true,
source: async (query, process) => { source: async (query, process) => {
const res = rentDirectDict.value.length const res = rentDirectDict.value.length
? rentDirectDict.value ? rentDirectDict.value
@ -568,6 +569,7 @@
width: 120, width: 120,
data: 'rentType', data: 'rentType',
type: 'dropdown', type: 'dropdown',
readOnly: true,
source: async (query, process) => { source: async (query, process) => {
const res = rentTypeDict.value.length const res = rentTypeDict.value.length
? rentTypeDict.value ? rentTypeDict.value

@ -4,7 +4,6 @@
import { FlowNode } from './nodes/Node/index' import { FlowNode } from './nodes/Node/index'
import useNode from './hooks/useNode' import useNode from './hooks/useNode'
import { computed, onUnmounted, provide, ref } from 'vue' import { computed, onUnmounted, provide, ref } from 'vue'
import { Plus, Minus, Download, Sunny, Moon } from '@element-plus/icons-vue'
import { useVModels } from '@vueuse/core' import { useVModels } from '@vueuse/core'
import { Field } from '/@/components/Render/interface' import { Field } from '/@/components/Render/interface'
import { downloadXml } from '../api' import { downloadXml } from '../api'
@ -22,13 +21,6 @@
const zoom = ref(100) const zoom = ref(100)
const getScale = computed(() => zoom.value / 100) const getScale = computed(() => zoom.value / 100)
const isDark = ref<boolean>(false) const isDark = ref<boolean>(false)
const handleToggleDark = () => {
if (isDark.value) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
}
const openPenal = (node: FlowNode) => { const openPenal = (node: FlowNode) => {
nodePenalRef.value?.open(node) nodePenalRef.value?.open(node)
} }
@ -88,22 +80,11 @@
<template> <template>
<div class="designer-container"> <div class="designer-container">
<!-- <div class="dark">
<el-switch
inline-prompt
:active-icon="Sunny"
:inactive-icon="Moon"
@change="handleToggleDark"
v-model="isDark"
/>
</div> -->
<!--放大/缩小--> <!--放大/缩小-->
<div class="zoom"> <div class="zoom">
<el-button :icon="Plus" :disabled="zoom >= 170" circle @click="zoom += 10"></el-button> <el-button :disabled="zoom >= 170" circle @click="zoom += 10">放大</el-button>
<span>{{ zoom }}%</span> <span>{{ zoom }}%</span>
<el-button :icon="Minus" circle :disabled="zoom <= 50" @click="zoom -= 10"></el-button> <el-button circle :disabled="zoom <= 50" @click="zoom -= 10">缩小</el-button>
<!-- <el-button @click="validate"></el-button>
<el-button @click="converterBpmn" type="primary" :icon="Download">转bpmn</el-button> -->
</div> </div>
<!--流程树--> <!--流程树-->
<div class="node-container"> <div class="node-container">

@ -198,13 +198,23 @@
} }
// //
const copyTxt = (v, key) => { const copyTxt = (v, key) => {
navigator.clipboard.writeText(v.values[key]) const el = document.createElement('input')
createMessage.success('复制成功') el.setAttribute('value', v.values[key])
document.body.appendChild(el)
el.select()
document.execCommand('copy')
document.body.removeChild(el)
createMessage.success('复制成功!')
} }
// //
const copyNo = (v) => { const copyNo = (v) => {
navigator.clipboard.writeText(v) const el = document.createElement('input')
createMessage.success('复制成功') el.setAttribute('value', v)
document.body.appendChild(el)
el.select()
document.execCommand('copy')
document.body.removeChild(el)
createMessage.success('复制成功!')
} }
// //
const customerNoRef = ref(null) const customerNoRef = ref(null)

Loading…
Cancel
Save