洋浦学校八大中心 德育管理前端

init
gongdi 3 years ago
parent 8add9fdbfd
commit bd2e340614

@ -94,7 +94,6 @@
this.showPanel = newData;
},
infoObj: function (newData) {
console.log("infoObj变化:", newData)
this.infoTitle = newData.title;
this.infoArr = newData.infoArr;
this.contentHtml = newData.content;

@ -91,7 +91,6 @@
this.showPanel = newData;
},
infoObj: function (newData) {
console.log("infoObj变化:", newData)
this.infoTitle = newData.title;
this.infoArr = newData.infoArr;
this.contentHtml = newData.content;

@ -40,8 +40,6 @@
this.img.key = this.img.key.replace(/[\\]/g, '');
return this.BaseConfig.url_path_down + this.img.key;
}else if(this.img.url && this.img.url !== ""){
console.log("imgUrl:",this.BaseConfig.url_path_down)
console.log("imgUrl:",this.BaseConfig.url_path_down + this.img.url)
return this.BaseConfig.url_path_down + this.img.url;
}
} else {

@ -36,6 +36,11 @@
}
},
beforeRouteEnter(to, from, next) {
//to.query.oneLevel = 'newsInformation_two';
//storequery query
next(vm => {
vm.$store.commit('userStore/setQueryStore', to.query);
})
if (to.query.oneLevel) {
oneLevel = to.query.oneLevel;
} else {
@ -51,6 +56,7 @@
} else {
type = '';
}
next();
},

@ -87,7 +87,7 @@
},
mounted(){
this.getLayoutInfo();
this.$bus.on("accessSubsystem", this.onAccessSubsystem);
//this.$bus.on("accessSubsystem", this.onAccessSubsystem);
this.$bus.on("ModuleAndLayoutChange", this.layoutChange);
this.$bus.on("getDesktopTodoNumbers",this.getDesktopTodoNumbers);
//this.$bus.on("showApp", this.onShowApp);

@ -166,7 +166,6 @@
method: InterConfig.getModifyPhoto.method,
isTestLogin: InterConfig.getModifyPhoto.isTestLogin,
}], (result) => {
console.log('获取证件照', result)//" "
if (result[0].data.code === 2000 && result[0].data.id_photo_json !== "") {
this.modifyPhotoObj = JSON.parse(result[0].data.id_photo_json)
}

@ -305,7 +305,6 @@
params: param,
method: "post",
}], (result) => {
console.log("队伍建设:",result)
this.spinning = false;
if(result[0].data.success){
let res = result[0].data.result;
@ -378,7 +377,6 @@
let arr = JSON.parse(res);
if(arr && arr.length > 0){
this.headMasterTrainData.push(...arr)
console.log("班主任培训数据",this.headMasterTrainData)
for(let i = 0,len = this.headMasterTrainData.length;i < len;i ++){
let json = this.headMasterTrainData[i].cover_json;
if(json && json !== ""){
@ -427,7 +425,6 @@
if(arr && arr.length > 0){
if(arr && arr.length > 0){
this.titleData.push(...arr);
console.log("this.titleData:",this.titleData)
this.excellent_id = this.titleData[0].excellent_id
if(this.excellent_id !== ""){
this.getMasterBextData2()//2
@ -466,7 +463,6 @@
let res = result[0].data.result;
if (res && res !== "") {
let arr = JSON.parse(res);
console.log("班主任评优数据:",arr)
if (arr && arr.length > 0) {
if (arr && arr.length > 0) {
this.bestHeadMaster1.push(...arr);

@ -238,7 +238,6 @@
},
//
changeSystemData: function (config) {
console.log("$bus.emit:",config)
this.systemData = config;
},
//
@ -301,7 +300,45 @@
},
onAccessSubsystem: function (systemData) {
this.$refs.systemListRef.clicked = false;
this.$bus.emit("accessSubsystem", systemData);
//this.$bus.emit("accessSubsystem", systemData);
let params = {
purview_code: systemData.purview_code,
showOtherOneLevel:
systemData.show_oneLevel === true
? "showOtherOneMenu"
: "hideOtherOneMenu",
};
let qurey = {};
let queryStore = this.$store.state.userStore.query;
console.log("queryStore:",queryStore)
// if(queryStore){
// qurey = queryStore;
// }
if (
systemData.menu_name &&
Array.isArray(systemData.menu_name) &&
systemData.menu_name.length > 0
) {
if (systemData.menu_name[0] && systemData.menu_name[0] !== "") {
qurey.oneLevel = systemData.menu_name[0];
}
if (systemData.menu_name[1] && systemData.menu_name[1] !== "") {
qurey.twoLevel = systemData.menu_name[1];
}
if (systemData.menu_name[2] && systemData.menu_name[1] !== "") {
qurey.bussinessType = systemData.menu_name[2];
}
}
this.$router.push({
name: "accessSubsystem",
params: params,
query: qurey,
});
},
//
servicePlatform: function (systemData) {

@ -9,6 +9,7 @@ export default {
showLoginBox: false,//是否弹出登录框
theme: "systemTheme",//主题,
crmStore:null,
query:null,
},
getter: {
user: state => state.user,
@ -19,6 +20,7 @@ export default {
showLoginBox: state => state.showLoginBox,
theme: state => state.theme,
crmStore: state => state.crmStore,
query: state => state.query,
},
mutations: {
setUser (state, user) {
@ -45,6 +47,9 @@ export default {
setCrmStore (state, crm) {
state.crmStore = crm;
},
setQueryStore (state, query) {
state.query = query;
},
clearUser (state) {
state.user = null;
state.roles = null;
@ -54,6 +59,7 @@ export default {
state.showLoginBox = false;
state.theme = "systemTheme";
state.crmStore = null;
state.query = null;
}
}
}
Loading…
Cancel
Save