新版UI适配

This commit is contained in:
yuebenshan committed 2022-08-05 09:25:31 +08:00
1 parent b895aacc76
commit 6d71c7b35e
4 files changed
+40 -30

No files matched your search

+12 -8
View File
@@ -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>
+8
View File
@@ -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`;
},