上传文件

This commit is contained in:
13218645326 2023-12-08 17:49:14 +08:00
parent 61a041c474
commit 223f796e30
5 changed files with 24 additions and 3 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM nginx:latest
RUN mkdir -p /zlpt-front
WORKDIR /zlpt-front
COPY zrpt_front-sit/assets /zlpt-front/assets
COPY zrpt_front-sit/favicon.ico /zlpt-front/favicon.ico
COPY zrpt_front-sit/index.html /zlpt-front/index.html
RUN rm /usr/share/nginx/html/*
RUN cp -r /zlpt-front/* /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

2
components.d.ts vendored
View File

@ -8,6 +8,8 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']

2
env/.env.dev vendored
View File

@ -13,7 +13,7 @@ VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
# VITE_proxyTarget = 'http://10.40.92.253:8080' # 牛 (个人中心 基础信息企业申请认证) # VITE_proxyTarget = 'http://10.40.92.253:8080' # 牛 (个人中心 基础信息企业申请认证)
VITE_UPLOAD_URL='apiUpload

View File

@ -31,12 +31,12 @@
import { ref, nextTick } from 'vue' import { ref, nextTick } from 'vue'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import { Base64 } from 'js-base64' import { Base64 } from 'js-base64'
import {apiUpload} from "http/api/myInfo"
const props = defineProps({ const props = defineProps({
actionUrl: { actionUrl: {
// //
type: String, type: String,
default: '' default: ""
}, },
width: { width: {
// //

View File

@ -83,6 +83,7 @@
<!-- 表格 --> <!-- 表格 -->
<el-table <el-table
:data="tableData" :data="tableData"
show-overflow-tooltip
:header-cell-style="{ :header-cell-style="{
background: '#3E98FF', background: '#3E98FF',
color: '#fff' color: '#fff'