122 lines
5.0 KiB
Vue
122 lines
5.0 KiB
Vue
<template>
|
|
<div class="app-container">
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
|
|
<el-form-item label="案件状态" prop="roleName">
|
|
<el-input v-model="queryParams.roleName" placeholder="请输入案件状态" clearable style="width: 240px"
|
|
@keyup.enter.native="handleQuery" />
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
<el-row :gutter="10" class="mb8">
|
|
<el-col :span="1.5">
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addCase">新增案件</el-button>
|
|
</el-col>
|
|
</el-row>
|
|
<el-table v-loading="loading" :data="dataList" style="width: 100%">
|
|
<el-table-column label="序号" type="index" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{
|
|
(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
}}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="批号" align="center" prop="batchNumber" :show-overflow-tooltip="true" />
|
|
<el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
|
|
<el-table-column label="申请机构名称" align="center" prop="applicationOrganName" :show-overflow-tooltip="true" />
|
|
<el-table-column label="被申请人" align="center" prop="respondentName" :show-overflow-tooltip="true" />
|
|
<el-table-column label="案件标的" align="center" prop="caseSubjectAmount" :show-overflow-tooltip="true" />
|
|
<el-table-column label="调解员" align="center" prop="mediatorName" :show-overflow-tooltip="true" />
|
|
<el-table-column label="开庭日期" align="center" prop="hearDate" :show-overflow-tooltip="true" />
|
|
<el-table-column label="案件状态" align="center" prop="caseStatusName" :show-overflow-tooltip="true" />
|
|
<el-table-column label="创建时间" align="center" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<el-button size="mini" @click="eidtNodeprocess(scope.row)" type="text"
|
|
icon="el-icon-edit">修改</el-button>
|
|
<el-button size="mini" @click="checkDetail(scope.row)" type="text"
|
|
icon="el-icon-delete">查看详情</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
@pagination="getList(queryParams)" />
|
|
<addCase :addVisable="addVisable" :queryParams="queryParams" @cancelCaseAdd="cancelCaseAdd" @getList="getList" :caseData="caseData"></addCase>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { caseApplicationList } from '@/api/caseManagement/caseManagement.js'
|
|
import addCase from './components/addCase.vue'
|
|
export default {
|
|
name: "caseList",
|
|
components: {
|
|
addCase
|
|
},
|
|
data() {
|
|
return {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
},
|
|
// 遮罩层
|
|
loading: false,
|
|
// 总条数
|
|
total: 0,
|
|
// 表格数据
|
|
form: {},
|
|
// 校验表单
|
|
rules: {},
|
|
dataList: [],
|
|
addVisable: false,//新增弹窗
|
|
caseData: {},
|
|
};
|
|
},
|
|
created() {
|
|
this.getList(this.queryParams)
|
|
},
|
|
methods: {
|
|
/** 新增案件 */
|
|
addCase(){
|
|
this.addVisable = true;
|
|
this.caseData = {};
|
|
},
|
|
/** 查看详情 */
|
|
checkDetail(val){
|
|
// this.addVisable = true;
|
|
// this.caseData = val;
|
|
},
|
|
/** 修改案件 */
|
|
eidtNodeprocess(row){
|
|
this.addVisable = true;
|
|
this.caseData = row;
|
|
},
|
|
/** 关闭弹窗 */
|
|
cancelCaseAdd(){
|
|
this.addVisable = false;
|
|
},
|
|
/** 搜索按钮操作 */
|
|
handleQuery() {
|
|
this.queryParams.pageNum = 1;
|
|
this.getList(this.queryParams);
|
|
},
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
this.resetForm("queryForm");
|
|
this.handleQuery();
|
|
},
|
|
// 查询列表数据
|
|
getList(parms) {
|
|
this.loading = true;
|
|
caseApplicationList(parms).then((response) => {
|
|
this.dataList = response.rows;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
})
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style> |