diff --git a/app/view/page/createTask.html b/app/view/page/createTask.html
index 4d4e945..9854fcc 100644
--- a/app/view/page/createTask.html
+++ b/app/view/page/createTask.html
@@ -201,7 +201,7 @@
userList: [],
tableData: [],
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: '流程名称', value: 'workflowName' },
],
@@ -293,7 +293,7 @@
},
// ---------- <<<<<<<<<< 申请项目审核 --------
- async prepareCreateFormData({workflowForm, workflowPersonList, workflowId}) {
+ async prepareCreateFormData({ workflowForm, workflowPersonList, workflowId }) {
this.createFormList = workflowForm;
this.workflowPersonList = workflowPersonList;
this.createItem.workflowId = workflowId;
@@ -303,7 +303,7 @@
this.isCreateDrawerShown = true;
},
async prepareCreateValidate() {
- if(!await this.$refs.createForm.validate()) {
+ if (!await this.$refs.createForm.validate()) {
throw new Error("请完善表单信息")
}
@@ -318,7 +318,7 @@
});
},
async confirmCreateWorkDialog() {
- if (await window.confirmDialog({title: "新增", content: "确定新增吗?"}) === false) {
+ if (await window.confirmDialog({ title: "新增", content: "确定新增吗?" }) === false) {
throw new Error("[confirmCreateFormDialog] 否");
}
},
@@ -368,6 +368,7 @@
padding: 50% 0;
position: relative;
}
+
.work-item-content {
position: absolute;
left: 0;
@@ -376,11 +377,11 @@
height: 100%;
}
+
@media (max-width: 500px) {
body [xs='4'] {
flex: auto;
}
}
-
-{% endblock %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/view/page/taskHistory.html b/app/view/page/taskHistory.html
index ac813eb..7b75be7 100644
--- a/app/view/page/taskHistory.html
+++ b/app/view/page/taskHistory.html
@@ -55,7 +55,7 @@
-
+
mdi-text-box-outline
查看
@@ -94,19 +94,17 @@
class="elevation-24">
-
- 历史审核记录
+
+ 历史审核记录
-
-
+
+
-
- 审核申请信息
-
-
+ 审核申请信息
+
@@ -161,8 +159,8 @@
data: {
// 面包屑
breadcrumbs: [
- {text: '首页', disabled: true,},
- {text: '全部任务列表', disabled: true,}
+ { text: '首页', disabled: true, },
+ { text: '全部任务列表', disabled: true, }
],
isHelpPageDrawerShown: false,
// 表格相关数据
@@ -177,8 +175,8 @@
isTableLoading: true,
tableData: [],
headers: [
- { text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' },
- { text: "审批项", value: "taskTitle" },
+ { 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 }
@@ -257,4 +255,3 @@
{% endblock %}
-
diff --git a/app/view/page/todo.html b/app/view/page/todo.html
index 73ecfa9..47887c3 100644
--- a/app/view/page/todo.html
+++ b/app/view/page/todo.html
@@ -118,11 +118,11 @@
-
- 审核信息
+
+ 审核信息
-
+
@@ -139,13 +139,13 @@
{{ lineTypeItem.type }}
-
-
- 审核历史
-
-
-
+
+
+ 审核历史
+
+
+
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/config/config.default.js b/config/config.default.js
index c02f5ab..2b3ce10 100644
--- a/config/config.default.js
+++ b/config/config.default.js
@@ -1,52 +1,55 @@
'use strict';
const path = require('path');
-const assert = require('assert');
const { middleware, middlewareMatch } = require('@jianghujs/jianghu/config/middlewareConfig');
-const jianghuPathTemp = require.resolve('@jianghujs/jianghu');
-const jianghuPath = path.join(jianghuPathTemp, '../');
+const eggJianghuDirResolve = require.resolve('@jianghujs/jianghu');
+const eggJianghuDir = path.join(eggJianghuDirResolve, '../');
module.exports = appInfo => {
- assert(appInfo);
const appId = 'xianfeng-v1';
- const uploadDir = path.join(appInfo.baseDir, 'upload');
- const downloadBasePath = `/${appId}/upload`;
return {
appId,
appTitle: '工单管理',
- appLogo: `${appId}/public/img/logo.png`,
- appType: 'single',
- appDirectoryLink: '/',
+ appLogo: `${appId}/public/img/logo.svg`,
+
indexPage: `/${appId}/page/workflowManagement`,
loginPage: `/${appId}/page/login`,
helpPage: `/${appId}/page/help`,
- uploadDir,
- downloadBasePath,
+
+ uploadDir: path.join(appInfo.baseDir, 'upload'),
+ downloadBasePath: `/${appId}/upload`,
+
primaryColor: "#4caf50",
primaryColorA80: "#EEF7EE",
+
static: {
- maxAge: 0,
- buffer: false,
+ dynamic: true,
preload: false,
- maxFiles: 0,
+ maxAge: 31536000,
+ buffer: true,
dir: [
{ prefix: `/${appId}/public/`, dir: path.join(appInfo.baseDir, 'app/public') },
- { prefix: `/${appId}/public/`, dir: path.join(jianghuPath, 'app/public') },
- { prefix: `/${appId}/upload/`, dir: uploadDir },
+ { prefix: `/${appId}/public/`, dir: path.join(eggJianghuDir, 'app/public') },
],
},
+ jianghuConfig: {
+ enableUploadStaticFileCache: true,
+ enableUploadStaticFileAuthorization: false,
+ },
+
view: {
defaultViewEngine: 'nunjucks',
mapping: { '.html': 'nunjucks' },
root: [
path.join(appInfo.baseDir, 'app/view'),
- path.join(jianghuPath, 'app/view'),
+ path.join(eggJianghuDir, 'app/view'),
].join(','),
},
+
middleware,
...middlewareMatch,
};
diff --git a/package.json b/package.json
index 0624f9e..d85dbd8 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"framework": "@jianghujs/jianghu"
},
"dependencies": {
- "@jianghujs/jianghu": "4.0.14",
+ "@jianghujs/jianghu": "4.0.15",
"dayjs": "^1.11.4",
"egg": "^2.15.1",
"egg-scripts": "^2.11.0"
@@ -41,4 +41,4 @@
},
"author": "",
"license": "Apache-2.0"
-}
+}
\ No newline at end of file