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
c31dd1a9
Commit
c31dd1a9
authored
Aug 12, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
强制上传合同模板修改字段
parent
86597f84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
ContractText.tsx
src/pages/contract/manage/add/components/ContractText.tsx
+2
-3
ContractText.tsx
...pages/contract/manage/editing/components/ContractText.tsx
+3
-3
No files found.
src/pages/contract/manage/add/components/ContractText.tsx
View file @
c31dd1a9
...
@@ -57,7 +57,7 @@ const ContractText = (props: any) => {
...
@@ -57,7 +57,7 @@ const ContractText = (props: any) => {
id
:
0
,
id
:
0
,
templateId
:
Templatel
.
id
,
templateId
:
Templatel
.
id
,
isUseElectronicContract
:
checkNick
?
1
:
0
,
isUseElectronicContract
:
checkNick
?
1
:
0
,
contractName
:
Templatel
.
n
ame
,
contractName
:
Templatel
.
fileN
ame
,
contractUrl
:
Templatel
.
fileUrl
?
Templatel
.
fileUrl
:
Templatel
.
fileExampleUrl
,
contractUrl
:
Templatel
.
fileUrl
?
Templatel
.
fileUrl
:
Templatel
.
fileExampleUrl
,
contractFlag
:
contractFlag
,
contractFlag
:
contractFlag
,
}
}
...
@@ -108,7 +108,6 @@ const ContractText = (props: any) => {
...
@@ -108,7 +108,6 @@ const ContractText = (props: any) => {
Templatel
.
name
=
fileList
[
0
].
name
Templatel
.
name
=
fileList
[
0
].
name
Templatel
.
fileName
=
fileList
[
0
].
name
Templatel
.
fileName
=
fileList
[
0
].
name
Templatel
.
fileUrl
=
fileList
[
0
].
response
.
data
Templatel
.
fileUrl
=
fileList
[
0
].
response
.
data
console
.
log
(
Templatel
,
'上传成功执行的'
)
setTemplatel
({
...
Templatel
})
setTemplatel
({
...
Templatel
})
}
}
}
}
...
@@ -137,7 +136,7 @@ const ContractText = (props: any) => {
...
@@ -137,7 +136,7 @@ const ContractText = (props: any) => {
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
onClick=
{
()
=>
onDownload
()
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
onClick=
{
()
=>
onDownload
()
}
>
<
FileWordFilled
/>
<
FileWordFilled
/>
<
span
>
{
Templatel
.
n
ame
}
</
span
>
<
span
>
{
Templatel
.
fileN
ame
}
</
span
>
</
div
>
</
div
>
<
Upload
<
Upload
...
...
src/pages/contract/manage/editing/components/ContractText.tsx
View file @
c31dd1a9
...
@@ -56,7 +56,7 @@ const ContractText = (props: any) => {
...
@@ -56,7 +56,7 @@ const ContractText = (props: any) => {
id
:
Templatel
.
T_emplateId
?
Templatel
.
T_emplateId
:
0
,
id
:
Templatel
.
T_emplateId
?
Templatel
.
T_emplateId
:
0
,
templateId
:
Templatel
.
templateId
?
Templatel
.
templateId
:
Templatel
.
id
,
templateId
:
Templatel
.
templateId
?
Templatel
.
templateId
:
Templatel
.
id
,
isUseElectronicContract
:
checkNick
?
1
:
0
,
isUseElectronicContract
:
checkNick
?
1
:
0
,
contractName
:
Templatel
.
n
ame
,
contractName
:
Templatel
.
fileN
ame
,
contractUrl
:
Templatel
.
fileExampleUrl
?
Templatel
.
fileExampleUrl
:
Templatel
.
contractUrl
contractUrl
:
Templatel
.
fileExampleUrl
?
Templatel
.
fileExampleUrl
:
Templatel
.
contractUrl
}
}
resolve
(
contractText
)
resolve
(
contractText
)
...
@@ -68,7 +68,7 @@ const ContractText = (props: any) => {
...
@@ -68,7 +68,7 @@ const ContractText = (props: any) => {
},
[])
},
[])
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
ctText
!=
null
)
{
if
(
ctText
!=
null
)
{
ctText
.
n
ame
=
ctText
.
contractName
;
ctText
.
fileN
ame
=
ctText
.
contractName
;
ctText
.
T_emplateId
=
ctText
.
id
;
ctText
.
T_emplateId
=
ctText
.
id
;
ctText
.
id
=
ctText
.
templateId
;
ctText
.
id
=
ctText
.
templateId
;
setCheckNick
(
ctText
.
isUseElectronicContract
?
true
:
false
)
setCheckNick
(
ctText
.
isUseElectronicContract
?
true
:
false
)
...
@@ -144,7 +144,7 @@ const ContractText = (props: any) => {
...
@@ -144,7 +144,7 @@ const ContractText = (props: any) => {
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_item
}
style=
{
{
width
:
680
}
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
>
<
div
className=
{
styles
.
upload_left
}
style=
{
{
width
:
600
}
}
>
<
FileWordFilled
/>
<
FileWordFilled
/>
<
span
>
{
Templatel
.
n
ame
}
</
span
>
<
span
>
{
Templatel
.
fileN
ame
}
</
span
>
</
div
>
</
div
>
<
Upload
<
Upload
action=
"/api/file/file/upload"
action=
"/api/file/file/upload"
...
...
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