修复bug
This commit is contained in:
parent
fb00b75dba
commit
2b708d180c
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@ -135,6 +135,9 @@ importers:
|
||||
prettier:
|
||||
specifier: ~3.0.2
|
||||
version: 3.0.3
|
||||
resize-observer-polyfill:
|
||||
specifier: ^1.5.1
|
||||
version: 1.5.1
|
||||
rimraf:
|
||||
specifier: ~5.0.1
|
||||
version: 5.0.10
|
||||
|
||||
@ -109,7 +109,7 @@
|
||||
<span class="state-value" :class="{ off: record.state === 0, on: record.state === 1 }">{{ record.state === 1 ? '开' : '关' }}</span>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'imageUrl'">
|
||||
<a-image class="image-url" :src="record.imageUrl" alt="" />
|
||||
<a-image v-if="record.imageUrl" class="image-url" :src="record.imageUrl" :height="64" alt="" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<div class="smart-table-operate">
|
||||
|
||||
@ -212,7 +212,7 @@
|
||||
}
|
||||
|
||||
function handleImageUrlChange(fileList) {
|
||||
formState.imageUrl = fileList[0]?.fileUrl || undefined;
|
||||
formState.imageUrl = fileList[0]?.fileUrl || '';
|
||||
}
|
||||
|
||||
// ----------------------- form 表单 ajax 操作 ---------------------
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
<span>{{ index + 1 }}</span>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'imageUrl'">
|
||||
<a-image v-if="record.imageUrl" :src="record.imageUrl" :height="80" />
|
||||
<a-image v-if="record.imageUrl" :src="record.imageUrl" :height="64" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<div class="smart-table-operate">
|
||||
|
||||
@ -259,7 +259,7 @@
|
||||
}
|
||||
|
||||
function handleCoverUrlChange(fileList) {
|
||||
formState.coverUrl = fileList[0]?.fileUrl || undefined;
|
||||
formState.coverUrl = fileList[0]?.fileUrl || '';
|
||||
}
|
||||
|
||||
// ----------------------- form 表单 ajax 操作 ---------------------
|
||||
|
||||
@ -35,10 +35,9 @@
|
||||
</a-button-group>
|
||||
</a-form-item>
|
||||
</a-row>
|
||||
<a-row class="smart-query-form-row"> </a-row>
|
||||
</a-form>
|
||||
|
||||
<a-card size="small" :bordered="false">
|
||||
<a-card size="small" :bordered="false" class="smart-table-card">
|
||||
<a-tabs @change="changeNotViewFlag" size="small">
|
||||
<a-tab-pane :key="0" tab="全部" />
|
||||
<a-tab-pane :key="1" tab="未读" />
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
<span class="state-value" :class="{ off: record.state === 0, on: record.state === 1 }">{{ record.state === 1 ? '在线' : '离线' }}</span>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'imageUrl'">
|
||||
<a-image class="image-url" :src="record.imageUrl" alt="" />
|
||||
<a-image v-if="record.imageUrl" class="image-url" :src="record.imageUrl" :height="64" alt="" />
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<div class="smart-table-operate">
|
||||
|
||||
@ -231,7 +231,7 @@
|
||||
}
|
||||
|
||||
function handleImageUrlChange(fileList) {
|
||||
formState.imageUrl = fileList[0]?.fileUrl || undefined;
|
||||
formState.imageUrl = fileList[0]?.fileUrl || '';
|
||||
}
|
||||
|
||||
// ----------------------- form 表单 ajax 操作 ---------------------
|
||||
|
||||
@ -92,7 +92,11 @@
|
||||
margin-left: 10px;
|
||||
background: #ffffff;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 8px;
|
||||
:deep(.smart-table-card) {
|
||||
height: calc(100vh - 260px) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user