Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
8f23046b
提交
8f23046b
authored
6月 14, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
一站式上次文件接口修改
上级
3af159c8
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
86 行增加
和
9 行删除
+86
-9
FormArray.js
FormInsertDiy/AffairPage/component/FormArray.js
+7
-0
ImportUtil.js
FormInsertDiy/ImportUtil/ImportUtil.js
+7
-3
DraftEditor.js
one_stop_public/App/DraftEditor.js
+19
-0
DraftEditorCom.js
one_stop_public/App/DraftEditorCom.js
+18
-0
ImportUtil.js
one_stop_public/App/ImportUtil.js
+4
-2
index.jsx
one_stop_public/Base16/index.jsx
+1
-0
ImgUploadCom.jsx
one_stop_public/libs/ImgUploadCom.jsx
+7
-0
UploadCom.js
one_stop_public/libs/UploadCom.js
+7
-0
UploadComDiyForQnZy.js
one_stop_public/libs/UploadComDiyForQnZy.js
+7
-0
VideoUploadCom.jsx
one_stop_public/libs/VideoUploadCom.jsx
+3
-1
index.js
zyd_public/components/ImportUtil2.0/index.js
+6
-3
没有找到文件。
FormInsertDiy/AffairPage/component/FormArray.js
浏览文件 @
8f23046b
...
...
@@ -27,6 +27,7 @@ import ReactQuill from 'react-quill';
import
baseConfig
from
'@/config/config'
;
import
'react-quill/dist/quill.snow.css'
;
import
ButtonUpload
from
'./ButtonUpload'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
const
RadioGroup
=
Radio
.
Group
;
const
Option
=
Select
.
Option
;
...
...
@@ -486,6 +487,12 @@ export default class FormArray extends Component {
accept
=
{
info
.
accept
}
multiple
=
{
info
.
multiple
}
{...
defaultProps
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
defaultFileList
=
{
value
[
info
.
key
]}
name
=
"file"
onChange
=
{({
fileList
})
=>
{
...
...
FormInsertDiy/ImportUtil/ImportUtil.js
浏览文件 @
8f23046b
...
...
@@ -6,6 +6,7 @@ import ButtonDiy from '@/baseComponent/ButtonDiy';
import
config
from
'@/config/config'
;
import
{
connect
}
from
'dva'
;
import
{
exportExcel
}
from
'xlsx-oc'
;
import
{
getToken
}
from
'@/utils/authority'
;
const
Step
=
Steps
.
Step
;
const
TabPane
=
Tabs
.
TabPane
;
...
...
@@ -195,9 +196,12 @@ export default class ImportUtil extends React.PureComponent {
name
:
'file'
,
action
:
config
.
sqlFormsServer
+
'/upload'
,
headers
:
{
authorization
:
'authorization-text'
,
},
headers
:
{
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
accept
:
'.xlsx'
,
showUploadList
:
false
,
onChange
:
(
info
)
=>
{
...
...
one_stop_public/App/DraftEditor.js
浏览文件 @
8f23046b
...
...
@@ -27,6 +27,7 @@ import {
CompositeDecorator
,
RichUtils
,
}
from
'draft-js'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
const
FormItem
=
Form
.
Item
;
function
getBlockStyle
(
block
)
{
...
...
@@ -497,6 +498,12 @@ class AttrForm extends React.Component {
showUploadList
=
{
false
}
name
=
"file"
action
=
{
config
.
uploadUrl
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
{
url
?
(
...
...
@@ -584,6 +591,12 @@ class VideoForm extends React.Component {
showUploadList
=
{
false
}
name
=
"file"
action
=
{
config
.
uploadUrl
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
{
url
?
(
...
...
@@ -670,6 +683,12 @@ class PicForm extends React.Component {
name
=
"file"
action
=
{
config
.
uploadUrl
}
onChange
=
{
this
.
onChange
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
multiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
{
url
?
(
...
...
one_stop_public/App/DraftEditorCom.js
浏览文件 @
8f23046b
...
...
@@ -501,6 +501,12 @@ class AttrForm extends React.Component {
showUploadList
=
{
false
}
name
=
"file"
action
=
{
config
.
uploadUrl
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
{
url
?
(
...
...
@@ -589,6 +595,12 @@ class VideoForm extends React.Component {
name
=
"file"
action
=
{
config
.
uploadUrl
}
onChangemultiple
=
{
false
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
style
=
{{
padding
:
0
}}
>
{
url
?
(
<
video
src
=
{
config
.
httpServer
+
url
}
controls
=
"controls"
>
...
...
@@ -674,6 +686,12 @@ class PicForm extends React.Component {
name
=
"file"
action
=
{
config
.
uploadUrl
}
onChange
=
{
this
.
onChange
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
multiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
{
url
?
(
...
...
one_stop_public/App/ImportUtil.js
浏览文件 @
8f23046b
...
...
@@ -266,9 +266,11 @@ export default class ImportUtil extends React.PureComponent {
const
props
=
{
name
:
'file'
,
action
:
config
.
uploadUrl
,
headers
:
{
authorization
:
'authorization-text'
,
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
accept
:
'.xlsx'
,
showUploadList
:
false
,
...
...
one_stop_public/Base16/index.jsx
浏览文件 @
8f23046b
...
...
@@ -124,6 +124,7 @@ export function requestFileInfo(url, datas) {
if
(
isJSON
(
res
))
{
res
=
JSON
.
parse
(
res
);
}
// console.log(res);
}
return
res
;
});
...
...
one_stop_public/libs/ImgUploadCom.jsx
浏览文件 @
8f23046b
...
...
@@ -2,6 +2,7 @@ import React from 'react';
import
{
Upload
,
message
}
from
'antd'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
{
zipImage
}
from
"@/webPublic/zyd_public/utils/handlePhoto"
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
export
default
class
ImgUploadCom
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -55,6 +56,12 @@ export default class ImgUploadCom extends React.Component {
disabled=
{
disabled
}
accept=
{
'image/*'
}
url=
{
url
}
headers=
{
{
Authorization
:
`bearer ${getToken()}`
,
}
}
data=
{
{
token
:
getToken
(),
}
}
beforeUpload=
{
(
file
)
=>
{
return
zipImage
(
file
,
4
);
// 图片压缩函数. 超过fileSizeLimitMb兆的图片 直接压缩成原来的 30% 如果后续有其他需求考虑 做成全局配置项 配置可以压缩的图片的范围
...
...
one_stop_public/libs/UploadCom.js
浏览文件 @
8f23046b
...
...
@@ -6,6 +6,7 @@ import config from '@/webPublic/one_stop_public/config';
import
styles
from
'./style.less'
;
import
UploadComDiyForQnZy
from
'@/webPublic/one_stop_public/libs/UploadComDiyForQnZy'
;
import
Viewer
from
'react-viewer'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
message
.
config
({
top
:
300
,
...
...
@@ -174,6 +175,12 @@ class UploadCom extends React.Component {
name
:
'file'
,
multiple
:
isMultiple
,
accept
:
accept
,
headers
:
{
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
action
:
config
.
uploadUrl
,
showUploadList
:
false
,
onChange
:
this
.
changeUrl
,
...
...
one_stop_public/libs/UploadComDiyForQnZy.js
浏览文件 @
8f23046b
...
...
@@ -5,6 +5,7 @@ import config from "@/webPublic/one_stop_public/config";
import
styles
from
"./style.less"
;
import
{
checkIsImage
}
from
"./UploadCom"
;
import
Viewer
from
"react-viewer"
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
// 为黔南职院单独写的 上传组件 用于 bug 20576 个人就业信息/求职创业补贴申报,201801010006 119242 上传图片加限制,跟签约派遣上传图片加限制一样
...
...
@@ -104,6 +105,12 @@ export default class UploadComDiyForQnZy extends React.Component {
showUploadList
:
false
,
onChange
:
this
.
changeUrl
,
beforeUpload
:
this
.
beforeUpload
,
headers
:
{
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
};
return
(
...
...
one_stop_public/libs/VideoUploadCom.jsx
浏览文件 @
8f23046b
...
...
@@ -99,7 +99,6 @@ export default class VideoUploadCom extends React.Component {
render
()
{
const
{
json
,
disabled
}
=
this
.
props
;
const
{
url
}
=
this
.
state
;
console
.
log
(
url
);
return
(
<
Upload
.
Dragger
disabled=
{
disabled
}
...
...
@@ -109,6 +108,9 @@ export default class VideoUploadCom extends React.Component {
name=
"file"
action=
{
configService
+
'/uploadFileApi/upload'
}
onChange=
{
this
.
changeUrl
}
headers=
{
{
Authorization
:
`bearer ${getToken()}`
,
}
}
multiple=
{
false
}
data=
{
{
isConvert
:
true
,
...
...
zyd_public/components/ImportUtil2.0/index.js
浏览文件 @
8f23046b
...
...
@@ -362,9 +362,12 @@ export default class ImportUtil extends React.PureComponent {
const
props
=
{
name
:
'file'
,
action
:
getUploadUrl
(),
headers
:
{
authorization
:
'authorization-text'
,
},
headers
:
{
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
accept
:
'.xlsx'
,
showUploadList
:
false
,
onChange
:
(
info
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论