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

修改站点请求地址

parent f30d6b62
......@@ -23,9 +23,6 @@ export default {
clearTimeout(this.loadingTimer);
},
methods: {
test() {
console.log("test")
},
// 开启、关闭
changePath(path) {
this.pageInfo.list = path + "/list";
......@@ -121,13 +118,13 @@ export default {
if (!time) return '';
let date = new Date(Number(time));
var o = {
"M+": date.getMonth() + 1, //月份
"d+": date.getDate(), //日
"[h|H]+": date.getHours(), //小时
"m+": date.getMinutes(), //分
"s+": date.getSeconds(), //秒
"q+": Math.floor((date.getMonth() + 3) / 3), //季度
"S": date.getMilliseconds() //毫秒
"M+": date.getMonth() + 1, //月份
"d+": date.getDate(), //日
"[h|H]+": date.getHours(), //小时
"m+": date.getMinutes(), //分
"s+": date.getSeconds(), //秒
"q+": Math.floor((date.getMonth() + 3) / 3), //季度
"S": date.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
......@@ -276,7 +273,7 @@ export default {
handleSelectableMethod(row, index) {
return true;
},
// 设置单元行样式
tableRowClassName() { },
// 批量删除
......
<template>
<el-table
size='small'
:ref="tableName"
:data="tableData"
:row-key="handleRowKeyMethod"
:span-method="handleSpanMethod"
......@@ -27,7 +28,7 @@
:formatter='column.formatter'
:reserve-selection='column.reserveSelection'
:subColumns='column.subColumns'
>
<el-table-column
v-for='sunColumn in column.subColumns'
......@@ -39,7 +40,7 @@
:sortable="sunColumn.sortable"
:align="sunColumn.align || 'left'"
:formatter='sunColumn.formatter'
/>
</el-table-column>
</el-table>
......@@ -69,6 +70,11 @@ export default {
required: false,
default: () => {}
},
toggleRowSelection: {
type: Function,
required: false,
default: () => {}
},
handleSelectionChange: {
type: Function,
required: false,
......@@ -103,6 +109,11 @@ export default {
type: Array,
required: false,
default: ()=> [],
},
tableName: {
type: String,
required: false,
default: "table",
}
},
computed: {
......
......@@ -460,6 +460,7 @@ export default {
if (res.code == 1) {
this.$message.success("批量更新大厅设备成功!");
this.hallDialog.open=false;
this.$refs.table.clearSelection();
this.selection=[]
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