Commit 52713f81 authored by 赵啸非's avatar 赵啸非

修改站点请求地址

parent f30d6b62
...@@ -23,9 +23,6 @@ export default { ...@@ -23,9 +23,6 @@ export default {
clearTimeout(this.loadingTimer); clearTimeout(this.loadingTimer);
}, },
methods: { methods: {
test() {
console.log("test")
},
// 开启、关闭 // 开启、关闭
changePath(path) { changePath(path) {
this.pageInfo.list = path + "/list"; this.pageInfo.list = path + "/list";
......
<template> <template>
<el-table <el-table
size='small' size='small'
:ref="tableName"
:data="tableData" :data="tableData"
:row-key="handleRowKeyMethod" :row-key="handleRowKeyMethod"
:span-method="handleSpanMethod" :span-method="handleSpanMethod"
...@@ -69,6 +70,11 @@ export default { ...@@ -69,6 +70,11 @@ export default {
required: false, required: false,
default: () => {} default: () => {}
}, },
toggleRowSelection: {
type: Function,
required: false,
default: () => {}
},
handleSelectionChange: { handleSelectionChange: {
type: Function, type: Function,
required: false, required: false,
...@@ -103,6 +109,11 @@ export default { ...@@ -103,6 +109,11 @@ export default {
type: Array, type: Array,
required: false, required: false,
default: ()=> [], default: ()=> [],
},
tableName: {
type: String,
required: false,
default: "table",
} }
}, },
computed: { computed: {
......
...@@ -460,6 +460,7 @@ export default { ...@@ -460,6 +460,7 @@ export default {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("批量更新大厅设备成功!"); this.$message.success("批量更新大厅设备成功!");
this.hallDialog.open=false; this.hallDialog.open=false;
this.$refs.table.clearSelection();
this.selection=[] this.selection=[]
this.getData(); this.getData();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment