Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sup-server
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
Administrator
sup-server
Commits
185f4763
Commit
185f4763
authored
Nov 22, 2022
by
liaoxingda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
b53c1a6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
29 deletions
+41
-29
login.js
dsk-srm-server/src/api/login.js
+8
-6
register.vue
dsk-srm-server/src/register.vue
+33
-23
No files found.
dsk-srm-server/src/api/login.js
View file @
185f4763
...
...
@@ -55,6 +55,13 @@ export const getCategoryList = (data) => network({
data
});
export
const
register
=
(
data
)
=>
network
({
url
:
"/register"
,
method
:
"post"
,
data
});
export
const
uploadFile
=
(
data
)
=>
network
({
url
:
"/file/uploadFile"
,
method
:
"post"
,
...
...
@@ -62,9 +69,4 @@ export const uploadFile = (data) => network({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
});
export
const
register
=
(
data
)
=>
network
({
url
:
"/register"
,
method
:
"post"
,
});
});
\ No newline at end of file
dsk-srm-server/src/register.vue
View file @
185f4763
...
...
@@ -103,11 +103,11 @@
<el-form-item
label=
"统一社会信用代码"
prop=
"creditCode"
>
<el-input
v-model=
"ruleForm.creditCode"
placeholder=
"请输入统一社会信用代码"
></el-input>
</el-form-item>
<el-form-item
label=
"法定代表人"
prop=
"
name
"
class=
"left-title more-left-title"
>
<el-input
v-model=
"ruleForm.
name
"
placeholder=
"请输入法定代表人"
></el-input>
<el-form-item
label=
"法定代表人"
prop=
"
legalPerson
"
class=
"left-title more-left-title"
>
<el-input
v-model=
"ruleForm.
legalPerson
"
placeholder=
"请输入法定代表人"
></el-input>
</el-form-item>
<el-form-item
label=
"注册资本"
prop=
"registeredCapital"
>
<el-input
v-model=
"ruleForm.registeredCapital"
placeholder=
"请输入注册资本"
></el-input>
<el-input
v-model=
"ruleForm.registeredCapital"
placeholder=
"请输入注册资本"
oninput=
"if(isNaN(value))
{ value = null } if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)}"
>
</el-input>
</el-form-item>
<el-form-item
label=
"成立日期"
prop=
"registeredDate"
class=
"left-title"
>
<el-date-picker
v-model=
"ruleForm.registeredDate"
...
...
@@ -138,13 +138,13 @@
:before-upload=
'beforeAvatarUpload'
>
<!--
<el-upload
ref=
"upload"
:auto-upload=
"false"
:data=
"ruleForm"
class=
"avatar-uploader"
action=
"uploadFile"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
-->
:auto-upload=
"false"
:data=
"ruleForm"
class=
"avatar-uploader"
action=
"uploadFile"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
-->
<img
v-if=
"ruleForm.licenseUrl"
:src=
"ruleForm.licenseUrl"
class=
"avatar"
style=
" height: 100%;"
>
<div
v-else
>
...
...
@@ -166,13 +166,13 @@
:before-upload=
'beforeAvatarUpload'
>
<!--
<el-upload
ref=
"upload"
:auto-upload=
"false"
:data=
"ruleForm"
class=
"avatar-uploader"
action=
"http://localhost:8866/test/file/uploadFile"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
-->
:auto-upload=
"false"
:data=
"ruleForm"
class=
"avatar-uploader"
action=
"http://localhost:8866/test/file/uploadFile"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
-->
<img
v-if=
"ruleForm.cardUrl"
:src=
"ruleForm.cardUrl"
class=
"avatar"
style=
" height: 100%;"
>
<div
v-else
>
...
...
@@ -190,7 +190,8 @@
<el-input
v-model=
"catIdName"
placeholder=
"请选择供应类型选择"
:disabled=
"true"
></el-input>
</el-form-item>
<div
class=
"form-title"
>
合作承诺函
</div>
<el-form-item
label=
"合作承诺函"
style=
" margin-bottom: 0;"
class=
"more-left-title more-content-left-title"
>
<el-form-item
label=
"合作承诺函"
prop=
"fileUrl"
style=
" margin-bottom: 0;"
class=
"more-left-title more-content-left-title"
>
<el-input
v-model=
"ruleForm.fileUrl"
style=
"opacity: 0; position: absolute; height: 0;z-index:-1"
></el-input>
<el-upload
ref=
"upload"
:data=
"ruleForm"
class=
"avatar-uploader"
...
...
@@ -201,7 +202,6 @@
:on-change=
'hezuoChangeUpload'
:before-upload=
'beforeAvatarUploadWord'
style=
"width: 66px; float: left;"
>
<el-input
v-model=
"ruleForm.fileUrl"
:disabled=
"true"
style=
"opacity: 0; position: absolute; height: 0;"
></el-input>
<div
plain
style=
" width: 66px; height: 32px; border-radius: 4px 4px 4px 4px; line-height: 32px; opacity: 1; border: 1px solid #0081FF; color: #0081FF;"
>
<i
class=
"el-icon-upload2"
></i>
上传
</div>
...
...
@@ -812,12 +812,17 @@
register
(
ruleForm
)
{
this
.
$refs
[
ruleForm
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
!
this
.
ruleForm
.
fileUrl
)
{
this
.
$message
.
error
(
'请上传合作承诺函'
);
return
false
;
}
//
if (!this.ruleForm.fileUrl) {
//
this.$message.error('请上传合作承诺函');
//
return false;
//
}
let
param
=
{
...
this
.
form
,
...
this
.
ruleForm
};
delete
param
.
name
delete
param
.
passwordCheck
param
.
registeredCapital
=
param
.
registeredCapital
*
1
param
.
registeredAddress
=
param
.
registeredAddress
.
toString
()
param
.
registeredDate
=
param
.
registeredDate
.
toLocaleString
()
console
.
log
(
typeof
param
.
registeredCapital
)
console
.
log
(
param
)
register
(
param
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -954,6 +959,7 @@
uploadFile
(
fd
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
ruleForm
.
fileUrl
=
res
.
url
this
.
ruleForm
.
fileName
=
res
.
fileName
}
})
},
...
...
@@ -1519,6 +1525,10 @@
}
}
::v-deep
.el-dialog.registration-policy
{
.el-dialog__title
{
font-weight
:
bold
;
}
.el-dialog__body
{
height
:
567px
;
overflow-y
:
auto
;
...
...
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