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