|
@@ -53,9 +53,9 @@
|
|
|
<el-table-column label="捐赠人名称" align="center" prop="jzrmc" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="isCl" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
+ <el-button v-if="scope.row.isCl === '0'" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['organization:jzxx:edit']">修改</el-button>
|
|
|
- <el-button v-if="isCl" size="mini" type="text" icon="el-icon-delete"
|
|
|
+ <el-button v-if="scope.row.isCl === '0'" size="mini" type="text" icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row, (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1, scope.$index)"
|
|
|
v-hasPermi="['organization:jzxx:remove']">删除</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleDetail(scope.row)"
|
|
@@ -183,8 +183,6 @@ export default {
|
|
|
open: false,
|
|
|
// 是否显示详情弹出层
|
|
|
xqOpen: false,
|
|
|
- // 是否显示修改删除按钮
|
|
|
- isCl: true,
|
|
|
// 事件发生日期范围
|
|
|
daterangeJzsj: [],
|
|
|
// 查询参数
|
|
@@ -241,7 +239,6 @@ export default {
|
|
|
this.queryParams.params["endJzsj"] = this.daterangeJzsj[1];
|
|
|
}
|
|
|
listJzxx(this.queryParams).then(response => {
|
|
|
- response.rows.forEach((item) => { item.isCl == 0 ? this.isCl = true : this.isCl = false })
|
|
|
this.jzxxList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|