Skip to content

Commit 97d0d91

Browse files
author
fuyoo
committed
chore: add comment.
1 parent 0fea91b commit 97d0d91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pages/host/key-types/co-list/index.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const fetchLen = async () => {
2727
}
2828
fetchLen()
2929
30+
// tab fields
3031
const columns = reactive([
3132
{
3233
title: '#',
@@ -44,6 +45,7 @@ const columns = reactive([
4445
width: 200,
4546
render: (row: Record<string, any>) => {
4647
48+
// delete data
4749
const delFn = async (row: Record<string, any>) => {
4850
try {
4951
row.delLoaing = true
@@ -56,6 +58,7 @@ const columns = reactive([
5658
row.delLoaing = false
5759
}
5860
}
61+
// look detail
5962
const look = (row: Record<string, any>) => {
6063
dialog.create({
6164
title: t('actions[12]'),
@@ -78,7 +81,10 @@ const columns = reactive([
7881
},
7982
},
8083
])
84+
// records
8185
const records = shallowRef<Record<string, any>[]>([])
86+
87+
// obtain records
8288
const fetchRecords = async () => {
8389
await fetchLen()
8490
const resp = await reqStore.reqWithHost<string>({
@@ -102,6 +108,7 @@ const fetchRecords = async () => {
102108
fetchRecords()
103109
onPageChanged(fetchRecords)
104110
const { height } = useResize()
111+
// insert data to list
105112
const addData = async () => {
106113
const formModel = reactive({
107114
value: '',
@@ -154,6 +161,7 @@ const addData = async () => {
154161
</n-form>,
155162
})
156163
}
164+
// edit data
157165
const editFn = async (row:Record<string,any>,index: number) => {
158166
const formModel = reactive({
159167
value: row.value,

0 commit comments

Comments
 (0)