|
|
@@ -64,7 +64,7 @@ const { maxHeight } = useDataTable(dataTableRef)
|
|
|
const isRequestLoading = ref(false)
|
|
|
const showDropdown = ref(false)
|
|
|
const checkedRowKeys = ref<Array<number | string>>([])
|
|
|
-const contextmenuID = ref<number | undefined>(undefined)
|
|
|
+const contextmenuID = ref<string | undefined>(undefined)
|
|
|
|
|
|
interface AnalysisFilterForm extends Partial<AnalysisItemInfo> { }
|
|
|
|
|
|
@@ -142,7 +142,7 @@ const dropdownOptions = reactive<DropdownProps>({
|
|
|
},
|
|
|
})
|
|
|
|
|
|
-const createOrEditAnalysis = (id?: number) => {
|
|
|
+const createOrEditAnalysis = (id?: string) => {
|
|
|
const title = id === undefined ? '新增监控' : '编辑编辑'
|
|
|
const isNew = id === undefined
|
|
|
|
|
|
@@ -278,7 +278,7 @@ function rowProps(row: AnalysisItemInfo) {
|
|
|
}
|
|
|
|
|
|
const tableData = ref<AnalysisItemInfo[]>(Array.from({ length: 46 }).map((_, index) => ({
|
|
|
- id: index,
|
|
|
+ id: String(index),
|
|
|
sn: `Edward King ${index}`,
|
|
|
description: "",
|
|
|
item: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
|
|
|
@@ -304,15 +304,15 @@ const tablePagination = reactive<PaginationProps>({
|
|
|
},
|
|
|
})
|
|
|
|
|
|
-const itemView = (id: number) => {
|
|
|
+const itemView = (id: string) => {
|
|
|
|
|
|
}
|
|
|
|
|
|
-const itemEdit = (id: number) => {
|
|
|
+const itemEdit = (id: string) => {
|
|
|
createOrEditAnalysis(id)
|
|
|
}
|
|
|
|
|
|
-const itemDelete = (id: number) => {
|
|
|
+const itemDelete = (id: string) => {
|
|
|
|
|
|
}
|
|
|
|