Commit 78a3a205 authored by shen_yan_pu's avatar shen_yan_pu

修改

parent 98b4034e
...@@ -37,7 +37,7 @@ export function editBanner(data) { ...@@ -37,7 +37,7 @@ export function editBanner(data) {
// 查询角色列表 // 查询角色列表
export function listRole(query) { export function listRole(query) {
return request({ return request({
url: '/authority/system/role/list', url: '/system/role/list',
method: 'get', method: 'get',
params: query params: query
}) })
......
...@@ -3,7 +3,7 @@ import request from '@/utils/request' ...@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询参数列表 // 查询参数列表
export function listConfig(query) { export function listConfig(query) {
return request({ return request({
url: '/authority/system/config/list', url: '/system/config/list',
method: 'get', method: 'get',
params: query params: query
}) })
...@@ -20,7 +20,7 @@ export function getConfig(configId) { ...@@ -20,7 +20,7 @@ export function getConfig(configId) {
// 根据参数键名查询参数值 // 根据参数键名查询参数值
export function getConfigKey(configKey) { export function getConfigKey(configKey) {
return request({ return request({
url: '/authority/system/config/configKey/' + configKey, // url: '/system/config/configKey/' + configKey,
method: 'get' method: 'get'
}) })
} }
...@@ -28,7 +28,7 @@ export function getConfigKey(configKey) { ...@@ -28,7 +28,7 @@ export function getConfigKey(configKey) {
// 新增参数配置 // 新增参数配置
export function addConfig(data) { export function addConfig(data) {
return request({ return request({
url: '/authority/system/config', url: '/system/config',
method: 'post', method: 'post',
data: data data: data
}) })
...@@ -37,7 +37,7 @@ export function addConfig(data) { ...@@ -37,7 +37,7 @@ export function addConfig(data) {
// 修改参数配置 // 修改参数配置
export function updateConfig(data) { export function updateConfig(data) {
return request({ return request({
url: '/authority/system/config', url: '/system/config',
method: 'put', method: 'put',
data: data data: data
}) })
...@@ -46,7 +46,7 @@ export function updateConfig(data) { ...@@ -46,7 +46,7 @@ export function updateConfig(data) {
// 删除参数配置 // 删除参数配置
export function delConfig(configId) { export function delConfig(configId) {
return request({ return request({
url: '/authority/system/config/' + configId, url: '/system/config/' + configId,
method: 'delete' method: 'delete'
}) })
} }
...@@ -54,7 +54,7 @@ export function delConfig(configId) { ...@@ -54,7 +54,7 @@ export function delConfig(configId) {
// 清理参数缓存 // 清理参数缓存
export function clearCache() { export function clearCache() {
return request({ return request({
url: '/authority/system/config/clearCache', url: '/system/config/clearCache',
method: 'delete' method: 'delete'
}) })
} }
...@@ -62,7 +62,7 @@ export function clearCache() { ...@@ -62,7 +62,7 @@ export function clearCache() {
// 导出参数 // 导出参数
export function exportConfig(query) { export function exportConfig(query) {
return request({ return request({
url: '/authority/system/config/export', url: '/system/config/export',
method: 'get', method: 'get',
params: query params: query
}) })
......
...@@ -31,17 +31,21 @@ export function addUser(data) { ...@@ -31,17 +31,21 @@ export function addUser(data) {
return request({ return request({
url: '/system/user/add', url: '/system/user/add',
method: 'post', method: 'post',
data: data data
}) })
} }
// 修改用户 // 修改用户
export function updateUser(data) { export function updateUser(data) {
const businessId = data.businessId const businessId = data.businessId
data = Qs.stringify(data)
return request({ return request({
url: '/system/user/update/' + businessId, url: '/system/user/update/' + businessId,
method: 'put', method: 'put',
data: data data: data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}) })
} }
......
This diff is collapsed.
...@@ -58,6 +58,7 @@ export default { ...@@ -58,6 +58,7 @@ export default {
return { return {
form: { form: {
name: '', name: '',
idNumber: '',
groupId: '', groupId: '',
type: '', type: '',
level: '', level: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment