|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
- <el-form-item label="名称" prop="name">
|
|
|
+ <el-form-item label="区域名称" prop="name">
|
|
|
<el-input
|
|
|
v-model="queryParams.name"
|
|
|
placeholder="请输入名称"
|
|
|
@@ -118,7 +118,7 @@
|
|
|
<!-- 添加或修改【请填写功能名称】对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
- <el-form-item label="名称" prop="name">
|
|
|
+ <el-form-item label="区域名称" prop="name">
|
|
|
<el-input v-model="form.name" placeholder="请输入名称" />
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -156,6 +156,7 @@ export default {
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
+ names:[],
|
|
|
// 非单个禁用
|
|
|
single: true,
|
|
|
// 非多个禁用
|
|
|
@@ -230,6 +231,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
+ this.names=selection.map(item => item.name)
|
|
|
this.single = selection.length!==1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
@@ -272,7 +274,8 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除编号为"' + ids + '"的数据项?').then(function() {
|
|
|
+ const names=row.name || this.names;
|
|
|
+ this.$modal.confirm('是否确认删除区域名称为"' + names + '"的数据项?').then(function() {
|
|
|
return delArea(ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|