mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-12-23 01:29:27 +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';
|
||||
export const getList = (current, size, dateRange, begin_date, end_date, params) => {
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: 'api/blade-desk/notice/list',
|
||||
method: 'get',
|
||||
params: Object.assign(params, {
|
||||
current,
|
||||
size,
|
||||
dateRange,
|
||||
begin_date,
|
||||
end_date,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export const remove = (ids) => {
|
||||
return request({
|
||||
url: 'api/blade-system/notice/remove',
|
||||
url: 'api/blade-desk/notice/remove',
|
||||
method: 'post',
|
||||
data: {
|
||||
ids,
|
||||
|
@ -92,7 +92,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: "日志数据",
|
||||
prop: "logData",
|
||||
prop: "stackTrace",
|
||||
type: "textarea",
|
||||
span: 24,
|
||||
minRows: 6,
|
||||
|
@ -92,7 +92,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: "日志数据",
|
||||
prop: "logData",
|
||||
prop: "stackTrace",
|
||||
type: "textarea",
|
||||
span: 24,
|
||||
minRows: 6,
|
||||
|
@ -92,7 +92,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: "日志数据",
|
||||
prop: "logData",
|
||||
prop: "stackTrace",
|
||||
type: "textarea",
|
||||
span: 24,
|
||||
minRows: 6,
|
||||
|
@ -79,6 +79,7 @@ export default {
|
||||
{
|
||||
label: "所属角色",
|
||||
prop: "roleId",
|
||||
checkStrictly: true,
|
||||
multiple: true,
|
||||
type: "tree",
|
||||
dicUrl: "/api/blade-system/role/tree",
|
||||
@ -91,6 +92,7 @@ export default {
|
||||
label: "所属部门",
|
||||
prop: "deptId",
|
||||
type: "tree",
|
||||
checkStrictly: true,
|
||||
multiple: true,
|
||||
dicUrl: "/api/blade-system/dept/tree",
|
||||
props: {
|
||||
@ -129,6 +131,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
rowSave(row, loading) {
|
||||
row.deptId = row.deptId.join(",");
|
||||
row.roleId = row.roleId.join(",");
|
||||
add(row).then(() => {
|
||||
loading();
|
||||
this.onLoad(this.page);
|
||||
@ -139,6 +143,8 @@ export default {
|
||||
});
|
||||
},
|
||||
rowUpdate(row, index, loading) {
|
||||
row.deptId = row.deptId.join(",");
|
||||
row.roleId = row.roleId.join(",");
|
||||
update(row).then(() => {
|
||||
loading();
|
||||
this.onLoad(this.page);
|
||||
@ -221,6 +227,14 @@ export default {
|
||||
if (["edit", "view"].includes(type)) {
|
||||
getUser(this.form.id).then(res => {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user