Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
344bb3ed
Commit
344bb3ed
authored
Aug 11, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:认证审核btn失效
parent
1cf4da6f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
index.vue
src/pages/Enterprise/Audit/index.vue
+4
-2
util.js
src/utils/util.js
+2
-2
No files found.
src/pages/Enterprise/Audit/index.vue
View file @
344bb3ed
...
@@ -333,6 +333,8 @@
...
@@ -333,6 +333,8 @@
import
Layout
from
"@/layouts"
;
import
Layout
from
"@/layouts"
;
import
{
getRecordInfo
,
getLog
,
postAudit
}
from
"@/service/enterprise"
;
import
{
getRecordInfo
,
getLog
,
postAudit
}
from
"@/service/enterprise"
;
import
EnterpriseForm
from
"../components/enterpriseForm.vue"
;
import
EnterpriseForm
from
"../components/enterpriseForm.vue"
;
import
{
getCookie
}
from
"@/utils/util"
;
export
default
{
export
default
{
name
:
"Audit"
,
name
:
"Audit"
,
components
:
{
Layout
,
EnterpriseForm
},
components
:
{
Layout
,
EnterpriseForm
},
...
@@ -421,8 +423,8 @@ export default {
...
@@ -421,8 +423,8 @@ export default {
async
auditResult
(
status
)
{
async
auditResult
(
status
)
{
const
params
=
{
const
params
=
{
audit_status
:
status
,
audit_status
:
status
,
audit_user_name
:
this
.
$store
.
state
.
userInfo
.
name
,
audit_user_name
:
(
this
.
$store
.
state
.
userInfo
&&
this
.
$store
.
state
.
userInfo
.
name
)
||
getCookie
(
'nickname'
)
,
audit_user_id
:
this
.
$store
.
state
.
userInfo
.
userid
,
audit_user_id
:
(
this
.
$store
.
state
.
userInfo
&&
this
.
$store
.
state
.
userInfo
.
userid
)
||
getCookie
(
'userid'
)
,
enterprise_auth_record_id
:
this
.
auditId
,
enterprise_auth_record_id
:
this
.
auditId
,
audit_opinion
:
this
.
opinionArea
audit_opinion
:
this
.
opinionArea
};
};
...
...
src/utils/util.js
View file @
344bb3ed
...
@@ -40,7 +40,7 @@ export function setCookie(name, value) {
...
@@ -40,7 +40,7 @@ export function setCookie(name, value) {
var
hour
=
8
;
var
hour
=
8
;
var
exp
=
new
Date
();
var
exp
=
new
Date
();
exp
.
setTime
(
exp
.
getTime
()
+
hour
*
60
*
60
*
1000
);
exp
.
setTime
(
exp
.
getTime
()
+
hour
*
60
*
60
*
1000
);
document
.
cookie
=
name
+
"="
+
escape
(
value
)
+
";expires="
+
exp
.
toGMTString
()
+
";path=/"
;
document
.
cookie
=
name
+
"="
+
value
+
";expires="
+
exp
.
toGMTString
()
+
";path=/"
;
}
}
//获取cookie
//获取cookie
...
@@ -51,7 +51,7 @@ export function getCookie(NameOfCookie) {
...
@@ -51,7 +51,7 @@ export function getCookie(NameOfCookie) {
begin
+=
NameOfCookie
.
length
+
1
;
begin
+=
NameOfCookie
.
length
+
1
;
let
end
=
document
.
cookie
.
indexOf
(
";"
,
begin
);
let
end
=
document
.
cookie
.
indexOf
(
";"
,
begin
);
if
(
end
===
-
1
)
end
=
document
.
cookie
.
length
;
if
(
end
===
-
1
)
end
=
document
.
cookie
.
length
;
return
unescape
(
document
.
cookie
.
substring
(
begin
,
end
)
);
return
document
.
cookie
.
substring
(
begin
,
end
);
}
}
}
}
return
null
;
return
null
;
...
...
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