代码提交

This commit is contained in:
joylink_fanyuhong 2024-11-15 10:11:12 +08:00
parent 2aad7d4139
commit 4a3c2fafbf
1 changed files with 7 additions and 7 deletions

View File

@ -112,7 +112,7 @@
</q-input> </q-input>
<q-btn flat round color="primary" icon="search" @click="searchQuery" /> <q-btn flat round color="primary" icon="search" @click="searchQuery" />
</template> </template>
<template v-slot:body-cell-subEventType="props"> <!-- <template v-slot:body-cell-subEventType="props">
<q-td :props="props"> <q-td :props="props">
<div class="q-gutter-sm row justify-center"> <div class="q-gutter-sm row justify-center">
<q-chip outline size="sm" color="primary"> <q-chip outline size="sm" color="primary">
@ -120,12 +120,12 @@
</q-chip> </q-chip>
</div> </div>
</q-td> </q-td>
</template> </template> -->
<template v-slot:body-cell-requestSuccess="props"> <template v-slot:body-cell-requestSuccess="props">
<q-td :props="props"> <q-td :props="props">
<div class="q-gutter-sm row justify-center"> <div class="q-gutter-sm row justify-center">
<q-chip outline size="sm" color="primary"> <q-chip outline size="sm" color="primary">
{{ props.row.requestSuccess === 1 ? '成功' : '失败' }} {{ props.row.requestSuccess === 1 ? '连接' : '断开' }}
</q-chip> </q-chip>
</div> </div>
</q-td> </q-td>
@ -194,9 +194,9 @@ onMounted(() => {
const columnDefs: QTableColumn[] = [ const columnDefs: QTableColumn[] = [
{ name: 'id', label: 'ID', field: 'id', align: 'center' }, { name: 'id', label: 'ID', field: 'id', align: 'center' },
{ {
name: 'subEventType', name: 'lineId',
label: '操作', label: '线路ID',
field: 'subEventType', field: 'lineId',
align: 'center', align: 'center',
}, },
{ {
@ -219,7 +219,7 @@ const columnDefs: QTableColumn[] = [
}, },
{ {
name: 'requestSuccess', name: 'requestSuccess',
label: '请求成功', label: '连接断开',
field: 'requestSuccess', field: 'requestSuccess',
align: 'center', align: 'center',
}, },