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

init
gongdi 3 years ago
parent a2f4ff0a64
commit ed10474809

@ -35,15 +35,26 @@
import InstitutionalDocuments from './InstitutionalDocuments.vue'; import InstitutionalDocuments from './InstitutionalDocuments.vue';
import personalDocument from './personalDocument.vue'; import personalDocument from './personalDocument.vue';
import shareDocuments from './shareDocuments.vue'; import shareDocuments from './shareDocuments.vue';
import OfficeMenuConfig from '../../../../../../../../../src/utils/officeMenuConfig';
export default ({ export default ({
data() { data() {
return { return {
isActive1: true, isActive1: true,
isActive2: false, isActive2: false,
isActive3: false, isActive3: false,
orgPower: false,//
personalPower: false,//
sharePower: false,//
} }
}, },
created(){
//
this.orgPower = OfficeMenuConfig.menuIsExist(["electronicMaterials", "agencyDocuments1"]);
//
this.personalPower = OfficeMenuConfig.menuIsExist(["electronicMaterials", "personalFiles"]);
//
this.sharePower = OfficeMenuConfig.menuIsExist(["electronicMaterials", "shareFiles"]);
},
components: { components: {
AIcon: Icon, AIcon: Icon,
ARow: Row, ARow: Row,

@ -1,27 +1,33 @@
<template> <template>
<div class="dataBaseTitleLarge"> <div class="dataBaseTitleLarge">
<a-row style="position: relative;" class="dataBaseTitleLargeRow"> <a-row style="position: relative;" class="dataBaseTitleLargeRow">
<a-col :key="1" :class="{'file-tab':!isActive1,'file-tab-active':isActive1}" <div class="col-item-style" v-if="orgPower">
@click.native="tabChange(1)"> <a-col :key="1" :class="{'file-tab':!isActive1,'file-tab-active':isActive1}"
<span class="title-tab-title">机构文件</span> @click.native="tabChange(1)">
<a-icon type="hdd" class="title-tab-icon"/> <span class="title-tab-title">机构文件</span>
<span class="tile-tab-cricle"></span> <a-icon type="hdd" class="title-tab-icon"/>
</a-col> <span class="tile-tab-cricle"></span>
<a-icon type="caret-right" class="active-icon1" v-show="isActive1"/> </a-col>
<a-col :key="2" :class="{'file-tab':!isActive2,'file-tab-active':isActive2}" <a-icon type="caret-right" class="active-icon1" v-show="isActive1"/>
@click.native="tabChange(2)"> </div>
<span class="title-tab-title">个人文件</span> <div class="col-item-style" v-if="personalPower">
<a-icon type="user" class="title-tab-icon"/> <a-col :key="2" :class="{'file-tab':!isActive2,'file-tab-active':isActive2}"
<span class="tile-tab-cricle"></span> @click.native="tabChange(2)">
</a-col> <span class="title-tab-title">个人文件</span>
<a-icon type="caret-right" class="active-icon2" v-show="isActive2"/> <a-icon type="user" class="title-tab-icon"/>
<a-col :key="3" :class="{'file-tab':!isActive3,'file-tab-active':isActive3}" <span class="tile-tab-cricle"></span>
@click.native="tabChange(3)"> </a-col>
<span class="title-tab-title">分享文件</span> <a-icon type="caret-right" class="active-icon1" v-show="isActive2"/>
<a-icon type="share-alt" class="title-tab-icon"/> </div>
<span class="tile-tab-cricle"></span> <div class="col-item-style" v-if="sharePower">
</a-col> <a-col :key="3" :class="{'file-tab':!isActive3,'file-tab-active':isActive3}"
<a-icon type="caret-right" class="active-icon3" v-show="isActive3"/> @click.native="tabChange(3)">
<span class="title-tab-title">分享文件</span>
<a-icon type="share-alt" class="title-tab-icon"/>
<span class="tile-tab-cricle"></span>
</a-col>
<a-icon type="caret-right" class="active-icon1" v-show="isActive3"/>
</div>
</a-row> </a-row>
<InstitutionalDocumentsLarge v-if="isActive1"/> <InstitutionalDocumentsLarge v-if="isActive1"/>
<personalDocumentLarge v-if="isActive2"/> <personalDocumentLarge v-if="isActive2"/>
@ -33,12 +39,34 @@
import InstitutionalDocumentsLarge from './InstitutionalDocumentsLarge.vue' import InstitutionalDocumentsLarge from './InstitutionalDocumentsLarge.vue'
import personalDocumentLarge from './personalDocumentLarge.vue' import personalDocumentLarge from './personalDocumentLarge.vue'
import shareDocumentsLarge from './shareDocumentsLarge.vue' import shareDocumentsLarge from './shareDocumentsLarge.vue'
import OfficeMenuConfig from '../../../../../../../../../src/utils/officeMenuConfig';
export default ({ export default ({
data(){ data(){
return { return {
isActive1: true, isActive1: false,
isActive2: false, isActive2: false,
isActive3: false, isActive3: false,
orgPower: false,//
personalPower: false,//
sharePower: false,//
}
},
created(){
//
this.orgPower = OfficeMenuConfig.menuIsExist(["electronicMaterials", "agencyDocuments1"]);
//
this.personalPower = OfficeMenuConfig.menuIsExist(["electronicMaterials", "personalFiles"]);
//
this.sharePower = OfficeMenuConfig.menuIsExist(["electronicMaterials", "shareFiles"]);
if(this.orgPower){
this.isActive1 = true;
}else {
if(this.personalPower){
this.isActive2 = true;
}else {
this.isActive3 = true;
}
} }
}, },
components: { components: {
@ -89,6 +117,15 @@
/deep/ .ant-row:nth-last-child { /deep/ .ant-row:nth-last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.col-item-style {
width: 100%;
position: relative;
.active-icon1 {
position: absolute;
right: 0;
bottom: 40%;
}
}
} }
.file-tab { .file-tab {
width: 90%; width: 90%;
@ -166,15 +203,15 @@
margin: 15px 0; margin: 15px 0;
} }
.active-icon1 { /* .active-icon1 {
position: absolute; position: absolute;
top: 30px; top: 30px;
right: -2px; right: -2px;
font-size: 22px; font-size: 22px;
color: #027DB3; color: #027DB3;
display: inline-block; display: inline-block;
float: left; float: left;
} }*/
.active-icon2 { .active-icon2 {
position: absolute; position: absolute;
top: 136px; top: 136px;

@ -118,7 +118,6 @@
if (result[0].status === 200) { if (result[0].status === 200) {
let data = result[0].data; let data = result[0].data;
if (data.code === 2000) { if (data.code === 2000) {
console.log(data.data)
//cookie //cookie
this.Cookie.set("person_id", data.data.person_id); this.Cookie.set("person_id", data.data.person_id);
this.Cookie.set("identity_id", data.data.identity_id); this.Cookie.set("identity_id", data.data.identity_id);
@ -141,11 +140,13 @@
// } // }
// }) // })
} else { } else {
this.passwordErrorTips = result[0].data.info; this.passwordErrorTips = result[0].data.info?result[0].data.info:"";
this.isLogining = false; this.isLogining = false;
this.closePanel();
} }
} else { } else {
this.isLogining = false; this.isLogining = false;
this.closePanel();
} }
}) })
}, },

Loading…
Cancel
Save