This commit is contained in:
weipengfei 2024-01-15 20:37:40 +08:00
parent c45c747be9
commit ab83fa876f
5 changed files with 27 additions and 18 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -46,15 +46,15 @@ const router = new Router({
children: routes
},
{
name: 'data_v',
path: '/data_v',
component: resolve => require(['@/views/datav/data_v'], resolve),
name: 'datasv',
path: '/datasv',
component: resolve => require(['@/views/datav/dataV'], resolve),
meta: {model: 'error'},
},
{
name: 'copy_v',
path: '/copy_v',
component: resolve => require(['@/views/datav/copy_v'], resolve),
name: 'copysv',
path: '/copysv',
component: resolve => require(['@/views/datav/copyV'], resolve),
meta: {model: 'error'},
},
// {
@ -128,7 +128,7 @@ const router = new Router({
});
router.beforeEach((to, from, next) => {
console.log(to);
// console.log(to);
let tokenList = getStore('tokenList', true);
if (tokenList) {
let refreshToken = tokenList.refreshToken;
@ -146,6 +146,11 @@ router.beforeEach((to, from, next) => {
}));
}
}
if (to.name === 'datasv' || to.path === '/datasv' || to.name === 'copysv' || to.path === '/copysv') {
next();
return false;
}
//页面中转
if (to.name === 'index' || to.path === '/index' || to.path === '/') {
next({path: HOME_PAGE});

View File

@ -401,7 +401,6 @@
:id="task.code"
:key="task.code"
:class="showTaskPri(task.pri)"
v-if="!task.done && task.canRead"
@click.stop="taskDetail(task.code, index)"
>
<div class="task-priority bg-priority-0"></div>
@ -991,7 +990,7 @@
import { notice } from "@/assets/js/notice";
export default {
name: "project-space-task",
name: "copyV",
components: {
RecycleBin,
TaskTag,
@ -1361,11 +1360,13 @@
if (!task.canRead) {
canNotReadCount++;
}
if (task.done) {
stage.doneTasks.push(task);
} else {
stage.unDoneTasks.push(task);
}
stage.doneTasks.push(task);
// console.log(params.type_name, task.done);
// if (task.done) {
// stage.doneTasks.push(task);
// } else {
// stage.unDoneTasks.push(task);
// }
});
stage.canNotReadCount = canNotReadCount;
stage.tasksLoading = false;

View File

@ -46,7 +46,7 @@ import {
import { notice } from '../../assets/js/notice';
export default {
name: "datav",
name: "dataV",
data() {
return {
map: null,

View File

@ -326,9 +326,12 @@
},
menuModelClick(event) {
//
console.log(event);
if(event.key==173){ //
return window.open('/#/data_v', '_blank');
console.log('event', event);
if(event.key==179){ //
return this.$router.push('/datasv');
}
if(event.key==181){ //
return this.$router.push('/copysv');
}
let that = this;
that.menu.forEach(function (v, k) {