|
@@ -47,7 +47,6 @@
|
|
|
plain
|
|
|
icon="el-icon-delete"
|
|
|
size="mini"
|
|
|
- :disabled="multiple"
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['system:user:remove']"
|
|
|
>删除
|
|
@@ -110,7 +109,7 @@
|
|
|
</vxe-pager>
|
|
|
</div>
|
|
|
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="750px" height="600px">
|
|
|
+ <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="750px" height="600px">
|
|
|
<el-form ref="form" :model="form" :rules="rules" width="730px" label-width="130px">
|
|
|
<el-row class="mb4">
|
|
|
<el-col :span="12">
|
|
@@ -303,6 +302,38 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleDelete() {
|
|
|
+ const _selectData = this.$refs.xTable.getRadioRecord(true)
|
|
|
+ if (_selectData == null) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择记录!'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$confirm('是否确认删除?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.doDelete(_selectData)
|
|
|
+ }).catch(() => {
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 删除提交
|
|
|
+ */
|
|
|
+ doDelete(row) {
|
|
|
+ this.$request.post('/inverterinfo/remove', row).then((res) => {
|
|
|
+ this.$message.success('删除成功!')
|
|
|
+ this.stationChange()
|
|
|
+ this.dataQuery()
|
|
|
+ }).catch((error) => {
|
|
|
+ })
|
|
|
+ this.loading = false
|
|
|
+ },
|
|
|
stationChange() {
|
|
|
this.currentPage = 1
|
|
|
this.pageSize = 10
|