Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
knowledgeServiceAdmin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
quanlili
knowledgeServiceAdmin
Commits
459fdebb
提交
459fdebb
authored
10月 24, 2019
作者:
quanlili
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改默认排序
上级
897038cf
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
130 行增加
和
70 行删除
+130
-70
index.js
src/api/atlas/index.js
+1
-4
index.vue
src/views/draw/atlas/index.vue
+21
-1
index.vue
src/views/draw/atlas_rich/index.vue
+60
-51
detail.vue
src/views/draw/metadata/detail.vue
+0
-7
index.vue
src/views/draw/metadata/index.vue
+4
-4
index.vue
src/views/draw/resources/index.vue
+22
-1
index.vue
src/views/draw/sip/index.vue
+22
-2
没有找到文件。
src/api/atlas/index.js
浏览文件 @
459fdebb
import
request
from
'@/utils/request'
import
{
requestPath
}
from
'@/utils/global.js'
//资源列表的公共接口
//元数据丰富化列表
//sip交接列表
//资源分类的列表
export
function
getListAPI
(
params
)
{
return
request
({
url
:
`
${
requestPath
.
resource
}
/Album-library/page`
,
...
...
src/views/draw/atlas/index.vue
浏览文件 @
459fdebb
...
...
@@ -190,7 +190,7 @@ export default {
status
:
3
//通过交接
},
dateTime
:
''
,
createTime
:
''
,
createTime
:
'
desc
'
,
allIds
:[],
list
:[],
total
:
0
,
...
...
@@ -370,11 +370,31 @@ export default {
},
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
//window.location.reload()
},
resetSearch
(){
this
.
searchForm
=
{
resourceType
:
'2'
,
orderBy
:
""
,
beginTime
:
''
,
endTime
:
''
,
pageNum
:
1
,
pageSize
:
30
,
status
:
1
,
//默认待交接的
createrId
:
''
,
content
:
''
};
this
.
formation
=
''
;
this
.
createTime
=
'desc'
;
this
.
userValue
=
''
;
this
.
dateTime
=
''
;
this
.
size
=
''
;
this
.
getList
()
},
createTimeSort
(){
this
.
createTime
=
this
.
createTime
==
'desc'
?
'asc'
:
'desc'
;
this
.
searchForm
.
orderBy
=
'createTime '
+
this
.
createTime
;
...
...
src/views/draw/atlas_rich/index.vue
浏览文件 @
459fdebb
...
...
@@ -8,14 +8,23 @@
<div
class=
"screeningConditions"
>
<div
class=
"screeningConditionsLeft"
>
<label
for=
""
>
排列:
</label>
<span
@
click=
"formationSort"
class=
"btn"
:class=
"[formation?'active':'']"
>
形成时间
<i
:class=
"[formation=='desc'?'icon-projectjiantouxia':'icon-projectjiantoushang']"
></i></span>
<span
@
click=
"sizeSort"
class=
"btn"
:class=
"[size?'active':'']"
>
资源大小
<i
:class=
"[size=='desc'?'icon-projectjiantouxia':'icon-projectjiantoushang']"
></i></span>
<
!--
<
span
@
click=
"formationSort"
class=
"btn"
:class=
"[formation?'active':'']"
>
形成时间
<i
:class=
"[formation=='desc'?'icon-projectjiantouxia':'icon-projectjiantoushang']"
></i></span>
<span
@
click=
"sizeSort"
class=
"btn"
:class=
"[size?'active':'']"
>
资源大小
<i
:class=
"[size=='desc'?'icon-projectjiantouxia':'icon-projectjiantoushang']"
></i></span>
-->
<span
@
click=
"createTimeSort"
class=
"btn"
:class=
"[createTime?'active':'']"
>
提交时间
<i
:class=
"[createTime=='desc'?'icon-projectjiantouxia':'icon-projectjiantoushang']"
></i></span>
<em
@
click=
"searchTimerVisible=true"
>
通过时间筛选
</em>
<em
@
click=
"searchUserVisible=true"
>
筛选用户提交
</em>
<
em
@
click=
"resetSearch"
class=
"empty"
>
清空用户筛选
</em
>
<
!--
<em
@
click=
"resetSearch"
class=
"empty"
>
清空用户筛选
</em>
--
>
</div>
<div
class=
"screeningConditionsRight"
>
<el-select
v-model=
"searchForm.albumType"
placeholder=
"请选择"
@
change=
"changeAlbumType"
style=
"width:100px"
>
<el-option
v-for=
"item in albumOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<el-select
v-model=
"searchForm.resourceType"
placeholder=
"请选择"
@
change=
"changeResourceType"
style=
"width:140px"
>
<el-option
v-for=
"item in options"
...
...
@@ -33,7 +42,7 @@
<img
class=
"pdf_pic"
:src=
"item.suffix|formatImg"
alt=
"文件图标"
>
<div
class=
"content"
>
<p
class=
"tit2"
>
{{
item
.
name
}}
</p>
<p
class=
"field"
><span>
著录时间:
{{
item
.
createTime
}}
</span><span>
资源大小:
{{
item
.
size
}}
</span></p>
<p
class=
"field"
><span>
创建时间:
{{
item
.
createTime
}}
</span><span>
图册类型:
{{
item
.
type_zh
}}
</span></p>
<p
class=
"text"
>
{{
item
.
description
}}
</p>
</div>
<span
class=
"tag"
>
待丰富化
</span>
...
...
@@ -104,12 +113,13 @@
</
template
>
<
script
>
import
{
getListAPI
,
getUserListAPI
}
from
'@/api/commonResource'
import
{
getUserListAPI
}
from
'@/api/commonResource'
import
{
getListAPI
,
batchUpdateStatusAPI
}
from
'@/api/atlas/index'
import
pagination
from
'@/components/pagination/pagination'
import
{
operationMsg
,
confirm
}
from
'@/utils/publicFunctions'
import
{
uploadUrl
,
uploadPath
,
requestPath
}
from
"@/utils/global"
;
export
default
{
name
:
'
metadata
'
,
name
:
'
atlasRich
'
,
components
:{
pagination
},
data
()
{
return
{
...
...
@@ -118,29 +128,45 @@ export default {
uploadUrl
:
uploadUrl
,
loading
:
false
,
options
:
[{
value
:
''
,
label
:
'全部'
},{
value
:
'1'
,
label
:
'文本'
},
{
value
:
'2'
,
label
:
'图片'
},
{
value
:
'3'
,
label
:
'音频'
},
{
value
:
'4'
,
label
:
'视频'
},
{
value
:
'5'
,
label
:
'三维文件'
}],
albumOptions
:[
{
value
:
''
,
label
:
'全部'
},
{
value
:
'1'
,
label
:
'人物'
},
{
value
:
'2'
,
label
:
'会议'
},
{
value
:
'3'
,
label
:
'建筑'
},
{
value
:
'4'
,
label
:
'生活'
},
{
value
:
'5'
,
label
:
'历史'
},
{
value
:
'6'
,
label
:
'事件'
}
],
userList
:[],
userValue
:
''
,
searchForm
:{
status
:
3
,
//默认丰富化的
resourceType
:
''
,
resourceType
:
'2'
,
albumType
:
''
,
orderBy
:
""
,
beginTime
:
''
,
endTime
:
''
,
...
...
@@ -152,7 +178,7 @@ export default {
dateTime
:
''
,
formation
:
''
,
//形成时间的筛选的
size
:
''
,
createTime
:
''
,
createTime
:
'
desc
'
,
list
:[],
totalCount
:
0
,
}
...
...
@@ -164,29 +190,6 @@ export default {
},
watch
:
{
},
filters
:{
formatImg
(
type
){
let
srcImg
=
''
;
switch
(
type
)
{
case
'.txt'
:
srcImg
=
'icotxt.png'
;
break
;
case
".doc"
:
srcImg
=
'icodoc.png'
;
break
;
case
".docx"
:
srcImg
=
'icodocx.png'
;
break
;
case
".pdf"
:
srcImg
=
'icopdf.png'
;
break
;
default
:
srcImg
=
'icopdf.png'
;
}
return
require
(
'../../../assets/img/'
+
srcImg
)
console
.
log
(
srcImg
,
'999999'
)
},
},
methods
:
{
richTo
(
id
){
this
.
$router
.
push
({
path
:
"/draw/metadata_detail"
,
query
:{
id
:
id
}})
...
...
@@ -194,8 +197,8 @@ export default {
getList
(){
getListAPI
(
this
.
searchForm
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
this
.
list
=
res
.
data
.
data
.
resL
ist
||
[];
this
.
totalCount
=
res
.
data
.
data
.
total
Count
||
0
;
this
.
list
=
res
.
data
.
data
.
l
ist
||
[];
this
.
totalCount
=
res
.
data
.
data
.
total
||
0
;
}
else
{
this
.
$message
.
error
(
'获取失败'
)
}
...
...
@@ -217,14 +220,17 @@ export default {
this
.
searchForm
=
{
status
:
3
,
//默认丰富化的
resourceType
:
''
,
albumType
:
''
,
orderBy
:
""
,
beginTime
:
''
,
endTime
:
''
,
pageNum
:
this
.
searchForm
.
pageNum
,
pageSize
:
this
.
searchForm
.
pageSize
pageNum
:
1
,
pageSize
:
30
};
this
.
formation
=
''
;
this
.
createTime
=
''
;
this
.
createTime
=
'desc'
;
this
.
userValue
=
''
;
this
.
dateTime
=
''
;
this
.
size
=
''
;
this
.
getList
()
},
...
...
@@ -278,6 +284,9 @@ export default {
this
.
getUserList
(
value
);
console
.
log
(
value
,
'9999'
)
},
changeAlbumType
(){
this
.
getList
();
},
changeResourceType
(){
this
.
getList
();
},
...
...
src/views/draw/metadata/detail.vue
浏览文件 @
459fdebb
...
...
@@ -675,13 +675,6 @@ export default {
requestMsg
.
apply
(
this
,[
res
.
data
,
'丰富化'
])
})
})
// metadataAPI(data).then(res=>{
// if(res.data.code==0){
// this.$message.success('丰富化成功')
// }else{
// this.$message.error('丰富化失败')
// }
// })
},
entitySubmit
(){
this
.
backForm
.
state
=
this
.
entityForm
.
state
;
...
...
src/views/draw/metadata/index.vue
浏览文件 @
459fdebb
...
...
@@ -161,7 +161,7 @@ export default {
dateTime
:
''
,
formation
:
''
,
//形成时间的筛选的
size
:
''
,
createTime
:
''
,
createTime
:
'
desc
'
,
list
:[],
totalCount
:
0
,
}
...
...
@@ -212,11 +212,11 @@ export default {
orderBy
:
""
,
beginTime
:
''
,
endTime
:
''
,
pageNum
:
this
.
searchForm
.
pageNum
,
pageSize
:
this
.
searchForm
.
pageSize
pageNum
:
1
,
pageSize
:
30
};
this
.
formation
=
''
;
this
.
createTime
=
''
;
this
.
createTime
=
'
desc
'
;
this
.
size
=
''
;
this
.
getList
()
},
...
...
src/views/draw/resources/index.vue
浏览文件 @
459fdebb
...
...
@@ -200,7 +200,7 @@ export default {
},
formation
:
''
,
//形成时间的筛选的
size
:
''
,
createTime
:
''
,
createTime
:
'
desc
'
,
list
:[],
totalCount
:
0
,
diytypeList
:[],
...
...
@@ -385,10 +385,31 @@ export default {
},
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
},
resetSearch
(){
this
.
searchForm
=
{
type
:
2
,
diyTypeCode
:
''
,
status
:
''
,
//默认丰富化的
resourceType
:
''
,
orderBy
:
""
,
beginTime
:
''
,
endTime
:
''
,
pageNum
:
1
,
pageSize
:
30
,
createrId
:
''
};
this
.
formation
=
''
;
this
.
createTime
=
'desc'
;
//this.userValue='';//用户弹框
//this.dateTime='';//时间弹框
this
.
size
=
''
;
this
.
getList
()
}
},
}
</
script
>
...
...
src/views/draw/sip/index.vue
浏览文件 @
459fdebb
...
...
@@ -191,7 +191,7 @@ export default {
value
:
'4'
,
label
:
'视频'
},
{
value
:
'
4
'
,
value
:
'
5
'
,
label
:
'三维文件'
}],
type
:
''
,
...
...
@@ -219,7 +219,7 @@ export default {
status
:
3
//通过交接
},
dateTime
:
''
,
createTime
:
''
,
createTime
:
'
desc
'
,
allIds
:[],
list
:[],
totalCount
:
0
,
...
...
@@ -400,11 +400,31 @@ export default {
},
refPage
(){
this
.
loading
=
true
;
this
.
resetSearch
();
setTimeout
(()
=>
{
this
.
loading
=
false
;
},
1000
)
//window.location.reload()
},
resetSearch
(){
this
.
searchForm
=
{
resourceType
:
''
,
orderBy
:
""
,
beginTime
:
''
,
endTime
:
''
,
pageNum
:
1
,
pageSize
:
30
,
status
:
1
,
//默认待交接的
createrId
:
''
,
content
:
''
};
this
.
formation
=
''
;
this
.
createTime
=
'desc'
;
this
.
userValue
=
''
;
//用户弹框
this
.
dateTime
=
''
;
//时间弹框
this
.
size
=
''
;
this
.
getList
()
},
createTimeSort
(){
this
.
createTime
=
this
.
createTime
==
'desc'
?
'asc'
:
'desc'
;
this
.
searchForm
.
orderBy
=
'createTime '
+
this
.
createTime
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论