diff --git a/app/view/component/taskHistory.html b/app/view/component/taskHistory.html index f90f5f0..9ebffea 100644 --- a/app/view/component/taskHistory.html +++ b/app/view/component/taskHistory.html @@ -11,6 +11,16 @@ fixed-header hide-default-footer class="jh-fixed-table-height elevation-0 mt-0 mb-xs-4"> + + + 数据加载中 + + + 暂无数据 + + + 暂无数据 + @@ -57,8 +67,8 @@ isTableLoading: false, headers: [ {text: "名称", value: "taskTitle", width: 230, class: 'fixed', cellClass: 'fixed'}, - {text: "节点说明", value: "taskHandleDesc", width: 120}, - {text: "操作人", value: "operationByUser", width: 120}, + {text: "节点说明", value: "taskHandleDesc", width: 120}, + {text: "操作人", value: "operationByUser", width: 120}, {text: "操作时间", value: "operationAt", width: 250}, ], tableData: [], @@ -101,4 +111,4 @@ - \ No newline at end of file + diff --git a/app/view/component/tpl/formItemListReview.html b/app/view/component/tpl/formItemListReview.html index 62d2e62..6274c92 100644 --- a/app/view/component/tpl/formItemListReview.html +++ b/app/view/component/tpl/formItemListReview.html @@ -1,165 +1,170 @@ - - - {{ formItem.component.statement - }} - - - + + + {{ formItem.component.statement }} + + + + + + + + + {{ + formItem.user.answer[blank.id] }} + {{ blank.value }} - - - - - - {{ - formItem.user.answer[blank.id] }} - {{ blank.value }} - - - {{ formItem.component.statement - }} - - - - - + + {{ formItem.component.statement }} + + + - - - {{ formItem.component.statement - }} - - - - - - - - - - {{ formItem.component.statement - }} - - - - - - - - {{formItem.component.statement}} - - - + + + + + {{ formItem.component.statement }} + + + + + + + + + + {{ formItem.component.statement }} + + + + + + + {{formItem.component.statement}} + \ No newline at end of file +.fill-blank-input { + padding-left: 10px; + padding-right: 10px; + border-bottom: 2px solid gray; + margin-left: 5px; + margin-right: 5px; +} + +.icon-close { + position: fixed; + right: 10px; + top: 5px; + z-index: 50000 +} + +.icon-download { + position: fixed; + right: 50px; + top: 5px; + z-index: 50000 +} + +.file-prev-wrap { + overflow: auto; + max-width: 80vw; + max-height: 90vh; +} + diff --git a/app/view/component/tpl/tplFormDesign.html b/app/view/component/tpl/tplFormDesign.html index 4bc80db..c6086c1 100644 --- a/app/view/component/tpl/tplFormDesign.html +++ b/app/view/component/tpl/tplFormDesign.html @@ -5,7 +5,7 @@ :form-item-list="form" ref="formItemListGenerator"/> - + + 数据加载中 + + + 暂无数据 + + + 暂无数据 + {{pagination.pageStart}}-{{pagination.pageStop}} @@ -77,7 +87,7 @@ - @@ -131,7 +141,7 @@ - diff --git a/app/view/page/taskHistory.html b/app/view/page/taskHistory.html index 1eb0c99..51a3b62 100644 --- a/app/view/page/taskHistory.html +++ b/app/view/page/taskHistory.html @@ -80,6 +80,16 @@ + + + 数据加载中 + + + 暂无数据 + + + 暂无数据 + {{pagination.pageStart}}-{{pagination.pageStop}} @@ -89,7 +99,7 @@ - @@ -117,7 +127,7 @@ - diff --git a/app/view/page/todo.html b/app/view/page/todo.html index db4f37a..57a6946 100644 --- a/app/view/page/todo.html +++ b/app/view/page/todo.html @@ -118,6 +118,16 @@ + + + 数据加载中 + + + 暂无数据 + + + 暂无数据 + {{pagination.pageStart}}-{{pagination.pageStop}} @@ -127,7 +137,7 @@ - @@ -168,7 +178,7 @@ - diff --git a/app/view/page/workflowEditor.html b/app/view/page/workflowEditor.html index 86dfd4d..b80fb59 100644 --- a/app/view/page/workflowEditor.html +++ b/app/view/page/workflowEditor.html @@ -49,19 +49,19 @@ - + - + 流程设置 - + - @@ -364,4 +364,4 @@ cursor: pointer; } -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/view/page/workflowManagement.html b/app/view/page/workflowManagement.html index d4719d2..169e84f 100644 --- a/app/view/page/workflowManagement.html +++ b/app/view/page/workflowManagement.html @@ -50,7 +50,7 @@ mdi-note-edit-outline申请 + @click="doUiAction('jumpUpdateWorkflow', item)"> mdi-note-edit-outline编辑 @@ -65,6 +65,16 @@ + + + 数据加载中 + + + 暂无数据 + + + 暂无数据 + {{pagination.pageStart}}-{{pagination.pageStop}} @@ -75,8 +85,7 @@ - + @@ -84,16 +93,16 @@ - + 审批流程 - 添加审批人 - - - + + + - + - + v-model="workflowPersonItem.assignValue"> - - + + - @@ -121,19 +128,15 @@ - + mdi-close - - - + + mdi-close @@ -188,6 +191,7 @@ new Vue({ }, isTableLoading: false, userList: [], + tableDataFromBackend: [], tableData: [], headers: [ {text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'}, @@ -199,13 +203,13 @@ new Vue({ isTableZebraLineShown: true, isCreateDrawerShown: false, - createFormList: [], - createItemWorkflowId: {}, - workflowPersonList: [], + currentWorkflowForm: [], + currentWorkflowId: {}, + currentWorkflowPersonList: [], }, watch: {}, created() { - this.getTableData(); + this.doUiAction('getTableData'); this.getUserList(); }, methods: { @@ -213,6 +217,7 @@ new Vue({ switch (uiActionId) { case 'getTableData': await this.getTableData(); + await this.parseTableData(); break; case 'startCreateWorkflow': await this.prepareCreateFormData(uiActionData); @@ -249,7 +254,12 @@ new Vue({ } }); - const rows = result.data.appData.resultData.rows; + this.tableDataFromBackend = result.data.appData.resultData.rows; + this.isTableLoading = false; + }, + + async parseTableData() { + const rows = _.cloneDeep(this.tableDataFromBackend); rows.forEach(row => { const workflowNodeList = JSON.parse(row.workflowConfig).nodeList; workflowNodeList.forEach(node => { @@ -258,9 +268,7 @@ new Vue({ row.workflowPersonList = workflowNodeList.filter(node => node.id.includes('userTask-')); row.workflowForm = JSON.parse(row.workflowForm); }); - this.tableData = rows; - this.isTableLoading = false; }, async getUserList() { @@ -281,10 +289,11 @@ new Vue({ // ---------- <<<<<<<<<< 申请项目审核 -------- async prepareCreateFormData(funObj) { + console.log(funObj); const {workflowForm, workflowPersonList, workflowId} = funObj; - this.createFormList = workflowForm; - this.workflowPersonList = workflowPersonList; - this.createItemWorkflowId = workflowId; + this.currentWorkflowForm = workflowForm; + this.currentWorkflowPersonList = workflowPersonList; + this.currentWorkflowId = workflowId; }, async openCreateDrawer() { @@ -295,16 +304,18 @@ new Vue({ throw new Error("请完善表单信息") } - this.workflowPersonList.forEach(workflowPerson => { - if(!workflowPerson.assignValue) { - workflowPerson.assignValue = []; + this.currentWorkflowPersonList.forEach(workflowPersonItem => { + if (!workflowPersonItem.assignValue) { + workflowPersonItem.assignValue = []; } - workflowPerson.assignValue = workflowPerson.assignValue.filter(userId => { - return this.userList.find(user => user.userId === userId); + workflowPersonItem.assignValue = workflowPersonItem.assignValue.filter(userId => { + return this.userList.some(user => user.userId === userId); }); - workflowPerson.origin.properties.assignValue = workflowPerson.assignValue; - if (workflowPerson.assignValue.length === 0) { - window.vtoast.fail({message: `${workflowPerson.label}必填!`}); + if(!workflowPersonItem.origin) workflowPersonItem['origin'] = {}; + if(!workflowPersonItem.origin.properties) workflowPersonItem.origin['properties'] = {}; + workflowPersonItem.origin.properties.assignValue = workflowPersonItem.assignValue; + if (workflowPersonItem.assignValue.length === 0) { + window.vtoast.fail({message: `${workflowPersonItem.label}必填!`}); throw new Error("[prepareValidate] 审批人 false"); } }); @@ -315,20 +326,21 @@ new Vue({ } }, prepareDoWorkItem() { - console.log('create', this.createFormList); + console.log('create', this.currentWorkflowForm); }, async doCreateWork() { await window.jhMask.show(); + await window.vtoast.loading("正在申请"); await window.jianghuAxios({ data: { appData: { pageId: 'workflowManagement', actionId: 'insertTask', actionData: { - formItemList: this.createFormList, - workflowId: this.createItemWorkflowId, - workflowConfigCustom: JSON.stringify({nodeListOfUserTaskNode: this.workflowPersonList}) + formItemList: this.currentWorkflowForm, + workflowId: this.currentWorkflowId, + workflowConfigCustom: JSON.stringify({nodeListOfUserTaskNode: this.currentWorkflowPersonList}) } } } @@ -337,8 +349,8 @@ new Vue({ await window.vtoast.success("申请成功"); }, async closeCreateDrawer() { - this.createFormList = null; - this.createItemWorkflowId = null; + this.currentWorkflowForm = null; + this.currentWorkflowId = null; this.isCreateDrawerShown = false; }, // ---------- 申请项目审核 >>>>>>>>>> --------
{{formItem.component.statement}}