Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
7b77139d
提交
7b77139d
authored
4月 14, 2020
作者:
wanyielin
浏览文件
操作
浏览文件
下载
差异文件
判断必选1
上级
f0d23696
d624611c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
56 行增加
和
18 行删除
+56
-18
index.js
FormInsertDiy/AffairPage/ApplyPage/index.js
+1
-0
destruction.js
FormInsertDiy/AffairPage/destruction.js
+15
-4
index.js
one_stop_public/libs/formList/index.js
+5
-4
index.jsx
one_stop_public/tableCompon/index.jsx
+33
-8
index.js
zyd_public/LoginFromQrCode/index.js
+2
-2
没有找到文件。
FormInsertDiy/AffairPage/ApplyPage/index.js
浏览文件 @
7b77139d
...
...
@@ -189,6 +189,7 @@ export default class AffairPage extends React.Component {
const
{
workId
,
dataBaseId
,
addFields
,
showIframe
,
renderIframe
}
=
this
.
state
;
const
url
=
config
.
onestopPC
.
split
(
'/#/'
);
let
iframeUrl
=
`
${
url
[
0
]}
/#/IFrameForApply?id=
${
workId
}
&token=
${
getToken
()}
`
;
console
.
log
(
iframeUrl
);
// iframeUrl = `http://localhost:8000/onestop/IFrameForApply?id=${workId}&token=${getToken()}`;
return
(
<
PageHeaderWrapper
title
=
""
>
...
...
FormInsertDiy/AffairPage/destruction.js
浏览文件 @
7b77139d
import
{
text
,
number
,
date
,
format
,
taskNode
}
from
'../config/index'
;
import
{
isJSON
}
from
'@/baseComponent/utils'
;
import
{
translateAddFields
}
from
'../config/index'
;
import
ColumnsRender
from
'@/highOrderComponent/ColumnsRender
'
;
import
config
from
'@/config/config
'
;
import
{
Tooltip
}
from
'antd'
;
import
moment
from
'moment'
;
import
React
from
'react'
;
...
...
@@ -314,7 +314,12 @@ export function handleColumns(columns){
if
(
item
.
dataType
)
{
if
(
text
.
indexOf
(
item
.
dataType
)
>
-
1
)
{
// 文本类型字段
item
.
render
=
(
text
)
=>
{
if
(
typeof
text
===
'string'
&&
text
.
length
>
20
)
{
if
(
item
.
extendType
===
'file'
&&
typeof
text
===
'string'
){
let
url
=
text
.
includes
(
'http'
)
?
text
:
config
.
sqlFormsServer
+
text
;
console
.
log
(
url
);
return
<
a
href
=
{
url
}
target
=
{
'_blank'
}
>
点击查看
<
/a>
;
}
else
if
(
typeof
text
===
'string'
&&
text
.
length
>
20
)
{
const
oldTitle
=
text
;
const
newTitle
=
text
.
slice
(
0
,
7
)
+
'...'
;
return
(
...
...
@@ -322,8 +327,14 @@ export function handleColumns(columns){
<
span
key
=
{
text
}
>
{
newTitle
}
<
/span
>
<
/Tooltip
>
);
}
else
if
(
typeof
text
===
'object'
&&
Array
.
isArray
(
text
.
files
)
&&
text
.
files
.
length
)
{
return
<
a
href
=
{
text
.
files
[
0
].
path
}
target
=
{
'_blank'
}
>
点击查看
<
/a>
;
}
else
if
(
item
.
extendType
===
'file'
&&
typeof
text
===
'object'
&&
Array
.
isArray
(
text
.
files
)
&&
text
.
files
.
length
)
{
let
url
=
text
.
files
[
0
].
path
.
includes
(
'http'
)
?
text
.
files
[
0
].
path
:
config
.
sqlFormsServer
+
text
.
files
[
0
].
path
;
return
<
a
href
=
{
url
}
target
=
{
'_blank'
}
>
点击查看
<
/a>
;
}
else
{
return
text
;
}
...
...
one_stop_public/libs/formList/index.js
浏览文件 @
7b77139d
...
...
@@ -731,7 +731,7 @@ class FormList extends React.Component {
{
form
.
getFieldDecorator
(
item
.
name
,
{
initialValue
:
formData
==
null
?
''
:
formData
[
item
.
name
],
rules
:
[{
required
:
!
item
.
isNull
}],
})(
<
Input
readOnly
=
{
!
isAdd
}
placeholder
=
"请输入"
/>
)}
})(
<
Input
style
=
{{
width
:
'70%'
}}
readOnly
=
{
!
isAdd
}
placeholder
=
"请输入"
/>
)}
<
/FormItem
>
);
}
...
...
@@ -771,7 +771,7 @@ class FormList extends React.Component {
{
form
.
getFieldDecorator
(
item
.
name
,
{
initialValue
:
formData
==
null
?
''
:
formData
[
item
.
name
],
rules
:
[{
required
:
!
item
.
isNull
}],
})(
<
Input
placeholder
=
"请输入"
/>
)}
})(
<
Input
style
=
{{
width
:
'70%'
}}
placeholder
=
"请输入"
/>
)}
<
/FormItem
>
);
}
else
if
(
number
.
indexOf
(
item
.
type
)
>
-
1
)
{
...
...
@@ -818,7 +818,7 @@ class FormList extends React.Component {
{
form
.
getFieldDecorator
(
item
.
name
,
{
initialValue
:
formData
==
null
?
''
:
formData
[
item
.
name
],
rules
:
[{
required
:
!
item
.
isNull
}],
})(
<
Input
placeholder
=
"请输入"
/>
)}
})(
<
Input
style
=
{{
width
:
'70%'
}}
placeholder
=
"请输入"
/>
)}
<
/FormItem
>
);
}
...
...
@@ -832,11 +832,12 @@ class FormList extends React.Component {
if
(
querys
.
length
==
0
)
{
return
''
;
}
return
(
<
Form
layout
=
"inline"
>
<
Row
>
{
querys
.
map
((
item
)
=>
<
Col
span
=
{
8
}
key
=
{
item
.
id
}
>
<
Col
style
=
{{
height
:
58
}}
span
=
{
8
}
key
=
{
item
.
id
}
>
{
this
.
getItem
(
true
,
form
,
{
...
item
,
isNull
:
true
...
...
one_stop_public/tableCompon/index.jsx
浏览文件 @
7b77139d
...
...
@@ -503,7 +503,9 @@ export default class tableCom extends Component {
}
}
}
} */
}
}
} */
if
(
!
this
.
props
.
isEdit
&&
this
.
props
.
fatherCode
)
{
if
(
bindObj
!=
null
)
{
...
...
@@ -1219,14 +1221,37 @@ export default class tableCom extends Component {
if (Object.keys(mapData).length > 0) {
const columnIds = json.columnIds;
if (columnIds && columnIds['c1']) {
const columnId = columnIds['c1'][columnIds['c1'].length - 1];
if (mapData[columnId] != null) {
dataColumn = mapData[columnId]
const bindObj = this.getColumn('c1');
let dataColumn = this.props.fatherCode != null ? (bindObj ? { ...bindObj, base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}` } :
{ base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` })
: bindObj;
if (this.props.fatherCode == null && dataColumn == null) dataColumn = { base52: this.props.uuid }
/* if (this.props.fatherCode != null) {
dataColumn = { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
} else {
dataColumn = { base52: this.props.uuid }
if (Object.keys(mapData).length > 0) {
const columnIds = json.columnIds;
if (columnIds && columnIds['c1']) {
const columnId = columnIds['c1'][columnIds['c1'].length - 1];
if (mapData[columnId] != null) {
dataColumn = mapData[columnId]
}
}
}
}
} */
} */
// if (!this.props.isEdit && this.props.fatherCode) {
// if (bindObj != null) {
// dataColumn.base52 = bindObj.base52
// } else {
// dataColumn.base52 = this.props.uuid
// }
// }
if
(
!
this
.
props
.
isEdit
&&
this
.
props
.
fatherCode
)
{
if
(
bindObj
!=
null
)
{
...
...
@@ -1701,7 +1726,7 @@ export default class tableCom extends Component {
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
{
dataColumn
=
{
base52
:
this
.
props
.
uuid
}
}
if
(
!
dataColumn
.
isNull
)
{
if
(
dataColumn
.
isNull
!=
null
&&
!
dataColumn
.
isNull
)
{
required
=
true
;
}
...
...
zyd_public/LoginFromQrCode/index.js
浏览文件 @
7b77139d
...
...
@@ -8,7 +8,7 @@ import LoginWithQrCode from './LoginWithQrCode';
* wxSocketGateWay: websocket链接地址 'ws://scjoyedu.eicp.net:51337/wswx/test106/socket/'
* mockServer: 获取sessionId 接口前缀 'http://scjoyedu.eicp.net:51337/test106',
* */
export
default
function
LoginByQrCode
({
url
,
LoginType
,
wxSocketGateWay
,
mockServer
})
{
export
default
function
LoginByQrCode
({
hintStyle
,
url
,
LoginType
,
wxSocketGateWay
,
mockServer
})
{
return
(
<
div
>
<
div
style
=
{{
backgroundColor
:
'white'
,
width
:
288
,
padding
:
10
,
margin
:
'auto'
}}
>
...
...
@@ -19,7 +19,7 @@ export default function LoginByQrCode({ url, LoginType, wxSocketGateWay, mockSer
wxSocketGateWay
=
{
wxSocketGateWay
}
/
>
<
/div
>
<
div
style
=
{{
marginTop
:
20
,
color
:
'white'
}}
>
<
div
style
=
{{
marginTop
:
20
,
color
:
'white'
,
...
hintStyle
,
}}
>
请使用
<
span
style
=
{{
color
:
'red'
}}
>
微信扫一扫
<
/span
>
扫码登录
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论