|
|
@@ -109,18 +109,15 @@ const getTableColumns = async () => {
|
|
|
const getTableData = async () => {
|
|
|
// 保存页长以及当前页码
|
|
|
tableData.value.data = datatest.value
|
|
|
- // await $api
|
|
|
- // .getBookingTableData({
|
|
|
- // other_filed: '',
|
|
|
- // ...filterdataobj.value
|
|
|
- // })
|
|
|
- // .then((res: any) => {
|
|
|
- // if (res.code === 200) {
|
|
|
- // tableData.value.data = res.data
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .finally(() => {
|
|
|
- // })
|
|
|
+ $api
|
|
|
+ .MonitoringInit({})
|
|
|
+ .then((res: any) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ // tableData.value.data = res.data
|
|
|
+ console.log(res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .finally(() => {})
|
|
|
}
|
|
|
|
|
|
// 实现行点击样式
|
|
|
@@ -128,8 +125,7 @@ useRowClickStyle(tableRef)
|
|
|
|
|
|
// 点击删除
|
|
|
const handleDelete = (row: any) => {
|
|
|
- visible.value = true
|
|
|
- console.log(row)
|
|
|
+ row.visible.value = true
|
|
|
}
|
|
|
|
|
|
// 跳转Create New Rule页面
|