修改bug
This commit is contained in:
parent
4b455791f3
commit
48f5fb2d9a
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
.ant-drawer-body {
|
||||
background: url(../resource/img/modalback.png);
|
||||
}
|
||||
.ant-modal {
|
||||
width: 520px;
|
||||
padding-bottom: 0;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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} 条`
|
||||
});
|
||||
|
||||
|
|
|
@ -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 } });
|
||||
|
|
|
@ -425,4 +425,7 @@ defineExpose({
|
|||
.antd-modal-form {
|
||||
padding: 14px;
|
||||
}
|
||||
.ant-form-item-label{
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -249,3 +249,4 @@ function searchReset() {
|
|||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -222,9 +222,3 @@ function searchReset() {
|
|||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less">
|
||||
.ant-drawer-body {
|
||||
background: url(../resource/img/modalback.png);
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue