Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
96fb4f91
authored
2023-03-21 16:21:53 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:api文件配置化
1 parent
49397ded
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
public/config.json
src/api/business.js
src/api/dataReport.js
src/api/user.js
src/store/modules/permission.js
public/config.json
View file @
96fb4f9
{
"TITLE"
:
"汉中市数据上报系统"
,
"THEME"
:
"jg"
}
"THEME"
:
"sb"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"MANAGEMENTAPI"
:
"http: //192.168.2.236/management"
}
\ No newline at end of file
...
...
src/api/business.js
View file @
96fb4f9
/*
* @Description: 统计率
* @Autor: renchao
* @LastEditTime: 2023-03-
01 15:37:49
* @LastEditTime: 2023-03-
21 16:11:47
*/
/* 引入请求文件 */
import
request
from
'@/utils/request'
...
...
src/api/dataReport.js
View file @
96fb4f9
/*
* @Description: 数据上报模块api文件
* @Autor: renchao
* @LastEditTime: 2023-03-
03 14:38:57
* @LastEditTime: 2023-03-
21 16:21:31
*/
/* 引入axios请求文件 */
import
request
from
'@/utils/request'
/* 引入配置 */
import
SERVER
from
'./config'
let
SERVER
=
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
const
urlHeader
=
SERVER
.
SERVERAPI
+
'/rest/sjsb/DataReport/'
/**
...
...
src/api/user.js
View file @
96fb4f9
import
Vue
from
'vue'
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
// import SERVER from './config'
let
SERVER
=
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
// 获取用户信息
export
function
getUserInfo
()
{
return
request
({
...
...
src/store/modules/permission.js
View file @
96fb4f9
...
...
@@ -42,7 +42,6 @@ const actions = {
item
.
path
=
JSON
.
parse
(
item
.
metadata
)?.
path
||
'/'
if
(
!
item
.
parentId
)
{
item
.
component
=
Layout
console
.
log
(
item
.
component
);
}
else
{
item
.
component
=
loadView
(
item
.
uri
)
}
...
...
Please
register
or
sign in
to post a comment