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 个修改的文件
包含
82 行增加
和
5 行删除
+82
-5
FormArray.js
FormInsertDiy/AffairPage/component/FormArray.js
+7
-0
ImportUtil.js
FormInsertDiy/ImportUtil/ImportUtil.js
+5
-1
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
+4
-1
没有找到文件。
FormInsertDiy/AffairPage/component/FormArray.js
浏览文件 @
8f23046b
...
@@ -27,6 +27,7 @@ import ReactQuill from 'react-quill';
...
@@ -27,6 +27,7 @@ import ReactQuill from 'react-quill';
import
baseConfig
from
'@/config/config'
;
import
baseConfig
from
'@/config/config'
;
import
'react-quill/dist/quill.snow.css'
;
import
'react-quill/dist/quill.snow.css'
;
import
ButtonUpload
from
'./ButtonUpload'
;
import
ButtonUpload
from
'./ButtonUpload'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
const
RadioGroup
=
Radio
.
Group
;
const
RadioGroup
=
Radio
.
Group
;
const
Option
=
Select
.
Option
;
const
Option
=
Select
.
Option
;
...
@@ -486,6 +487,12 @@ export default class FormArray extends Component {
...
@@ -486,6 +487,12 @@ export default class FormArray extends Component {
accept
=
{
info
.
accept
}
accept
=
{
info
.
accept
}
multiple
=
{
info
.
multiple
}
multiple
=
{
info
.
multiple
}
{...
defaultProps
}
{...
defaultProps
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
defaultFileList
=
{
value
[
info
.
key
]}
defaultFileList
=
{
value
[
info
.
key
]}
name
=
"file"
name
=
"file"
onChange
=
{({
fileList
})
=>
{
onChange
=
{({
fileList
})
=>
{
...
...
FormInsertDiy/ImportUtil/ImportUtil.js
浏览文件 @
8f23046b
...
@@ -6,6 +6,7 @@ import ButtonDiy from '@/baseComponent/ButtonDiy';
...
@@ -6,6 +6,7 @@ import ButtonDiy from '@/baseComponent/ButtonDiy';
import
config
from
'@/config/config'
;
import
config
from
'@/config/config'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
exportExcel
}
from
'xlsx-oc'
;
import
{
exportExcel
}
from
'xlsx-oc'
;
import
{
getToken
}
from
'@/utils/authority'
;
const
Step
=
Steps
.
Step
;
const
Step
=
Steps
.
Step
;
const
TabPane
=
Tabs
.
TabPane
;
const
TabPane
=
Tabs
.
TabPane
;
...
@@ -196,7 +197,10 @@ export default class ImportUtil extends React.PureComponent {
...
@@ -196,7 +197,10 @@ export default class ImportUtil extends React.PureComponent {
action
:
config
.
sqlFormsServer
+
'/upload'
,
action
:
config
.
sqlFormsServer
+
'/upload'
,
headers
:
{
headers
:
{
authorization
:
'authorization-text'
,
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
},
accept
:
'.xlsx'
,
accept
:
'.xlsx'
,
showUploadList
:
false
,
showUploadList
:
false
,
...
...
one_stop_public/App/DraftEditor.js
浏览文件 @
8f23046b
...
@@ -27,6 +27,7 @@ import {
...
@@ -27,6 +27,7 @@ import {
CompositeDecorator
,
CompositeDecorator
,
RichUtils
,
RichUtils
,
}
from
'draft-js'
;
}
from
'draft-js'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
function
getBlockStyle
(
block
)
{
function
getBlockStyle
(
block
)
{
...
@@ -497,6 +498,12 @@ class AttrForm extends React.Component {
...
@@ -497,6 +498,12 @@ class AttrForm extends React.Component {
showUploadList
=
{
false
}
showUploadList
=
{
false
}
name
=
"file"
name
=
"file"
action
=
{
config
.
uploadUrl
}
action
=
{
config
.
uploadUrl
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
...
@@ -584,6 +591,12 @@ class VideoForm extends React.Component {
...
@@ -584,6 +591,12 @@ class VideoForm extends React.Component {
showUploadList
=
{
false
}
showUploadList
=
{
false
}
name
=
"file"
name
=
"file"
action
=
{
config
.
uploadUrl
}
action
=
{
config
.
uploadUrl
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
...
@@ -670,6 +683,12 @@ class PicForm extends React.Component {
...
@@ -670,6 +683,12 @@ class PicForm extends React.Component {
name
=
"file"
name
=
"file"
action
=
{
config
.
uploadUrl
}
action
=
{
config
.
uploadUrl
}
onChange
=
{
this
.
onChange
}
onChange
=
{
this
.
onChange
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
multiple
=
{
false
}
multiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
...
...
one_stop_public/App/DraftEditorCom.js
浏览文件 @
8f23046b
...
@@ -501,6 +501,12 @@ class AttrForm extends React.Component {
...
@@ -501,6 +501,12 @@ class AttrForm extends React.Component {
showUploadList
=
{
false
}
showUploadList
=
{
false
}
name
=
"file"
name
=
"file"
action
=
{
config
.
uploadUrl
}
action
=
{
config
.
uploadUrl
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
...
@@ -589,6 +595,12 @@ class VideoForm extends React.Component {
...
@@ -589,6 +595,12 @@ class VideoForm extends React.Component {
name
=
"file"
name
=
"file"
action
=
{
config
.
uploadUrl
}
action
=
{
config
.
uploadUrl
}
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
video
src
=
{
config
.
httpServer
+
url
}
controls
=
"controls"
>
<
video
src
=
{
config
.
httpServer
+
url
}
controls
=
"controls"
>
...
@@ -674,6 +686,12 @@ class PicForm extends React.Component {
...
@@ -674,6 +686,12 @@ class PicForm extends React.Component {
name
=
"file"
name
=
"file"
action
=
{
config
.
uploadUrl
}
action
=
{
config
.
uploadUrl
}
onChange
=
{
this
.
onChange
}
onChange
=
{
this
.
onChange
}
headers
=
{{
Authorization
:
`bearer
${
getToken
()}
`
,
}}
data
=
{{
token
:
getToken
(),
}}
multiple
=
{
false
}
multiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
...
...
one_stop_public/App/ImportUtil.js
浏览文件 @
8f23046b
...
@@ -266,9 +266,11 @@ export default class ImportUtil extends React.PureComponent {
...
@@ -266,9 +266,11 @@ export default class ImportUtil extends React.PureComponent {
const
props
=
{
const
props
=
{
name
:
'file'
,
name
:
'file'
,
action
:
config
.
uploadUrl
,
action
:
config
.
uploadUrl
,
headers
:
{
headers
:
{
authorization
:
'authorization-text'
,
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
},
accept
:
'.xlsx'
,
accept
:
'.xlsx'
,
showUploadList
:
false
,
showUploadList
:
false
,
...
...
one_stop_public/Base16/index.jsx
浏览文件 @
8f23046b
...
@@ -124,6 +124,7 @@ export function requestFileInfo(url, datas) {
...
@@ -124,6 +124,7 @@ export function requestFileInfo(url, datas) {
if
(
isJSON
(
res
))
{
if
(
isJSON
(
res
))
{
res
=
JSON
.
parse
(
res
);
res
=
JSON
.
parse
(
res
);
}
}
// console.log(res);
}
}
return
res
;
return
res
;
});
});
...
...
one_stop_public/libs/ImgUploadCom.jsx
浏览文件 @
8f23046b
...
@@ -2,6 +2,7 @@ import React from 'react';
...
@@ -2,6 +2,7 @@ import React from 'react';
import
{
Upload
,
message
}
from
'antd'
;
import
{
Upload
,
message
}
from
'antd'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
{
zipImage
}
from
"@/webPublic/zyd_public/utils/handlePhoto"
;
import
{
zipImage
}
from
"@/webPublic/zyd_public/utils/handlePhoto"
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
export
default
class
ImgUploadCom
extends
React
.
Component
{
export
default
class
ImgUploadCom
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -55,6 +56,12 @@ export default class ImgUploadCom extends React.Component {
...
@@ -55,6 +56,12 @@ export default class ImgUploadCom extends React.Component {
disabled=
{
disabled
}
disabled=
{
disabled
}
accept=
{
'image/*'
}
accept=
{
'image/*'
}
url=
{
url
}
url=
{
url
}
headers=
{
{
Authorization
:
`bearer ${getToken()}`
,
}
}
data=
{
{
token
:
getToken
(),
}
}
beforeUpload=
{
(
file
)
=>
{
beforeUpload=
{
(
file
)
=>
{
return
zipImage
(
file
,
4
);
return
zipImage
(
file
,
4
);
// 图片压缩函数. 超过fileSizeLimitMb兆的图片 直接压缩成原来的 30% 如果后续有其他需求考虑 做成全局配置项 配置可以压缩的图片的范围
// 图片压缩函数. 超过fileSizeLimitMb兆的图片 直接压缩成原来的 30% 如果后续有其他需求考虑 做成全局配置项 配置可以压缩的图片的范围
...
...
one_stop_public/libs/UploadCom.js
浏览文件 @
8f23046b
...
@@ -6,6 +6,7 @@ import config from '@/webPublic/one_stop_public/config';
...
@@ -6,6 +6,7 @@ import config from '@/webPublic/one_stop_public/config';
import
styles
from
'./style.less'
;
import
styles
from
'./style.less'
;
import
UploadComDiyForQnZy
from
'@/webPublic/one_stop_public/libs/UploadComDiyForQnZy'
;
import
UploadComDiyForQnZy
from
'@/webPublic/one_stop_public/libs/UploadComDiyForQnZy'
;
import
Viewer
from
'react-viewer'
;
import
Viewer
from
'react-viewer'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
message
.
config
({
message
.
config
({
top
:
300
,
top
:
300
,
...
@@ -174,6 +175,12 @@ class UploadCom extends React.Component {
...
@@ -174,6 +175,12 @@ class UploadCom extends React.Component {
name
:
'file'
,
name
:
'file'
,
multiple
:
isMultiple
,
multiple
:
isMultiple
,
accept
:
accept
,
accept
:
accept
,
headers
:
{
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
action
:
config
.
uploadUrl
,
action
:
config
.
uploadUrl
,
showUploadList
:
false
,
showUploadList
:
false
,
onChange
:
this
.
changeUrl
,
onChange
:
this
.
changeUrl
,
...
...
one_stop_public/libs/UploadComDiyForQnZy.js
浏览文件 @
8f23046b
...
@@ -5,6 +5,7 @@ import config from "@/webPublic/one_stop_public/config";
...
@@ -5,6 +5,7 @@ import config from "@/webPublic/one_stop_public/config";
import
styles
from
"./style.less"
;
import
styles
from
"./style.less"
;
import
{
checkIsImage
}
from
"./UploadCom"
;
import
{
checkIsImage
}
from
"./UploadCom"
;
import
Viewer
from
"react-viewer"
;
import
Viewer
from
"react-viewer"
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
// 为黔南职院单独写的 上传组件 用于 bug 20576 个人就业信息/求职创业补贴申报,201801010006 119242 上传图片加限制,跟签约派遣上传图片加限制一样
// 为黔南职院单独写的 上传组件 用于 bug 20576 个人就业信息/求职创业补贴申报,201801010006 119242 上传图片加限制,跟签约派遣上传图片加限制一样
...
@@ -104,6 +105,12 @@ export default class UploadComDiyForQnZy extends React.Component {
...
@@ -104,6 +105,12 @@ export default class UploadComDiyForQnZy extends React.Component {
showUploadList
:
false
,
showUploadList
:
false
,
onChange
:
this
.
changeUrl
,
onChange
:
this
.
changeUrl
,
beforeUpload
:
this
.
beforeUpload
,
beforeUpload
:
this
.
beforeUpload
,
headers
:
{
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
};
};
return
(
return
(
...
...
one_stop_public/libs/VideoUploadCom.jsx
浏览文件 @
8f23046b
...
@@ -99,7 +99,6 @@ export default class VideoUploadCom extends React.Component {
...
@@ -99,7 +99,6 @@ export default class VideoUploadCom extends React.Component {
render
()
{
render
()
{
const
{
json
,
disabled
}
=
this
.
props
;
const
{
json
,
disabled
}
=
this
.
props
;
const
{
url
}
=
this
.
state
;
const
{
url
}
=
this
.
state
;
console
.
log
(
url
);
return
(
return
(
<
Upload
.
Dragger
<
Upload
.
Dragger
disabled=
{
disabled
}
disabled=
{
disabled
}
...
@@ -109,6 +108,9 @@ export default class VideoUploadCom extends React.Component {
...
@@ -109,6 +108,9 @@ export default class VideoUploadCom extends React.Component {
name=
"file"
name=
"file"
action=
{
configService
+
'/uploadFileApi/upload'
}
action=
{
configService
+
'/uploadFileApi/upload'
}
onChange=
{
this
.
changeUrl
}
onChange=
{
this
.
changeUrl
}
headers=
{
{
Authorization
:
`bearer ${getToken()}`
,
}
}
multiple=
{
false
}
multiple=
{
false
}
data=
{
{
data=
{
{
isConvert
:
true
,
isConvert
:
true
,
...
...
zyd_public/components/ImportUtil2.0/index.js
浏览文件 @
8f23046b
...
@@ -363,7 +363,10 @@ export default class ImportUtil extends React.PureComponent {
...
@@ -363,7 +363,10 @@ export default class ImportUtil extends React.PureComponent {
name
:
'file'
,
name
:
'file'
,
action
:
getUploadUrl
(),
action
:
getUploadUrl
(),
headers
:
{
headers
:
{
authorization
:
'authorization-text'
,
Authorization
:
`bearer
${
getToken
()}
`
,
},
data
:
{
token
:
getToken
(),
},
},
accept
:
'.xlsx'
,
accept
:
'.xlsx'
,
showUploadList
:
false
,
showUploadList
:
false
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论