Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
36ef2908
Commit
36ef2908
authored
Sep 13, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
c5fcb911
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
66 additions
and
39 deletions
+66
-39
common.js
dsk-operate-ui/src/api/common.js
+8
-0
Navbar.vue
dsk-operate-ui/src/layout/components/Navbar.vue
+2
-2
index.vue
dsk-operate-ui/src/layout/components/TagsView/index.vue
+10
-6
index.vue
dsk-operate-ui/src/layout/index.vue
+3
-4
permission.js
dsk-operate-ui/src/permission.js
+1
-0
request.js
dsk-operate-ui/src/utils/request.js
+1
-0
gjjl.vue
...erate-ui/src/views/project/projectList/component/gjjl.vue
+22
-14
zlwd.vue
...erate-ui/src/views/project/projectList/component/zlwd.vue
+19
-13
No files found.
dsk-operate-ui/src/api/common.js
View file @
36ef2908
...
...
@@ -24,3 +24,11 @@ export const historyClaim= function historyClaim(name) {
method
:
'Put'
,
})
}
//获取大司空open 插件访问token
export
function
dskAccessToken
()
{
return
request
({
url
:
'/system/config/dsk/accessToken'
,
method
:
'get'
,
})
}
dsk-operate-ui/src/layout/components/Navbar.vue
View file @
36ef2908
...
...
@@ -99,7 +99,7 @@ export default {
type
:
'warning'
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
local
Storage
.
removeItem
(
'views'
)
//清空导航栏上的数据
session
Storage
.
removeItem
(
'views'
)
//清空导航栏上的数据
location
.
href
=
'/index'
;
})
}).
catch
(()
=>
{});
...
...
@@ -111,7 +111,7 @@ export default {
setToken
(
res
.
data
.
token
)
setTenantid
(
id
)
store
.
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
local
Storage
.
removeItem
(
'views'
)
//清空导航栏上的数据
session
Storage
.
removeItem
(
'views'
)
//清空导航栏上的数据
if
(
this
.
$route
.
path
==
'/index'
){
location
.
reload
();
}
else
{
...
...
dsk-operate-ui/src/layout/components/TagsView/index.vue
View file @
36ef2908
...
...
@@ -8,8 +8,7 @@
<!--
<i
class=
"el-icon-arrow-down"
v-if=
"!showall"
></i>
<i
class=
"el-icon-arrow-up"
v-if=
"showall"
></i>
-->
</div>
<el-collapse-transition>
<div
class=
"tagslist"
v-if=
"showall"
>
<draggable
v-model=
"visitedViews"
:options=
"dragOptions"
@
end=
"end"
>
<div
class=
"tagslist"
:class=
"
{'noshow':!showall}">
<router-link
v-for=
"(tag, index) in visitedViews"
ref=
"tag"
...
...
@@ -22,12 +21,10 @@
>
<div
@
click=
"changetags"
>
<i
class=
"el-icon-check"
></i>
<span
:id=
"isActive(tag)?'tagTitle':''"
>
{{
tag
.
title
}}
</span>
<span
:id=
"isActive(tag)?'tagTitle
s
':''"
>
{{
tag
.
title
}}
</span>
</div>
</router-link>
<div
class=
"clasall"
@
click=
"closeAllTag(selectedTag)"
>
关闭全部标签
</div>
</draggable>
</div>
</el-collapse-transition>
</div>
...
...
@@ -154,7 +151,7 @@ export default {
// li.matched = view.matched //此条数据放出会报错
viewlist
.
push
(
li
)
})
local
Storage
.
setItem
(
"views"
,
JSON
.
stringify
(
viewlist
))
session
Storage
.
setItem
(
"views"
,
JSON
.
stringify
(
viewlist
))
},
changetags
(){
this
.
showall
=
false
...
...
@@ -463,6 +460,8 @@ export default {
height
:
24px
;
}
.tagslist
{
transition
:
all
0
.2s
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
32px
;
...
...
@@ -517,6 +516,11 @@ export default {
}
}
}
.noshow
{
display
:
none
;
opacity
:
0
;
/*height: 0;*/
}
}
}
</
style
>
...
...
dsk-operate-ui/src/layout/index.vue
View file @
36ef2908
...
...
@@ -63,11 +63,10 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
listenSider
()
})
// console.log(9999)
let
views
=
localStorage
.
getItem
(
'views'
)
let
views
=
sessionStorage
.
getItem
(
'views'
)
if
(
views
!=
null
){
this
.
$store
.
state
.
tagsView
.
visitedViews
=
JSON
.
parse
(
views
)
local
Storage
.
removeItem
(
'views'
)
// session
Storage.removeItem('views')
}
},
methods
:
{
...
...
dsk-operate-ui/src/permission.js
View file @
36ef2908
...
...
@@ -32,6 +32,7 @@ router.beforeEach((to, from, next) => {
}).
catch
(
err
=>
{
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
Message
.
error
(
err
)
sessionStorage
.
removeItem
(
'views'
)
next
({
path
:
'/'
})
})
})
...
...
dsk-operate-ui/src/utils/request.js
View file @
36ef2908
...
...
@@ -107,6 +107,7 @@ service.interceptors.response.use(res => {
MessageBox
.
confirm
(
'登录状态已过期,您可以继续留在该页面,或者重新登录'
,
'系统提示'
,
{
confirmButtonText
:
'重新登录'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
isRelogin
.
show
=
false
;
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
sessionStorage
.
removeItem
(
'views'
)
location
.
href
=
'/index'
;
})
}).
catch
(()
=>
{
...
...
dsk-operate-ui/src/views/project/projectList/component/gjjl.vue
View file @
36ef2908
...
...
@@ -125,6 +125,13 @@
</div>
</div>
</div>
<div
class=
"tables"
style=
"margin-top: 0"
v-if=
"recordlist.rows && recordlist.rows.length == 0"
>
<div
class=
"empty"
>
<img
class=
"img"
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,您还未添加跟进动态
</div>
</div>
</div>
<div
class=
"tables"
v-if=
"recordlist.total>pageSize"
>
<div
class=
"bottems"
>
<el-pagination
...
...
@@ -144,11 +151,12 @@
</
template
>
<
script
>
import
"@/assets/styles/project.scss"
import
{
getFollowList
,
addFollowRecord
,
getUserList
,
delFollowRecord
}
from
'@/api/custom/custom'
import
{
getGJJL
,
addGJJL
,
delGJJL
,
relateProject
,
allRecord
}
from
'@/api/project/project'
import
{
getEnterprise
,
getDictType
,
}
from
'@/api/main'
import
'@/assets/styles/project.scss'
import
{
addFollowRecord
,
delFollowRecord
,
getFollowList
,
getUserList
}
from
'@/api/custom/custom'
import
{
addGJJL
,
allRecord
,
delGJJL
,
getGJJL
,
relateProject
}
from
'@/api/project/project'
import
{
getDictType
,
getEnterprise
}
from
'@/api/main'
import
skeleton
from
'./skeleton'
export
default
{
components
:{
skeleton
},
props
:{
...
...
dsk-operate-ui/src/views/project/projectList/component/zlwd.vue
View file @
36ef2908
...
...
@@ -203,21 +203,27 @@
},
getList
(){
this
.
isSkeleton
=
true
getZLWD
(
this
.
param
).
then
(
res
=>
{
this
.
fileDatas
=
res
getZLWD
(
this
.
param
).
then
(
res
=>
{
this
.
isSkeleton
=
false
if
(
this
.
fileDatas
.
rows
!=
null
&&
this
.
fileDatas
.
rows
.
length
>
0
){
this
.
fileDatas
.
rows
.
forEach
(
item
=>
{
if
(
res
.
code
==
200
)
{
this
.
fileDatas
=
res
if
(
this
.
fileDatas
.
rows
!=
null
&&
this
.
fileDatas
.
rows
.
length
>
0
)
{
this
.
fileDatas
.
rows
.
forEach
(
item
=>
{
let
names
=
item
.
filePath
.
split
(
'/'
)
item
.
name
=
names
[
names
.
length
-
1
]
item
.
name
=
names
[
names
.
length
-
1
]
let
types
=
item
.
name
.
split
(
'.'
)
item
.
type
=
types
.
length
>
1
?
types
[
1
]:
'file'
if
(
item
.
type
==
'xls'
||
item
.
type
==
'xlsx'
)
item
.
type
=
types
.
length
>
1
?
types
[
1
]
:
'file'
if
(
item
.
type
==
'xls'
||
item
.
type
==
'xlsx'
)
{
item
.
type
=
'excel'
if
(
item
.
type
==
'doc'
||
item
.
type
==
'docx'
)
}
if
(
item
.
type
==
'doc'
||
item
.
type
==
'docx'
)
{
item
.
type
=
'word'
}
})
}
}
else
{
this
.
fileDatas
.
total
=
0
}
})
},
getFile
(
row
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment