调整
This commit is contained in:
BIN
src/assets/word.png
Normal file
BIN
src/assets/word.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
@@ -15,6 +15,7 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
|
:selection="selection"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<div class="ele-cell">
|
<div class="ele-cell">
|
||||||
@@ -33,6 +34,19 @@
|
|||||||
<span>上传视频</span>
|
<span>上传视频</span>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
|
<a-upload
|
||||||
|
v-else-if="type == 'file'"
|
||||||
|
:show-upload-list="false"
|
||||||
|
accept="*"
|
||||||
|
:customRequest="onUpload"
|
||||||
|
>
|
||||||
|
<a-button type="primary" class="ele-btn-icon">
|
||||||
|
<template #icon>
|
||||||
|
<UploadOutlined />
|
||||||
|
</template>
|
||||||
|
<span>上传文件</span>
|
||||||
|
</a-button>
|
||||||
|
</a-upload>
|
||||||
<a-upload
|
<a-upload
|
||||||
v-else
|
v-else
|
||||||
:show-upload-list="false"
|
:show-upload-list="false"
|
||||||
@@ -222,6 +236,7 @@
|
|||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const selection = ref([])
|
||||||
// 表格数据源
|
// 表格数据源
|
||||||
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
|
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
|
||||||
where = {};
|
where = {};
|
||||||
|
|||||||
@@ -1,38 +1,40 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-image-preview-group>
|
<div style="display: inline">
|
||||||
<a-space>
|
<a-image-preview-group v-if="type !== 'file'">
|
||||||
<template v-for="(item, index) in data" :key="index">
|
<a-space>
|
||||||
<div class="image-upload-item" v-if="isImage(item.url)">
|
<template v-for="(item, index) in data" :key="index">
|
||||||
<a-image
|
<div class="image-upload-item" v-if="isImage(item.url)">
|
||||||
:style="{
|
<a-image
|
||||||
border: '1px dashed var(--grey-7)',
|
:style="{
|
||||||
width: width + 'px',
|
border: '1px dashed var(--grey-7)',
|
||||||
height: height + 'px'
|
width: width + 'px',
|
||||||
}"
|
height: height + 'px'
|
||||||
:src="item.url"
|
}"
|
||||||
/>
|
:src="item.url"
|
||||||
<a class="image-upload-close" @click="onDeleteItem(index)">
|
/>
|
||||||
<CloseOutlined />
|
<a class="image-upload-close" @click="onDeleteItem(index)">
|
||||||
</a>
|
<CloseOutlined />
|
||||||
</div>
|
</a>
|
||||||
<div v-else class="image-upload-item">
|
</div>
|
||||||
<YoutubeOutlined />
|
<div v-else class="image-upload-item">
|
||||||
<a class="image-upload-close" @click="onDeleteItem(index)">
|
<YoutubeOutlined />
|
||||||
<CloseOutlined />
|
<a class="image-upload-close" @click="onDeleteItem(index)">
|
||||||
</a>
|
<CloseOutlined />
|
||||||
</div>
|
</a>
|
||||||
</template>
|
</div>
|
||||||
<a-button
|
</template>
|
||||||
@click="openEdit"
|
<a-button
|
||||||
v-if="data?.length < limit"
|
@click="openEdit"
|
||||||
:style="{ width: width + 'px', height: height + 'px' }"
|
v-if="data?.length < limit"
|
||||||
class="select-picture-btn ele-text-placeholder"
|
:style="{ width: width + 'px', height: height + 'px' }"
|
||||||
>
|
class="select-picture-btn ele-text-placeholder"
|
||||||
<PlusOutlined />
|
>
|
||||||
</a-button>
|
<PlusOutlined />
|
||||||
</a-space>
|
</a-button>
|
||||||
</a-image-preview-group>
|
</a-space>
|
||||||
|
</a-image-preview-group>
|
||||||
|
<a-button v-else @click="openEdit" type="primary">选择文件</a-button>
|
||||||
|
</div>
|
||||||
<!-- 选择弹窗 -->
|
<!-- 选择弹窗 -->
|
||||||
<SelectData
|
<SelectData
|
||||||
v-model:visible="showEdit"
|
v-model:visible="showEdit"
|
||||||
@@ -44,11 +46,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { PlusOutlined, CloseOutlined, YoutubeOutlined } from '@ant-design/icons-vue';
|
import {
|
||||||
|
PlusOutlined,
|
||||||
|
CloseOutlined,
|
||||||
|
YoutubeOutlined
|
||||||
|
} from '@ant-design/icons-vue';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import SelectData from './components/select-data.vue';
|
import SelectData from './components/select-data.vue';
|
||||||
import { FileRecord } from '@/api/system/file/model';
|
import { FileRecord } from '@/api/system/file/model';
|
||||||
import { isImage } from "@/utils/common";
|
import { isImage } from '@/utils/common';
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -99,7 +99,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a class="action-btn bg-blue-500" @click="openReport(record)"
|
<a class="action-btn bg-blue-500" @click="openReport(record)"
|
||||||
>1生成报告</a
|
>1生成审计方案</a
|
||||||
>
|
>
|
||||||
<a class="action-btn bg-green-600" @click="openReportContent(record)">2审计内容</a>
|
<a class="action-btn bg-green-600" @click="openReportContent(record)">2审计内容</a>
|
||||||
<a class="action-btn bg-red-600" @click="openAuditCheck(record)"
|
<a class="action-btn bg-red-600" @click="openAuditCheck(record)"
|
||||||
@@ -578,7 +578,7 @@
|
|||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'action',
|
key: 'action',
|
||||||
width: 220,
|
width: 260,
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
hideInSetting: true
|
hideInSetting: true
|
||||||
|
|||||||
Reference in New Issue
Block a user