Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
156d708b
Commit
156d708b
authored
Aug 12, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
05dc8b11
c31dd1a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
ContractText.tsx
src/pages/contract/manage/add/components/ContractText.tsx
+2
-3
ContractText.tsx
...pages/contract/manage/editing/components/ContractText.tsx
+3
-3
index.tsx
src/pages/contract/template/addContract/index.tsx
+1
-2
No files found.
src/pages/contract/manage/add/components/ContractText.tsx
View file @
156d708b
...
...
@@ -57,7 +57,7 @@ const ContractText = (props: any) => {
id
:
0
,
templateId
:
Templatel
.
id
,
isUseElectronicContract
:
checkNick
?
1
:
0
,
contractName
:
Templatel
.
n
ame
,
contractName
:
Templatel
.
fileN
ame
,
contractUrl
:
Templatel
.
fileUrl
?
Templatel
.
fileUrl
:
Templatel
.
fileExampleUrl
,
contractFlag
:
contractFlag
,
}
...
...
@@ -108,7 +108,6 @@ const ContractText = (props: any) => {
Templatel
.
name
=
fileList
[
0
].
name
Templatel
.
fileName
=
fileList
[
0
].
name
Templatel
.
fileUrl
=
fileList
[
0
].
response
.
data
console
.
log
(
Templatel
,
'上传成功执行的'
)
setTemplatel
({
...
Templatel
})
}
}
...
...
@@ -137,7 +136,7 @@ const ContractText = (props: any) => {
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
onClick=
{
()
=>
onDownload
()
}
>
<
FileWordFilled
/>
<
span
>
{
Templatel
.
n
ame
}
</
span
>
<
span
>
{
Templatel
.
fileN
ame
}
</
span
>
</
div
>
<
Upload
...
...
src/pages/contract/manage/editing/components/ContractText.tsx
View file @
156d708b
...
...
@@ -56,7 +56,7 @@ const ContractText = (props: any) => {
id
:
Templatel
.
T_emplateId
?
Templatel
.
T_emplateId
:
0
,
templateId
:
Templatel
.
templateId
?
Templatel
.
templateId
:
Templatel
.
id
,
isUseElectronicContract
:
checkNick
?
1
:
0
,
contractName
:
Templatel
.
n
ame
,
contractName
:
Templatel
.
fileN
ame
,
contractUrl
:
Templatel
.
fileExampleUrl
?
Templatel
.
fileExampleUrl
:
Templatel
.
contractUrl
}
resolve
(
contractText
)
...
...
@@ -68,7 +68,7 @@ const ContractText = (props: any) => {
},
[])
useEffect
(()
=>
{
if
(
ctText
!=
null
)
{
ctText
.
n
ame
=
ctText
.
contractName
;
ctText
.
fileN
ame
=
ctText
.
contractName
;
ctText
.
T_emplateId
=
ctText
.
id
;
ctText
.
id
=
ctText
.
templateId
;
setCheckNick
(
ctText
.
isUseElectronicContract
?
true
:
false
)
...
...
@@ -144,7 +144,7 @@ const ContractText = (props: any) => {
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
>
<
FileWordFilled
/>
<
span
>
{
Templatel
.
n
ame
}
</
span
>
<
span
>
{
Templatel
.
fileN
ame
}
</
span
>
</
div
>
<
Upload
action=
"/api/file/file/upload"
...
...
src/pages/contract/template/addContract/index.tsx
View file @
156d708b
...
...
@@ -86,8 +86,7 @@ const AddContract: React.FC<parmas> = (props) => {
/**提交数据 */
const
onSubmit
=
async
()
=>
{
await
form
.
validateFields
().
then
(
res
=>
{
console
.
log
(
uploadFile
.
name
)
if
(
uploadFile
.
name
)
{
if
(
uploadFile
.
name
&&
uploadFile
.
file
)
{
const
parmas
=
{
name
:
res
.
name
,
version
:
res
.
version
,
...
...
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