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 children: routes
}, },
{ {
name: 'data_v', name: 'datasv',
path: '/data_v', path: '/datasv',
component: resolve => require(['@/views/datav/data_v'], resolve), component: resolve => require(['@/views/datav/dataV'], resolve),
meta: {model: 'error'}, meta: {model: 'error'},
}, },
{ {
name: 'copy_v', name: 'copysv',
path: '/copy_v', path: '/copysv',
component: resolve => require(['@/views/datav/copy_v'], resolve), component: resolve => require(['@/views/datav/copyV'], resolve),
meta: {model: 'error'}, meta: {model: 'error'},
}, },
// { // {
@ -128,7 +128,7 @@ const router = new Router({
}); });
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log(to); // console.log(to);
let tokenList = getStore('tokenList', true); let tokenList = getStore('tokenList', true);
if (tokenList) { if (tokenList) {
let refreshToken = tokenList.refreshToken; 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 === '/') { if (to.name === 'index' || to.path === '/index' || to.path === '/') {
next({path: HOME_PAGE}); next({path: HOME_PAGE});

View File

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

View File

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

View File

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