修改bug

This commit is contained in:
yangjun 2025-08-08 10:08:49 +08:00
parent 4b455791f3
commit 48f5fb2d9a
12 changed files with 34 additions and 22 deletions

View File

@ -42,7 +42,6 @@
:bodyStyle="{ padding: 0, display: 'flex', justifyContent: 'center', alignItems: 'center' }"
:footer="null"
@cancel="handleCancel"
:style="{ maxWidth: '90vw' }"
>
<img
ref="previewImgRef"
@ -256,10 +255,21 @@
/**
* 预览图片
*/
function handlePreview(file) {
previewImage.value = file.url || file.thumbUrl;
async function handlePreview(file) {
if (!file.url && !file.preview) {
file.preview = (await getBase64(file.originFileObj)) as string;
}
previewImage.value = file.url || file.preview;
previewVisible.value = true;
}
function getBase64(file: File) {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = () => resolve(reader.result);
reader.onerror = error => reject(error);
});
}
function getAvatarView() {
if (uploadFileList.length > 0) {

View File

@ -1,6 +1,6 @@
<template>
<div ref="containerRef" :class="`${prefixCls}-container`">
<a-upload
<a-upload
:headers="headers"
:multiple="multiple"
:action="uploadUrl"
@ -22,7 +22,7 @@
<span>{{ text }}</span>
</a-button>
</a-upload>
<template v-if="bindProps.fileType=='pdf' && maxCount=='1'">
<template v-if="bindProps.fileType=='pdf' && maxCount=='1' && bindProps.value">
<a style="border:1px solid #d9d9d9;width:60px;text-align:center;border-radius:4px;padding:2px 5px;" @click="handleView({url:getFileAccessHttpUrl(bindProps.value)})">
<Icon icon="ant-design:search-outlined" style="color: rgb(140, 134, 134)" />
<span class="ant-upload-text" style="color: rgb(140, 134, 134)" >预览</span>

View File

@ -71,7 +71,7 @@
//
const pageSize = ref<number>(140);
//
const pageSizeOptions = ref<any>(['10', '20', '50', '100', '140']);
const pageSizeOptions = ref<any>(['15', '50', '80', '100']);
//
const searchIconValue = ref<string>('');
const { clipboardRef, isSuccessRef } = useCopyToClipboard(props.value);

View File

@ -27,6 +27,9 @@
}
}
.ant-drawer-body {
background: url(../resource/img/modalback.png);
}
.ant-modal {
width: 520px;
padding-bottom: 0;

View File

@ -135,10 +135,10 @@ img, video {
html[data-theme='light'] {
.jeecg-form-detail-effect {
*:not(.ant-select-selection-placeholder){
color: #606266!important;
// color: #606266!important;
}
.ant-row label {
color: #797c81 !important;
// color: #797c81 !important;
}
.ant-select-selector,
.ant-btn,

View File

@ -1,5 +1,5 @@
<template>
<Header :class="getHeaderClass" style="background-image: url('../resource/img/bj.png');">
<Header :class="getHeaderClass" class="headClass">
<!-- left start -->
<div :class="`${prefixCls}-left`" >
<!-- logo -->
@ -261,4 +261,10 @@
border-bottom: 0px;
border-left: 0px;
}
.headClass{
background-image: url('../resource/img/bj.png') !important;
background-repeat: no-repeat;
background-size: 100% auto;
}
</style>

View File

@ -117,7 +117,7 @@ const pagination = reactive({
total: 0,
showSizeChanger: true,
showQuickJumper: true,
pageSizeOptions: ['10', '20', '30', '50'],
pageSizeOptions: ['15', '50', '80', '100'],
showTotal: total => `${total}`
});

View File

@ -53,6 +53,7 @@ const formData = reactive<Record<string, any>>({
id: '',
issueType: '',
content: '',
createTime: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });

View File

@ -425,4 +425,7 @@ defineExpose({
.antd-modal-form {
padding: 14px;
}
.ant-form-item-label{
color: white;
}
</style>

View File

@ -249,3 +249,4 @@ function searchReset() {
}
}
</style>

View File

@ -31,12 +31,6 @@
</a-drawer>
<j-modal title="反馈" :width="'70vw'" :visible="orgFankuiVisible" @ok="handleFankuiOk" @cancel="handleOrgFankuiCancel" cancelText="关闭">
<!-- <template #footer>
<a-button @click="handleOrgFankuiCancel">关闭</a-button>
</template> -->
</j-modal>
<a-drawer :title="`反馈`" :width="'70vw'" v-model:visible="orgFankuiVisible" :closable="true"
:footer-style="{ textAlign: 'right' }" @close="handleOrgFankuiCancel">

View File

@ -222,9 +222,3 @@ function searchReset() {
}
}
</style>
<style lang="less">
.ant-drawer-body {
background: url(../resource/img/modalback.png);
}
</style>