Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
0ad97f26
提交
0ad97f26
authored
4月 13, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 修改OSS上传地址
上级
57189eec
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
19 行增加
和
23 行删除
+19
-23
base.ts
src/api/base.ts
+1
-1
AppEditor.vue
src/components/base/AppEditor.vue
+1
-0
AppUpload.vue
src/components/base/AppUpload.vue
+3
-3
ListItem.vue
src/modules/connect/components/ListItem.vue
+2
-2
Index.vue
src/modules/home/views/Index.vue
+4
-6
Image.vue
src/modules/user/views/Image.vue
+6
-9
upload.ts
src/utils/upload.ts
+2
-2
没有找到文件。
src/api/base.ts
浏览文件 @
0ad97f26
...
@@ -23,7 +23,7 @@ export function getSignature() {
...
@@ -23,7 +23,7 @@ export function getSignature() {
// 图片上传
// 图片上传
export
function
uploadFile
(
data
:
Record
<
string
,
any
>
)
{
export
function
uploadFile
(
data
:
Record
<
string
,
any
>
)
{
return
httpRequest
return
httpRequest
.
post
(
'https://webapp-pub.oss-cn-beijing.aliyuncs
.com'
,
data
,
{
.
post
(
data
.
host
||
'https://webapp-pub.ezijing
.com'
,
data
,
{
withCredentials
:
false
,
withCredentials
:
false
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
})
...
...
src/components/base/AppEditor.vue
浏览文件 @
0ad97f26
...
@@ -20,6 +20,7 @@ const ImageUploadHandler = (blobInfo: any) =>
...
@@ -20,6 +20,7 @@ const ImageUploadHandler = (blobInfo: any) =>
const
{
accessid
,
policy
,
signature
,
host
}
=
response
const
{
accessid
,
policy
,
signature
,
host
}
=
response
const
params
=
{
const
params
=
{
key
,
key
,
host
,
OSSAccessKeyId
:
accessid
,
OSSAccessKeyId
:
accessid
,
policy
,
policy
,
signature
,
signature
,
...
...
src/components/base/AppUpload.vue
浏览文件 @
0ad97f26
...
@@ -46,6 +46,7 @@ const handleBeforeUpload = async (file: any) => {
...
@@ -46,6 +46,7 @@ const handleBeforeUpload = async (file: any) => {
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
uploadData
.
value
=
{
uploadData
.
value
=
{
key
,
key
,
host
:
response
.
host
,
OSSAccessKeyId
:
response
.
accessid
,
OSSAccessKeyId
:
response
.
accessid
,
policy
:
response
.
policy
,
policy
:
response
.
policy
,
signature
:
response
.
signature
,
signature
:
response
.
signature
,
...
@@ -118,7 +119,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
...
@@ -118,7 +119,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
<
template
>
<
template
>
<el-upload
<el-upload
action=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com
"
:action=
"uploadData?.host
"
:data=
"uploadData"
:data=
"uploadData"
:show-file-list=
"showFileList"
:show-file-list=
"showFileList"
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
...
@@ -128,8 +129,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
...
@@ -128,8 +129,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
:on-success=
"handleSuccess"
:on-success=
"handleSuccess"
:file-list=
"fileList"
:file-list=
"fileList"
:limit=
"limit"
:limit=
"limit"
class=
"uploader"
class=
"uploader"
>
>
<slot>
<slot>
<template
v-if=
"showFileList"
>
<template
v-if=
"showFileList"
>
<template
v-if=
"$attrs['list-type'] === 'picture-card'"
>
<template
v-if=
"$attrs['list-type'] === 'picture-card'"
>
...
...
src/modules/connect/components/ListItem.vue
浏览文件 @
0ad97f26
...
@@ -32,11 +32,11 @@ const edit = function () {
...
@@ -32,11 +32,11 @@ const edit = function () {
<
template
>
<
template
>
<div
class=
"connect-item"
>
<div
class=
"connect-item"
>
<div
class=
"connect-item__edit"
>
<div
class=
"connect-item__edit"
>
<!--
<img
@
click=
"edit"
src=
"https://webapp-pub.
oss-cn-beijing.aliyuncs
.com/pages/assa/dml_edit.png"
alt=
""
/>
-->
<!--
<img
@
click=
"edit"
src=
"https://webapp-pub.
ezijing
.com/pages/assa/dml_edit.png"
alt=
""
/>
-->
<el-icon
size=
"20"
color=
"#333"
@
click=
"edit"
><Edit
/></el-icon>
<el-icon
size=
"20"
color=
"#333"
@
click=
"edit"
><Edit
/></el-icon>
</div>
</div>
<div
class=
"connect-item__remove"
@
click=
"handleRemove"
>
<div
class=
"connect-item__remove"
@
click=
"handleRemove"
>
<!--
<img
src=
"https://webapp-pub.
oss-cn-beijing.aliyuncs
.com/pages/assa/dml_delete.png"
alt=
""
/>
-->
<!--
<img
src=
"https://webapp-pub.
ezijing
.com/pages/assa/dml_delete.png"
alt=
""
/>
-->
<el-icon
size=
"20"
color=
"#333"
><Delete
/></el-icon>
<el-icon
size=
"20"
color=
"#333"
><Delete
/></el-icon>
</div>
</div>
<div
@
click=
"routerView"
style=
"display: flex; width: 100%; flex-direction: column; align-items: center"
>
<div
@
click=
"routerView"
style=
"display: flex; width: 100%; flex-direction: column; align-items: center"
>
...
...
src/modules/home/views/Index.vue
浏览文件 @
0ad97f26
...
@@ -86,16 +86,14 @@ const getDate = function (date: string) {
...
@@ -86,16 +86,14 @@ const getDate = function (date: string) {
<div
<div
:class=
"item.isActive ? 'content-user_item active' : 'content-user_item'"
:class=
"item.isActive ? 'content-user_item active' : 'content-user_item'"
v-for=
"item in userList"
v-for=
"item in userList"
@
click=
"handleUser(item)"
@
click=
"handleUser(item)"
>
>
<img
<img
:src=
"
:src=
"
item?.gender === '1'
item?.gender === '1'
? 'https://webapp-pub.
oss-cn-beijing.aliyuncs
.com/pages/assa/dml_boy.png'
? 'https://webapp-pub.
ezijing
.com/pages/assa/dml_boy.png'
: 'https://webapp-pub.
oss-cn-beijing.aliyuncs
.com/pages/assa/dml_girl.png'
: 'https://webapp-pub.
ezijing
.com/pages/assa/dml_girl.png'
"
"
alt=
""
alt=
""
/>
/>
<div
class=
"name"
>
{{
item
.
name
}}
</div>
<div
class=
"name"
>
{{
item
.
name
}}
</div>
</div>
</div>
</div>
</div>
...
...
src/modules/user/views/Image.vue
浏览文件 @
0ad97f26
...
@@ -44,12 +44,11 @@ const getDate = function (date: string) {
...
@@ -44,12 +44,11 @@ const getDate = function (date: string) {
<img
<img
:src=
"
:src=
"
data?.gender === '1'
data?.gender === '1'
? 'https://webapp-pub.
oss-cn-beijing.aliyuncs
.com/pages/assa/dml_boy.png'
? 'https://webapp-pub.
ezijing
.com/pages/assa/dml_boy.png'
: 'https://webapp-pub.
oss-cn-beijing.aliyuncs
.com/pages/assa/dml_girl.png'
: 'https://webapp-pub.
ezijing
.com/pages/assa/dml_girl.png'
"
"
alt=
""
alt=
""
/>
/>
<!-- https://webapp-pub.ezijing.com/pages/assa/dml_boy.png -->
<!-- https://webapp-pub.oss-cn-beijing.aliyuncs.com/pages/assa/dml_boy.png -->
<!--
<el-icon
:size=
"50"
color=
"#fff"
><UserFilled
/></el-icon>
-->
<!--
<el-icon
:size=
"50"
color=
"#fff"
><UserFilled
/></el-icon>
-->
</div>
</div>
<h1>
{{
data
?.
name
}}
</h1>
<h1>
{{
data
?.
name
}}
</h1>
...
@@ -119,8 +118,7 @@ const getDate = function (date: string) {
...
@@ -119,8 +118,7 @@ const getDate = function (date: string) {
<el-empty
<el-empty
v-if=
"!data?.static_groups || !data?.static_groups.length"
v-if=
"!data?.static_groups || !data?.static_groups.length"
description=
"暂无数据"
description=
"暂无数据"
:image-size=
"80"
:image-size=
"80"
/>
/>
<div
class=
"scroll"
v-else
>
<div
class=
"scroll"
v-else
>
<el-tag
class=
"ml-2"
type=
"success"
v-for=
"item in data?.static_groups"
>
{{ item }}
</el-tag>
<el-tag
class=
"ml-2"
type=
"success"
v-for=
"item in data?.static_groups"
>
{{ item }}
</el-tag>
</div>
</div>
...
@@ -131,8 +129,7 @@ const getDate = function (date: string) {
...
@@ -131,8 +129,7 @@ const getDate = function (date: string) {
<el-empty
<el-empty
v-if=
"!data?.dynamic_groups || !data?.static_groups.length"
v-if=
"!data?.dynamic_groups || !data?.static_groups.length"
description=
"暂无数据"
description=
"暂无数据"
:image-size=
"80"
:image-size=
"80"
/>
/>
<div
class=
"scroll"
v-else
>
<div
class=
"scroll"
v-else
>
<el-tag
class=
"ml-2"
type=
"success"
v-for=
"item in data?.dynamic_groups"
>
{{ item }}
</el-tag>
<el-tag
class=
"ml-2"
type=
"success"
v-for=
"item in data?.dynamic_groups"
>
{{ item }}
</el-tag>
</div>
</div>
...
...
src/utils/upload.ts
浏览文件 @
0ad97f26
...
@@ -6,6 +6,7 @@ export async function upload(blob: Blob) {
...
@@ -6,6 +6,7 @@ export async function upload(blob: Blob) {
const
response
:
any
=
await
getSignature
()
const
response
:
any
=
await
getSignature
()
const
params
=
{
const
params
=
{
key
,
key
,
host
:
response
.
host
,
OSSAccessKeyId
:
response
.
accessid
,
OSSAccessKeyId
:
response
.
accessid
,
policy
:
response
.
policy
,
policy
:
response
.
policy
,
signature
:
response
.
signature
,
signature
:
response
.
signature
,
...
@@ -15,4 +16,4 @@ export async function upload(blob: Blob) {
...
@@ -15,4 +16,4 @@ export async function upload(blob: Blob) {
}
}
await
uploadFile
(
params
)
await
uploadFile
(
params
)
return
params
.
url
return
params
.
url
}
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论