|
|
@ -60,6 +60,7 @@ |
|
|
|
class="table" |
|
|
|
class="table" |
|
|
|
v-loading="loading" |
|
|
|
v-loading="loading" |
|
|
|
:data="list" |
|
|
|
:data="list" |
|
|
|
|
|
|
|
ref="tableRef" |
|
|
|
:highlight-current-row="true" |
|
|
|
:highlight-current-row="true" |
|
|
|
:page-total="total" |
|
|
|
:page-total="total" |
|
|
|
:current-page="queryParams.pageNo" |
|
|
|
:current-page="queryParams.pageNo" |
|
|
@ -157,15 +158,18 @@ const total = ref(0) |
|
|
|
const list = ref<IDevice[]>([]) |
|
|
|
const list = ref<IDevice[]>([]) |
|
|
|
const queryParams = reactive({ |
|
|
|
const queryParams = reactive({ |
|
|
|
pageNo: 1, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: undefined, |
|
|
|
serialNo: undefined, |
|
|
|
serialNo: undefined, |
|
|
|
name: undefined, |
|
|
|
name: undefined, |
|
|
|
status: undefined, |
|
|
|
status: undefined, |
|
|
|
categoryId: [], |
|
|
|
categoryId: [], |
|
|
|
createTime: [], |
|
|
|
createTime: [], |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
const tableRef = ref() |
|
|
|
const getList = async () => { |
|
|
|
const getList = async () => { |
|
|
|
|
|
|
|
if (!queryParams.pageSize) { |
|
|
|
|
|
|
|
queryParams.pageSize = tableRef.value.getSize() |
|
|
|
|
|
|
|
} |
|
|
|
loading.value = true |
|
|
|
loading.value = true |
|
|
|
|
|
|
|
|
|
|
|
const options = { |
|
|
|
const options = { |
|
|
@ -237,7 +241,6 @@ function addDevice() { |
|
|
|
function onView(row: any) { |
|
|
|
function onView(row: any) { |
|
|
|
router.push({ path: '/device/deviceOperation', query: { action: 'view', id: row.id } }) |
|
|
|
router.push({ path: '/device/deviceOperation', query: { action: 'view', id: row.id } }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|