Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
4e1e7a5c
Commit
4e1e7a5c
authored
Oct 27, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '优化数据库升级交互,优化web搭建调序配置'
parent
c2247cca
Pipeline
#62584
passed with stages
Changes
5
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
33 deletions
+73
-33
fieldEditor.jsx
...s/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
+0
-0
ProcessConfig.jsx
...nager/workOrder/workFlow/flowComponents/ProcessConfig.jsx
+1
-1
Master.jsx
src/pages/platformCenter/integratedLogin/Master.jsx
+31
-24
index.jsx
src/pages/productCenter/webConfig/index.jsx
+40
-8
sortModal.jsx
src/pages/productCenter/webConfig/sortModal.jsx
+1
-0
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
View file @
4e1e7a5c
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workFlow/flowComponents/ProcessConfig.jsx
View file @
4e1e7a5c
...
@@ -90,7 +90,7 @@ const ProcessConfig = props => {
...
@@ -90,7 +90,7 @@ const ProcessConfig = props => {
<
Option
value=
"多表显示"
>
多表显示
</
Option
>
<
Option
value=
"多表显示"
>
多表显示
</
Option
>
<
Option
value=
"多表在办显示"
>
多表在办显示
</
Option
>
<
Option
value=
"多表在办显示"
>
多表在办显示
</
Option
>
<
Option
value=
"表堆叠显示"
>
表堆叠显示
</
Option
>
<
Option
value=
"表堆叠显示"
>
表堆叠显示
</
Option
>
<
Option
value=
"分派节点显示"
>
分派节点显示
</
Option
>
{
/* <Option value="分派节点显示">分派节点显示</Option> */
}
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"编码样式"
name=
"coding12Checked"
>
<
Form
.
Item
label=
"编码样式"
name=
"coding12Checked"
>
...
...
src/pages/platformCenter/integratedLogin/Master.jsx
View file @
4e1e7a5c
...
@@ -378,30 +378,6 @@ const Master = props => {
...
@@ -378,30 +378,6 @@ const Master = props => {
))
}
))
}
</
Select
>
</
Select
>
</
Item
>
</
Item
>
<
Item
name=
"qrCodename"
label=
"二维码名称"
>
<
Input
placeholder=
"请输入二维码名称"
/>
</
Item
>
<
Item
name=
"qrCodeurl"
label=
"二维码URL"
rules=
{
[
{
validator
:
(
rule
,
value
)
=>
{
let
aa
=
form
.
getFieldValue
().
qrCodeurl
;
let
regEn
=
/^
((
ht|f
)
tps
?)
:
\/\/([\w
-
]
+
(\.[\w
-
]
+
)
*
\/?)
+
(\?([\w\-\.
,@?^=%&:
\/
~
\+
#
]
*
)
+
)?
$/
;
if
(
aa
)
{
if
(
regEn
.
test
(
aa
)
===
false
)
{
return
Promise
.
reject
(
'url必须以http(s)://开头'
);
}
}
return
Promise
.
resolve
();
},
},
]
}
>
<
Input
placeholder=
"请输入二维码URL"
/>
</
Item
>
<
Item
label=
"展示方式"
name=
"displayMode"
>
<
Item
label=
"展示方式"
name=
"displayMode"
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
radio
}
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
radio
}
>
<
Radio
value=
"卡片"
>
卡片
</
Radio
>
<
Radio
value=
"卡片"
>
卡片
</
Radio
>
...
@@ -436,6 +412,37 @@ const Master = props => {
...
@@ -436,6 +412,37 @@ const Master = props => {
)
:
(
)
:
(
<></>
<></>
)
}
)
}
<
Row
>
<
Col
span=
{
8
}
>
<
Item
name=
"qrCodename"
label=
"二维码名称"
labelCol=
{
{
span
:
12
}
}
>
<
Input
placeholder=
"请输入二维码名称"
/>
</
Item
>
</
Col
>
<
Col
span=
{
14
}
>
<
Item
labelCol=
{
{
span
:
6
}
}
name=
"qrCodeurl"
label=
"二维码URL"
rules=
{
[
{
validator
:
(
rule
,
value
)
=>
{
let
aa
=
form
.
getFieldValue
().
qrCodeurl
;
let
regEn
=
/^
((
ht|f
)
tps
?)
:
\/\/([\w
-
]
+
(\.[\w
-
]
+
)
*
\/?)
+
(\?([\w\-\.
,@?^=%&:
\/
~
\+
#
]
*
)
+
)?
$/
;
if
(
aa
)
{
if
(
regEn
.
test
(
aa
)
===
false
)
{
return
Promise
.
reject
(
'url必须以http(s)://开头'
);
}
}
return
Promise
.
resolve
();
},
},
]
}
>
<
Input
placeholder=
"请输入二维码URL"
/>
</
Item
>
</
Col
>
</
Row
>
</
Form
>
</
Form
>
<
PreviewModal
<
PreviewModal
visible=
{
previewModal
}
visible=
{
previewModal
}
...
...
src/pages/productCenter/webConfig/index.jsx
View file @
4e1e7a5c
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
PageContainer
from
'@/components/BasePageContainer'
;
import
PageContainer
from
'@/components/BasePageContainer'
;
import
{
notification
,
Spin
,
Tabs
,
Button
}
from
'antd'
;
import
{
notification
,
Spin
,
Tabs
,
Button
,
Tooltip
}
from
'antd'
;
import
{
import
{
getWebModuleTree
,
getWebModuleTree
,
getWebconfig
,
getWebconfig
,
...
@@ -16,7 +16,7 @@ import {
...
@@ -16,7 +16,7 @@ import {
SyncMapComponent
,
SyncMapComponent
,
BatchDragSingleWebsite
,
BatchDragSingleWebsite
,
}
from
'@/services/webConfig/api'
;
}
from
'@/services/webConfig/api'
;
import
{
EditTwoTone
,
ExclamationCircleOutlined
}
from
'@ant-design/icons'
;
import
{
EditTwoTone
,
ExclamationCircleOutlined
,
OrderedListOutlined
}
from
'@ant-design/icons'
;
import
Modal
from
'antd/lib/modal/Modal'
;
import
Modal
from
'antd/lib/modal/Modal'
;
import
ProCard
from
'@ant-design/pro-card'
;
import
ProCard
from
'@ant-design/pro-card'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
...
@@ -342,13 +342,27 @@ const WebConfigPage = props => {
...
@@ -342,13 +342,27 @@ const WebConfigPage = props => {
<
div
style=
{
{
display
:
'inline-block'
,
float
:
'right'
,
marginTop
:
'-15px'
}
}
>
<
div
style=
{
{
display
:
'inline-block'
,
float
:
'right'
,
marginTop
:
'-15px'
}
}
>
<
strong
style=
{
{
marginRight
:
'15px'
}
}
>
<
strong
style=
{
{
marginRight
:
'15px'
}
}
>
地图组件数量
地图组件数量
{
console
.
log
(
tabPaneItem
)
}
{
tabPaneItem
.
existMapComponent
<
9
?
(
{
tabPaneItem
.
existMapComponent
<
9
?
(
<
span
style=
{
{
color
:
'red'
}
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
<
Tooltip
title=
"点击一键修复"
placement=
"topRight"
>
<
span
style=
{
{
color
:
'red'
}
}
onClick=
{
()
=>
SyncMap
(
tabPaneItem
)
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
/
<
span
style=
{
{
color
:
'#1890ff'
}
}
>
{
tabPaneItem
.
mapComponent
}
</
span
>
</
Tooltip
>
)
:
(
)
:
(
<>
<
span
style=
{
{
color
:
'#1890ff'
}
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
<
span
style=
{
{
color
:
'#1890ff'
}
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
<
span
>
/
</
span
>
{
tabPaneItem
.
existMapComponent
!==
9
?
(
<
span
style=
{
{
color
:
'#1890ff'
}
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
)
:
(
<
span
style=
{
{
color
:
'#1890ff'
}
}
>
{
tabPaneItem
.
mapComponent
}
</
span
>
)
}
</>
)
}
)
}
</
strong
>
</
strong
>
{
tabPaneItem
.
existMapComponent
<
9
&&
(
{
/* {
tabPaneItem.existMapComponent < 9 && (
<Button
<Button
type="primary"
type="primary"
style={{ marginRight: '20px' }}
style={{ marginRight: '20px' }}
...
@@ -356,10 +370,7 @@ const WebConfigPage = props => {
...
@@ -356,10 +370,7 @@ const WebConfigPage = props => {
>
>
一键修复
一键修复
</Button>
</Button>
)
}
)} */
}
<
Button
type=
"primary"
onClick=
{
sort
}
>
网站调序
</
Button
>
</
div
>
</
div
>
<
MenuConfig
<
MenuConfig
menu=
{
menu=
{
...
@@ -403,6 +414,7 @@ const WebConfigPage = props => {
...
@@ -403,6 +414,7 @@ const WebConfigPage = props => {
<
PageContainer
>
<
PageContainer
>
<
div
className=
{
styles
.
webConfigContainer
}
>
<
div
className=
{
styles
.
webConfigContainer
}
>
<
Spin
spinning=
{
loading
||
submitting
}
>
<
Spin
spinning=
{
loading
||
submitting
}
>
<
div
style=
{
{
display
:
'flex'
,
alignContent
:
'center'
,
justifyContent
:
'flex-start'
}
}
>
<
Tabs
<
Tabs
type=
"editable-card"
type=
"editable-card"
onEdit=
{
onEdit
}
onEdit=
{
onEdit
}
...
@@ -415,6 +427,26 @@ const WebConfigPage = props => {
...
@@ -415,6 +427,26 @@ const WebConfigPage = props => {
{
/* {webs.map(renderTabPane)} */
}
{
/* {webs.map(renderTabPane)} */
}
{
webs
.
map
(
item
=>
renderTabPane
(
item
))
}
{
webs
.
map
(
item
=>
renderTabPane
(
item
))
}
</
Tabs
>
</
Tabs
>
<
Tooltip
title=
"调序"
placement=
"topRight"
>
<
span
style=
{
{
display
:
'inline-block'
,
width
:
'40px'
,
height
:
'40px'
,
backgroundColor
:
'#FAFAFA'
,
marginLeft
:
'5px'
,
padding
:
'0 8px'
,
border
:
'1px solid #f0f0f0'
,
borderRadius
:
'2px 2px 0 0'
,
outline
:
'none'
,
cursor
:
'pointer'
,
}
}
onClick=
{
sort
}
>
<
OrderedListOutlined
style=
{
{
marginTop
:
'12px'
,
marginLeft
:
'2px'
}
}
/>
</
span
>
</
Tooltip
>
</
div
>
<
SiteConfig
<
SiteConfig
webs=
{
webs
}
webs=
{
webs
}
productList=
{
productList
}
productList=
{
productList
}
...
...
src/pages/productCenter/webConfig/sortModal.jsx
View file @
4e1e7a5c
...
@@ -65,6 +65,7 @@ const SortModal = props => {
...
@@ -65,6 +65,7 @@ const SortModal = props => {
return
(
return
(
<
Modal
<
Modal
title=
"网站调序"
width=
"600px"
width=
"600px"
visible=
{
visible
}
visible=
{
visible
}
onCancel=
{
onCancel
}
onCancel=
{
onCancel
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment