mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-11-22 18:39:32 +08:00
fix user page
This commit is contained in:
parent
bdf5b4ebae
commit
9e6ba56c0a
2
public/cdn/avue/1.5.3/avue.min.js
vendored
2
public/cdn/avue/1.5.3/avue.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,21 +1,18 @@
|
|||||||
import request from '@/router/axios';
|
import request from '@/router/axios';
|
||||||
export const getList = (current, size, dateRange, begin_date, end_date, params) => {
|
export const getList = (current, size, params) => {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/blade-desk/notice/list',
|
url: 'api/blade-desk/notice/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: Object.assign(params, {
|
params: Object.assign(params, {
|
||||||
current,
|
current,
|
||||||
size,
|
size,
|
||||||
dateRange,
|
|
||||||
begin_date,
|
|
||||||
end_date,
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export const remove = (ids) => {
|
export const remove = (ids) => {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/blade-system/notice/remove',
|
url: 'api/blade-desk/notice/remove',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
ids,
|
ids,
|
||||||
|
@ -92,7 +92,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "日志数据",
|
label: "日志数据",
|
||||||
prop: "logData",
|
prop: "stackTrace",
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
span: 24,
|
span: 24,
|
||||||
minRows: 6,
|
minRows: 6,
|
||||||
|
@ -92,7 +92,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "日志数据",
|
label: "日志数据",
|
||||||
prop: "logData",
|
prop: "stackTrace",
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
span: 24,
|
span: 24,
|
||||||
minRows: 6,
|
minRows: 6,
|
||||||
|
@ -92,7 +92,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "日志数据",
|
label: "日志数据",
|
||||||
prop: "logData",
|
prop: "stackTrace",
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
span: 24,
|
span: 24,
|
||||||
minRows: 6,
|
minRows: 6,
|
||||||
|
@ -79,6 +79,7 @@ export default {
|
|||||||
{
|
{
|
||||||
label: "所属角色",
|
label: "所属角色",
|
||||||
prop: "roleId",
|
prop: "roleId",
|
||||||
|
checkStrictly: true,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
type: "tree",
|
type: "tree",
|
||||||
dicUrl: "/api/blade-system/role/tree",
|
dicUrl: "/api/blade-system/role/tree",
|
||||||
@ -91,6 +92,7 @@ export default {
|
|||||||
label: "所属部门",
|
label: "所属部门",
|
||||||
prop: "deptId",
|
prop: "deptId",
|
||||||
type: "tree",
|
type: "tree",
|
||||||
|
checkStrictly: true,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
dicUrl: "/api/blade-system/dept/tree",
|
dicUrl: "/api/blade-system/dept/tree",
|
||||||
props: {
|
props: {
|
||||||
@ -129,6 +131,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
rowSave(row, loading) {
|
rowSave(row, loading) {
|
||||||
|
row.deptId = row.deptId.join(",");
|
||||||
|
row.roleId = row.roleId.join(",");
|
||||||
add(row).then(() => {
|
add(row).then(() => {
|
||||||
loading();
|
loading();
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
@ -139,6 +143,8 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
rowUpdate(row, index, loading) {
|
rowUpdate(row, index, loading) {
|
||||||
|
row.deptId = row.deptId.join(",");
|
||||||
|
row.roleId = row.roleId.join(",");
|
||||||
update(row).then(() => {
|
update(row).then(() => {
|
||||||
loading();
|
loading();
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
@ -221,6 +227,14 @@ export default {
|
|||||||
if (["edit", "view"].includes(type)) {
|
if (["edit", "view"].includes(type)) {
|
||||||
getUser(this.form.id).then(res => {
|
getUser(this.form.id).then(res => {
|
||||||
this.form = res.data.data;
|
this.form = res.data.data;
|
||||||
|
this.form.deptId = this.form.deptId.split(",");
|
||||||
|
this.form.deptId.forEach((ele, index) => {
|
||||||
|
this.form.deptId[index] = Number(ele);
|
||||||
|
});
|
||||||
|
this.form.roleId = this.form.roleId.split(",");
|
||||||
|
this.form.roleId.forEach((ele, index) => {
|
||||||
|
this.form.roleId[index] = Number(ele);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
done();
|
done();
|
||||||
|
Loading…
Reference in New Issue
Block a user