新版UI适配
This commit is contained in:
1 parent
b895aacc76
commit
6d71c7b35e
4 files changed
+40
-30
No files matched your search
@@ -1,22 +1,22 @@
|
||||
<template id="process-flow">
|
||||
<div class="process-flow-container">
|
||||
<v-card class="flow-menu pa-4 mr-4" color="#f5f8fa" width="140px">
|
||||
<div block color="white" class="menu-item mb-3" v-for="item in menuList" draggable="true" @dragstart="drag(item)">
|
||||
<v-card class="flow-menu pa-4 mr-4" width="140px">
|
||||
<div class="menu-item mb-3" v-for="item in menuList" draggable="true" @dragstart="drag(item)">
|
||||
<i :class="item.icon"></i>
|
||||
<div>{{item.name}}</div>
|
||||
</div>
|
||||
<v-divider></v-divider>
|
||||
<v-btn block class="menu-item mt-3" :color="isConnect ? 'success' : 'white'" @click="isConnect=true">
|
||||
<v-btn block class="menu-item mt-3" :color="isConnect ? 'success' : 'gray'" @click="isConnect=true">
|
||||
<i class="el-icon-bottom-right"></i>
|
||||
<div>连线</div>
|
||||
</v-btn>
|
||||
<v-btn block class="menu-item" :color="!isConnect ? 'success' : 'white'" @click="isConnect=false">
|
||||
<v-btn block class="menu-item" :color="!isConnect ? 'success' : 'gray'" @click="isConnect=false">
|
||||
<i class="el-icon-rank"></i>
|
||||
<div>选择</div>
|
||||
</v-btn>
|
||||
|
||||
</v-card>
|
||||
<v-card class="flow-detail pa-4 mr-4" color="#f5f8fa">
|
||||
<v-card class="flow-detail pa-4 mr-4">
|
||||
<div id="flowContent" ref="flowContent" @drop="drop($event)" @dragover="allowDrop($event)" @click="editFlow()"
|
||||
@dblclick="isConnect=false">
|
||||
<flow-node v-for="node in data.nodeList" :key="node.id" :node="node" :id="node.id" :isconnect="isConnect"
|
||||
@@ -24,18 +24,16 @@
|
||||
</flow-node>
|
||||
</div>
|
||||
</v-card>
|
||||
<v-card class="flow-edit pa-4" v-if="editType" color="#f5f8fa">
|
||||
<template v-if="editType=='node' || editType=='line'">
|
||||
<v-card class="flow-edit pa-4" v-if="editType">
|
||||
<template v-if="editType == 'node' || editType == 'line'">
|
||||
<div class="mb-3">
|
||||
<v-icon>mdi-application-edit-outline</v-icon>
|
||||
<span style="transform: translateY(2px); display: inline-block; ">{{editType=='node' ? '节点' : '连线'}}属性</span>
|
||||
<span style="transform: translateY(2px); display: inline-block; ">{{editType == 'node' ? '节点' : '连线'}}属性</span>
|
||||
</div>
|
||||
<v-card>
|
||||
<div class="flow-edit-content">
|
||||
<edit-node ref="nodeForm" v-show="editType=='node'" :user="user" :group="group" :tpl="tpl"></edit-node>
|
||||
<edit-line ref="lineForm" v-show="editType=='line'" @line-save="lineLabelSave"></edit-line>
|
||||
<edit-node ref="nodeForm" v-show="editType == 'node'" :user="user" :group="group" :tpl="tpl"></edit-node>
|
||||
<edit-line ref="lineForm" v-show="editType == 'line'" @line-save="lineLabelSave"></edit-line>
|
||||
</div>
|
||||
</v-card>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="mb-3">
|
||||
@@ -620,7 +618,7 @@
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
background: #FFFFFF;
|
||||
background: #f5f8fa;
|
||||
padding: 5px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template id="form-item-list-generator">
|
||||
<v-card :class="{'d-flex': !isMobile, 'form-item-list-generator-content': !isMobile}">
|
||||
<v-card color="#f5f8fa" :style="{'width': isMobile ? '100%' : '300px'}"
|
||||
<v-card color="#f5f8fa" :class="{'d-flex': !isMobile, 'form-item-list-generator-content': !isMobile}">
|
||||
<v-card :style="{'width': isMobile ? '100%' : '300px'}"
|
||||
:class="{'pa-4': !isMobile, 'pa-2': isMobile, 'mr-6': !isMobile}">
|
||||
<div class="left-component-item-title" :style="{'white-space': 'nowrap'}">
|
||||
<v-icon>mdi-puzzle-outline</v-icon>
|
||||
@@ -23,7 +23,7 @@
|
||||
</draggable>
|
||||
</v-card>
|
||||
|
||||
<v-card class="formItemList py-10 pl-4 pr-4" color="#f5f8fa" style="position: relative;">
|
||||
<v-card class="formItemList py-10 pl-4 pr-4" style="position: relative;">
|
||||
<v-btn small color="error" @click.stop="emptyCanva" class="mr-2 mt-2"
|
||||
style="position: absolute; right: 8px; top: 0;">
|
||||
<span>重置</span>
|
||||
@@ -93,7 +93,7 @@
|
||||
</v-row>
|
||||
</v-card>
|
||||
|
||||
<v-card color="#f5f8fa" :style="{'width': isMobile ? 'auto' : '300px'}" class="pa-4" :class="{'ml-6': !isMobile}">
|
||||
<v-card :style="{'width': isMobile ? 'auto' : '300px'}" class="pa-4" :class="{'ml-6': !isMobile}">
|
||||
<div class="property-title">
|
||||
<v-icon>mdi-application-edit-outline</v-icon>
|
||||
<span style="transform: translateY(2px); display: inline-block;">组件属性</span>
|
||||
@@ -139,11 +139,11 @@
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-card class="mt-5" flat v-if="formItemList[selectCanvaIndex].component.type === 'textarea'">
|
||||
<v-text-field class="cus-v-input black" dense filled single-line label="多行文本"
|
||||
<v-text-field class="cus-v-input" dense filled single-line label="多行文本"
|
||||
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
||||
</v-card>
|
||||
<v-card class="mt-5" flat v-if="formItemList[selectCanvaIndex].component.type === 'input'">
|
||||
<v-text-field class="cus-v-input black" dense filled single-line label="单行文本"
|
||||
<v-text-field class="cus-v-input" dense filled single-line label="单行文本"
|
||||
v-model="formItemList[selectCanvaIndex].component.outline"></v-text-field>
|
||||
</v-card>
|
||||
</div>
|
||||
@@ -313,16 +313,16 @@ Vue.component("form-item-list-generator", {
|
||||
|
||||
.left-component-item-body {
|
||||
padding: 8px 10px;
|
||||
background: #ffffff;
|
||||
background: #f5f8fa;
|
||||
font-size: 12px;
|
||||
cursor: move;
|
||||
border: 1px dashed #ffffff;
|
||||
border: 1px dashed #f5f8fa;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.left-component-item-body:hover {
|
||||
border: 1px dashed #4caf50;
|
||||
background: #e6fde3;
|
||||
background: #f5f8fa;
|
||||
color: #4caf50;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
|
||||
{% block vue_template %}
|
||||
<jh-layout-v3>
|
||||
<template slot="serverSearch">
|
||||
<div class="mt-4" style="text-align: right;">
|
||||
<v-btn color="success" @click="doUiAction(dialogSaveInfoAction)" style="height: 40px">
|
||||
保存
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template slot-scope="props">
|
||||
<v-card class="mt-3 mb-12" :class="{'pa-8': !props.ismobile, 'pa-4': props.ismobile}">
|
||||
<v-row>
|
||||
@@ -20,20 +28,16 @@
|
||||
v-model="editItem['workflowRemark']">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-btn color="success" @click="doUiAction(dialogSaveInfoAction)" style="height: 40px">
|
||||
保存
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<div class="pt-8 pb-4" style="font-size: 18px; font-weight: bold">模板设置</div>
|
||||
</v-card>
|
||||
|
||||
<div class=" pb-4" style="font-size: 18px; font-weight: bold">模板设置</div>
|
||||
<tpl-form-design :form="editItem.workflowForm">
|
||||
</tpl-form-design>
|
||||
<div class="pt-8 pb-4" style="font-size: 18px; font-weight: bold">模板设置</div>
|
||||
<div class="pt-8 pb-4" style="font-size: 18px; font-weight: bold">流程设置</div>
|
||||
<process-flow :data="editItem.workflowConfig" :user="constantCollection.userList"
|
||||
:group="constantCollection.groupList" :tpl="constantCollection.workflowFormList">
|
||||
</process-flow>
|
||||
</v-card>
|
||||
</template>
|
||||
</jh-layout-v3>
|
||||
|
||||
|
||||
@@ -130,11 +130,19 @@ new Vue({
|
||||
|
||||
// startCreateItem
|
||||
async clearItemData() {
|
||||
if(this.isMobile) {
|
||||
window.vtoast.fail({message: '该功能只能在电脑使用'})
|
||||
return false;
|
||||
}
|
||||
window.location.href = `/${window.appInfo.appId}/page/workflowEditor?type=add`;
|
||||
},
|
||||
|
||||
// startUpdateItem
|
||||
async prepareItemData({item}) {
|
||||
if(this.isMobile) {
|
||||
window.vtoast.fail({message: '该功能只能在电脑使用'})
|
||||
return false;
|
||||
}
|
||||
sessionStorage.setItem('workflowEditItem', JSON.stringify(item))
|
||||
window.location.href = `/${window.appInfo.appId}/page/workflowEditor?type=edit`;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user