review 细节调整
This commit is contained in:
1 parent
15131347f4
commit
367fbdc2e3
6 files changed
+50
-50
No files matched your search
@@ -201,7 +201,7 @@
|
|||||||
userList: [],
|
userList: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
headers: [
|
headers: [
|
||||||
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed' },
|
{ text: '操作', value: 'action', sortable: false, width: 130, class: 'fixed', cellClass: 'fixed' },
|
||||||
{ text: '流程ID', value: 'workflowId' },
|
{ text: '流程ID', value: 'workflowId' },
|
||||||
{ text: '流程名称', value: 'workflowName' },
|
{ text: '流程名称', value: 'workflowName' },
|
||||||
],
|
],
|
||||||
@@ -368,6 +368,7 @@
|
|||||||
padding: 50% 0;
|
padding: 50% 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.work-item-content {
|
.work-item-content {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -376,11 +377,11 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
body [xs='4'] {
|
body [xs='4'] {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<!--表格行操作按钮-->
|
<!--表格行操作按钮-->
|
||||||
<template v-slot:item.action="{ item }">
|
<template v-slot:item.action="{ item }">
|
||||||
<span role="button" class="success--text jh-font-size-3 pr-2" @click="doUiAction('startUpdateItem', item)">
|
<span role="button" class="success--text jh-font-size-3" @click="doUiAction('startUpdateItem', item)">
|
||||||
<v-icon size="16" class="success--text">mdi-text-box-outline</v-icon>
|
<v-icon size="16" class="success--text">mdi-text-box-outline</v-icon>
|
||||||
查看
|
查看
|
||||||
</span>
|
</span>
|
||||||
@@ -94,19 +94,17 @@
|
|||||||
class="elevation-24">
|
class="elevation-24">
|
||||||
<v-form v-if="isViewDrawerShown" ref="updateForm" lazy-validation>
|
<v-form v-if="isViewDrawerShown" ref="updateForm" lazy-validation>
|
||||||
<!--抽屉标题-->
|
<!--抽屉标题-->
|
||||||
<v-row>
|
<v-row class="ma-0">
|
||||||
<span class="title pa-6 pl-8">历史审核记录</span>
|
<span class="text-h6 pa-4">历史审核记录</span>
|
||||||
</v-row>
|
</v-row>
|
||||||
<!--抽屉表单-->
|
<!--抽屉表单-->
|
||||||
<v-row class="mt-0 px-6">
|
<v-row class="mt-0 px-4">
|
||||||
<v-col cols="12" sm="12" md="4" v-for="(item, index) in viewItem.taskFormInput.formList" :key="index">
|
<v-col cols="12" sm="12" v-for="(item, index) in viewItem.taskFormInput.formList" :key="index">
|
||||||
<form-item :form-item="item" readonly></form-item>
|
<form-item :form-item="item" readonly></form-item>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="12" md="12">
|
|
||||||
<span class="jh-input-label">审核申请信息</span>
|
|
||||||
<task-history :task-id="viewItem.taskId"></task-history>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
<span class="jh-input-label px-4">审核申请信息</span>
|
||||||
|
<task-history :task-id="viewItem.taskId"></task-history>
|
||||||
</v-form>
|
</v-form>
|
||||||
|
|
||||||
<!--抽屉关闭按钮-->
|
<!--抽屉关闭按钮-->
|
||||||
@@ -177,8 +175,8 @@
|
|||||||
isTableLoading: true,
|
isTableLoading: true,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
headers: [
|
headers: [
|
||||||
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
|
{ text: '操作', value: 'action', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
|
||||||
{ text: "审批项", value: "taskTitle" },
|
{ text: "审批项", value: "taskTitle", width: 150 },
|
||||||
{ text: "审核状态", value: "taskStatus" },
|
{ text: "审核状态", value: "taskStatus" },
|
||||||
{ text: "操作者", value: "operationByUser", width: 120 },
|
{ text: "操作者", value: "operationByUser", width: 120 },
|
||||||
{ text: "操作时间", value: "operationAt", width: 250 }
|
{ text: "操作时间", value: "operationAt", width: 250 }
|
||||||
@@ -257,4 +255,3 @@
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@@ -118,11 +118,11 @@
|
|||||||
<v-navigation-drawer v-model="isSubmitDrawerShown" v-click-outside="drawerClickOutside" fixed temporary right width="80%" class="elevation-24">
|
<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-form v-if="isSubmitDrawerShown" ref="updateForm" lazy-validation>
|
||||||
<!--抽屉标题-->
|
<!--抽屉标题-->
|
||||||
<v-row>
|
<v-row class="ma-0">
|
||||||
<span class="title pa-6 pl-8">审核信息</span>
|
<span class="title pa-4">审核信息</span>
|
||||||
</v-row>
|
</v-row>
|
||||||
<!--抽屉表单-->
|
<!--抽屉表单-->
|
||||||
<v-row class="mt-0 px-6">
|
<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">
|
<v-col cols="12" sm="12" md="4" v-for="(formItem, index) in updateItem.taskFormInput.formList" :key="index">
|
||||||
<form-item :form-item="formItem" readonly></form-item>
|
<form-item :form-item="formItem" readonly></form-item>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -139,13 +139,13 @@
|
|||||||
{{ lineTypeItem.type }}
|
{{ lineTypeItem.type }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row class="mt-0 px-6">
|
</v-form>
|
||||||
|
<v-row class="mt-0">
|
||||||
<v-col cols="12" sm="12" md="12">
|
<v-col cols="12" sm="12" md="12">
|
||||||
<span class="jh-input-label">审核历史</span>
|
<span class="jh-input-label px-4">审核历史</span>
|
||||||
<task-history :task-id="updateItem.taskId" @line-type-list="setLineTypeList"></task-history>
|
<task-history :task-id="updateItem.taskId" @line-type-list="setLineTypeList"></task-history>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-form>
|
|
||||||
|
|
||||||
<!--抽屉关闭按钮-->
|
<!--抽屉关闭按钮-->
|
||||||
<v-btn elevation="0" color="success" fab absolute top left small tile class="drawer-close-float-btn"
|
<v-btn elevation="0" color="success" fab absolute top left small tile class="drawer-close-float-btn"
|
||||||
@@ -218,7 +218,7 @@ new Vue({
|
|||||||
tableData: [],
|
tableData: [],
|
||||||
historyData: [],
|
historyData: [],
|
||||||
headers: [
|
headers: [
|
||||||
{text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed'},
|
{ text: '操作', value: 'action', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
|
||||||
{ text: "审批项", value: "taskTitle" },
|
{ text: "审批项", value: "taskTitle" },
|
||||||
{ text: "操作者", value: "operationByUser", width: 120 },
|
{ text: "操作者", value: "operationByUser", width: 120 },
|
||||||
{ text: "操作时间", value: "operationAt", width: 250 }
|
{ text: "操作时间", value: "operationAt", width: 250 }
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
tableDataFromBackend: [],
|
tableDataFromBackend: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
headers: [
|
headers: [
|
||||||
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed' },
|
{ text: '操作', value: 'action', sortable: false, width: 130, class: 'fixed', cellClass: 'fixed' },
|
||||||
{ text: '流程ID', value: 'workflowId' },
|
{ text: '流程ID', value: 'workflowId' },
|
||||||
{ text: '流程名称', value: 'workflowName' },
|
{ text: '流程名称', value: 'workflowName' },
|
||||||
],
|
],
|
||||||
@@ -218,9 +218,9 @@
|
|||||||
await this.openCreateDrawer();
|
await this.openCreateDrawer();
|
||||||
break;
|
break;
|
||||||
case 'createWorkflow':
|
case 'createWorkflow':
|
||||||
|
await this.prepareDoCreateWork();
|
||||||
await this.prepareCreateValidate();
|
await this.prepareCreateValidate();
|
||||||
await this.confirmCreateWorkDialog();
|
await this.confirmCreateWorkDialog();
|
||||||
await this.prepareDoWorkItem();
|
|
||||||
await this.doCreateWork();
|
await this.doCreateWork();
|
||||||
await this.closeCreateDrawer();
|
await this.closeCreateDrawer();
|
||||||
break;
|
break;
|
||||||
@@ -283,7 +283,6 @@
|
|||||||
|
|
||||||
// ---------- <<<<<<<<<< 申请项目审核 --------
|
// ---------- <<<<<<<<<< 申请项目审核 --------
|
||||||
async prepareCreateFormData(funObj) {
|
async prepareCreateFormData(funObj) {
|
||||||
console.log(funObj);
|
|
||||||
const { workflowForm, workflowPersonList, workflowId } = funObj;
|
const { workflowForm, workflowPersonList, workflowId } = funObj;
|
||||||
this.currentWorkflowForm = workflowForm;
|
this.currentWorkflowForm = workflowForm;
|
||||||
this.currentWorkflowPersonList = workflowPersonList;
|
this.currentWorkflowPersonList = workflowPersonList;
|
||||||
@@ -293,11 +292,7 @@
|
|||||||
async openCreateDrawer() {
|
async openCreateDrawer() {
|
||||||
this.isCreateDrawerShown = true;
|
this.isCreateDrawerShown = true;
|
||||||
},
|
},
|
||||||
async prepareCreateValidate() {
|
async prepareDoCreateWork() {
|
||||||
if (!await this.$refs.createForm.validate()) {
|
|
||||||
throw new Error("请完善表单信息")
|
|
||||||
}
|
|
||||||
|
|
||||||
this.currentWorkflowPersonList.forEach(workflowPersonItem => {
|
this.currentWorkflowPersonList.forEach(workflowPersonItem => {
|
||||||
if (!workflowPersonItem.assignValue) {
|
if (!workflowPersonItem.assignValue) {
|
||||||
workflowPersonItem.assignValue = [];
|
workflowPersonItem.assignValue = [];
|
||||||
@@ -308,6 +303,13 @@
|
|||||||
if (!workflowPersonItem.origin) workflowPersonItem['origin'] = {};
|
if (!workflowPersonItem.origin) workflowPersonItem['origin'] = {};
|
||||||
if (!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {};
|
if (!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {};
|
||||||
workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue;
|
workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
async prepareCreateValidate() {
|
||||||
|
if (!await this.$refs.createForm.validate()) {
|
||||||
|
throw new Error("请完善表单信息")
|
||||||
|
}
|
||||||
|
this.currentWorkflowPersonList.forEach(workflowPersonItem => {
|
||||||
if (workflowPersonItem.assignValue.length === 0) {
|
if (workflowPersonItem.assignValue.length === 0) {
|
||||||
window.vtoast.fail({ message: `${workflowPersonItem.label}必填!` });
|
window.vtoast.fail({ message: `${workflowPersonItem.label}必填!` });
|
||||||
throw new Error("[prepareValidate] 审批人 false");
|
throw new Error("[prepareValidate] 审批人 false");
|
||||||
@@ -319,9 +321,6 @@
|
|||||||
throw new Error("[confirmCreateFormDialog] 否");
|
throw new Error("[confirmCreateFormDialog] 否");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
prepareDoWorkItem() {
|
|
||||||
console.log('create', this.currentWorkflowForm);
|
|
||||||
},
|
|
||||||
|
|
||||||
async doCreateWork() {
|
async doCreateWork() {
|
||||||
await window.jhMask.show();
|
await window.jhMask.show();
|
||||||
|
|||||||
+20
-17
@@ -1,52 +1,55 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const assert = require('assert');
|
|
||||||
|
|
||||||
const { middleware, middlewareMatch } = require('@jianghujs/jianghu/config/middlewareConfig');
|
const { middleware, middlewareMatch } = require('@jianghujs/jianghu/config/middlewareConfig');
|
||||||
|
|
||||||
const jianghuPathTemp = require.resolve('@jianghujs/jianghu');
|
const eggJianghuDirResolve = require.resolve('@jianghujs/jianghu');
|
||||||
const jianghuPath = path.join(jianghuPathTemp, '../');
|
const eggJianghuDir = path.join(eggJianghuDirResolve, '../');
|
||||||
|
|
||||||
module.exports = appInfo => {
|
module.exports = appInfo => {
|
||||||
assert(appInfo);
|
|
||||||
|
|
||||||
const appId = 'xianfeng-v1';
|
const appId = 'xianfeng-v1';
|
||||||
const uploadDir = path.join(appInfo.baseDir, 'upload');
|
|
||||||
const downloadBasePath = `/${appId}/upload`;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
appId,
|
appId,
|
||||||
appTitle: '工单管理',
|
appTitle: '工单管理',
|
||||||
appLogo: `${appId}/public/img/logo.png`,
|
appLogo: `${appId}/public/img/logo.svg`,
|
||||||
appType: 'single',
|
|
||||||
appDirectoryLink: '/',
|
|
||||||
indexPage: `/${appId}/page/workflowManagement`,
|
indexPage: `/${appId}/page/workflowManagement`,
|
||||||
loginPage: `/${appId}/page/login`,
|
loginPage: `/${appId}/page/login`,
|
||||||
helpPage: `/${appId}/page/help`,
|
helpPage: `/${appId}/page/help`,
|
||||||
uploadDir,
|
|
||||||
downloadBasePath,
|
uploadDir: path.join(appInfo.baseDir, 'upload'),
|
||||||
|
downloadBasePath: `/${appId}/upload`,
|
||||||
|
|
||||||
primaryColor: "#4caf50",
|
primaryColor: "#4caf50",
|
||||||
primaryColorA80: "#EEF7EE",
|
primaryColorA80: "#EEF7EE",
|
||||||
|
|
||||||
static: {
|
static: {
|
||||||
maxAge: 0,
|
dynamic: true,
|
||||||
buffer: false,
|
|
||||||
preload: false,
|
preload: false,
|
||||||
maxFiles: 0,
|
maxAge: 31536000,
|
||||||
|
buffer: true,
|
||||||
dir: [
|
dir: [
|
||||||
{ prefix: `/${appId}/public/`, dir: path.join(appInfo.baseDir, 'app/public') },
|
{ prefix: `/${appId}/public/`, dir: path.join(appInfo.baseDir, 'app/public') },
|
||||||
{ prefix: `/${appId}/public/`, dir: path.join(jianghuPath, 'app/public') },
|
{ prefix: `/${appId}/public/`, dir: path.join(eggJianghuDir, 'app/public') },
|
||||||
{ prefix: `/${appId}/upload/`, dir: uploadDir },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
jianghuConfig: {
|
||||||
|
enableUploadStaticFileCache: true,
|
||||||
|
enableUploadStaticFileAuthorization: false,
|
||||||
|
},
|
||||||
|
|
||||||
view: {
|
view: {
|
||||||
defaultViewEngine: 'nunjucks',
|
defaultViewEngine: 'nunjucks',
|
||||||
mapping: { '.html': 'nunjucks' },
|
mapping: { '.html': 'nunjucks' },
|
||||||
root: [
|
root: [
|
||||||
path.join(appInfo.baseDir, 'app/view'),
|
path.join(appInfo.baseDir, 'app/view'),
|
||||||
path.join(jianghuPath, 'app/view'),
|
path.join(eggJianghuDir, 'app/view'),
|
||||||
].join(','),
|
].join(','),
|
||||||
},
|
},
|
||||||
|
|
||||||
middleware,
|
middleware,
|
||||||
...middlewareMatch,
|
...middlewareMatch,
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"framework": "@jianghujs/jianghu"
|
"framework": "@jianghujs/jianghu"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jianghujs/jianghu": "4.0.14",
|
"@jianghujs/jianghu": "4.0.15",
|
||||||
"dayjs": "^1.11.4",
|
"dayjs": "^1.11.4",
|
||||||
"egg": "^2.15.1",
|
"egg": "^2.15.1",
|
||||||
"egg-scripts": "^2.11.0"
|
"egg-scripts": "^2.11.0"
|
||||||
|
|||||||
Reference in new issue
Block a user