diff --git a/src/api/people/peopledata.js b/src/api/people/peopledata.js index b82325d..52a2adb 100644 --- a/src/api/people/peopledata.js +++ b/src/api/people/peopledata.js @@ -558,23 +558,26 @@ export function tableMergeTrade(dataAry = Array,mergeArr = Array,lastname ='endt mergeArr.forEach((key, index1) => { let count = 0; // 用来记录需要合并行的起始位置 mergeObj[key] = []; // 记录每一列的合并信息 - //数据列表循环 - dataAry.forEach((item, index) => { - // index == 0表示数据为第一行,直接 push 一个 1 - if(index === 0) { - mergeObj[key].push(1); - }else{ - // 判断当前行是否与上一行其值相等 如果相等 在 count 记录的位置其值 +1 表示当前行需要合并 并push 一个 0 作为占位 - if(item[key] === dataAry[index - 1][key]) { - mergeObj[key][count] += 1; - mergeObj[key].push(0); - } else { - // 如果当前行和上一行其值不相等 - count = index; // 记录当前位置 - mergeObj[key].push(1); // 重新push 一个 1 + if(dataAry){ + //数据列表循环 + dataAry.forEach((item, index) => { + // index == 0表示数据为第一行,直接 push 一个 1 + if(index === 0) { + mergeObj[key].push(1); + }else{ + // 判断当前行是否与上一行其值相等 如果相等 在 count 记录的位置其值 +1 表示当前行需要合并 并push 一个 0 作为占位 + if(item[key] === dataAry[index - 1][key]) { + mergeObj[key][count] += 1; + mergeObj[key].push(0); + } else { + // 如果当前行和上一行其值不相等 + count = index; // 记录当前位置 + mergeObj[key].push(1); // 重新push 一个 1 + } } - } - }); + }); + } + if(index1 == 0){ endObj = mergeObj[key] } diff --git a/src/api/systemaccredit/systemapi.js b/src/api/systemaccredit/systemapi.js index 50d7786..b5b962f 100644 --- a/src/api/systemaccredit/systemapi.js +++ b/src/api/systemaccredit/systemapi.js @@ -459,4 +459,13 @@ export function getAllParentNode(data) { method: 'post', data }) +} + +// 获取定性考核提报列表 +export function GetQualityTasks(data) { + return request({ + url: '/department_pc/get_quality_tasks', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/customworkflow/addNode.vue b/src/customworkflow/addNode.vue index c8b7f05..8f5a53a 100644 --- a/src/customworkflow/addNode.vue +++ b/src/customworkflow/addNode.vue @@ -81,6 +81,7 @@ export default { "nodeName": "审核人", "error": true, "type": 1, + "attribute":1, "settype": 1, "selectMode": 0, "selectRange": 0, @@ -111,6 +112,7 @@ export default { "nodeName": "执行人", "error": true, "type": 3, + "attribute":1, "settype": 1, "selectMode": 0, "selectRange": 0, diff --git a/src/customworkflow/dialog/employeesDialog.vue b/src/customworkflow/dialog/employeesDialog.vue index 1211bd1..a58c081 100644 --- a/src/customworkflow/dialog/employeesDialog.vue +++ b/src/customworkflow/dialog/employeesDialog.vue @@ -50,13 +50,13 @@ export default { if(this.data){ this.checkedEmployessList = this.data.filter(item => item.type === 1).map(({ name, targetId ,icon ,iconToBase64}) => ({ employeeName: name, - id: targetId, + id: targetId.toString(), icon: icon, iconToBase64: iconToBase64 })); this.checkedDepartmentList = this.data.filter(item => item.type === 3).map(({ name, targetId }) => ({ departmentName: name, - id: targetId + id: targetId.toString() })); } } @@ -116,12 +116,12 @@ export default { saveDialog() { let checkedList = [...this.checkedDepartmentList, ...this.checkedEmployessList].map(item => ({ type: item.employeeName ? "1" : "3", - targetId: item.id, + targetId: item.id.toString(), icon: item.icon, iconToBase64: item.iconToBase64, name: item.employeeName || item.departmentName })) - // console.log("checkedList--->",checkedList); + console.log("checkedList--->",checkedList,this.checkedDepartmentList,this.checkedEmployessList); this.$emit('change', checkedList) }, //清除已选择 diff --git a/src/customworkflow/dialog/employeesRoleDialog.vue b/src/customworkflow/dialog/employeesRoleDialog.vue index d9b96cf..8ea8b12 100644 --- a/src/customworkflow/dialog/employeesRoleDialog.vue +++ b/src/customworkflow/dialog/employeesRoleDialog.vue @@ -55,7 +55,7 @@ export default { if(this.data){ this.checkedEmployessList = this.data.filter(item => item.type === 1).map(({ name, targetId ,icon ,iconToBase64 }) => ({ employeeName: name, - id: targetId, + id: targetId.toString(), icon: icon, iconToBase64: iconToBase64 })); @@ -65,10 +65,12 @@ export default { })); this.checkedDepartmentList = this.data.filter(item => item.type === 3).map(({ name, targetId }) => ({ departmentName: name, - id: targetId + id: targetId.toString() })); } - + // console.log("visible--1->",this.checkedEmployessList) + // console.log("visible--2->",this.checkedRoleList) + // console.log("visible--3->",this.checkedDepartmentList) } }, visibleDialog(val) { @@ -123,6 +125,7 @@ export default { cancel: (item) => this.$func.removeEle(this.checkedDepartmentList, item) }) } + return data }, }, @@ -136,16 +139,17 @@ export default { // iconToBase64: item.iconToBase64, // name: item.employeeName || item.departmentName // })) - + // console.log("保存选择--->",this.checkedRoleList,this.checkedEmployessList,this.checkedDepartmentList) let checkedList = [...this.checkedRoleList, ...this.checkedEmployessList, ...this.checkedDepartmentList].map(item => ({ - type: item.employeeName ? 1 : (item.roleName ? 2 : 3), + type: item.employeeName ? "1" : (item.roleName ? "2" : "3"), targetId: item.id || item.roleId, name: item.employeeName || item.roleName || item.departmentName, icon: item.icon, iconToBase64: item.iconToBase64, })) + checkedList.map(String) this.$emit('change', checkedList) - console.log("保存选择",checkedList) + // console.log("保存选择",checkedList) }, //清除选择 delList() { diff --git a/src/customworkflow/dialog/positionDialog.vue b/src/customworkflow/dialog/positionDialog.vue index b1960a2..24039b2 100644 --- a/src/customworkflow/dialog/positionDialog.vue +++ b/src/customworkflow/dialog/positionDialog.vue @@ -42,7 +42,7 @@ export default { this.searchVal = ""; this.checkedRoleList = this.data.map(({ name, targetId }) => ({ name: name, - id: targetId + id: targetId.toString() })); } }, @@ -75,7 +75,7 @@ export default { saveDialog() { let checkedList = this.checkedRoleList.map(item => ({ type: "position", - targetId: item.id, + targetId: item.id.toString(), name: item.name })) console.log("岗位保存--->",checkedList) diff --git a/src/customworkflow/dialog/roleDialog.vue b/src/customworkflow/dialog/roleDialog.vue index 536dead..f9ec769 100644 --- a/src/customworkflow/dialog/roleDialog.vue +++ b/src/customworkflow/dialog/roleDialog.vue @@ -75,7 +75,7 @@ export default { methods:{ saveDialog() { let checkedList = this.checkedRoleList.map(item => ({ - type: 2, + type: "2", targetId: item.roleId, name: item.roleName })) diff --git a/src/customworkflow/drawer/approverDrawer.vue b/src/customworkflow/drawer/approverDrawer.vue index 6d6aa43..49266d0 100644 --- a/src/customworkflow/drawer/approverDrawer.vue +++ b/src/customworkflow/drawer/approverDrawer.vue @@ -7,6 +7,7 @@
+
@@ -29,17 +30,40 @@

- 发起人的: - + + + + + + + + + + + +

找不到主管时,由上级主管代审批

- 添加/修改岗位 - + + + 添加/修改岗位 + + + + + +

{{item.name}} @@ -76,10 +100,20 @@

审批终点

- 发起人的: - + + + + + + + + +

diff --git a/src/customworkflow/drawer/conditionDrawer.vue b/src/customworkflow/drawer/conditionDrawer.vue index 911d3d1..6148de1 100644 --- a/src/customworkflow/drawer/conditionDrawer.vue +++ b/src/customworkflow/drawer/conditionDrawer.vue @@ -363,7 +363,7 @@ export default { if (columnId == 0) { this.conditionConfig.nodeUserList == []; this.conditionConfig.conditionList.push({ - "type": 1, + "type": "1", columnId, "showName": '发起人' }); @@ -372,7 +372,7 @@ export default { this.conditionConfig.conditionList.push({ showType, columnId, - "type": 2, + "type": "2", showName, "optType": "1", "zdy1": "2", @@ -386,7 +386,7 @@ export default { this.conditionConfig.conditionList.push({ showType, columnId, - "type": 2, + "type": "2", showName, "zdy1": "", "columnDbname": columnName, @@ -397,7 +397,7 @@ export default { this.conditionConfig.conditionList.push({ showType, columnId, - "type": 3, + "type": "3", showName, "columnDbname": columnName, columnType, @@ -407,7 +407,7 @@ export default { }else if(columnType == "custom"){ this.conditionConfig.conditionList.push({ showType, - "type": 4, + "type": "4", columnId, showName, columnType, @@ -429,7 +429,7 @@ export default { this.conditionConfig.conditionList.push({ showType, columnId, - "type": 5, + "type": "5", showName, "zdy1": "", "columnDbname": columnName, diff --git a/src/router/index.js b/src/router/index.js index d3e474d..3fc68e9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -195,7 +195,8 @@ export const constantRoutes = [ // UserHome 将被渲染到 User 的 内部 { path: 'qualitative', - component: () => import('@/views/qualitative/index'), + component: () => import('@/views/qualitative/qualpage'), + // component: () => import('@/views/qualitative/index'), meta: { title: '定性考核'} }, { diff --git a/src/views/qualitative/index.vue b/src/views/qualitative/index.vue index ebedfa4..ca1174b 100644 --- a/src/views/qualitative/index.vue +++ b/src/views/qualitative/index.vue @@ -278,9 +278,9 @@ {{a.workshopname}}-{{a.postname}}-{{a.name}}
-
已同意 · 
-
未操作 · 
-
驳回 · 
+
已同意 · 
+
未操作 · 
+
驳回 · 
{{i.time}}
@@ -493,9 +493,9 @@ {{a.workshopname}}-{{a.postname}}-{{a.name}}
-
已同意 · 
-
未操作 · 
-
驳回 · 
+
已同意 · 
+
未操作 · 
+
驳回 · 
{{i.time}}
diff --git a/src/views/qualitative/qualpage.vue b/src/views/qualitative/qualpage.vue new file mode 100644 index 0000000..225da43 --- /dev/null +++ b/src/views/qualitative/qualpage.vue @@ -0,0 +1,255 @@ + + + +