ui 升级
This commit is contained in:
1 parent
e7ea27cf6b
commit
02577898ae
5 files changed
+101
-100
No files matched your search
@@ -2,34 +2,39 @@
|
||||
<div>
|
||||
<v-navigation-drawer v-model="isDrawerShown" :permanent="isDrawerShown" fixed temporary right width="90%" class="elevation-24">
|
||||
<!-- 抽屉标题 -->
|
||||
<v-row>
|
||||
<span class="title pa-6 pl-8">流程编辑</span>
|
||||
<v-row no-gutters class="align-center justify-end">
|
||||
<span class="text-h7 font-weight-bold pa-4">流程编辑</span>
|
||||
<v-spacer></v-spacer>
|
||||
<!-- 抽屉操作按钮 -->
|
||||
<v-row class="justify-end mx-0 mt-6 px-8">
|
||||
<div class="d-flex justify-end pr-4">
|
||||
<v-btn color="success" @click="doUiAction(submitUiActionId)" small>保存</v-btn>
|
||||
<v-btn class="elevation-0 ml-2" @click="isDrawerShown = false" small>取消</v-btn>
|
||||
</v-row>
|
||||
</div>
|
||||
</v-row>
|
||||
|
||||
<div class="px-6">
|
||||
<v-divider class="jh-divider"></v-divider>
|
||||
|
||||
<div class="px-4 mt-2">
|
||||
<v-form ref="form">
|
||||
<!-- 流程信息 -->
|
||||
<v-row>
|
||||
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
||||
<span class="jh-input-label">流程名<span class="red--text text--accent-2 ml-1">*必填</span></span>
|
||||
<v-text-field
|
||||
class="jh-v-input mr-2" dense filled single-line color="success" prefix="流程名:"
|
||||
class="jh-v-input mr-2" dense filled single-line color="success"
|
||||
v-model="formObj['workflowName']" :rules="validationRules.requireRules">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
||||
<span class="jh-input-label">备注</span>
|
||||
<v-text-field
|
||||
class="jh-v-input mr-2" dense filled single-line color="success" prefix="备注:"
|
||||
class="jh-v-input mr-2" dense filled single-line color="success"
|
||||
v-model="formObj['workflowRemark']">
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
|
||||
<span class="jh-input-label">审批模式</span>
|
||||
<v-select
|
||||
class="jh-v-input mr-2" dense filled single-line color="success" prefix="审批模式:"
|
||||
class="jh-v-input mr-2" dense filled single-line color="success"
|
||||
v-model="formObj['mode']" :items="constantObj.modeList" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -9,13 +9,19 @@
|
||||
<v-main class="mt-15">
|
||||
<!-- 头部内容 >>>>>>>>>>>>> -->
|
||||
<div class="jh-page-second-bar px-8">
|
||||
<div class="pt-3 text-h7 font-weight-bold">任务列表
|
||||
<!-- 帮助页按钮 -->
|
||||
<v-icon @click="isHelpPageDrawerShown = true" color="success" small>mdi-help-circle-outline</v-icon>
|
||||
</div>
|
||||
<v-breadcrumbs class="pb-3 pt-0 px-0" :items="breadcrumbs" divider="-"></v-breadcrumbs>
|
||||
<v-row class="align-center">
|
||||
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
|
||||
<div class="py-4 text-body-1 font-weight-bold">任务列表
|
||||
<!-- 帮助页按钮 -->
|
||||
<span role="button" class="success--text font-weight-regular jh-font-size-13 ml-2" @click="isHelpPageDrawerShown = true">
|
||||
<v-icon size="13" class="success--text">mdi-help-circle-outline</v-icon>帮助
|
||||
</span>
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<!-- <<<<<<<<<<<<< 头部内容 -->
|
||||
|
||||
<div class="jh-page-body-container px-8">
|
||||
<!-- 页面内容 >>>>>>>>>>>>> -->
|
||||
<v-card class="rounded-lg">
|
||||
@@ -60,17 +66,6 @@
|
||||
查看
|
||||
</span>
|
||||
</template>
|
||||
<!--表格底部右侧功能按钮-->
|
||||
<template v-slot:footer.prepend>
|
||||
<v-menu top offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{on, attrs}">
|
||||
<v-btn icon v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-menu</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-switch v-model="isTableZebraLineShown" hide-details class="mx-3 my-2" label="显示斑马纹" dense flat></v-switch>
|
||||
</v-menu>
|
||||
</template>
|
||||
<!--没有数据-->
|
||||
<template v-slot:loading>
|
||||
<div class="jh-no-data">数据加载中</div>
|
||||
@@ -94,12 +89,14 @@
|
||||
<v-navigation-drawer v-model="isViewDrawerShown" v-click-outside="drawerClickOutside" fixed temporary right width="80%"
|
||||
class="elevation-24">
|
||||
<v-form v-if="isViewDrawerShown" ref="updateForm" lazy-validation>
|
||||
<!--抽屉标题-->
|
||||
<v-row class="ma-0">
|
||||
<span class="title pa-4">历史审核记录</span>
|
||||
<!-- 抽屉标题 -->
|
||||
<v-row no-gutters>
|
||||
<span class="text-h7 font-weight-bold pa-4">历史审核记录</span>
|
||||
</v-row>
|
||||
<v-divider class="jh-divider"></v-divider>
|
||||
|
||||
<!--抽屉表单-->
|
||||
<v-row class="mt-0 px-4" >
|
||||
<v-row class="mt-1 px-4" >
|
||||
<v-col cols="12" sm="12" md="4" class="py-0" v-for="(item, index) in viewItem.taskFormInput.formList" :key="index">
|
||||
<form-item :form-item="item" readonly></form-item>
|
||||
</v-col>
|
||||
@@ -164,11 +161,6 @@
|
||||
vueComponent: 'page',
|
||||
vuetify: new Vuetify(),
|
||||
data: {
|
||||
// 面包屑
|
||||
breadcrumbs: [
|
||||
{ text: '首页', disabled: true, },
|
||||
{ text: '全部任务列表', disabled: true, }
|
||||
],
|
||||
isHelpPageDrawerShown: false,
|
||||
// 表格相关数据
|
||||
isTableZebraLineShown: true,
|
||||
@@ -182,11 +174,11 @@
|
||||
isTableLoading: true,
|
||||
tableData: [],
|
||||
headers: [
|
||||
{ text: '操作', value: 'action', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
|
||||
{ text: "审批项", value: "taskTitle", width: 150 },
|
||||
{ text: "审核状态", value: "taskStatus" },
|
||||
{ text: "操作者", value: "operationByUser", width: 120 },
|
||||
{ text: "操作时间", value: "operationAt", width: 250 }
|
||||
{ text: "操作时间", value: "operationAt", width: 250 },
|
||||
{text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed'},
|
||||
],
|
||||
|
||||
isViewDrawerShown: false,
|
||||
|
||||
+21
-28
@@ -9,11 +9,16 @@
|
||||
<v-main class="mt-15">
|
||||
<!-- 头部内容 >>>>>>>>>>>>> -->
|
||||
<div class="jh-page-second-bar px-8">
|
||||
<div class="pt-3 text-h7 font-weight-bold">我的任务
|
||||
<!-- 帮助页按钮 -->
|
||||
<v-icon @click="isHelpPageDrawerShown = true" color="success" small>mdi-help-circle-outline</v-icon>
|
||||
</div>
|
||||
<v-breadcrumbs class="pb-3 pt-0 px-0" :items="breadcrumbs" divider="-"></v-breadcrumbs>
|
||||
<v-row class="align-center">
|
||||
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
|
||||
<div class="py-4 text-body-1 font-weight-bold">我的任务
|
||||
<!-- 帮助页按钮 -->
|
||||
<span role="button" class="success--text font-weight-regular jh-font-size-13 ml-2" @click="isHelpPageDrawerShown = true">
|
||||
<v-icon size="13" class="success--text">mdi-help-circle-outline</v-icon>帮助
|
||||
</span>
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<!-- <<<<<<<<<<<<< 头部内容 -->
|
||||
|
||||
@@ -85,17 +90,6 @@
|
||||
查看
|
||||
</span>
|
||||
</template>
|
||||
<!--表格底部右侧功能按钮-->
|
||||
<template v-slot:footer.prepend>
|
||||
<v-menu top offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{on, attrs}">
|
||||
<v-btn icon v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-menu</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-switch v-model="isTableZebraLineShown" hide-details class="mx-3 my-2" label="显示斑马纹" dense flat></v-switch>
|
||||
</v-menu>
|
||||
</template>
|
||||
<!--没有数据-->
|
||||
<template v-slot:loading>
|
||||
<div class="jh-no-data">数据加载中</div>
|
||||
@@ -114,19 +108,23 @@
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
<!-- <<<<<<<<<<<<< 页面内容 -->
|
||||
|
||||
<!--编辑抽屉-->
|
||||
<v-navigation-drawer v-model="isSubmitDrawerShown" v-click-outside="drawerClickOutside" fixed temporary right width="80%" class="elevation-24">
|
||||
<v-form v-if="isSubmitDrawerShown" ref="updateForm" lazy-validation>
|
||||
<!--抽屉标题-->
|
||||
<v-row class="ma-0">
|
||||
<span class="title pa-4">审核信息</span>
|
||||
<!-- 抽屉标题 -->
|
||||
<v-row no-gutters class="align-center justify-end">
|
||||
<span class="text-h7 font-weight-bold pa-4">审核信息</span>
|
||||
<v-spacer></v-spacer>
|
||||
<!-- 抽屉操作按钮 -->
|
||||
<v-row class="justify-end mx-0 mt-4 px-4">
|
||||
<div class="d-flex justify-end pr-4">
|
||||
<v-btn :color="lineTypeItem.type === '拒绝' ? 'error' : 'success'" small class="ml-2" v-for="lineTypeItem in lineTypeList" v-if="lineTypeItem.type" @click="doUiAction('submitNode', lineTypeItem.type)">
|
||||
{{ lineTypeItem.type }}
|
||||
</v-btn>
|
||||
</v-row>
|
||||
</div>
|
||||
</v-row>
|
||||
<v-divider class="jh-divider"></v-divider>
|
||||
|
||||
<!--抽屉表单-->
|
||||
<v-row class="mt-0 px-4" >
|
||||
<v-col cols="12" sm="12" md="4" v-for="(formItem, index) in updateItem.taskFormInput.formList" :key="index">
|
||||
@@ -200,11 +198,6 @@
|
||||
vueComponent: 'page',
|
||||
vuetify: new Vuetify(),
|
||||
data: {
|
||||
// 面包屑
|
||||
breadcrumbs: [
|
||||
{ text: '首页', disabled: true, },
|
||||
{ text: '待办、已处理的任务', disabled: true, }
|
||||
],
|
||||
isHelpPageDrawerShown: false,
|
||||
|
||||
// 表格相关数据
|
||||
@@ -220,10 +213,10 @@
|
||||
tableData: [],
|
||||
historyData: [],
|
||||
headers: [
|
||||
{ text: '操作', value: 'action', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
|
||||
{ text: "审批项", value: "taskTitle" },
|
||||
{ text: "操作者", value: "operationByUser", width: 120 },
|
||||
{ text: "操作时间", value: "operationAt", width: 250 }
|
||||
{ text: "操作时间", value: "operationAt", width: 250 },
|
||||
{text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed'},
|
||||
],
|
||||
|
||||
isSubmitDrawerShown: false,
|
||||
|
||||
@@ -9,11 +9,16 @@
|
||||
<v-main class="mt-15">
|
||||
<!-- 头部内容 >>>>>>>>>>>>> -->
|
||||
<div class="jh-page-second-bar px-8">
|
||||
<div class="pt-3 text-h7 font-weight-bold">流程管理/发起任务
|
||||
<!-- 帮助页按钮 -->
|
||||
<v-icon @click="isHelpPageDrawerShown = true" color="success" small>mdi-help-circle-outline</v-icon>
|
||||
</div>
|
||||
<v-breadcrumbs class="pb-3 pt-0 px-0" :items="breadcrumbs" divider="-"></v-breadcrumbs>
|
||||
<v-row class="align-center">
|
||||
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
|
||||
<div class="py-4 text-body-1 font-weight-bold">发起任务
|
||||
<!-- 帮助页按钮 -->
|
||||
<span role="button" class="success--text font-weight-regular jh-font-size-13 ml-2" @click="isHelpPageDrawerShown = true">
|
||||
<v-icon size="13" class="success--text">mdi-help-circle-outline</v-icon>帮助
|
||||
</span>
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<!-- <<<<<<<<<<<<< 头部内容 -->
|
||||
|
||||
@@ -43,27 +48,36 @@
|
||||
checkbox-color="success"
|
||||
fixed-header
|
||||
class="jh-fixed-table-height elevation-0 mt-0 mb-xs-4">
|
||||
<!--表格行操作按钮-->
|
||||
<!-- 表格行操作按钮 -->
|
||||
<template v-slot:item.action="{ item }">
|
||||
<span role="button" class="success--text jh-font-size-3 pr-2"
|
||||
@click="doUiAction('startCreateWorkflow', item)">
|
||||
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>申请
|
||||
</span>
|
||||
<span role="button" class="success--text jh-font-size-3 pr-2"
|
||||
@click="doUiAction('openWorkflowEditorDrawer', item)">
|
||||
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>编辑
|
||||
</span>
|
||||
</template>
|
||||
<!--表格底部右侧功能按钮-->
|
||||
<template v-slot:footer.prepend>
|
||||
<v-menu top offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{on, attrs}">
|
||||
<v-btn icon v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-menu</v-icon>
|
||||
</v-btn>
|
||||
<template>
|
||||
<!-- pc端 -->
|
||||
<template v-if="!isMobile">
|
||||
<span role="button" class="success--text font-weight-medium font-size-2 mr-2 ml-2" @click="doUiAction('startCreateWorkflow', item)">
|
||||
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>申请
|
||||
</span>
|
||||
<span role="button" class="success--text font-weight-medium font-size-2" @click="doUiAction('openWorkflowEditorDrawer', item)">
|
||||
<v-icon size="16" class="success--text">mdi-note-edit-outline</v-icon>编辑
|
||||
</span>
|
||||
</template>
|
||||
<v-switch v-model="isTableZebraLineShown" hide-details class="mx-3 my-2" label="显示斑马纹" dense flat></v-switch>
|
||||
</v-menu>
|
||||
<!-- 手机端 -->
|
||||
<v-menu offset-y v-if="isMobile">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<span role="button" class="success--text font-weight-medium font-size-2"
|
||||
v-bind="attrs" v-on="on">
|
||||
操作<v-icon size="14" class="success--text">mdi-chevron-down</v-icon>
|
||||
</span>
|
||||
</template>
|
||||
<v-list dense>
|
||||
<v-list-item @click="doUiAction('startCreateWorkflow', item)">
|
||||
<v-list-item-title>申请</v-list-item-title>
|
||||
</v-list-item>
|
||||
<v-list-item @click="doUiAction('openWorkflowEditorDrawer', item)">
|
||||
<v-list-item-title>编辑</v-list-item-title>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</template>
|
||||
</template>
|
||||
<!--没有数据-->
|
||||
<template v-slot:loading>
|
||||
@@ -87,12 +101,13 @@
|
||||
<!-- <<<<<<<<<<<<< 创建审批抽屉 -->
|
||||
<v-navigation-drawer v-model="isCreateDrawerShown" v-click-outside="drawerClickOutside" fixed temporary right width="80%" class="elevation-24">
|
||||
<v-form v-if="isCreateDrawerShown" ref="createForm" lazy-validation>
|
||||
<!--抽屉标题-->
|
||||
<v-row>
|
||||
<span class="title pa-6 pl-8">创建审批</span>
|
||||
<!-- 抽屉标题 -->
|
||||
<v-row no-gutters>
|
||||
<span class="text-h7 font-weight-bold pa-4">创建审批</span>
|
||||
</v-row>
|
||||
<v-divider class="jh-divider"></v-divider>
|
||||
<!--抽屉表单主体-->
|
||||
<v-row class="mt-0 px-6">
|
||||
<v-row class="mt-0 px-4">
|
||||
<v-col cols="12" sm="12" :md="item.type === 'short' ? 12 : 4" v-for="(item, index) in currentWorkflowForm" :key="index">
|
||||
<form-item :form-item="item"></form-item>
|
||||
</v-col>
|
||||
@@ -122,7 +137,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!--抽屉操作按钮-->
|
||||
<v-row class="justify-end mx-0 mt-8 px-6">
|
||||
<v-row class="justify-end mx-0 my-8 px-4">
|
||||
<v-btn color="success" @click="doUiAction('createWorkflow')" small>保存</v-btn>
|
||||
<v-btn class="ml-2" @click="isCreateDrawerShown = false" small>取消</v-btn>
|
||||
</v-row>
|
||||
@@ -178,11 +193,7 @@
|
||||
vueComponent: 'page',
|
||||
vuetify: new Vuetify(),
|
||||
data: {
|
||||
// 面包屑
|
||||
breadcrumbs: [
|
||||
{ text: '首页', disabled: true, },
|
||||
{ text: '流程管理列表、发起任务', disabled: true, }
|
||||
],
|
||||
isMobile: window.innerWidth < 500,
|
||||
validationRules: {
|
||||
requireRules: [
|
||||
v => !!v || 'This is required',
|
||||
@@ -193,9 +204,9 @@
|
||||
tableDataFromBackend: [],
|
||||
tableData: [],
|
||||
headers: [
|
||||
{ text: '操作', value: 'action', sortable: false, width: 130, class: 'fixed', cellClass: 'fixed' },
|
||||
{ text: '流程ID', value: 'workflowId' },
|
||||
{ text: '流程名称', value: 'workflowName' },
|
||||
{text: '操作', value: 'action', align: 'left', sortable: false, width: window.innerWidth < 500 ? 80 : 120, class: 'fixed', cellClass: 'fixed'},
|
||||
],
|
||||
searchInput: '',
|
||||
isHelpPageDrawerShown: false,
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
"framework": "@jianghujs/jianghu"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jianghujs/jianghu": "4.0.25",
|
||||
"@jianghujs/jianghu": "4.1.0",
|
||||
"dayjs": "^1.11.4",
|
||||
"egg": "^2.15.1",
|
||||
"egg-scripts": "^2.11.0"
|
||||
|
||||
Reference in new issue
Block a user