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
6e4cbdc7
Commit
6e4cbdc7
authored
Jun 02, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature:企业信息提交字段更新
parent
b9c05701
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
264 additions
and
102 deletions
+264
-102
main.js
src/main.js
+14
-14
index.vue
src/pages/Enterprise/Audit/index.vue
+0
-11
index.vue
src/pages/Enterprise/Certification/index.vue
+19
-25
index.vue
src/pages/Enterprise/Establish/index.vue
+230
-51
enterprise.js
src/service/enterprise.js
+1
-1
No files found.
src/main.js
View file @
6e4cbdc7
import
{
createApp
}
from
'vue'
;
import
{
createApp
}
from
"vue"
;
import
App
from
'./App.vue'
;
import
App
from
"./App.vue"
;
import
router
from
'./router'
;
import
router
from
"./router"
;
import
store
from
'./store'
;
import
store
from
"./store"
;
import
ElementPlus
from
'element-plus'
;
import
ElementPlus
from
"element-plus"
;
import
'element-plus/lib/theme-chalk/index.css'
;
import
"element-plus/lib/theme-chalk/index.css"
;
import
'dayjs/locale/zh-cn'
;
import
"dayjs/locale/zh-cn"
;
import
locale
from
'element-plus/lib/locale/lang/zh-cn'
;
import
locale
from
"element-plus/lib/locale/lang/zh-cn"
;
import
{
fetchCurrentUser
}
from
'./service/user'
;
/* import { fetchCurrentUser } from "./service/user"
;
import
{
checkPathAuth
}
from
'./utils/authUtil'
;
import { checkPathAuth } from
"./utils/authUtil"
;
import
{
redirectToLogin
}
from
'./utils/util'
;
import { redirectToLogin } from
"./utils/util"; */
// 处理路由权限
// 处理路由权限
router
.
beforeResolve
(
async
(
to
,
from
,
next
)
=>
{
/*
router.beforeResolve(async (to, from, next) => {
if (to.meta.requireAuth && !store.state.permissions) {
if (to.meta.requireAuth && !store.state.permissions) {
const { status, user } = await fetchCurrentUser();
const { status, user } = await fetchCurrentUser();
if (status === 'success') {
if (status === 'success') {
...
@@ -31,10 +31,10 @@ router.beforeResolve(async (to, from, next) => {
...
@@ -31,10 +31,10 @@ router.beforeResolve(async (to, from, next) => {
} else {
} else {
next()
next()
}
}
})
})
*/
createApp
(
App
)
createApp
(
App
)
.
use
(
router
)
.
use
(
router
)
.
use
(
store
)
.
use
(
store
)
.
use
(
ElementPlus
,
{
locale
})
.
use
(
ElementPlus
,
{
locale
})
.
mount
(
'#app'
);
.
mount
(
"#app"
);
src/pages/Enterprise/Audit/index.vue
View file @
6e4cbdc7
...
@@ -290,17 +290,6 @@
...
@@ -290,17 +290,6 @@
align=
"center"
align=
"center"
prop=
"adminId"
prop=
"adminId"
></el-table-column>
></el-table-column>
<el-table-column
label=
"创建生活号"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
type=
"primary"
@
click=
"onCreateLife(scope.row)"
>
创建生活号
</el-button>
</
template
>
</el-table-column>
</el-table>
</el-table>
</el-card>
</el-card>
<!-- 查看详情__创建生活号表单 -->
<!-- 查看详情__创建生活号表单 -->
...
...
src/pages/Enterprise/Certification/index.vue
View file @
6e4cbdc7
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
@
click=
"goAuditPage('AUDIT', scope.row.id)"
@
click=
"goAuditPage('AUDIT', scope.row.id)"
>
审核
</el-button>
>
审核
</el-button>
<el-button
<el-button
:disabled=
"scope.row.status === 4 ? true : false"
disabled
size=
"mini"
size=
"mini"
type=
"success"
type=
"success"
@
click=
"goAuditPage('EDIT', scope.row.id)"
@
click=
"goAuditPage('EDIT', scope.row.id)"
...
@@ -212,24 +212,14 @@ export default {
...
@@ -212,24 +212,14 @@ export default {
// 企业认证管理列表
// 企业认证管理列表
enterpriseList
:
[
enterpriseList
:
[
{
{
id
:
1
,
id
:
1
status
:
1
,
code
:
1
,
name
:
"一点资讯"
,
userName
:
"蒙文昊"
,
date
:
"2021-05-24"
,
type
:
1
,
number
:
18147683288
}
}
],
],
// 跳转详情页弹窗
detailDialogVisible
:
false
,
// 跳转详情页弹窗
detailDialogVisible
:
false
,
currentPage
:
1
,
// 当前页
pageSize
:
20
,
// 每页条数
// 当前页
totalCount
:
0
// 总条数
currentPage
:
"1"
,
// 每页条数
pageSize
:
20
};
};
},
},
...
@@ -249,18 +239,21 @@ export default {
...
@@ -249,18 +239,21 @@ export default {
proxy_user_name
proxy_user_name
}
=
this
.
enterpriseForm
;
}
=
this
.
enterpriseForm
;
const
params
=
{
const
params
=
{
page
:
this
.
currentPage
,
page
:
this
.
currentPage
,
// 当前页
limit
:
this
.
pageSize
,
limit
:
this
.
pageSize
,
// 每页条数
name
,
name
,
// 企业注册名称
code
,
code
,
// 注册码
legal_person
,
legal_person
,
// 法人或经营者姓名
audit_status
,
audit_status
,
// 审核状态
data_form
,
data_form
,
// 提交类型
proxy_user_name
proxy_user_name
// 提交人账号
};
};
console
.
log
(
params
);
console
.
log
(
params
);
const
res
=
await
auditList
(
params
);
const
res
=
await
auditList
(
params
);
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
result
);
this
.
enterpriseList
=
res
.
result
.
data
;
this
.
total
},
},
// 重置表单
// 重置表单
...
@@ -294,7 +287,8 @@ export default {
...
@@ -294,7 +287,8 @@ export default {
// 换页操作
// 换页操作
handleCurrentChange
(
e
)
{
handleCurrentChange
(
e
)
{
console
.
log
(
e
);
this
.
currentPage
=
e
;
// 更换页码
this
.
getEnterpriseList
();
// 加载数据
}
}
}
}
};
};
...
...
src/pages/Enterprise/Establish/index.vue
View file @
6e4cbdc7
This diff is collapsed.
Click to expand it.
src/service/enterprise.js
View file @
6e4cbdc7
...
@@ -8,7 +8,7 @@ import axios from "../utils/request";
...
@@ -8,7 +8,7 @@ import axios from "../utils/request";
* @param query
* @param query
*/
*/
export
async
function
auditList
(
params
)
{
export
async
function
auditList
(
params
)
{
const
res
=
await
axios
.
post
(
`/api/v1/certification`
,
{
params
}
);
const
res
=
await
axios
.
post
(
`/api/v1/certification`
,
params
);
return
res
;
return
res
;
}
}
...
...
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