添加进入管理员页面按钮和进入管理员页面必须指定id
This commit is contained in:
@@ -1578,6 +1578,7 @@ export default defineComponent({
|
|||||||
Promise.all(allPromise)
|
Promise.all(allPromise)
|
||||||
.then(promiseArr => {
|
.then(promiseArr => {
|
||||||
if(arr.length > 0){
|
if(arr.length > 0){
|
||||||
|
arr.forEach((item,index)=>arr[index]+=1)
|
||||||
let str = arr.join(',')
|
let str = arr.join(',')
|
||||||
message.info(useI18.t('exportModel.jsContent5',{str:str}))
|
message.info(useI18.t('exportModel.jsContent5',{str:str}))
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -53,14 +53,14 @@ export default {
|
|||||||
HDExport:'高清导出',
|
HDExport:'高清导出',
|
||||||
Export:'导出',
|
Export:'导出',
|
||||||
SR:'请选择需要超分的图片',
|
SR:'请选择需要超分的图片',
|
||||||
requiresCredits:'每张图片需要消耗{data}积分',
|
requiresCredits:'执行超分的图片需要消耗{data}积分',
|
||||||
Scale:'倍率',
|
Scale:'倍率',
|
||||||
Cancel:'取消',
|
Cancel:'取消',
|
||||||
jsContent1:'画布内容没有保存是否离开页面',
|
jsContent1:'画布内容没有保存是否离开页面',
|
||||||
jsContent2:'我们只支持对印花进行超分',
|
jsContent2:'我们只支持对印花进行超分',
|
||||||
jsContent3:'您的积分小于一次超分',
|
jsContent3:'您的积分小于一次超分',
|
||||||
jsContent4:'您的积分余额不足',
|
jsContent4:'您的积分余额不足',
|
||||||
jsContent5:'你选择的第 {str}张图片宽度或者高度超过2048,',
|
jsContent5:'您选择的{str}张图像在超分辨率增强后的分辨率超过2048。请选择较低的放大倍数。',
|
||||||
jsContent6:'请选择需要超分的图片',
|
jsContent6:'请选择需要超分的图片',
|
||||||
},
|
},
|
||||||
upgradePlan:{
|
upgradePlan:{
|
||||||
|
|||||||
@@ -54,14 +54,14 @@ export default {
|
|||||||
HDExport:'UpScale',
|
HDExport:'UpScale',
|
||||||
Export:'Export',
|
Export:'Export',
|
||||||
SR:'Please select the picture that requires upscale',
|
SR:'Please select the picture that requires upscale',
|
||||||
requiresCredits:'Each picture requires {data} credits',
|
requiresCredits:'Performing upscale image requires a {data} integral',
|
||||||
Scale:'Scale',
|
Scale:'Scale',
|
||||||
Cancel:'Cancel',
|
Cancel:'Cancel',
|
||||||
jsContent1:'Canvas edit content is not saved, whether to leave the page',
|
jsContent1:'Canvas edit content is not saved, whether to leave the page',
|
||||||
jsContent2:'We only provide super-resolution capabilities for printboard images.',
|
jsContent2:'We only provide super-resolution capabilities for printboard images.',
|
||||||
jsContent3:'Your points are less than one SR',
|
jsContent3:'Your points are less than one SR',
|
||||||
jsContent4:'Your points balance is insufficient',
|
jsContent4:'Your points balance is insufficient',
|
||||||
jsContent5:'You selected the {str} image and zoom ratio more than 2048,',
|
jsContent5:'The resolution of the {str} images you selected exceeds 2048 after super-resolution enhancement, Please choose a lower magnification level.',
|
||||||
jsContent6:'Please select the picture that requires upscale',
|
jsContent6:'Please select the picture that requires upscale',
|
||||||
},
|
},
|
||||||
upgradePlan:{
|
upgradePlan:{
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
let token = getCookie("token");
|
let token = getCookie("token");
|
||||||
let isMurmur = JSON.parse(getIsMurmur)
|
let isMurmur = JSON.parse(getIsMurmur)
|
||||||
let routeList = ['/testClickData','/trialApproval']//指定页面需要指定id才能进入
|
let routeList = ['/testClickData','/trialApproval']//指定页面需要指定id才能进入
|
||||||
let userIdList = [83,88,6,87]
|
let userIdList = [88,6,46,31,73,83,87]
|
||||||
const routeExists = router.getRoutes().some(({ name }) =>{
|
const routeExists = router.getRoutes().some(({ name }) =>{
|
||||||
if(name){
|
if(name){
|
||||||
return name === to.name
|
return name === to.name
|
||||||
|
|||||||
@@ -32,6 +32,11 @@
|
|||||||
<!-- <i @click="Assignment" class="fi fi-rr-gift" title="Assignment"></i> -->
|
<!-- <i @click="Assignment" class="fi fi-rr-gift" title="Assignment"></i> -->
|
||||||
<i @click="UpgradePlan" title="Purchase" class="fi fi-rr-shop"></i>
|
<i @click="UpgradePlan" title="Purchase" class="fi fi-rr-shop"></i>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="AdministratorUserIdList.indexOf(userInfo.userId) >= 0" class="trialApproval button_second credits hideChecked">
|
||||||
|
<router-link style="color: #000;" :class="['nav_item',$route.name === 'homePage' ? 'select_nav' : '', ]" :to="`/administrator`">
|
||||||
|
Administrator
|
||||||
|
</router-link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<nav class="homeMain_nav_content">
|
<nav class="homeMain_nav_content">
|
||||||
<router-link :class="['nav_item',$route.name === 'homePage' ? 'select_nav' : '', ]" :to="`/home/homePage`">
|
<router-link :class="['nav_item',$route.name === 'homePage' ? 'select_nav' : '', ]" :to="`/home/homePage`">
|
||||||
@@ -135,6 +140,7 @@ export default defineComponent({
|
|||||||
return store.state.UserHabit.credits.value
|
return store.state.UserHabit.credits.value
|
||||||
})
|
})
|
||||||
let activeCredits = ref(false)
|
let activeCredits = ref(false)
|
||||||
|
let AdministratorUserIdList = [88,6,46,31,73,83,87]
|
||||||
return {
|
return {
|
||||||
store,
|
store,
|
||||||
t,
|
t,
|
||||||
@@ -143,6 +149,7 @@ export default defineComponent({
|
|||||||
isMurmur,
|
isMurmur,
|
||||||
credits,
|
credits,
|
||||||
activeCredits,
|
activeCredits,
|
||||||
|
AdministratorUserIdList,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Reference in New Issue
Block a user