mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
--demand 添加权限
This commit is contained in:
@@ -1125,6 +1125,7 @@ export default {
|
||||
pubtime: value.publishTime ? value.publishTime : "-",
|
||||
cretime: value.createTime ? value.createTime : "-",
|
||||
remark: value.remark ? value.remark : "-",
|
||||
permissions: value.permissions,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
@@ -1553,6 +1554,45 @@ export default {
|
||||
storage.set("routerId", id);
|
||||
}
|
||||
|
||||
const getLearnPathInfo = (id) => {
|
||||
// console.log("编辑学习路径图id", id);
|
||||
//获取学习路径详情
|
||||
api
|
||||
.getRouterDetail(id)
|
||||
.then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
console.log("获取学习路径详情成功", res.data.data);
|
||||
let detail = res.data.data.routerInfo;
|
||||
state.pathName = detail.name;
|
||||
state.pathBg = detail.picUrl;
|
||||
state.pathBgId = "";
|
||||
state.organizationSelectName = detail.organizationName;
|
||||
state.organizationSelectId = detail.organizationId;
|
||||
state.pathIntro = detail.remark;
|
||||
state.editPathId = id;
|
||||
let arr = imgData.value;
|
||||
arr.forEach((item) => {
|
||||
if (item.dictValue === state.pathBg) {
|
||||
state.pathBgId = item.dictCode;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
//for (let i = 0; i < arr.length; i++) {
|
||||
// console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg);
|
||||
// if (arr[i].dictValue === state.pathBg) {
|
||||
// state.pathBgId = arr[i].dictCode;
|
||||
|
||||
// }
|
||||
// }
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取详情失败", err);
|
||||
});
|
||||
state.out1 = true;
|
||||
};
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
imgData,
|
||||
@@ -1595,7 +1635,8 @@ export default {
|
||||
resetLearnPath,
|
||||
showLearnBgMore,
|
||||
closeLearnBgMore,
|
||||
checkPer
|
||||
checkPer,
|
||||
getLearnPathInfo
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user