-
@@ -249,7 +266,7 @@
_this.jsPlumb.importDefaults(_this.jsplumbSetting)
// 会使整个jsPlumb立即重绘。
_this.jsPlumb.setSuspendDrawing(false, true);
-
+
// 初始化节点
_this.loadEasyFlow()
@@ -466,12 +483,12 @@
if (!lineTypeList.includes(item.type) ) {
// 1 - 删除画布连线 | 2 - 清空line的操作属性
// _this.jsPlumb.deleteConnection(conn)
-
+
// 从 lineList 数组移除
// _this.data.lineList.splice(index,1);
// 不渲染表单
// return
-
+
// 默认修改类型为第一个
if (!preNode.id.includes('start-')) {
if (add) {
@@ -591,10 +608,7 @@
.flow-menu {
width: 100px;
- padding: 10px;
- margin: 0 10px;
border: 1px solid #EBEEF5;
- padding: 12px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
word-break: break-all;
border-radius: 4px;
@@ -602,14 +616,17 @@
.menu-item {
text-align: center;
- box-shadow: 0 0 4px #696969;
margin-bottom: 8px;
cursor: pointer;
font-size: 14px;
color: #606266;
+ background: #FFFFFF;
padding: 5px 0;
border-radius: 5px;
}
+ .menu-item:hover {
+ box-shadow: 0 0 10px rgba(0,0,0,0.1);
+ }
.menu-item>i {
font-size: 30px;
@@ -626,14 +643,11 @@
.flow-edit-content {
min-height: 100%;
- background: #FFF;
color: #606266;
line-height: 1.4;
text-align: justify;
font-size: 14px;
- border: 1px solid #EBEEF5;
padding: 12px;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
word-break: break-all;
border-radius: 4px;
}
@@ -650,4 +664,4 @@
.csslabel .label-text {
background-color: white;
}
-
\ No newline at end of file
+
diff --git a/app/view/component/tpl/formItemListGenerator.html b/app/view/component/tpl/formItemListGenerator.html
index ed88390..e88444c 100644
--- a/app/view/component/tpl/formItemListGenerator.html
+++ b/app/view/component/tpl/formItemListGenerator.html
@@ -1,121 +1,134 @@
-
-
-
+
+
+
mdi-puzzle-outline
- 组件
+ 组件
-
-
- {{ component.icon }}
- {{ component.title }}
-
+ :group="{ name: 'componentGroup', pull: 'clone', put: false }"
+ :list="componentList"
+ draggable=".left-component-item"
+ :clone="cloneComponent"
+ @end="leftComponentDraggableOnEnd">
+
+
+ {{ component.icon }}
+ {{ component.title }}
+
-
+
-
-
-
- mdi-delete-empty
-
-
-
+
+ 重置
+
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
- {{ index+1 }}. {{ formItem.component.outline }}
-
-
-
-
+
+ {{ index + 1 }}. {{
+ formItem.component.outline
+ }}
+
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
- mdi-content-duplicate
-
-
- mdi-close-box
-
-
-
-
-
-
-
-
-
-
- 从左侧拖入或点选组件进行表单设计
-
-
+
+
+ mdi-content-duplicate
+
+
+ mdi-close-box
+
+
+
+
+
+
+
+
+
+
+ 从左侧拖入或点选组件进行表单设计
+
+
-
-
-
+
+
-
+
- mdi-application-edit-outline组件属性
+ mdi-application-edit-outline
+ 组件属性
-
+
-
+
- 选项列表
-
+ 选项列表
+
mdi-plus-box
-
-
+
+
+ v-model="option.value"
+ prefix="选项:"
+ color="success"
+ filled single-line
+ dense
+ hide-details
+ clearable
+ placeholder="请输入选项"/>
-
+
mdi-delete
@@ -125,17 +138,17 @@
-
-
+
+
-
-
+
+
-
-
-
-
+
+
@@ -144,111 +157,131 @@
diff --git a/app/view/component/tpl/tplFormDesign.html b/app/view/component/tpl/tplFormDesign.html
index 2a1949b..4bc80db 100644
--- a/app/view/component/tpl/tplFormDesign.html
+++ b/app/view/component/tpl/tplFormDesign.html
@@ -79,6 +79,13 @@
height: 500px;
max-height: 500px;
overflow-y: auto;
- border: 2px solid rgb(226, 226, 226);
+ }
+ @media (max-width: 500px) {
+ .tpl-form-design-container {
+ width: 100%;
+ height: auto;
+ max-height: none;
+ overflow-y: hidden;
+ }
}
diff --git a/app/view/page/taskCreateManagement.html b/app/view/page/taskCreateManagement.html
index 3657407..c4e1140 100644
--- a/app/view/page/taskCreateManagement.html
+++ b/app/view/page/taskCreateManagement.html
@@ -5,34 +5,32 @@
-
-
-
-
+
+
+
-
+
查询
+
-
-
+
流程列表
{{getConstantCollectionItemText('categoryList', index)}}
-
-
+
+
{{it.workflowName}}
@@ -41,29 +39,28 @@
-
-
-
- {{ currentClickButton.title }}信息
+
+ {{ currentClickButton.title }}信息
-
+
mdi-close
-
+
-
- 任务标题
+
+ 任务标题
-
-
- {{formItem.component.outline}}
+
+
+ {{formItem.component.outline}}
{{ index+1 }}、 {{ formItem.component.outline }}
@@ -88,12 +85,11 @@
-
- 保存
+
+ 保存
- 取消
+ 取消
@@ -310,4 +306,4 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/app/view/page/taskHistoryManagement.html b/app/view/page/taskHistoryManagement.html
index 433f565..43e7b67 100644
--- a/app/view/page/taskHistoryManagement.html
+++ b/app/view/page/taskHistoryManagement.html
@@ -4,113 +4,111 @@
-
-
-
-
+
+
+
+
-
-
- {{item.text}}
+
+
+ {{ item.text }}
-
- 表单信息
-
-
-
-
-
-
-
- {{formTitlePrefix(formItem.component.outline, key)}}
-
-
-
-
-
-
-
- {{formTitlePrefix(formItem.component.outline, key)}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.type}}-{{item.label}}
-
-
-
-
-
- 任务流转历史
-
-
-
-
-
-
- |
- 节点
- |
-
- 流转
- |
-
- 处理人
- |
-
- 时长
- |
-
-
-
-
- | {{ item.taskExplain }} |
- {{ item.taskLineLabel }} |
- {{ item.operationByUser}} |
- {{ item.taskCostDuration }}秒 |
-
-
+ 表单信息
+
+
+
+
+
+
+ {{ formTitlePrefix(formItem.component.outline, key) }}
+
+
+
+
-
-
-
-
-
+
+
+ {{ formTitlePrefix(formItem.component.outline, key) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.type }}-{{ item.label }}
+
+
+
+
+ 任务流转历史
+
+
+
+
+
+
+ |
+ 节点
+ |
+
+ 流转
+ |
+
+ 处理人
+ |
+
+ 时长
+ |
+
+
+
+
+ | {{ item.taskExplain }} |
+ {{ item.taskLineLabel }} |
+ {{ item.operationByUser }} |
+ {{ item.taskCostDuration }}秒 |
+
+
+
+
+
+
+
{% endblock %}
@@ -118,244 +116,257 @@
{% block vue_body %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/app/view/page/taskICreateManagement.html b/app/view/page/taskICreateManagement.html
index 636cd50..dd2e171 100644
--- a/app/view/page/taskICreateManagement.html
+++ b/app/view/page/taskICreateManagement.html
@@ -4,57 +4,40 @@
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
+
+
+
-
- 共{{ tableData.length }}条记录
-
+
+ 共{{ tableData.length }}条记录
+
-
+
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
-
-
-
+
+
+
+
+
+
+
+ 查看
+
+
+
+
{% endblock %}
@@ -69,45 +52,29 @@ new Vue({
mixins: [window.jianghuUiActionMixins],
data: () => ({
// 表格相关数据
- isFormValid: true,
requireRules: [
v => !!v || 'This is required',
],
- constantCollection: {
- },
-
- serverSearchInput: {
- studentId: null,
- classId: null
- },
currentTableGenderType: 'all',
- isEditDrawerShow: false,
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
-
- {text: "任务ID", value: "taskId", width: 120},
- {text: "任务名称", value: "taskTitle", width: 120},
- {text: "任务状态", value: "taskStatus", width: 120},
- {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
- {text: "申请人", value: "taskInitUser", width: 120},
- {text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
- {text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
- {text: "备注", value: "taskComment", width: 120},
- {text: "任务创建人", value: "createByUser", width: 120},
+
+ {text: "任务ID", value: "taskId", width: 120},
+ {text: "任务名称", value: "taskTitle", width: 120},
+ {text: "任务状态", value: "taskStatus", width: 120},
+ {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
+ {text: "申请人", value: "taskInitUser", width: 120},
+ {text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
+ {text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
+ {text: "备注", value: "taskComment", width: 120},
+ {text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
- {text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed'},
+ {text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
],
-
- currentClickButton: {title: '新增', action: 'add'},
- editItem: {},
- tableButtonList: [
- {text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
- ],
- dialogSaveInfoAction: ''
}),
computed: {
isMobile() {
@@ -119,30 +86,26 @@ new Vue({
}
return this.tableDataFromBackend.filter(({gender}) => gender === this.currentTableGenderType);
},
- computedEditItem() {
- return this.editItem;
- },
},
watch: {},
async created() {
await this.doUiAction('refreshTableData');
},
- mounted() {},
+ mounted() {
+ },
methods: {
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
- const serverSearchInput = _.pickBy(this.serverSearchInput, value=> !!value);
- const { data: { appData: { rows } } } = await window.jianghuAxios({
+ const {data: {appData: {rows}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
- whereLike: serverSearchInput,
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
@@ -152,112 +115,8 @@ new Vue({
this.isTableLoading = false;
},
- // startCreateItem
- async clearItemData() {
- this.editItem = {};
- },
-
- async openCreateItemDialog() {
- this.currentClickButton = {action: 'add', title: '新增'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'createItem';
- },
-
- // createItem
- async confirmCreateItemDialog() {
- return window.confirmDialog({title: '新增', content: '确定新增吗?'})
- },
-
- /**
- * 新增数据
- */
- async doCreateItem() {
- delete this.computedEditItem.id;
- await window.vtoast.loading("新增数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'insertItem',
- actionData: this.computedEditItem
- }
- }
- })
- await window.vtoast.success("新增数据成功");
- },
-
- async closeDrawerShow() {
- this.isEditDrawerShow = false;
- },
-
- // startUpdateItem
- async prepareItemData({item}) {
- this.editItem = {...item};
- },
-
- async openUpdateDialog() {
- this.currentClickButton = {action: 'edit', title: '修改'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'updateItem';
- },
-
- // updateItem
- async confirmUpdateItemDialog() {
- return window.confirmDialog({title: '修改', content: '确定修改吗?'});
- },
-
- /**
- * 保存数据
- */
- async doUpdateItem() {
- const id = this.computedEditItem.id;
- delete this.computedEditItem.id;
- await window.vtoast.loading("修改数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'updateItem',
- actionData: this.computedEditItem,
- where: {id: id}
- }
- }
- })
- await window.vtoast.success("修改数据成功");
- },
-
- // updateItem
- async confirmDeleteItemDialog() {
- return window.confirmDialog({title: '删除', content: '确定删除吗?'});
- },
-
- /**
- * 删除数据
- */
- async doDeleteItem({item}) {
- const { id } = item;
- await window.vtoast.loading("删除数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'deleteItem',
- actionData: {},
- where: { id: id }
- }
- }
- });
- await window.vtoast.success("删除数据成功");
- },
- getConstantCollectionItemText(key, _value) {
- const constantCollectionItemFind = this.constantCollection[key].find(({value}) => value === _value);
- if(constantCollectionItemFind) {
- return constantCollectionItemFind.text;
- }
- return _value;
- },
toTaskHistory({item}) {
- window.open(`/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`);
+ location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
diff --git a/app/view/page/taskManagement.html b/app/view/page/taskManagement.html
index 86eae26..122d613 100644
--- a/app/view/page/taskManagement.html
+++ b/app/view/page/taskManagement.html
@@ -4,145 +4,41 @@
-
-
-
-
- 查询
-
-
-
-
+
+
+
-
-
-
-
+
+ 共{{ tableData.length }}条记录
+
-
- 共{{ tableData.length }}条记录
-
+
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
- {{ tableButton.text }}
-
-
-
-
-
-
-
-
-
-
- {{ currentClickButton.title }}信息
-
-
- mdi-close
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 取消
-
-
-
+
+
+
+
+
+
+
+ {{ tableButton.text }}
+
+
+
+
@@ -162,8 +58,7 @@ new Vue({
requireRules: [
v => !!v || 'This is required',
],
- constantCollection: {
- },
+ constantCollection: {},
serverSearchInput: {
studentId: null,
@@ -176,24 +71,24 @@ new Vue({
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
-
- {text: "任务ID", value: "taskId", width: 120},
- {text: "任务名称", value: "taskTitle", width: 120},
- {text: "任务状态", value: "taskStatus", width: 120},
- {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
- {text: "申请人", value: "taskInitUser", width: 120},
- {text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
- {text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
- {text: "备注", value: "taskComment", width: 120},
- {text: "任务创建人", value: "createByUser", width: 120},
+
+ {text: "任务ID", value: "taskId", width: 120},
+ {text: "任务名称", value: "taskTitle", width: 120},
+ {text: "任务状态", value: "taskStatus", width: 120},
+ {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
+ {text: "申请人", value: "taskInitUser", width: 120},
+ {text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
+ {text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
+ {text: "备注", value: "taskComment", width: 120},
+ {text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed'},
],
- currentClickButton: {title: '新增', action: 'add'},
editItem: {},
tableButtonList: [
+ {text: '查看', buttonType: 'view', color: 'success', action: 'toTaskHistory'},
{text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
],
dialogSaveInfoAction: ''
@@ -216,22 +111,21 @@ new Vue({
async created() {
await this.doUiAction('refreshTableData');
},
- mounted() {},
+ mounted() {
+ },
methods: {
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
- const serverSearchInput = _.pickBy(this.serverSearchInput, value=> !!value);
- const { data: { appData: { rows } } } = await window.jianghuAxios({
+ const {data: {appData: {rows}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
- whereLike: serverSearchInput,
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
@@ -241,80 +135,6 @@ new Vue({
this.isTableLoading = false;
},
- // startCreateItem
- async clearItemData() {
- this.editItem = {};
- },
-
- async openCreateItemDialog() {
- this.currentClickButton = {action: 'add', title: '新增'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'createItem';
- },
-
- // createItem
- async confirmCreateItemDialog() {
- return window.confirmDialog({title: '新增', content: '确定新增吗?'})
- },
-
- /**
- * 新增数据
- */
- async doCreateItem() {
- delete this.computedEditItem.id;
- await window.vtoast.loading("新增数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'insertItem',
- actionData: this.computedEditItem
- }
- }
- })
- await window.vtoast.success("新增数据成功");
- },
-
- async closeDrawerShow() {
- this.isEditDrawerShow = false;
- },
-
- // startUpdateItem
- async prepareItemData({item}) {
- this.editItem = {...item};
- },
-
- async openUpdateDialog() {
- this.currentClickButton = {action: 'edit', title: '修改'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'updateItem';
- },
-
- // updateItem
- async confirmUpdateItemDialog() {
- return window.confirmDialog({title: '修改', content: '确定修改吗?'});
- },
-
- /**
- * 保存数据
- */
- async doUpdateItem() {
- const id = this.computedEditItem.id;
- delete this.computedEditItem.id;
- await window.vtoast.loading("修改数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'updateItem',
- actionData: this.computedEditItem,
- where: {id: id}
- }
- }
- })
- await window.vtoast.success("修改数据成功");
- },
-
// updateItem
async confirmDeleteItemDialog() {
return window.confirmDialog({title: '删除', content: '确定删除吗?'});
@@ -324,7 +144,7 @@ new Vue({
* 删除数据
*/
async doDeleteItem({item}) {
- const { id } = item;
+ const {id} = item;
await window.vtoast.loading("删除数据");
await window.jianghuAxios({
data: {
@@ -332,21 +152,14 @@ new Vue({
pageId: 'taskManagement',
actionId: 'deleteItem',
actionData: {},
- where: { id: id }
+ where: {id: id}
}
}
});
await window.vtoast.success("删除数据成功");
},
- getConstantCollectionItemText(key, _value) {
- const constantCollectionItemFind = this.constantCollection[key].find(({value}) => value === _value);
- if(constantCollectionItemFind) {
- return constantCollectionItemFind.text;
- }
- return _value;
- },
toTaskHistory({item}) {
- window.open(`/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`);
+ location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
diff --git a/app/view/page/taskRelatedManagement.html b/app/view/page/taskRelatedManagement.html
index 71fd1df..3f8ea9c 100644
--- a/app/view/page/taskRelatedManagement.html
+++ b/app/view/page/taskRelatedManagement.html
@@ -4,142 +4,40 @@
-
-
-
-
- 查询
-
-
-
-
-
-
-
+
+
-
- 共{{ tableData.length }}条记录
-
+
+ 共{{ tableData.length }}条记录
+
-
+
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
-
-
-
-
-
-
-
-
- {{ currentClickButton.title }}信息
-
-
- mdi-close
+
+
+
+
+
+
+
+ 查看
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 取消
-
-
-
+
+
+
@@ -155,45 +53,29 @@ new Vue({
mixins: [window.jianghuUiActionMixins],
data: () => ({
// 表格相关数据
- isFormValid: true,
requireRules: [
v => !!v || 'This is required',
],
- constantCollection: {
- },
-
- serverSearchInput: {
- studentId: null,
- classId: null
- },
currentTableGenderType: 'all',
- isEditDrawerShow: false,
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
-
- {text: "任务ID", value: "taskId", width: 120},
- {text: "任务名称", value: "taskTitle", width: 120},
- {text: "任务状态", value: "taskStatus", width: 120},
- {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
- {text: "申请人", value: "taskInitUser", width: 120},
- {text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
- {text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
- {text: "备注", value: "taskComment", width: 120},
- {text: "任务创建人", value: "createByUser", width: 120},
+
+ {text: "任务ID", value: "taskId", width: 120},
+ {text: "任务名称", value: "taskTitle", width: 120},
+ {text: "任务状态", value: "taskStatus", width: 120},
+ {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
+ {text: "申请人", value: "taskInitUser", width: 120},
+ {text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
+ {text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
+ {text: "备注", value: "taskComment", width: 120},
+ {text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
- {text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed'},
+ {text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
],
-
- currentClickButton: {title: '新增', action: 'add'},
- editItem: {},
- tableButtonList: [
- {text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
- ],
- dialogSaveInfoAction: ''
}),
computed: {
isMobile() {
@@ -205,30 +87,26 @@ new Vue({
}
return this.tableDataFromBackend.filter(({gender}) => gender === this.currentTableGenderType);
},
- computedEditItem() {
- return this.editItem;
- },
},
watch: {},
async created() {
await this.doUiAction('refreshTableData');
},
- mounted() {},
+ mounted() {
+ },
methods: {
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
- const serverSearchInput = _.pickBy(this.serverSearchInput, value=> !!value);
- const { data: { appData: { rows } } } = await window.jianghuAxios({
+ const {data: {appData: {rows}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
- whereLike: serverSearchInput,
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
@@ -238,112 +116,8 @@ new Vue({
this.isTableLoading = false;
},
- // startCreateItem
- async clearItemData() {
- this.editItem = {};
- },
-
- async openCreateItemDialog() {
- this.currentClickButton = {action: 'add', title: '新增'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'createItem';
- },
-
- // createItem
- async confirmCreateItemDialog() {
- return window.confirmDialog({title: '新增', content: '确定新增吗?'})
- },
-
- /**
- * 新增数据
- */
- async doCreateItem() {
- delete this.computedEditItem.id;
- await window.vtoast.loading("新增数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'insertItem',
- actionData: this.computedEditItem
- }
- }
- })
- await window.vtoast.success("新增数据成功");
- },
-
- async closeDrawerShow() {
- this.isEditDrawerShow = false;
- },
-
- // startUpdateItem
- async prepareItemData({item}) {
- this.editItem = {...item};
- },
-
- async openUpdateDialog() {
- this.currentClickButton = {action: 'edit', title: '修改'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'updateItem';
- },
-
- // updateItem
- async confirmUpdateItemDialog() {
- return window.confirmDialog({title: '修改', content: '确定修改吗?'});
- },
-
- /**
- * 保存数据
- */
- async doUpdateItem() {
- const id = this.computedEditItem.id;
- delete this.computedEditItem.id;
- await window.vtoast.loading("修改数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'updateItem',
- actionData: this.computedEditItem,
- where: {id: id}
- }
- }
- })
- await window.vtoast.success("修改数据成功");
- },
-
- // updateItem
- async confirmDeleteItemDialog() {
- return window.confirmDialog({title: '删除', content: '确定删除吗?'});
- },
-
- /**
- * 删除数据
- */
- async doDeleteItem({item}) {
- const { id } = item;
- await window.vtoast.loading("删除数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'deleteItem',
- actionData: {},
- where: { id: id }
- }
- }
- });
- await window.vtoast.success("删除数据成功");
- },
- getConstantCollectionItemText(key, _value) {
- const constantCollectionItemFind = this.constantCollection[key].find(({value}) => value === _value);
- if(constantCollectionItemFind) {
- return constantCollectionItemFind.text;
- }
- return _value;
- },
toTaskHistory({item}) {
- window.open(`/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`);
+ location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
diff --git a/app/view/page/taskUpcomingManagement.html b/app/view/page/taskUpcomingManagement.html
index ef21053..58e5503 100644
--- a/app/view/page/taskUpcomingManagement.html
+++ b/app/view/page/taskUpcomingManagement.html
@@ -4,143 +4,42 @@
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
-
+
+
-
- 共{{ tableData.length }}条记录
-
+
-
+
+ 共{{ tableData.length }}条记录
+
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
-
-
-
+
-
-
-
-
- {{ currentClickButton.title }}信息
-
-
- mdi-close
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 取消
-
-
-
+
+
+
+
+
+
+
+ 查看
+
+
+
+
@@ -156,45 +55,29 @@ new Vue({
mixins: [window.jianghuUiActionMixins],
data: () => ({
// 表格相关数据
- isFormValid: true,
requireRules: [
v => !!v || 'This is required',
],
- constantCollection: {
- },
-
- serverSearchInput: {
- studentId: null,
- classId: null
- },
currentTableGenderType: 'all',
- isEditDrawerShow: false,
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
-
- {text: "任务ID", value: "taskId", width: 120},
- {text: "任务名称", value: "taskTitle", width: 120},
- {text: "任务状态", value: "taskStatus", width: 120},
- {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
- {text: "申请人", value: "taskInitUser", width: 120},
- {text: "当前执行的处理人员", value: "taskEditUserList", width: 120},
- {text: "所有相关人员", value: "taskViewUserList", width: 120},
- {text: "备注", value: "taskComment", width: 120},
- {text: "任务创建人", value: "createByUser", width: 120},
+
+ {text: "任务ID", value: "taskId", width: 120},
+ {text: "任务名称", value: "taskTitle", width: 120},
+ {text: "任务状态", value: "taskStatus", width: 120},
+ {text: "当前执行中节点ID", value: "taskConfigId", width: 120},
+ {text: "申请人", value: "taskInitUser", width: 120},
+ {text: "当前执行的处理人员", value: "taskEditUserList", width: 120},
+ {text: "所有相关人员", value: "taskViewUserList", width: 120},
+ {text: "备注", value: "taskComment", width: 120},
+ {text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
- {text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed'},
+ {text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
],
-
- currentClickButton: {title: '新增', action: 'add'},
- editItem: {},
- tableButtonList: [
- {text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
- ],
- dialogSaveInfoAction: ''
}),
computed: {
isMobile() {
@@ -206,30 +89,26 @@ new Vue({
}
return this.tableDataFromBackend.filter(({gender}) => gender === this.currentTableGenderType);
},
- computedEditItem() {
- return this.editItem;
- },
},
watch: {},
async created() {
await this.doUiAction('refreshTableData');
},
- mounted() {},
+ mounted() {
+ },
methods: {
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
- const serverSearchInput = _.pickBy(this.serverSearchInput, value=> !!value);
- const { data: { appData: { rows } } } = await window.jianghuAxios({
+ const {data: {appData: {rows}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskUpcomingManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
- whereLike: serverSearchInput,
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
@@ -239,112 +118,9 @@ new Vue({
this.isTableLoading = false;
},
- // startCreateItem
- async clearItemData() {
- this.editItem = {};
- },
- async openCreateItemDialog() {
- this.currentClickButton = {action: 'add', title: '新增'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'createItem';
- },
-
- // createItem
- async confirmCreateItemDialog() {
- return window.confirmDialog({title: '新增', content: '确定新增吗?'})
- },
-
- /**
- * 新增数据
- */
- async doCreateItem() {
- delete this.computedEditItem.id;
- await window.vtoast.loading("新增数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'insertItem',
- actionData: this.computedEditItem
- }
- }
- })
- await window.vtoast.success("新增数据成功");
- },
-
- async closeDrawerShow() {
- this.isEditDrawerShow = false;
- },
-
- // startUpdateItem
- async prepareItemData({item}) {
- this.editItem = {...item};
- },
-
- async openUpdateDialog() {
- this.currentClickButton = {action: 'edit', title: '修改'};
- this.isEditDrawerShow = true;
- this.dialogSaveInfoAction = 'updateItem';
- },
-
- // updateItem
- async confirmUpdateItemDialog() {
- return window.confirmDialog({title: '修改', content: '确定修改吗?'});
- },
-
- /**
- * 保存数据
- */
- async doUpdateItem() {
- const id = this.computedEditItem.id;
- delete this.computedEditItem.id;
- await window.vtoast.loading("修改数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'updateItem',
- actionData: this.computedEditItem,
- where: {id: id}
- }
- }
- })
- await window.vtoast.success("修改数据成功");
- },
-
- // updateItem
- async confirmDeleteItemDialog() {
- return window.confirmDialog({title: '删除', content: '确定删除吗?'});
- },
-
- /**
- * 删除数据
- */
- async doDeleteItem({item}) {
- const { id } = item;
- await window.vtoast.loading("删除数据");
- await window.jianghuAxios({
- data: {
- appData: {
- pageId: 'taskManagement',
- actionId: 'deleteItem',
- actionData: {},
- where: { id: id }
- }
- }
- });
- await window.vtoast.success("删除数据成功");
- },
- getConstantCollectionItemText(key, _value) {
- const constantCollectionItemFind = this.constantCollection[key].find(({value}) => value === _value);
- if(constantCollectionItemFind) {
- return constantCollectionItemFind.text;
- }
- return _value;
- },
toTaskHistory({item}) {
- window.open(`/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`);
+ location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
diff --git a/app/view/page/workflowEditor.html b/app/view/page/workflowEditor.html
new file mode 100644
index 0000000..794f4eb
--- /dev/null
+++ b/app/view/page/workflowEditor.html
@@ -0,0 +1,287 @@
+{% extends 'template/jhTemplateV3.html'%}
+
+{% block vue_template %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+ 模板设置
+
+
+ 模板设置
+
+
+
+
+
+
+{% endblock %}
+
+{% block vue_body %}
+{% include 'component/flow/processFlow.html' %}
+{% include 'component/flow/editFlow.html' %}
+{% include 'component/flow/editLine.html' %}
+{% include 'component/flow/editNode.html' %}
+{% include 'component/flow/flowNode.html' %}
+{% include 'component/tpl/tplFormDesign.html' %}
+{% include 'component/tpl/formItemListGenerator.html' %}
+{% include 'component/tpl/formItemListRender.html' %}
+
+
+
+
+{% endblock %}
diff --git a/app/view/page/workflowManagement.html b/app/view/page/workflowManagement.html
index 6b9b85c..50fd5d6 100644
--- a/app/view/page/workflowManagement.html
+++ b/app/view/page/workflowManagement.html
@@ -3,124 +3,46 @@
{% block vue_template %}
-
-
-
-
- 查询
-
-
-
-
+
+
+
-
-
-
-
-
-
- 新增
- 共{{ tableData.length }}条记录
-
-
-
-
-
-
-
-
-
-
-
-
- {{ tableButton.text }}
-
-
-
-
-
-
-
-
-
-
- mdi-close
-
- 流程编辑
-
-
-
- 保存
-
-
-
-
-
-
-
- 流程名
-
-
-
-
-
- 分类
-
-
-
-
-
- 备注
-
-
-
-
-
-
-
- 模板设置
-
-
-
-
-
-
- 流程设置
-
-
-
-
-
-
-
+
+ 新增
+ 共{{ tableData.length }}条记录
+
+
+
+
+
+
+
+
+
+ {{ tableButton.text }}
+
+
+
+
{% endblock %}
{% block vue_body %}
-{% include 'component/flow/processFlow.html' %}
-{% include 'component/flow/editFlow.html' %}
-{% include 'component/flow/editLine.html' %}
-{% include 'component/flow/editNode.html' %}
-{% include 'component/flow/flowNode.html' %}
-{% include 'component/tpl/tplFormDesign.html' %}
-{% include 'component/tpl/formItemListGenerator.html' %}
-{% include 'component/tpl/formItemListRender.html' %}
{% endblock %}
diff --git a/package-lock.json b/package-lock.json
index ff6f2cc..9c09950 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,8 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
- "@jianghujs/jianghu": "3.0.7",
+ "@jianghujs/jianghu": "3.0.16",
+ "dayjs": "^1.11.4",
"egg": "^2.15.1",
"egg-scripts": "^2.11.0"
},
@@ -683,9 +684,9 @@
}
},
"node_modules/@jianghujs/jianghu": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@jianghujs/jianghu/-/jianghu-3.0.7.tgz",
- "integrity": "sha512-CWUMuPDCHWId7i8r0hFEHOfuRFqftvnYIEavwMpJ0IHq/HAkuKCAx+7jvzDUT0TNQIaKWp5WkdcdyJ84dVjuJw==",
+ "version": "3.0.16",
+ "resolved": "https://registry.npmjs.org/@jianghujs/jianghu/-/jianghu-3.0.16.tgz",
+ "integrity": "sha512-dAKYQJkzUKyng3LZ32TZhX8yhBHN9PX9IVfPdrdZftCAiaorJOEbyiUBQLeEffB9d0/6qOE5IGcuPiCOAnbWtw==",
"dependencies": {
"@socket.io/redis-adapter": "^7.1.0",
"ajv": "^8.7.1",
@@ -695,7 +696,6 @@
"dayjs": "^1.10.5",
"egg": "^2.15.1",
"egg-cors": "^2.2.3",
- "egg-etag": "^1.2.0",
"egg-knex": "^3.0.1",
"egg-scripts": "^2.11.0",
"egg-static": "^2.2.0",
@@ -706,6 +706,7 @@
"lodash": "^4.17.21",
"md5-node": "^1.0.1",
"mime": "3.0.0",
+ "mysql2": "^2.3.3",
"nanoid": "3.3.1",
"node-rsa": "^1.1.1",
"socket.io": "4.4.1",
@@ -5297,18 +5298,6 @@
"node": ">=8.9.0"
}
},
- "node_modules/egg-etag": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/egg-etag/-/egg-etag-1.2.0.tgz",
- "integrity": "sha512-c0CsMXGb9G5wl00/UsQJiduhBZ47SRifUtZNSuX+y8WZG6qqA+47rQX6hj/Z6C27AyfXTBbQuSPsa2yepet4MA==",
- "dependencies": {
- "koa-conditional-get": "^1.0.3",
- "koa-etag": "^2.1.1"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
"node_modules/egg-i18n": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/egg-i18n/-/egg-i18n-2.1.1.tgz",
@@ -7732,14 +7721,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/etag": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
- "engines": {
- "node": ">= 0.6"
- }
- },
"node_modules/event-emitter": {
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
@@ -8514,6 +8495,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/generate-function": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",
+ "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==",
+ "dependencies": {
+ "is-property": "^1.0.2"
+ }
+ },
"node_modules/geoip-lite": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/geoip-lite/-/geoip-lite-1.4.5.tgz",
@@ -9747,6 +9736,11 @@
"node": ">=0.10.0"
}
},
+ "node_modules/is-property": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
+ "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g=="
+ },
"node_modules/is-regex": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
@@ -10390,11 +10384,6 @@
"any-promise": "^1.1.0"
}
},
- "node_modules/koa-conditional-get": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.4.tgz",
- "integrity": "sha512-4Z7oV/t4j7IWO4pZssi43S7qsxkjFQJQDcxGwSTXK9hx3wX/Ur+YO32L4YdeAboCnCoT0Tk3Iy3scEgLsh55Dw=="
- },
"node_modules/koa-convert": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/koa-convert/-/koa-convert-1.2.0.tgz",
@@ -10407,15 +10396,6 @@
"node": ">= 4"
}
},
- "node_modules/koa-etag": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/koa-etag/-/koa-etag-2.1.2.tgz",
- "integrity": "sha512-OMzk5OlvqRlp9id28i6Ru5z+UWy7Tpkqg/zjHk0l+vse2c25z5lqLyzmXaaGYpKCi/5suQTqksf51oMYPPq1CA==",
- "dependencies": {
- "etag": "^1.3.0",
- "mz": "^2.1.0"
- }
- },
"node_modules/koa-is-json": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/koa-is-json/-/koa-is-json-1.0.0.tgz",
@@ -11341,6 +11321,67 @@
"safe-buffer": "~5.1.0"
}
},
+ "node_modules/mysql2": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-2.3.3.tgz",
+ "integrity": "sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA==",
+ "dependencies": {
+ "denque": "^2.0.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.6.3",
+ "long": "^4.0.0",
+ "lru-cache": "^6.0.0",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.2"
+ },
+ "engines": {
+ "node": ">= 8.0"
+ }
+ },
+ "node_modules/mysql2/node_modules/denque": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
+ "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/mysql2/node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mysql2/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/mysql2/node_modules/sqlstring": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz",
+ "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mysql2/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
+ },
"node_modules/mz": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
@@ -11377,6 +11418,31 @@
"rimraf": "bin.js"
}
},
+ "node_modules/named-placeholders": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.2.tgz",
+ "integrity": "sha512-wiFWqxoLL3PGVReSZpjLVxyJ1bRqe+KKJVbr4hGs1KWfTZTQyezHFBbuKj9hsizHyGV2ne7EMjHdxEGAybD5SA==",
+ "dependencies": {
+ "lru-cache": "^4.1.3"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/named-placeholders/node_modules/lru-cache": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+ "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+ "dependencies": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "node_modules/named-placeholders/node_modules/yallist": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+ "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A=="
+ },
"node_modules/nanoid": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz",
@@ -13924,6 +13990,11 @@
"node": ">= 0.10"
}
},
+ "node_modules/pseudomap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
+ "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ=="
+ },
"node_modules/pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
@@ -14696,6 +14767,11 @@
"upper-case-first": "^1.1.2"
}
},
+ "node_modules/seq-queue": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz",
+ "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="
+ },
"node_modules/serialize-json": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/serialize-json/-/serialize-json-1.0.3.tgz",
@@ -17936,9 +18012,9 @@
}
},
"@jianghujs/jianghu": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@jianghujs/jianghu/-/jianghu-3.0.7.tgz",
- "integrity": "sha512-CWUMuPDCHWId7i8r0hFEHOfuRFqftvnYIEavwMpJ0IHq/HAkuKCAx+7jvzDUT0TNQIaKWp5WkdcdyJ84dVjuJw==",
+ "version": "3.0.16",
+ "resolved": "https://registry.npmjs.org/@jianghujs/jianghu/-/jianghu-3.0.16.tgz",
+ "integrity": "sha512-dAKYQJkzUKyng3LZ32TZhX8yhBHN9PX9IVfPdrdZftCAiaorJOEbyiUBQLeEffB9d0/6qOE5IGcuPiCOAnbWtw==",
"requires": {
"@socket.io/redis-adapter": "^7.1.0",
"ajv": "^8.7.1",
@@ -17948,7 +18024,6 @@
"dayjs": "^1.10.5",
"egg": "^2.15.1",
"egg-cors": "^2.2.3",
- "egg-etag": "^1.2.0",
"egg-knex": "^3.0.1",
"egg-scripts": "^2.11.0",
"egg-static": "^2.2.0",
@@ -17959,6 +18034,7 @@
"lodash": "^4.17.21",
"md5-node": "^1.0.1",
"mime": "3.0.0",
+ "mysql2": "^2.3.3",
"nanoid": "3.3.1",
"node-rsa": "^1.1.1",
"socket.io": "4.4.1",
@@ -21843,15 +21919,6 @@
"resolved": "https://registry.npmjs.org/egg-errors/-/egg-errors-2.3.1.tgz",
"integrity": "sha512-ylDrMfqlWvncN/cDPgR9IoxZbVTrnNAQokm9e5QAglECKl2iNvQkpTItQQFAr8rhEcq2v78S41Zx0c7cyXdWvg=="
},
- "egg-etag": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/egg-etag/-/egg-etag-1.2.0.tgz",
- "integrity": "sha512-c0CsMXGb9G5wl00/UsQJiduhBZ47SRifUtZNSuX+y8WZG6qqA+47rQX6hj/Z6C27AyfXTBbQuSPsa2yepet4MA==",
- "requires": {
- "koa-conditional-get": "^1.0.3",
- "koa-etag": "^2.1.1"
- }
- },
"egg-i18n": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/egg-i18n/-/egg-i18n-2.1.1.tgz",
@@ -23740,11 +23807,6 @@
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="
},
- "etag": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="
- },
"event-emitter": {
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
@@ -24358,6 +24420,14 @@
"integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
"dev": true
},
+ "generate-function": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",
+ "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==",
+ "requires": {
+ "is-property": "^1.0.2"
+ }
+ },
"geoip-lite": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/geoip-lite/-/geoip-lite-1.4.5.tgz",
@@ -25267,6 +25337,11 @@
"isobject": "^3.0.1"
}
},
+ "is-property": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
+ "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g=="
+ },
"is-regex": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
@@ -25771,11 +25846,6 @@
"any-promise": "^1.1.0"
}
},
- "koa-conditional-get": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.4.tgz",
- "integrity": "sha512-4Z7oV/t4j7IWO4pZssi43S7qsxkjFQJQDcxGwSTXK9hx3wX/Ur+YO32L4YdeAboCnCoT0Tk3Iy3scEgLsh55Dw=="
- },
"koa-convert": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/koa-convert/-/koa-convert-1.2.0.tgz",
@@ -25785,15 +25855,6 @@
"koa-compose": "^3.0.0"
}
},
- "koa-etag": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/koa-etag/-/koa-etag-2.1.2.tgz",
- "integrity": "sha512-OMzk5OlvqRlp9id28i6Ru5z+UWy7Tpkqg/zjHk0l+vse2c25z5lqLyzmXaaGYpKCi/5suQTqksf51oMYPPq1CA==",
- "requires": {
- "etag": "^1.3.0",
- "mz": "^2.1.0"
- }
- },
"koa-is-json": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/koa-is-json/-/koa-is-json-1.0.0.tgz",
@@ -26538,6 +26599,54 @@
}
}
},
+ "mysql2": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-2.3.3.tgz",
+ "integrity": "sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA==",
+ "requires": {
+ "denque": "^2.0.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.6.3",
+ "long": "^4.0.0",
+ "lru-cache": "^6.0.0",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.2"
+ },
+ "dependencies": {
+ "denque": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
+ "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="
+ },
+ "iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ }
+ },
+ "lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "sqlstring": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz",
+ "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg=="
+ },
+ "yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
+ }
+ }
+ },
"mz": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
@@ -26570,6 +26679,30 @@
}
}
},
+ "named-placeholders": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.2.tgz",
+ "integrity": "sha512-wiFWqxoLL3PGVReSZpjLVxyJ1bRqe+KKJVbr4hGs1KWfTZTQyezHFBbuKj9hsizHyGV2ne7EMjHdxEGAybD5SA==",
+ "requires": {
+ "lru-cache": "^4.1.3"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+ "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+ "requires": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "yallist": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+ "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A=="
+ }
+ }
+ },
"nanoid": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz",
@@ -28474,6 +28607,11 @@
"event-stream": "=3.3.4"
}
},
+ "pseudomap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
+ "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ=="
+ },
"pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
@@ -29077,6 +29215,11 @@
"upper-case-first": "^1.1.2"
}
},
+ "seq-queue": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz",
+ "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="
+ },
"serialize-json": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/serialize-json/-/serialize-json-1.0.3.tgz",
diff --git a/package.json b/package.json
index 49d3151..a9decfc 100644
--- a/package.json
+++ b/package.json
@@ -8,8 +8,9 @@
"framework": "@jianghujs/jianghu"
},
"dependencies": {
+ "@jianghujs/jianghu": "3.0.16",
+ "dayjs": "^1.11.4",
"egg": "^2.15.1",
- "@jianghujs/jianghu": "3.0.7",
"egg-scripts": "^2.11.0"
},
"devDependencies": {