改文字

dev
lilu 2 years ago
parent 9e190523b8
commit 37642d7034

@ -3,7 +3,7 @@
/** /**
* 查询订舱 * 查询订舱
* *
* @author Magic * @author Myshipping
*/ */
export function DjyBookingPage (parameter) { export function DjyBookingPage (parameter) {
return axios({ return axios({
@ -16,7 +16,7 @@ export function DjyBookingPage (parameter) {
/** /**
* 订舱列表 * 订舱列表
* *
* @author Magic * @author Myshipping
*/ */
export function DjyBookingList (parameter) { export function DjyBookingList (parameter) {
return axios({ return axios({
@ -29,7 +29,7 @@ export function DjyBookingList (parameter) {
/** /**
* 添加订舱 * 添加订舱
* *
* @author Magic * @author Myshipping
*/ */
export function DjyBookingAdd (parameter) { export function DjyBookingAdd (parameter) {
return axios({ return axios({
@ -42,7 +42,7 @@ export function DjyBookingAdd (parameter) {
/** /**
* 编辑订舱 * 编辑订舱
* *
* @author Magic * @author Myshipping
*/ */
export function DjyBookingEdit (parameter) { export function DjyBookingEdit (parameter) {
return axios({ return axios({
@ -55,7 +55,7 @@ export function DjyBookingEdit (parameter) {
/** /**
* 删除订舱 * 删除订舱
* *
* @author Magic * @author Myshipping
*/ */
export function DjyBookingDelete (parameter) { export function DjyBookingDelete (parameter) {
return axios({ return axios({

@ -3,7 +3,7 @@
/** /**
* 查询测试 * 查询测试
* *
* @author Magic * @author Myshipping
*/ */
export function TestPage (parameter) { export function TestPage (parameter) {
return axios({ return axios({
@ -16,7 +16,7 @@ export function TestPage (parameter) {
/** /**
* 测试列表 * 测试列表
* *
* @author Magic * @author Myshipping
*/ */
export function TestList (parameter) { export function TestList (parameter) {
return axios({ return axios({
@ -29,7 +29,7 @@ export function TestList (parameter) {
/** /**
* 添加测试 * 添加测试
* *
* @author Magic * @author Myshipping
*/ */
export function TestAdd (parameter) { export function TestAdd (parameter) {
return axios({ return axios({
@ -42,7 +42,7 @@ export function TestAdd (parameter) {
/** /**
* 编辑测试 * 编辑测试
* *
* @author Magic * @author Myshipping
*/ */
export function TestEdit (parameter) { export function TestEdit (parameter) {
return axios({ return axios({
@ -55,7 +55,7 @@ export function TestEdit (parameter) {
/** /**
* 删除测试 * 删除测试
* *
* @author Magic * @author Myshipping
*/ */
export function TestDelete (parameter) { export function TestDelete (parameter) {
return axios({ return axios({

@ -3,7 +3,7 @@
<div class="links"> <div class="links">
</div> </div>
<div class="copyright"> <div class="copyright">
<!-- Copyright © 2021 <a target="_blank" href="https://gitee.com/zuohuaijun/Magic.NET">Magic.NET</a> All rights reserved. v1.3.2 --> <!-- Copyright © 2021 <a target="_blank" href="https://gitee.com/zuohuaijun/Myshipping.NET">Myshipping.NET</a> All rights reserved. v1.3.2 -->
</div> </div>
</div> </div>
</template> </template>

@ -299,7 +299,7 @@ result.then(r => {
{ {
id: 4, id: 4,
cover: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png', cover: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png',
title: 'Magic.NET', title: 'Myshipping.NET',
description: '那时候我只会想自己想要什么,从不想自己拥有什么', description: '那时候我只会想自己想要什么,从不想自己拥有什么',
status: 1, status: 1,
updatedAt: '2018-07-26 00:00:00' updatedAt: '2018-07-26 00:00:00'

@ -5,7 +5,7 @@ const titles = [
'Alipay', 'Alipay',
'Angular', 'Angular',
'Ant Design', 'Ant Design',
'Magic.NET', 'Myshipping.NET',
'Bootstrap', 'Bootstrap',
'React', 'React',
'Vue', 'Vue',

@ -65,7 +65,7 @@ const projects = () => {
{ {
id: 4, id: 4,
cover: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png', cover: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png',
title: 'Magic.NET', title: 'Myshipping.NET',
description: '那时候我只会想自己想要什么,从不想自己拥有什么', description: '那时候我只会想自己想要什么,从不想自己拥有什么',
status: 1, status: 1,
updatedAt: '2018-07-26 00:00:00' updatedAt: '2018-07-26 00:00:00'

@ -23,8 +23,12 @@ router.beforeEach((to, from, next) => {
//next({ path: defaultRoutePath }) //next({ path: defaultRoutePath })
NProgress.done() NProgress.done()
} else { } else {
console.log('=== 非跳转登录页面 ===', store.getters.roles.length)
if (store.getters.roles.length === 0) { if (store.getters.roles.length === 0) {
store.dispatch('GetInfo').then(res => { store.dispatch('GetInfo').then(res => {
console.log('=== 测试跳转页面,获取个人信息 ===', res)
// console.log(JSON.stringify(res))
// console.log('=== 测试跳转页面,获取个人信息 -- end ===')
if (res.menus.length < 1) { if (res.menus.length < 1) {
Modal.error({ Modal.error({
title: '提示:', title: '提示:',
@ -40,6 +44,7 @@ router.beforeEach((to, from, next) => {
} }
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
const all_app_menu = Vue.ls.get(ALL_APPS_MENU) const all_app_menu = Vue.ls.get(ALL_APPS_MENU)
console.log('=== 测试跳转页面获取all_app_menu ===', all_app_menu)
let antDesignmenus let antDesignmenus
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
if (all_app_menu == null) { if (all_app_menu == null) {
@ -60,6 +65,7 @@ router.beforeEach((to, from, next) => {
} }
applocation.push(apps) applocation.push(apps)
}) })
console.log('applocation == ', applocation)
Vue.ls.set(ALL_APPS_MENU, applocation, 7 * 24 * 60 * 60 * 1000) Vue.ls.set(ALL_APPS_MENU, applocation, 7 * 24 * 60 * 60 * 1000)
// 延迟 1 秒显示欢迎信息 // 延迟 1 秒显示欢迎信息
setTimeout(() => { setTimeout(() => {
@ -71,8 +77,11 @@ router.beforeEach((to, from, next) => {
} else { } else {
antDesignmenus = Vue.ls.get(ALL_APPS_MENU)[0].menu antDesignmenus = Vue.ls.get(ALL_APPS_MENU)[0].menu
} }
console.log('后端返回的路由', antDesignmenus) console.log('后端返回的路由', antDesignmenus);
// console.log(JSON.stringify(antDesignmenus));
store.dispatch('GenerateRoutes', { antDesignmenus }).then(() => { store.dispatch('GenerateRoutes', { antDesignmenus }).then(() => {
debugger
// 动态添加可访问路由表 // 动态添加可访问路由表
router.addRoutes(store.getters.addRouters) router.addRoutes(store.getters.addRouters)
// 请求带有 redirect 重定向时,登录自动重定向到该地址 // 请求带有 redirect 重定向时,登录自动重定向到该地址
@ -88,12 +97,14 @@ router.beforeEach((to, from, next) => {
}) })
}) })
.catch(() => { .catch(() => {
console.log('=== 测试跳转页面,获取个人信息失败 ===')
store.dispatch('Logout').then(() => { store.dispatch('Logout').then(() => {
next({ path: '/user/login', query: { redirect: to.fullPath } }) next({ path: '/user/login', query: { redirect: to.fullPath } })
}) })
}) })
store.dispatch("getNoticReceiveList").then((res)=>{}); store.dispatch("getNoticReceiveList").then((res)=>{});
} else { } else {
console.log('=== 测试跳转页面 3 ===')
next() next()
} }
} }

@ -188,7 +188,7 @@
*/ */
selectedByDefault() { selectedByDefault() {
this.form.getFieldDecorator('nameSpace', { this.form.getFieldDecorator('nameSpace', {
initialValue: 'Magic.Application' initialValue: 'Myshipping.Application'
}) })
// this.form.getFieldDecorator('tablePrefix', { valuePropName: 'checked', initialValue: 'N' }) // this.form.getFieldDecorator('tablePrefix', { valuePropName: 'checked', initialValue: 'N' })
this.form.getFieldDecorator('generateType', { this.form.getFieldDecorator('generateType', {
@ -196,7 +196,7 @@
initialValue: '2' initialValue: '2'
}) })
this.form.getFieldDecorator('authorName', { this.form.getFieldDecorator('authorName', {
initialValue: 'Magic' initialValue: 'Myshipping'
}) })
// //

@ -130,8 +130,8 @@
'DBEntityTenant' 'DBEntityTenant'
], ],
positionOption: [ positionOption: [
'Magic.Application', 'Myshipping.Application',
'Magic.Core' 'Myshipping.Core'
], ],
createEntityVisible: false, createEntityVisible: false,
tableLoading: false, tableLoading: false,

@ -223,7 +223,7 @@
{ {
id: 4, id: 4,
cover: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png', cover: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png',
title: 'Magic.NET', title: 'Myshipping.NET',
description: '那时候我只会想自己想要什么,从不想自己拥有什么', description: '那时候我只会想自己想要什么,从不想自己拥有什么',
status: 1, status: 1,
updatedAt: '2018-07-26 00:00:00' updatedAt: '2018-07-26 00:00:00'

Loading…
Cancel
Save