From 8f9389b9d569b8e8f42ba1de2d0b0e5cab9257bc Mon Sep 17 00:00:00 2001 From: hdka <823267011@qq.com> Date: Wed, 5 Mar 2025 19:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4bar=E5=9B=BE=E6=98=BE?= =?UTF-8?q?=E7=A4=BAbug=E4=BB=A5=E5=8F=8A=E4=BA=94=E5=A4=A7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=B5=81=E7=A8=8B=E5=BC=80=E5=AE=8C=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/dashboard/BarChart.vue | 26 +- ruoyi-ui/src/views/oa/apply/absence/index.vue | 329 ++++++++++++++++++ .../src/views/oa/apply/entertain/index.vue | 329 ++++++++++++++++++ ruoyi-ui/src/views/oa/apply/other/index.vue | 329 ++++++++++++++++++ ruoyi-ui/src/views/oa/apply/seal/index.vue | 329 ++++++++++++++++++ ruoyi-ui/src/views/oa/attendance/index.vue | 19 +- ruoyi-ui/src/views/oa/claim/detail.vue | 28 +- ruoyi-ui/src/views/workflow/work/detail.vue | 161 ++++++--- ruoyi-ui/src/views/workflow/work/own.vue | 1 - ruoyi-ui/src/views/workflow/work/start.vue | 12 +- 10 files changed, 1478 insertions(+), 85 deletions(-) create mode 100644 ruoyi-ui/src/views/oa/apply/absence/index.vue create mode 100644 ruoyi-ui/src/views/oa/apply/entertain/index.vue create mode 100644 ruoyi-ui/src/views/oa/apply/other/index.vue create mode 100644 ruoyi-ui/src/views/oa/apply/seal/index.vue diff --git a/ruoyi-ui/src/views/dashboard/BarChart.vue b/ruoyi-ui/src/views/dashboard/BarChart.vue index a4b50fd..a6b2cd3 100644 --- a/ruoyi-ui/src/views/dashboard/BarChart.vue +++ b/ruoyi-ui/src/views/dashboard/BarChart.vue @@ -64,6 +64,7 @@ export default { this.chart.dispose(); this.chart = null; }, + methods: { initChart() { this.chart = echarts.init(this.$el, 'macarons'); @@ -73,37 +74,41 @@ export default { updateData(projectList) { this.colors = projectList.map((item) => item.color); this.laborCosts = projectList.map((item) => item.laborCost); - this.projectNames = projectList.map((item) => item.projectName.replace(/(.{5})/g, '$1\n')); + this.projectNames = projectList.map((item) => item.projectName.replace(/(.{5})/g, '$1\n')); // 保持换行格式 }, setOption() { this.chart.setOption({ tooltip: { trigger: 'axis', - axisPointer: {type: 'shadow'}, + axisPointer: { type: 'shadow' }, + formatter: (params) => { // 自定义 tooltip 格式 + const { dataIndex } = params[0]; // 获取鼠标悬停的索引 + const projectName = this.projectNames[dataIndex]; // 获取对应的项目名称 + const laborCost = this.laborCosts[dataIndex]; // 获取对应的人工成本 + return `${projectName}
人工成本: ${laborCost} 人天`; // 显示项目名称和人工成本 + }, }, grid: { top: 10, left: '2%', - right: '8%', // 增加右边距以适应标签 + right: '8%', bottom: '3%', containLabel: true, }, xAxis: { max: 'dataMax', - name: '人天', // 设置横坐标名称 - nameLocation: 'middle', // 横坐标名称的位置 - nameGap: 25, // 横坐标名称与轴线的距离 + name: '人天', + nameLocation: 'middle', + nameGap: 25, }, yAxis: { type: 'category', data: this.projectNames, inverse: true, - animationDuration: 300, - animationDurationUpdate: 300, axisLabel: { - rotate: 45, // 设置标签旋转角度,正值表示顺时针旋转 + rotate: 45, // 设置标签旋转角度 interval: 0, // 强制显示所有标签 - } + }, }, series: [ { @@ -130,5 +135,6 @@ export default { }); }, }, + }; diff --git a/ruoyi-ui/src/views/oa/apply/absence/index.vue b/ruoyi-ui/src/views/oa/apply/absence/index.vue new file mode 100644 index 0000000..01b3fe9 --- /dev/null +++ b/ruoyi-ui/src/views/oa/apply/absence/index.vue @@ -0,0 +1,329 @@ + + + diff --git a/ruoyi-ui/src/views/oa/apply/entertain/index.vue b/ruoyi-ui/src/views/oa/apply/entertain/index.vue new file mode 100644 index 0000000..a90483a --- /dev/null +++ b/ruoyi-ui/src/views/oa/apply/entertain/index.vue @@ -0,0 +1,329 @@ + + + diff --git a/ruoyi-ui/src/views/oa/apply/other/index.vue b/ruoyi-ui/src/views/oa/apply/other/index.vue new file mode 100644 index 0000000..8d4909b --- /dev/null +++ b/ruoyi-ui/src/views/oa/apply/other/index.vue @@ -0,0 +1,329 @@ + + + diff --git a/ruoyi-ui/src/views/oa/apply/seal/index.vue b/ruoyi-ui/src/views/oa/apply/seal/index.vue new file mode 100644 index 0000000..1af3481 --- /dev/null +++ b/ruoyi-ui/src/views/oa/apply/seal/index.vue @@ -0,0 +1,329 @@ + + + diff --git a/ruoyi-ui/src/views/oa/attendance/index.vue b/ruoyi-ui/src/views/oa/attendance/index.vue index e444bc2..7a0cc73 100644 --- a/ruoyi-ui/src/views/oa/attendance/index.vue +++ b/ruoyi-ui/src/views/oa/attendance/index.vue @@ -161,7 +161,8 @@ 计算 + >计算 + @@ -231,7 +232,7 @@ -

{{ date.getMonth()+1 }} 月度工作签到情况

+

{{ date.getMonth() + 1 }} 月度工作签到情况

@@ -389,7 +390,7 @@ export default { calcResultAttendances: [], calcResultProject: {}, projects: [], - fullscreenLoading:false, + fullscreenLoading: false, } }, @@ -470,7 +471,7 @@ export default { projectId: 0, userId: this.selectUser.userId, attendanceDay: this.selectIndex, - selectTime:this.queryParams.selectTime + selectTime: this.queryParams.selectTime } addOaAttendance(this.form).then(res => { this.getList() @@ -481,7 +482,7 @@ export default { this.form = { projectId: 0, attendanceDay: this.selectIndex, - selectTime:this.queryParams.selectTime + selectTime: this.queryParams.selectTime } // 集体赋予状态 addBatchOaAttendance(this.form).then(res => { @@ -496,7 +497,7 @@ export default { projectId: 1, userId: this.selectUser.userId, attendanceDay: this.selectIndex, - selectTime:this.queryParams.selectTime + selectTime: this.queryParams.selectTime } addOaAttendance(this.form).then(res => { this.getList() @@ -507,7 +508,7 @@ export default { this.form = { projectId: 1, attendanceDay: this.selectIndex, - selectTime:this.queryParams.selectTime + selectTime: this.queryParams.selectTime } // 集体赋予状态 addBatchOaAttendance(this.form).then(res => { @@ -609,7 +610,7 @@ export default { attendanceDay: this.selectIndex, dayLength: this.timeFlag === 0 ? this.form.dayLength : undefined, hour: this.timeFlag === 1 ? this.form.hour : undefined, - selectTime:this.queryParams.selectTime + selectTime: this.queryParams.selectTime } addOaAttendance(this.form).then(res => { this.selectUser = this.selectArrayIndex >= this.userList.length - 1 ? this.selectUser : this.userList[this.selectArrayIndex + 1] @@ -624,7 +625,7 @@ export default { attendanceDay: this.selectIndex, dayLength: this.timeFlag === 0 ? this.form.dayLength : undefined, hour: this.timeFlag === 1 ? this.form.hour : undefined, - selectTime:this.queryParams.selectTime + selectTime: this.queryParams.selectTime } // 集体赋予状态 addBatchOaAttendance(this.form).then(res => { diff --git a/ruoyi-ui/src/views/oa/claim/detail.vue b/ruoyi-ui/src/views/oa/claim/detail.vue index b197f05..02e0e6c 100644 --- a/ruoyi-ui/src/views/oa/claim/detail.vue +++ b/ruoyi-ui/src/views/oa/claim/detail.vue @@ -18,6 +18,28 @@ + + + {{ item.nickName }} + + + + + + {{ item.nickName }} + + + @@ -251,13 +273,7 @@ /> - - - - - - diff --git a/ruoyi-ui/src/views/workflow/work/detail.vue b/ruoyi-ui/src/views/workflow/work/detail.vue index f5f3319..ab4bb04 100644 --- a/ruoyi-ui/src/views/workflow/work/detail.vue +++ b/ruoyi-ui/src/views/workflow/work/detail.vue @@ -19,12 +19,34 @@ - + + + + + {{ item.nickName }} + + + + + + {{ item.nickName }} + + - + 通过 @@ -42,44 +64,47 @@ -
+
{{ formInfo.title }}
- - + +
- + -
流程标题:{{processTitleValue}}
+
流程标题:{{ processTitleValue }}
- +

{{ item.activityName }}

{{ item.assigneeName }} 在 {{ item.createTime }} 发起流程 - {{ item.assigneeName || '-'}} - - {{ item.createTime || '-'}} + {{ item.assigneeName || '-' }} + + {{ item.createTime || '-' }} {{ item.endTime || '-' }} - {{ item.duration || '-'}} + {{ item.duration || '-' }}
- {{ commentType(item.commentList[0].type) }} + + {{ commentType(item.commentList[0].type) }} + {{ item.commentList[0].time }} {{ item.commentList[0].fullMessage }} @@ -108,14 +133,15 @@ - + {{item.name}} + >{{ item.name }} + @@ -134,7 +160,8 @@ 部门列表
- + - + - - - + + +