Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
authority
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 67343365
authored
Sep 06, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口
1 parent
61cffd5b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
102 deletions
package-lock.json
package.json
src/api/user.js
src/config/common.conf.js
src/views/customer/role/index.vue
package-lock.json
View file @
6734336
{
"name"
:
"
multiple-pages
"
,
"version"
:
"
0.1
.0"
,
"name"
:
"
authority
"
,
"version"
:
"
1.0
.0"
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
...
...
@@ -5488,9 +5488,9 @@
}
},
"glsx-vue-common"
:
{
"version"
:
"1.1.
8
"
,
"resolved"
:
"http
s://registry.npmjs.org/glsx-vue-common/-/glsx-vue-common-1.1.8
.tgz"
,
"integrity"
:
"sha
512-+dfVGaEQ2rhGJ5wMTgUAkcVVT7tod8TD8dMLu20EUuVS9Zk9Dfi4nNnbUxvTOwvmprxoP8g0uZ74PbFYY59/hw=
="
,
"version"
:
"1.1.
9
"
,
"resolved"
:
"http
://registry.npm.taobao.org/glsx-vue-common/download/glsx-vue-common-1.1.9
.tgz"
,
"integrity"
:
"sha
1-m8GtLp4JllxlM5EghaeasPBL4Pc
="
,
"requires"
:
{
"vue"
:
"2.5.17"
}
...
...
package.json
View file @
6734336
...
...
@@ -8,7 +8,7 @@
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
"glsx-vue-common"
:
"^1.1.
8
"
,
"glsx-vue-common"
:
"^1.1.
9
"
,
"glsx-vue-components"
:
"^1.0.12"
,
"lodash"
:
"^4.17.10"
,
"node-sass"
:
"^4.9.3"
,
...
...
src/api/user.js
0 → 100644
View file @
6734336
import
{
GlAxios
}
from
'glsx-vue-common'
const
path
=
'vue'
const
__sLogin
=
`
${
path
}
`
// const __sGetInfo = `auth/checkLogin`
// const __sLogout = `${path}/logout`
// const __sLt = `${path}/lt`
// const __sCheckLogin = `auth/checkLogin`
const
getInfo
=
{
p
:
[
__sLogin
],
req
:
(
subaddress
,
params
)
=>
GlAxios
.
post
(
__sLogin
+
subaddress
,
params
)
}
export
{
getInfo
}
src/config/common.conf.js
View file @
6734336
export
default
{
axios
:
{
baseURL
:
'http://192.168.3.171:7300/mock/5b
0ed7dbf189006180803286/standard
'
,
whiteList
:
[
'
user/login'
,
'user/info'
,
'user/logout'
,
'user/getInfo'
,
'vue/lt'
,
'vue/login'
,
'auth/checkLogin'
,
'vue/logou
t'
],
baseURL
:
'http://192.168.3.171:7300/mock/5b
91805391b67469b43e2921/subsystem
'
,
whiteList
:
[
'
vue/userList'
,
'vue/roleLis
t'
],
timeout
:
15000
,
result
:
{
data_key
:
'data'
,
// 返回值数据实体存放对象
...
...
src/views/customer/role/index.vue
View file @
6734336
...
...
@@ -18,6 +18,7 @@
<
script
>
import
{
RoleCreateDialog
}
from
'@/components/index'
import
{
getInfo
}
from
'@/api/user'
export
default
{
name
:
'role'
,
components
:
{
...
...
@@ -30,103 +31,13 @@ export default {
roleData
:
{
border
:
true
,
height
:
500
,
data
:
[{
id
:
'1032'
,
name
:
'好车主'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1033'
,
name
:
'运营平台'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1034'
,
name
:
'精品车主'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1035'
,
name
:
'云商分润'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1036'
,
name
:
'营销系统'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
},
{
id
:
'1037'
,
name
:
'test'
,
department
:
'研发中心-网络软件部'
,
state
:
'开启'
,
createTime
:
'2018-08-12 13:00:00'
}],
data
:
[],
column
:
[{
label
:
'序号'
,
prop
:
'id'
},
{
label
:
'角色名字'
,
prop
:
'name'
prop
:
'
role
name'
},
{
label
:
'所属部门'
,
prop
:
'department'
...
...
@@ -135,7 +46,7 @@ export default {
prop
:
'state'
},
{
label
:
'创建时间'
,
prop
:
'create
T
ime'
prop
:
'create
t
ime'
}],
console
:
{
label
:
'操作'
,
...
...
@@ -173,7 +84,19 @@ export default {
}
}
},
mounted
()
{
getInfo
.
req
(
'/roleList'
).
then
(
res
=>
{
this
.
roleData
.
data
=
res
.
roleData
console
.
log
(
this
.
roleData
.
data
)
})
},
methods
:
{
// getData() {
// getInfo.req('/roleList').then(res => {
// this.roleData.data = res
// console.log(res)
// })
// },
message
(
message
,
type
)
{
type
&&
this
.
$message
({
showClose
:
true
,
...
...
@@ -186,7 +109,6 @@ export default {
})
},
confirmDeleteOrNot
(
index
,
rows
)
{
alert
(
'?????'
)
this
.
$confirm
(
'确定要删除这条数据?'
,
'11'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment