This commit is contained in:
yuping
2022-12-12 23:35:35 +08:00
parent 2f4d00baa1
commit 240ac64d38

View File

@@ -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,