Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
81f8b88e
authored
2022-11-29 17:12:25 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore:用户接口整理
1 parent
7417f6b3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
90 deletions
src/api/home.js
src/api/selectQlxx.js
src/api/system.js
src/api/user.js
src/api/ygdjFlow.js
src/layout/components/Navbar.vue
src/views/home/components/addProject.vue
src/views/home/index.vue
src/views/workflow/mixin/public.js
src/api/home.js
deleted
100644 → 0
View file @
7417f6b
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
// 获取首页通知公告列表
export
function
getHomeNoticeList
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeNoticeList'
,
method
:
'get'
})
}
// 获取首页待办事项
export
function
getHomeTodoList
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeTodoList'
,
method
:
'get'
})
}
//获取首页已办事项
export
function
getHomeDoneList
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeDoneList'
,
method
:
'get'
})
}
//获取首页常办项目
export
function
getHomeFrequentProjects
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeFrequentProjects'
,
method
:
'get'
})
}
//保存常办项目
export
function
saveFrequentProjectsList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/saveFrequentProjectsList'
,
method
:
'post'
,
data
})
}
src/api/selectQlxx.js
View file @
81f8b88
...
...
@@ -10,17 +10,6 @@ export function selectOtherH (data) {
data
})
}
// /*
// 业务办理-选择单元-根据条件进行列表查询-房屋所有权
// */
// export function selectFwsyq (data) {
// return request({
// url: 'ywbl/ywsq/selectFwsyq',
// method: 'post',
// data,
// showLoading: true
// })
// }
/*
业务办理-选择抵押权信息-根据条件进行列表查询
*/
...
...
src/api/system.js
View file @
81f8b88
...
...
@@ -91,7 +91,6 @@ export function updateSysSqywmbsz (data) {
})
}
// 通知
// 新增系统通知
export
function
addSysNotice
(
data
)
{
...
...
src/api/user.js
View file @
81f8b88
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
// 用户首页
// 获取首页通知公告列表
export
function
getHomeNoticeList
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeNoticeList'
,
method
:
'get'
})
}
// 获取首页待办事项
export
function
getHomeTodoList
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeTodoList'
,
method
:
'get'
})
}
//获取首页已办事项
export
function
getHomeDoneList
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeDoneList'
,
method
:
'get'
})
}
//获取首页常办项目
export
function
getHomeFrequentProjects
()
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/getHomeFrequentProjects'
,
method
:
'get'
})
}
//保存常办项目
export
function
saveFrequentProjectsList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/workBench/saveFrequentProjectsList'
,
method
:
'post'
,
data
})
}
// 获取用户信息
export
function
getUserInfo
()
{
return
request
({
...
...
src/api/ygdjFlow.js
View file @
81f8b88
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
// 初始化内容
export
function
Init
(
data
)
{
let
apiUrl
=
""
;
switch
(
data
.
get
(
"djlx"
))
{
case
"100"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/fristInit"
;
break
;
case
"200"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/transferInit"
;
break
;
case
"300"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/changeInit"
;
break
;
case
"400"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/logoutInit"
;
break
;
case
"500"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/riviseInit"
;
break
;
case
"901"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/renewalInit"
;
break
;
case
"902"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/replaceInit"
;
break
;
}
return
request
({
url
:
apiUrl
,
method
:
'post'
,
data
})
export
function
Init
(
data
)
{
let
apiUrl
=
""
;
switch
(
data
.
get
(
"djlx"
))
{
case
"100"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/fristInit"
;
break
;
case
"200"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/transferInit"
;
break
;
case
"300"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/changeInit"
;
break
;
case
"400"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/logoutInit"
;
break
;
case
"500"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/riviseInit"
;
break
;
case
"901"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/renewalInit"
;
break
;
case
"902"
:
apiUrl
=
SERVER
.
SERVERAPI
+
"/rest/ywbl/ygdj/replaceInit"
;
break
;
}
return
request
({
url
:
apiUrl
,
method
:
'post'
,
data
})
}
// 初始化内容
export
function
saveData
(
data
)
{
console
.
log
(
"222222222222222"
+
data
);
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/ygdj/saveData'
,
method
:
'post'
,
...
...
src/layout/components/Navbar.vue
View file @
81f8b88
...
...
@@ -32,7 +32,7 @@ import { mapGetters } from 'vuex'
import
NoticeBar
from
'@/components/NoticeBar/index'
import
{
getHomeNoticeList
}
from
"@/api/
home.js
"
}
from
"@/api/
user
"
export
default
{
components
:
{
NoticeBar
...
...
src/views/home/components/addProject.vue
View file @
81f8b88
...
...
@@ -7,7 +7,7 @@
</
template
>
<
script
>
import
{
getMenuInfo
}
from
"@/api/user.js"
;
import
{
saveFrequentProjectsList
,
getHomeFrequentProjects
}
from
"@/api/
home
.js"
;
import
{
saveFrequentProjectsList
,
getHomeFrequentProjects
}
from
"@/api/
user
.js"
;
export
default
{
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
...
...
src/views/home/index.vue
View file @
81f8b88
...
...
@@ -106,7 +106,7 @@
<
script
>
import
*
as
G2
from
'@antv/g2'
import
vueSeamlessScroll
from
"vue-seamless-scroll"
import
{
getHomeNoticeList
,
getHomeTodoList
,
getHomeDoneList
,
getHomeFrequentProjects
}
from
"@/api/
home
.js"
;
import
{
getHomeNoticeList
,
getHomeTodoList
,
getHomeDoneList
,
getHomeFrequentProjects
}
from
"@/api/
user
.js"
;
import
addDialog
from
"./components/addProject.vue"
;
export
default
{
name
:
'home'
,
...
...
src/views/workflow/mixin/public.js
View file @
81f8b88
import
{
getForm
}
from
"../flowform"
;
import
{
getHomeNoticeList
}
from
"@/api/
home
.js"
import
{
getHomeNoticeList
}
from
"@/api/
user
.js"
export
default
{
data
()
{
return
{
...
...
Please
register
or
sign in
to post a comment