Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
f7f8ea16
Commit
f7f8ea16
authored
Nov 24, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览解决
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
796c5e14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
48 deletions
+102
-48
proxy.ts
config/proxy.ts
+12
-12
VisitorRecord.tsx
...pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
+43
-17
VisitorRecord.tsx
...pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
+43
-17
ContractContent.tsx
src/pages/ContractManagement/ContractContent.tsx
+4
-2
No files found.
config/proxy.ts
View file @
f7f8ea16
...
...
@@ -27,8 +27,13 @@ export default {
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
},
// '/tos/': {
// target: 'http://47.74.233.180:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/tos/'
:
{
target
:
'http://
47.74.233.180
:8651'
,
target
:
'http://
192.168.1.28
:8651'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
},
...
...
@@ -71,11 +76,6 @@ export default {
// },
},
pre
:
{
// '/api/': {
// target: 'http://localhost:8080',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/res/'
:
{
target
:
'http://mapleonlyone.top'
,
changeOrigin
:
true
,
...
...
@@ -86,15 +86,15 @@ export default {
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
},
'/tos/'
:
{
target
:
'http://47.74.233.180:8651'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
},
// '/tos/': {
// target: 'http://
localhost
:8651',
// target: 'http://
47.74.233.180
:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/tos/'
:
{
target
:
'http://192.168.1.28:8651'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
},
},
};
src/pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
View file @
f7f8ea16
...
...
@@ -10,6 +10,8 @@ import './index.less';
import
moment
from
'moment'
;
import
SearchOptionsCommnity
from
'@/components/SearchOptions/SearchOptionsCommnity'
;
import
SelectCommunity
from
'@/components/SelectCommunity'
;
const
module
=
'VisitorRecord'
;
const
VisitorRecord
=
(
props
:
any
)
=>
{
...
...
@@ -91,22 +93,40 @@ const VisitorRecord = (props: any) => {
// 点击搜索
const
onSubmitForm
=
(
value
:
any
)
=>
{
// 有的话需要先转换 否则会被清除
// 小区更换为数组
// value.visitorCommunity = value.community.value;
let
visitorCommunity
=
value
.
community
.
value
;
delete
value
.
community
;
if
(
value
.
showTime
)
{
value
.
showTime
=
moment
(
value
.
showTime
).
format
(
'YYYY-MM-DD'
);
}
// 有的话需要先转换 否则会被清除
// 清除 undefind
let
info
=
JSON
.
parse
(
stringifyNoEmptyField
(
value
));
if
(
JSON
.
stringify
(
info
)
==
'{}'
)
{
message
.
info
(
'Please select a search'
);
}
else
{
if
(
info
.
showTime
)
{
info
.
showTime
=
moment
(
info
.
showTime
).
format
(
'YYYY-MM-DD'
);
if
(
info
.
showTime
)
{
info
.
showTime
=
moment
(
info
.
showTime
).
format
(
'YYYY-MM-DD'
);
}
// 所有字符串条件检索出来的结果
let
Datas
=
filter
(
info
,
DataSave
);
let
newArr
=
[];
// 开始数组处理
if
(
visitorCommunity
.
length
>
0
)
{
for
(
let
i
in
Datas
)
{
if
(
visitorCommunity
.
indexOf
(
Datas
[
i
].
visitorCommunity
)
!=
-
1
)
{
newArr
.
push
(
Datas
[
i
]);
}
}
console
.
log
(
info
);
let
Datas
=
filter
(
info
,
DataSave
);
SA
(
Datas
,
module
,
dispatch
)
;
}
else
{
// 没有选小区
newArr
=
Datas
;
}
SA
(
newArr
,
module
,
dispatch
);
};
// 点击重置
...
...
@@ -171,11 +191,11 @@ const VisitorRecord = (props: any) => {
}
// 选择小区名字并赋值
const
opname
=
(
value
:
any
)
=>
{
form
.
setFieldsValue
({
visitorCommunity
:
value
,
});
};
//
const opname = (value: any) => {
//
form.setFieldsValue({
//
visitorCommunity: value,
//
});
//
};
return
(
<>
...
...
@@ -187,14 +207,15 @@ const VisitorRecord = (props: any) => {
name=
"contract"
onFinish=
{
onSubmitForm
}
>
<
Form
.
Item
name=
"visitorCommunity"
>
{
/*
<Form.Item name="visitorCommunity">
<SearchOptionsCommnity
// ubmit={extendName}
opname={opname}
/>
</
Form
.
Item
>
</Form.Item> */
}
<
Form
.
Item
name=
"inviterName"
>
<
Input
allowClear
placeholder=
"Invitees Name
.
"
style=
{
{
width
:
160
}
}
/>
<
Input
allowClear
placeholder=
"Invitees Name"
style=
{
{
width
:
160
}
}
/>
</
Form
.
Item
>
<
Form
.
Item
name=
"showTime"
>
<
DatePicker
format=
"YYYY-MM-DD"
placeholder=
"Visitor Time"
/>
...
...
@@ -214,6 +235,11 @@ const VisitorRecord = (props: any) => {
Reset
</
Button
>
</
Form
.
Item
>
<
div
style=
{
{
maxWidth
:
'100%'
,
marginTop
:
15
}
}
>
<
Form
.
Item
name=
"community"
label=
""
>
<
SelectCommunity
/>
</
Form
.
Item
>
</
div
>
</
Form
>
</
div
>
<
div
style=
{
{
width
:
'100%'
,
padding
:
16
,
backgroundColor
:
'#ffffff'
}
}
>
...
...
src/pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
View file @
f7f8ea16
...
...
@@ -10,6 +10,8 @@ import './index.less';
import
moment
from
'moment'
;
import
SearchOptionsCommnity
from
'@/components/SearchOptions/SearchOptionsCommnity'
;
import
SelectCommunity
from
'@/components/SelectCommunity'
;
const
module
=
'VisitorRecord'
;
const
VisitorRecord
=
(
props
:
any
)
=>
{
...
...
@@ -91,22 +93,40 @@ const VisitorRecord = (props: any) => {
// 点击搜索
const
onSubmitForm
=
(
value
:
any
)
=>
{
// 有的话需要先转换 否则会被清除
// 小区更换为数组
// value.visitorCommunity = value.community.value;
let
visitorCommunity
=
value
.
community
.
value
;
delete
value
.
community
;
if
(
value
.
showTime
)
{
value
.
showTime
=
moment
(
value
.
showTime
).
format
(
'YYYY-MM-DD'
);
}
// 有的话需要先转换 否则会被清除
// 清除 undefind
let
info
=
JSON
.
parse
(
stringifyNoEmptyField
(
value
));
if
(
JSON
.
stringify
(
info
)
==
'{}'
)
{
message
.
info
(
'Please select a search'
);
}
else
{
if
(
info
.
showTime
)
{
info
.
showTime
=
moment
(
info
.
showTime
).
format
(
'YYYY-MM-DD'
);
if
(
info
.
showTime
)
{
info
.
showTime
=
moment
(
info
.
showTime
).
format
(
'YYYY-MM-DD'
);
}
// 所有字符串条件检索出来的结果
let
Datas
=
filter
(
info
,
DataSave
);
let
newArr
=
[];
// 开始数组处理
if
(
visitorCommunity
.
length
>
0
)
{
for
(
let
i
in
Datas
)
{
if
(
visitorCommunity
.
indexOf
(
Datas
[
i
].
visitorCommunity
)
!=
-
1
)
{
newArr
.
push
(
Datas
[
i
]);
}
}
console
.
log
(
info
);
let
Datas
=
filter
(
info
,
DataSave
);
SA
(
Datas
,
module
,
dispatch
)
;
}
else
{
// 没有选小区
newArr
=
Datas
;
}
SA
(
newArr
,
module
,
dispatch
);
};
// 点击重置
...
...
@@ -171,11 +191,11 @@ const VisitorRecord = (props: any) => {
}
// 选择小区名字并赋值
const
opname
=
(
value
:
any
)
=>
{
form
.
setFieldsValue
({
visitorCommunity
:
value
,
});
};
//
const opname = (value: any) => {
//
form.setFieldsValue({
//
visitorCommunity: value,
//
});
//
};
return
(
<>
...
...
@@ -187,14 +207,15 @@ const VisitorRecord = (props: any) => {
name=
"contract"
onFinish=
{
onSubmitForm
}
>
<
Form
.
Item
name=
"visitorCommunity"
>
{
/*
<Form.Item name="visitorCommunity">
<SearchOptionsCommnity
// ubmit={extendName}
opname={opname}
/>
</
Form
.
Item
>
</Form.Item> */
}
<
Form
.
Item
name=
"inviterName"
>
<
Input
allowClear
placeholder=
"Invitees Name
.
"
style=
{
{
width
:
160
}
}
/>
<
Input
allowClear
placeholder=
"Invitees Name"
style=
{
{
width
:
160
}
}
/>
</
Form
.
Item
>
<
Form
.
Item
name=
"showTime"
>
<
DatePicker
format=
"YYYY-MM-DD"
placeholder=
"Visitor Time"
/>
...
...
@@ -214,6 +235,11 @@ const VisitorRecord = (props: any) => {
Reset
</
Button
>
</
Form
.
Item
>
<
div
style=
{
{
maxWidth
:
'100%'
,
marginTop
:
15
}
}
>
<
Form
.
Item
name=
"community"
label=
""
>
<
SelectCommunity
/>
</
Form
.
Item
>
</
div
>
</
Form
>
</
div
>
<
div
style=
{
{
width
:
'100%'
,
padding
:
16
,
backgroundColor
:
'#ffffff'
}
}
>
...
...
src/pages/ContractManagement/ContractContent.tsx
View file @
f7f8ea16
...
...
@@ -465,7 +465,8 @@ const ContractContent = (props: any) => {
// pdf 换一种
<>
<
PDF
file=
{
stringSplit
(
fileInfo
.
url
,
'm/cash'
)
}
file=
{
fileInfo
.
url
}
// file=
{
stringSplit
(
fileInfo
.
url
,
'
m
/
cash
')}
page=
{
pageNumber
}
scale=
{
1.25
}
onDocumentComplete=
{
onDocumentLoadSuccess
}
...
...
@@ -511,7 +512,8 @@ const ContractContent = (props: any) => {
)
:
(
<
FileViewer
fileType=
{
fileInfo
.
type
}
filePath=
{
stringSplit
(
fileInfo
.
url
,
'm/cash'
)
}
filePath=
{
fileInfo
.
url
}
// filePath=
{
stringSplit
(
fileInfo
.
url
,
'
m
/
cash
')}
/>
)
)
:
(
...
...
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