mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
-- bug
This commit is contained in:
@@ -747,12 +747,6 @@ export default {
|
||||
tableDataTotal: -1, //学习路径列表总数
|
||||
pageSize: 10, //每页10条数据
|
||||
|
||||
imgData: [
|
||||
// {
|
||||
// id: 1,
|
||||
// source: require("../../assets/images/leveladd/1.png"),
|
||||
// },
|
||||
],
|
||||
// learnPathBg: null, //创建路径选择的路径图背景
|
||||
// learnPathBg2: null, //编辑路径选择的路径图背景
|
||||
pub: false, //发布弹窗
|
||||
@@ -861,8 +855,10 @@ export default {
|
||||
state.pathName = "";
|
||||
state.pathBg = "";
|
||||
state.pathBgId = "";
|
||||
state.organizationSelectName = store.state.userInfo.departName;
|
||||
state.organizationSelectId = store.state.userInfo.departId;
|
||||
if(store.state.userInfo.departId && store.state.userInfo.departName){
|
||||
state.organizationSelectName = store.state.userInfo.departName;
|
||||
state.organizationSelectId = store.state.userInfo.departId;
|
||||
}
|
||||
state.pathIntro = "";
|
||||
state.out = !state.out;
|
||||
};
|
||||
@@ -1625,7 +1621,7 @@ export default {
|
||||
state.pathIntro = detail.remark;
|
||||
state.editPathId = id;
|
||||
// console.log("state.imgData", state.imgData);
|
||||
let arr = state.imgData;
|
||||
let arr = imgData;
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
// console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg);
|
||||
if (arr[i].dictValue === state.pathBg) {
|
||||
@@ -1781,6 +1777,7 @@ export default {
|
||||
// };
|
||||
// getDictList("pathmapPic");
|
||||
//显示更多路径背景弹窗
|
||||
|
||||
const showLearnBgMore = () => {
|
||||
state.learnBgMore = true;
|
||||
};
|
||||
@@ -1791,11 +1788,12 @@ export default {
|
||||
onMounted(() => {
|
||||
// console.log("执行");
|
||||
getLearnPath();
|
||||
if (store.state.pathmapPic.length > 0) {
|
||||
console.log("store.state.pathmapPic", store.state.pathmapPic);
|
||||
state.imgData = store.state.pathmapPic;
|
||||
}
|
||||
// if (store.state.pathmapPic.length > 0) {
|
||||
// console.log("store.state.pathmapPic", store.state.pathmapPic);
|
||||
// state.imgData = ;
|
||||
// }
|
||||
});
|
||||
const imgData = computed(()=>store.state.pathmapPic)
|
||||
//添加权限
|
||||
watch(
|
||||
() => state.addAuthList,
|
||||
@@ -1829,6 +1827,7 @@ export default {
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
imgData,
|
||||
selectProjectName,
|
||||
expandTable,
|
||||
handleOut,
|
||||
|
||||
Reference in New Issue
Block a user