3d添加印花 等
This commit is contained in:
@@ -68,11 +68,12 @@
|
||||
<script lang="ts">
|
||||
import { LoadingOutlined } from "@ant-design/icons-vue";
|
||||
import { message, Upload } from "ant-design-vue";
|
||||
import { defineComponent, onMounted, h, ref, nextTick, inject,reactive, toRefs } from "vue";
|
||||
import { defineComponent, onMounted, h, ref, nextTick, computed,reactive, toRefs } from "vue";
|
||||
import { MailOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons-vue';
|
||||
import { Https } from "@/tool/https";
|
||||
import { useStore } from "vuex";
|
||||
import { useRouter,useRoute } from 'vue-router'
|
||||
import { adminRouter } from "@/tool/adminRouter";
|
||||
import GO from "@/tool/GO";
|
||||
import { country } from "@/tool/country";
|
||||
import { getUploadUrl } from "@/tool/util";
|
||||
@@ -92,157 +93,13 @@ export default defineComponent({
|
||||
const router = useRouter()
|
||||
// const route:any = useRoute()
|
||||
const store:any = useStore()
|
||||
let userDetail:any= computed(()=>{
|
||||
return store.state.UserHabit.userDetail
|
||||
})
|
||||
const state:any = reactive({
|
||||
rootSubmenuKeys: [{
|
||||
name:'All User',
|
||||
route:'/administrator/allUser',
|
||||
icon:'yonghu',
|
||||
expandIcon:'icon-xiala',
|
||||
key:'sub1',
|
||||
isShow:true,
|
||||
// children: [
|
||||
// {
|
||||
// name:'User Management',
|
||||
// route:'/home/excil1',
|
||||
// icon:'',
|
||||
// key:'/home/excil22',
|
||||
// isShow:true,
|
||||
// },
|
||||
// {
|
||||
// code:'ROLE_MANAGER',
|
||||
// name:'Access Permission',
|
||||
// route:'/home/excil2',
|
||||
// icon:'',
|
||||
// key:'/home/excil33',
|
||||
// isShow:true,
|
||||
// },
|
||||
// ],
|
||||
},{
|
||||
name:'Design Frequency',
|
||||
route:'/administrator/testClickData',
|
||||
icon:'shenpi',
|
||||
expandIcon:'icon-xiala',
|
||||
key:'sub2',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'Trial User',
|
||||
icon:'usetime',
|
||||
expandIcon:'icon-xiala',
|
||||
key:'sub3',
|
||||
isShow:true,
|
||||
children:[
|
||||
{
|
||||
name:'All Trial User',
|
||||
route:'/administrator/trialAllUser',
|
||||
icon:'usetime',
|
||||
key:'sub3-1',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'Trial User Approval',
|
||||
route:'/administrator/trialApproval',
|
||||
icon:'usetime',
|
||||
key:'sub3-2',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'Trial User CHART',
|
||||
route:'/administrator/trialUserCountry',
|
||||
icon:'',
|
||||
key:'sub3-3',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'Conversion Rate',
|
||||
route:'/administrator/trialUserConversionRateChart',
|
||||
icon:'',
|
||||
key:'sub3-4',
|
||||
isShow:true,
|
||||
},
|
||||
]
|
||||
},{
|
||||
name:'Function Use CHART',
|
||||
route:'/administrator/recentActiveChart',
|
||||
icon:'usetime',
|
||||
key:'sub4',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'Active User',
|
||||
icon:'usetime',
|
||||
route:'/administrator/recentActiveUser',
|
||||
key:'sub5',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'New User',
|
||||
icon:'usetime',
|
||||
expandIcon:'icon-xiala',
|
||||
key:'sub6',
|
||||
isShow:true,
|
||||
children:[
|
||||
{
|
||||
name:'New User List',
|
||||
route:'/administrator/recentNewUser',
|
||||
icon:'',
|
||||
key:'sub6-1',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'New User CHART',
|
||||
route:'/administrator/recentNewUserChart',
|
||||
icon:'',
|
||||
key:'sub6-2',
|
||||
isShow:true,
|
||||
},
|
||||
]
|
||||
},{
|
||||
name:'Events',
|
||||
icon:'usetime',
|
||||
key:'sub9',
|
||||
expandIcon:'icon-xiala',
|
||||
isShow:true,
|
||||
children: [
|
||||
{
|
||||
name:'Questionnaire Survey',
|
||||
route:'/administrator/questionnaire',
|
||||
icon:'',
|
||||
key:'sub9-1',
|
||||
isShow:true,
|
||||
},
|
||||
// {
|
||||
// code:'ROLE_MANAGER',
|
||||
// name:'Access Permission',
|
||||
// route:'/home/excil2',
|
||||
// icon:'',
|
||||
// key:'/home/excil33',
|
||||
// isShow:true,
|
||||
// },
|
||||
],
|
||||
},{
|
||||
name:'Approval Affiliate',
|
||||
icon:'usetime',
|
||||
route:'/administrator/affiliateAudit',
|
||||
key:'sub10',
|
||||
isShow:true,
|
||||
},{
|
||||
name:'Transaction',
|
||||
icon:'usetime',
|
||||
expandIcon:'icon-xiala',
|
||||
key:'sub11',
|
||||
isShow:true,
|
||||
children: [
|
||||
{
|
||||
name:'Transaction Record',
|
||||
route:'/administrator/TransactionTable',
|
||||
icon:'',
|
||||
key:'sub11-1',
|
||||
isShow:true,
|
||||
},
|
||||
// {
|
||||
// code:'ROLE_MANAGER',
|
||||
// name:'Access Permission',
|
||||
// route:'/home/excil2',
|
||||
// icon:'',
|
||||
// key:'/home/excil33',
|
||||
// isShow:true,
|
||||
// },
|
||||
],
|
||||
}],
|
||||
|
||||
// 5,7
|
||||
rootSubmenuKeys: [],
|
||||
openKeys: [],
|
||||
selectedKeys: ['sub1'],
|
||||
nowPageName:'All User',//当前页面名称
|
||||
@@ -267,6 +124,18 @@ export default defineComponent({
|
||||
router.push('/home');
|
||||
}
|
||||
onMounted(() => {
|
||||
if(userDetail.value.systemUser == 5 || userDetail.value.systemUser == 7){
|
||||
state.rootSubmenuKeys = adminRouter.schoolOrEnterprise;
|
||||
}else{
|
||||
state.rootSubmenuKeys = adminRouter.all;
|
||||
}
|
||||
const route = router.currentRoute.value
|
||||
if(state.rootSubmenuKeys.some((item:any) => item.route === route.path) || route.path == "/administrator"){
|
||||
router.push(state.rootSubmenuKeys[0].route)
|
||||
}else{
|
||||
router.push('/administrator')
|
||||
}
|
||||
|
||||
state.rootSubmenuKeys.forEach((item:any) => {
|
||||
if(item.children){
|
||||
item.children.forEach((item:any) => {
|
||||
@@ -291,6 +160,11 @@ export default defineComponent({
|
||||
store.commit('setAllCitiesList',rv);
|
||||
}
|
||||
})
|
||||
Https.axiosGet(Https.httpUrls.getAllGenerateFuncName,).then((rv: any) => {
|
||||
if (rv) {
|
||||
store.commit('setAllGenerateType',rv);
|
||||
}
|
||||
})
|
||||
let allCountry = country
|
||||
sessionStorage.setItem('allCountry',JSON.stringify(allCountry));
|
||||
// state.nowPageName = state.rootSubmenuKeys[0].name
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
<!-- <i @click="Assignment" class="fi fi-rr-gift" title="Assignment"></i> -->
|
||||
<i @click="UpgradePlan" title="Purchase" class="fi fi-rr-shop"></i>
|
||||
</div>
|
||||
<!-- <div class="gallery_btn" style="margin-left: 3rem;" @click="subscribe">{{$t('Header.SubscribeNow')}}</div> -->
|
||||
<div v-if="userDetail.systemUser == 0 || userDetail.systemUser == 3" class="gallery_btn" style="margin-left: 3rem;" @click="subscribe">{{$t('Header.SubscribeNow')}}</div>
|
||||
<div v-else style="width: 30rem;"></div>
|
||||
</div>
|
||||
@@ -495,7 +496,7 @@ export default defineComponent({
|
||||
this.$router.replace("/");
|
||||
}
|
||||
this.store.commit('createDetail')
|
||||
store.commit('createProbject')
|
||||
this.store.commit('createProbject')
|
||||
|
||||
// WriteCookie("token");
|
||||
clonAllCookie()
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<brandDetail v-show="isBrandDetail" v-model:isShowMark="isShowMark" :selectCode="selectCode" ref="brandDetail" @handleBack="()=>isBrandDetail = false"></brandDetail>
|
||||
<brandDetail v-if="isBrandDetail" v-model:isShowMark="isShowMark" :selectCode="selectCode" ref="brandDetail" @handleBack="()=>isBrandDetail = false"></brandDetail>
|
||||
|
||||
</div>
|
||||
<div class="right_content_body" v-show="uploadGenerate !='Upload'">
|
||||
@@ -791,7 +791,9 @@ export default defineComponent({
|
||||
}
|
||||
const openBrandDetail = (item:any)=>{
|
||||
pageData.isBrandDetail = true
|
||||
dataDom.brandDetail.getBranDetailData(item)
|
||||
nextTick(()=>{
|
||||
dataDom.brandDetail.getBranDetailData(item)
|
||||
})
|
||||
}
|
||||
const addBrand = ()=>{
|
||||
dataDom.createBrand.openAddBrand()
|
||||
|
||||
1120
src/views/LoginPageEnterprise.vue
Normal file
1120
src/views/LoginPageEnterprise.vue
Normal file
File diff suppressed because it is too large
Load Diff
1120
src/views/LoginPageSchool.vue
Normal file
1120
src/views/LoginPageSchool.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -27,7 +27,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="homeRecommend_right">
|
||||
<div class="gallery_btn" v-if="userDetail.systemUser == 1 && !isMoblie" @click="goHome">Home</div>
|
||||
<div class="gallery_btn" v-if="userDetail.systemList.indexOf(1) > -1 && !isMoblie" @click="goHome">Home</div>
|
||||
<div class="gallery_btn white" v-if="userDetail.systemUser != -1" @click="logout">log off</div>
|
||||
</div>
|
||||
<div class="homeRecommend_right" v-if="userDetail.systemUser == -1">
|
||||
|
||||
Reference in New Issue
Block a user