|
@@ -29,12 +29,12 @@
|
|
|
<el-button type="primary" icon="el-icon-edit" :disabled="single" @click="handleUpdate(scope.row)" v-hasPermi="['business:LEAVEMESSAGE:edit']">查看</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="danger" icon="el-icon-delete" :disabled="multiple" @click="handleDelete(scope.row)" v-hasPermi="['business:LEAVEMESSAGE:remove']">删除</el-button>
|
|
|
+ <el-button type="danger" icon="el-icon-delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['business:LEAVEMESSAGE:remove']">删除</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table :data="LEAVEMESSAGEList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table ref="multipleTable" :data="LEAVEMESSAGEList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
|
|
<el-table-column label="留言人姓名" align="center" prop="ansName" />
|
|
@@ -252,9 +252,9 @@ export default {
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
- const ids = row.id || this.ids;
|
|
|
+ const ids = row ? row.id : this.ids;
|
|
|
this.$modal
|
|
|
- .confirm('是否确认删除留言反馈编号为"' + ids + '"的数据项?')
|
|
|
+ .confirm('是否确认删除所选留言?')
|
|
|
.then(function () {
|
|
|
return delLEAVEMESSAGE(ids);
|
|
|
})
|
|
@@ -262,7 +262,9 @@ export default {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess('删除成功');
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => {
|
|
|
+ this.$refs.multipleTable.clearSelection();
|
|
|
+ });
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|