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";
...@@ -121,13 +118,13 @@ export default { ...@@ -121,13 +118,13 @@ export default {
if (!time) return ''; if (!time) return '';
let date = new Date(Number(time)); let date = new Date(Number(time));
var o = { var o = {
"M+": date.getMonth() + 1, //月份 "M+": date.getMonth() + 1, //月份
"d+": date.getDate(), //日 "d+": date.getDate(), //日
"[h|H]+": date.getHours(), //小时 "[h|H]+": date.getHours(), //小时
"m+": date.getMinutes(), //分 "m+": date.getMinutes(), //分
"s+": date.getSeconds(), //秒 "s+": date.getSeconds(), //秒
"q+": Math.floor((date.getMonth() + 3) / 3), //季度 "q+": Math.floor((date.getMonth() + 3) / 3), //季度
"S": date.getMilliseconds() //毫秒 "S": date.getMilliseconds() //毫秒
}; };
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o) for (var k in o)
...@@ -276,7 +273,7 @@ export default { ...@@ -276,7 +273,7 @@ export default {
handleSelectableMethod(row, index) { handleSelectableMethod(row, index) {
return true; return true;
}, },
// 设置单元行样式 // 设置单元行样式
tableRowClassName() { }, tableRowClassName() { },
// 批量删除 // 批量删除
......
<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"
...@@ -27,7 +28,7 @@ ...@@ -27,7 +28,7 @@
:formatter='column.formatter' :formatter='column.formatter'
:reserve-selection='column.reserveSelection' :reserve-selection='column.reserveSelection'
:subColumns='column.subColumns' :subColumns='column.subColumns'
> >
<el-table-column <el-table-column
v-for='sunColumn in column.subColumns' v-for='sunColumn in column.subColumns'
...@@ -39,7 +40,7 @@ ...@@ -39,7 +40,7 @@
:sortable="sunColumn.sortable" :sortable="sunColumn.sortable"
:align="sunColumn.align || 'left'" :align="sunColumn.align || 'left'"
:formatter='sunColumn.formatter' :formatter='sunColumn.formatter'
/> />
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -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