案件数量统计

This commit is contained in:
liuxi 2025-01-15 14:29:40 +08:00
parent f6d91a08f6
commit 7a747a8155
2 changed files with 39 additions and 24 deletions

View File

@ -532,20 +532,20 @@ import { values } from "lodash";
// title:'', // title:'',
// } // }
// }, // },
handleConclude() { handleConclude() {
// //
if (this.selectionData.length == 0) { if (this.selectionData.length == 0) {
this.$message.warning(`请至少选中一个调解案件!`) this.$message.warning(`请至少选中一个调解案件!`)
return return
} }
if (!this.$clickThrottle()) { if (!this.$clickThrottle()) {
return return
}// }//
api.updateCaseStatus({caseStatus: 2, ids: this.selectionData}).then(res => { api.updateCaseStatus({caseStatus: 2, ids: this.selectionData}).then(res => {
this.$message.success("成功"); this.$message.success("成功");
this.getCaseInfoList(1) this.getCaseInfoList(1)
}) })
}, },
// //
handleCaseAllocation(){ handleCaseAllocation(){
@ -587,6 +587,7 @@ import { values } from "lodash";
} }
}) })
}, },
handleToggleSearch() { handleToggleSearch() {
this.showSearch = !this.showSearch this.showSearch = !this.showSearch
}, },

View File

@ -13,11 +13,11 @@
<el-tab-pane name="all"> <el-tab-pane name="all">
<span slot="label"><span>全部</span> <el-badge :value="caseStatusNum.total" :max="99" class="item"></el-badge></span> <span slot="label"><span>全部</span> <el-badge :value="caseStatusNum.total" :max="99" class="item"></el-badge></span>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="mediate">
<span slot="label"><span>在办</span> <el-badge :value="caseStatusNum.not" :max="99" class="item"></el-badge></span>
</el-tab-pane>
<el-tab-pane name="mediation"> <el-tab-pane name="mediation">
<span slot="label"><span>办结</span> <el-badge :value="caseStatusNum.ing" :max="99" class="item"></el-badge></span> <span slot="label"><span>在办</span> <el-badge :value="caseStatusNum.ing" :max="99" class="item"></el-badge></span>
</el-tab-pane>
<el-tab-pane name="mediated">
<span slot="label"><span>办结</span> <el-badge :value="caseStatusNum.end" :max="99" class="item"></el-badge></span>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -228,7 +228,7 @@
</div> </div>
</div> </div>
<div class="height-56 flex-row align-items-center justify-content-between" style="height: 22px;margin-left: 10px;margin-top: -10px;margin-bottom: 5px"> <div class="height-56 flex-row align-items-center justify-content-between" style="height: 22px;margin-left: 10px;margin-top: -10px;margin-bottom: 5px">
<div class="f22 color-text-primary"><el-checkbox :indeterminate="indeterminate" @change="handleCheckAllChange">全选</el-checkbox></div> <div class="f22 color-text-primary"><el-checkbox :indeterminate="indeterminate" v-model="checkedCheckAll" @change="handleCheckAllChange">全选</el-checkbox></div>
</div> </div>
<div class="case-table"> <div class="case-table">
@ -249,7 +249,7 @@
<el-checkbox-group v-model="selectionData"> <el-checkbox-group v-model="selectionData">
<!-- 此处的label是复选框右边显示的值也是选中后的值如果要一行的数据直接使用row即可 --> <!-- 此处的label是复选框右边显示的值也是选中后的值如果要一行的数据直接使用row即可 -->
<!-- label的内容会显示在页面上需要配合css把label的内容隐藏掉 --> <!-- label的内容会显示在页面上需要配合css把label的内容隐藏掉 -->
<el-checkbox :disabled="scope.row.caseStatus == 1 ? true :false" :key="scope.row.id" :label="scope.row.id"></el-checkbox> <el-checkbox :disabled="scope.row.caseStatus == 1 ? false :true" :key="scope.row.id" :label="scope.row.id"></el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</span> </span>
<span class="f-weight500 color-000 f16">被申请人 <span class="f-weight500 color-000 f16">被申请人
@ -383,6 +383,7 @@ import { values } from "lodash";
}, },
data() { data() {
return { return {
checkedCheckAll:false,
officeDeliveryIdsDialog:null,// officeDeliveryIdsDialog:null,//
officeSealIdsDialog:null,// officeSealIdsDialog:null,//
officeWriteIdsDialog:null,// officeWriteIdsDialog:null,//
@ -453,6 +454,7 @@ import { values } from "lodash";
// //
selectionData: { selectionData: {
handler(v) { handler(v) {
console.log(this.enabledDataList,'this.enabledDataList')
if (this.enabledDataList.length) { if (this.enabledDataList.length) {
let checkedCount = v.length; let checkedCount = v.length;
this.isCheck = checkedCount === this.enabledDataList.length; this.isCheck = checkedCount === this.enabledDataList.length;
@ -485,6 +487,7 @@ import { values } from "lodash";
} }
}, },
methods: { methods: {
handleConclude(){ handleConclude(){
// //
if(this.selectionData.length == 0 ){ if(this.selectionData.length == 0 ){
@ -561,10 +564,9 @@ import { values } from "lodash";
// //
handleCheckAllChange(value){ handleCheckAllChange(value){
// console.log(value,this.enabledDataList,'this.enabledDataList') // console.log(value,this.enabledDataList,'this.enabledDataList')
let chooseData = this.enabledDataList.filter(el=>el.caseStatus == 0) let chooseData = this.enabledDataList.filter(el=>el.caseStatus == 1)
this.selectionData = value ? chooseData.map(el=>el.id) : []; this.selectionData = value ? chooseData.map(el=>el.id) : [];
this.indeterminate = false; this.indeterminate = false;
// console.log(this.selectionData,'his.selectionData')
}, },
// //
@ -621,7 +623,6 @@ import { values } from "lodash";
}, },
// //
handleCaseAllocation(){ handleCaseAllocation(){
if(this.selectionData.length > 0){ if(this.selectionData.length > 0){
this.caseAllocationDialog={ this.caseAllocationDialog={
title:'案件分配', title:'案件分配',
@ -649,6 +650,10 @@ import { values } from "lodash";
}, },
// //
getCaseInfoList(val){ getCaseInfoList(val){
//
this.selectionData = []
this.checkedCheckAll = false
this.queryParam.current = val this.queryParam.current = val
api.getCaseInfoList(this.queryParam).then(res => { api.getCaseInfoList(this.queryParam).then(res => {
if (!res.code) { if (!res.code) {
@ -659,6 +664,15 @@ import { values } from "lodash";
this.enabledDataList = this.tableData.filter(v=>!v.disabled) this.enabledDataList = this.tableData.filter(v=>!v.disabled)
} }
}) })
this.getCaseCount()
},
//
getCaseCount(){
api.getCaseCount({}).then(res => {
if (!res.code) {
this.caseStatusNum = res
}
})
}, },
handleToggleSearch() { handleToggleSearch() {
this.showSearch = !this.showSearch this.showSearch = !this.showSearch