From 352f85d09984201cfe9e4ede0f84d30b6a516cab Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 7 Jul 2025 14:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Progress/index.vue | 318 ++++++++---------- .../dashboard/components/budgetStatic.vue | 71 ++-- src/views/dashboard/index.vue | 35 +- 3 files changed, 200 insertions(+), 224 deletions(-) diff --git a/src/components/Progress/index.vue b/src/components/Progress/index.vue index 22a6abf..56de546 100644 --- a/src/components/Progress/index.vue +++ b/src/components/Progress/index.vue @@ -1,195 +1,167 @@ +
+ - + - + diff --git a/src/views/dashboard/components/budgetStatic.vue b/src/views/dashboard/components/budgetStatic.vue index 8bd1ed4..4dd5948 100644 --- a/src/views/dashboard/components/budgetStatic.vue +++ b/src/views/dashboard/components/budgetStatic.vue @@ -2,7 +2,7 @@
@@ -80,27 +80,7 @@ export default { align: 'left', fixed: this.$store.getters.device === 'mobile'?false:'left' }, - { - prop: 'type_detail.value', - label: '预算类型', - width: 120, - }, - { - prop: 'year', - label: '所属年份', - width: 160 - }, - { - prop: 'plan_department.name', - label: "相关科室", - width: 180 - }, - { - prop: 'content', - label: '描述', - align: 'left', - minWidth: 300 - }, + { prop: 'money', width: 180, @@ -138,6 +118,27 @@ export default { return (
) } }, + { + prop: 'type_detail.value', + label: '预算类型', + width: 120, + }, + { + prop: 'year', + label: '所属年份', + width: 160 + }, + { + prop: 'plan_department.name', + label: "相关科室", + width: 180 + }, + { + prop: 'content', + label: '描述', + align: 'left', + minWidth: 300 + }, ] } }, @@ -168,7 +169,7 @@ export default { this.list = mergeTableRow({ data: res.list.data, - mergeColNames: ["pid_info_name",'selection','index'], // 需要合并的列,默认合并列相同的数据 + mergeColNames: ["pid_info_name",'index'], // 需要合并的列,默认合并列相同的数据 firstMergeColNames: ["pid_info_name"], // 受影响的列,只合并以firstMerge为首的同类型数据 firstMerge: 'pid_info_name' // 以哪列为基础进行合并,一般为第一列 }) @@ -177,24 +178,24 @@ export default { }, selected (selections, selected) { - if (selected['pid_info_name-span']?.rowspan > 1) { - if (this.selections.find(i => i.id === selected.id)) { - let len = selected['pid_info_name-span'].rowspan - let idx = this.selections.indexOf(selected) - this.selections.splice(idx,len) - } else { - let len = selected['pid_info_name-span'].rowspan - let idx = this.list.indexOf(selected) - this.selections.push(...this.list.slice(idx,idx+len)) - } - } else { + // if (selected['pid_info_name-span']?.rowspan > 1) { + // if (this.selections.find(i => i.id === selected.id)) { + // let len = selected['pid_info_name-span'].rowspan + // let idx = this.selections.indexOf(selected) + // this.selections.splice(idx,len) + // } else { + // let len = selected['pid_info_name-span'].rowspan + // let idx = this.list.indexOf(selected) + // this.selections.push(...this.list.slice(idx,idx+len)) + // } + // } else { if (this.selections.find(i => i.id === selected.id)) { let idx = this.selections.indexOf(this.selections.find(i => i.id === selected.id)) this.selections.splice(idx,1) } else { this.selections.push(selected) } - } + // } }, selectAll (selections) { diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 87ce0c4..1700f18 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -22,7 +22,7 @@
- + @@ -58,7 +58,7 @@
- +