修改bug
This commit is contained in:
parent
4b455791f3
commit
48f5fb2d9a
|
|
@ -42,7 +42,6 @@
|
||||||
:bodyStyle="{ padding: 0, display: 'flex', justifyContent: 'center', alignItems: 'center' }"
|
:bodyStyle="{ padding: 0, display: 'flex', justifyContent: 'center', alignItems: 'center' }"
|
||||||
:footer="null"
|
:footer="null"
|
||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
:style="{ maxWidth: '90vw' }"
|
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
ref="previewImgRef"
|
ref="previewImgRef"
|
||||||
|
|
@ -256,10 +255,21 @@
|
||||||
/**
|
/**
|
||||||
* 预览图片
|
* 预览图片
|
||||||
*/
|
*/
|
||||||
function handlePreview(file) {
|
async function handlePreview(file) {
|
||||||
previewImage.value = file.url || file.thumbUrl;
|
if (!file.url && !file.preview) {
|
||||||
|
file.preview = (await getBase64(file.originFileObj)) as string;
|
||||||
|
}
|
||||||
|
previewImage.value = file.url || file.preview;
|
||||||
previewVisible.value = true;
|
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() {
|
function getAvatarView() {
|
||||||
if (uploadFileList.length > 0) {
|
if (uploadFileList.length > 0) {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<span>{{ text }}</span>
|
<span>{{ text }}</span>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-upload>
|
</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)})">
|
<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)" />
|
<Icon icon="ant-design:search-outlined" style="color: rgb(140, 134, 134)" />
|
||||||
<span class="ant-upload-text" style="color: rgb(140, 134, 134)" >预览</span>
|
<span class="ant-upload-text" style="color: rgb(140, 134, 134)" >预览</span>
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
//每页条数
|
//每页条数
|
||||||
const pageSize = ref<number>(140);
|
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 searchIconValue = ref<string>('');
|
||||||
const { clipboardRef, isSuccessRef } = useCopyToClipboard(props.value);
|
const { clipboardRef, isSuccessRef } = useCopyToClipboard(props.value);
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-drawer-body {
|
||||||
|
background: url(../resource/img/modalback.png);
|
||||||
|
}
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
width: 520px;
|
width: 520px;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
|
||||||
|
|
@ -135,10 +135,10 @@ img, video {
|
||||||
html[data-theme='light'] {
|
html[data-theme='light'] {
|
||||||
.jeecg-form-detail-effect {
|
.jeecg-form-detail-effect {
|
||||||
*:not(.ant-select-selection-placeholder){
|
*:not(.ant-select-selection-placeholder){
|
||||||
color: #606266!important;
|
// color: #606266!important;
|
||||||
}
|
}
|
||||||
.ant-row label {
|
.ant-row label {
|
||||||
color: #797c81 !important;
|
// color: #797c81 !important;
|
||||||
}
|
}
|
||||||
.ant-select-selector,
|
.ant-select-selector,
|
||||||
.ant-btn,
|
.ant-btn,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Header :class="getHeaderClass" style="background-image: url('../resource/img/bj.png');">
|
<Header :class="getHeaderClass" class="headClass">
|
||||||
<!-- left start -->
|
<!-- left start -->
|
||||||
<div :class="`${prefixCls}-left`" >
|
<div :class="`${prefixCls}-left`" >
|
||||||
<!-- logo -->
|
<!-- logo -->
|
||||||
|
|
@ -261,4 +261,10 @@
|
||||||
border-bottom: 0px;
|
border-bottom: 0px;
|
||||||
border-left: 0px;
|
border-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.headClass{
|
||||||
|
background-image: url('../resource/img/bj.png') !important;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ const pagination = reactive({
|
||||||
total: 0,
|
total: 0,
|
||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
showQuickJumper: true,
|
showQuickJumper: true,
|
||||||
pageSizeOptions: ['10', '20', '30', '50'],
|
pageSizeOptions: ['15', '50', '80', '100'],
|
||||||
showTotal: total => `共 ${total} 条`
|
showTotal: total => `共 ${total} 条`
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ const formData = reactive<Record<string, any>>({
|
||||||
id: '',
|
id: '',
|
||||||
issueType: '',
|
issueType: '',
|
||||||
content: '',
|
content: '',
|
||||||
|
createTime: '',
|
||||||
});
|
});
|
||||||
const { createMessage } = useMessage();
|
const { createMessage } = useMessage();
|
||||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||||
|
|
|
||||||
|
|
@ -425,4 +425,7 @@ defineExpose({
|
||||||
.antd-modal-form {
|
.antd-modal-form {
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
}
|
}
|
||||||
|
.ant-form-item-label{
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -249,3 +249,4 @@ function searchReset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,6 @@
|
||||||
</a-drawer>
|
</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"
|
<a-drawer :title="`反馈`" :width="'70vw'" v-model:visible="orgFankuiVisible" :closable="true"
|
||||||
:footer-style="{ textAlign: 'right' }" @close="handleOrgFankuiCancel">
|
:footer-style="{ textAlign: 'right' }" @close="handleOrgFankuiCancel">
|
||||||
|
|
|
||||||
|
|
@ -222,9 +222,3 @@ function searchReset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="less">
|
|
||||||
.ant-drawer-body {
|
|
||||||
background: url(../resource/img/modalback.png);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Loading…
Reference in New Issue