|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<div class="bench-work-box-style">
|
|
|
|
|
<MsgCenter style="width: calc(30% - 12px)"/>
|
|
|
|
|
<ToBeDone style="width: calc(35% - 12px)" :countData="todoCount" @btnClick="onDealBtnClick"/>
|
|
|
|
|
<MyApplication style="width: calc(35% - 12px)" :appData="crmData"/>
|
|
|
|
|
<MyApplication style="width: calc(35% - 12px)" :appData="crmData" @showApp="onShowApp"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="module-main-style">
|
|
|
|
|
<ModuleMain
|
|
|
|
@ -13,6 +13,17 @@
|
|
|
|
|
:moduleScrollTop="moduleScrollTop"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<FusionModalPanel
|
|
|
|
|
v-bind="modalObject"
|
|
|
|
|
@callback="modalCallback"
|
|
|
|
|
:style="{ display: showMainContent === true ? 'block' : 'none' }"
|
|
|
|
|
>
|
|
|
|
|
<component
|
|
|
|
|
v-if="modalObject.show"
|
|
|
|
|
:is="childDom"
|
|
|
|
|
v-bind="modalObject.params"
|
|
|
|
|
></component>
|
|
|
|
|
</FusionModalPanel>
|
|
|
|
|
<!--<div class="column-style">-->
|
|
|
|
|
<!--<MsgCenter/>-->
|
|
|
|
|
<!--<ToBeDone/>-->
|
|
|
|
@ -52,9 +63,12 @@
|
|
|
|
|
defaultShowModuleAndLayout,
|
|
|
|
|
themeData,
|
|
|
|
|
} from "./moduleAndLaySettingConfig";
|
|
|
|
|
import FusionModalPanel from "../../../../components/common/fusionModal/FusionModalPanel";
|
|
|
|
|
let showMain = true;
|
|
|
|
|
export default{
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
showMainContent: showMain,
|
|
|
|
|
listScroll:this.StaticParams.scrollOption,
|
|
|
|
|
crmData: null,
|
|
|
|
|
layoutData: {},//布局信息
|
|
|
|
@ -64,11 +78,25 @@
|
|
|
|
|
messageNumTimer: null,
|
|
|
|
|
todo_count: 0, //待办总数
|
|
|
|
|
moduleConfig: _.cloneDeep(GlobalParams.moduleConfig),
|
|
|
|
|
modalObject: {
|
|
|
|
|
show: false,
|
|
|
|
|
modalTitle: "",
|
|
|
|
|
destroyOnClose: true,
|
|
|
|
|
OKButton: true,
|
|
|
|
|
CancelButton: true,
|
|
|
|
|
modalWidth: "50%",
|
|
|
|
|
modalClassName: "",
|
|
|
|
|
zIndex: 100,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
this.$bus.on("accessSubsystem", this.onAccessSubsystem);
|
|
|
|
|
this.$bus.on("ModuleAndLayoutChange", this.layoutChange);
|
|
|
|
|
this.getLayoutInfo();
|
|
|
|
|
window.closePopup = () => {
|
|
|
|
|
this.modalObject.show = false;
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed:{
|
|
|
|
|
todoCount: function () {
|
|
|
|
@ -79,6 +107,11 @@
|
|
|
|
|
}
|
|
|
|
|
return obj;
|
|
|
|
|
},
|
|
|
|
|
childDom: function () {
|
|
|
|
|
return this.modalObject && this.modalObject.url !== ""
|
|
|
|
|
? () => import(`@/${this.modalObject.url}`)
|
|
|
|
|
: null;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
//获取布局信息
|
|
|
|
@ -109,6 +142,7 @@
|
|
|
|
|
} else {
|
|
|
|
|
this.layoutData = defaultShowModuleAndLayout;
|
|
|
|
|
}
|
|
|
|
|
this.changeTheme();
|
|
|
|
|
this.getCrmInfo();
|
|
|
|
|
} else {
|
|
|
|
|
Modal.warning({
|
|
|
|
@ -456,6 +490,7 @@
|
|
|
|
|
this.todo_count += count;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.$bus.emit("totalCountChange",this.todo_count)
|
|
|
|
|
if (this.messageNumTimer === null) {
|
|
|
|
|
this.messageNumTimer = setInterval(
|
|
|
|
|
this.getDesktopTodoNumbers,
|
|
|
|
@ -566,6 +601,19 @@
|
|
|
|
|
this.$bus.emit("layOutSettingChange",this.moduleLayout);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
//改变主题样式
|
|
|
|
|
changeTheme() {
|
|
|
|
|
let theme = themeData.filter((item) => {
|
|
|
|
|
return item.id === this.layoutData.theme;
|
|
|
|
|
})[0];
|
|
|
|
|
if (theme) {
|
|
|
|
|
Object.keys(theme).forEach((key) => {
|
|
|
|
|
if (key.indexOf("--") !== -1) {
|
|
|
|
|
document.documentElement.style.setProperty(key, theme[key]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//jurisdictionAry:[]//菜单id 从系统级别(一级)开始
|
|
|
|
|
jurisdictionIsExist(jurisdictionAry = [], testRange = true) {
|
|
|
|
|
let isExist = true;
|
|
|
|
@ -622,7 +670,7 @@
|
|
|
|
|
},
|
|
|
|
|
layoutChange:function (changeData) {
|
|
|
|
|
this.layoutData = changeData;
|
|
|
|
|
//this.changeTheme();
|
|
|
|
|
this.changeTheme();
|
|
|
|
|
this.calculateModuleData();
|
|
|
|
|
this.saveLayoutData();
|
|
|
|
|
},
|
|
|
|
@ -652,10 +700,78 @@
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
//更多应用跳转到子系统内
|
|
|
|
|
onAccessSubsystem: function (systemData) {
|
|
|
|
|
let params = {
|
|
|
|
|
purview_code: systemData.purview_code,
|
|
|
|
|
showOtherOneLevel:
|
|
|
|
|
systemData.show_oneLevel === true
|
|
|
|
|
? "showOtherOneMenu"
|
|
|
|
|
: "hideOtherOneMenu",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let qurey = {};
|
|
|
|
|
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];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(qurey)
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: "accessSubsystem",
|
|
|
|
|
params: params,
|
|
|
|
|
query: qurey,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onShowApp: function (appData) {
|
|
|
|
|
if (appData.window_type === "popupInPlatform") {
|
|
|
|
|
for (let key in this.modalObject) {
|
|
|
|
|
if (
|
|
|
|
|
appData.modal_params &&
|
|
|
|
|
appData.modal_params[key] !== null &&
|
|
|
|
|
appData.modal_params[key] !== undefined
|
|
|
|
|
) {
|
|
|
|
|
this.modalObject[key] = appData.modal_params[key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (appData.params) {
|
|
|
|
|
appData.params.appId = appData.id;
|
|
|
|
|
} else {
|
|
|
|
|
appData.params = { appId: appData.id };
|
|
|
|
|
}
|
|
|
|
|
this.modalObject.show = true;
|
|
|
|
|
this.modalObject.url = appData.app_content;
|
|
|
|
|
this.modalObject.params = appData.params;
|
|
|
|
|
} else if (appData.window_type === "accessSubsystem") {
|
|
|
|
|
this.onAccessSubsystem(appData);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
modalCallback: function ([type]) {
|
|
|
|
|
if (this.modalObject.callbak) {
|
|
|
|
|
this.modalObject.callbak(type);
|
|
|
|
|
} else {
|
|
|
|
|
this.modalObject.show = false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
// this.$bus.off("RoleChange", this.getCrmInfo);
|
|
|
|
|
// this.$bus.off("ModuleAndLayoutChange", this.layoutChange);
|
|
|
|
|
this.$bus.on("accessSubsystem", this.onAccessSubsystem);
|
|
|
|
|
this.$bus.on("ModuleAndLayoutChange", this.layoutChange);
|
|
|
|
|
if (this.messageNumTimer !== null) {
|
|
|
|
|
clearInterval(this.messageNumTimer)
|
|
|
|
|
// setInterval(this.messageNumTimer);
|
|
|
|
@ -671,7 +787,8 @@
|
|
|
|
|
PlanSummary,
|
|
|
|
|
SchoolDynamic,
|
|
|
|
|
Schedule,
|
|
|
|
|
ModuleMain
|
|
|
|
|
ModuleMain,
|
|
|
|
|
FusionModalPanel
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
@ -682,6 +799,9 @@
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
/* margin-top: 10px;*/
|
|
|
|
|
/deep/ .__view{
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
.bench-work-box-style{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 300px;
|
|
|
|
|