Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
knowledgeServiceAdmin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
quanlili
knowledgeServiceAdmin
Commits
fed3c66b
提交
fed3c66b
authored
10月 28, 2019
作者:
王腾飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1028
上级
392e862d
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
111 行增加
和
43 行删除
+111
-43
character.vue
src/views/storagemodule/namedentity/character.vue
+25
-14
addnewphoto.vue
src/views/submission/infoview/addnewphoto.vue
+7
-2
allresource.vue
src/views/submission/infoview/allresource.vue
+15
-2
browsebycategory.vue
src/views/submission/infoview/browsebycategory.vue
+10
-1
photolook.vue
src/views/submission/infoview/photolook.vue
+37
-18
index.vue
src/views/submission/resourcecommit/index.vue
+17
-6
没有找到文件。
src/views/storagemodule/namedentity/character.vue
浏览文件 @
fed3c66b
...
...
@@ -168,13 +168,17 @@
</table>
<div
class=
"echartsBox"
id=
"moduleId4 moduleId5"
>
<section
class=
"left"
>
<h2>
>人物关系
</h2>
<h2
v-if=
"this.$route.query.entityType === '1'"
>
>人物关系
</h2>
<h2
v-else-if=
"this.$route.query.entityType === '2'"
>
>地点实体关系
</h2>
<h2
v-else
>
>组织机构实体关系
</h2>
<div>
<div
id=
"relationChart"
style=
"width:100%; height:100%;"
></div>
</div>
</section>
<section
class=
"right"
>
<h2>
>人物关键词
</h2>
<h2
v-if=
"this.$route.query.entityType === '1'"
>
>人物关键词
</h2>
<h2
v-else-if=
"this.$route.query.entityType === '2'"
>
>地点关键词
</h2>
<h2
v-else
>
>组织机构关键词
</h2>
<div>
<div
id=
"myChart"
></div>
</div>
...
...
@@ -363,6 +367,7 @@ let relateOptaion={
},
symbolSize
:
50
,
data
:
[
//{name: "工程建设情况", showName: "工程建设情况", symbolSize: 50, category: 0},
// {name: "工程建设情况", showName: "工程建设情况", symbolSize: 50, category: 0},
// {name: "工程规模", showName: "工程规模", symbolSize: 50, category: 0},
// {name: "建成时间", showName: "建成时间", symbolSize: 50, category: 0},
...
...
@@ -774,19 +779,25 @@ export default {
// this.characterRelationData = res.data.data;
//{name: "工程建设情况", showName: "工程建设情况", symbolSize: 50, category: 0},
if
(
res
.
data
.
code
===
0
){
let
resData
=
res
.
data
.
data
||
[]
;
let
resData
=
res
.
data
.
data
;
console
.
log
(
resData
,
"565656566"
)
let
data
=
[{
name
:
resData
[
0
][
'relationword'
]
,
showName
:
resData
[
0
][
'relationword'
],
category
:
0
}];
let
links
=
[];
resData
.
forEach
(
list
=>
{
let
state
=
Number
(
list
.
state
)
data
.
push
({
name
:
list
.
brelationword
,
showName
:
list
.
brelationword
,
category
:
state
})
links
.
push
({
source
:
list
.
brelationword
,
target
:
resData
[
0
][
'relationword'
],
value
:
list
.
relation
})
})
relateOptaion
.
series
[
0
][
'data'
]
=
data
;
relateOptaion
.
series
[
0
][
'links'
]
=
links
;
relateOptaion
.
series
[
0
].
categories
[
0
][
'name'
]
=
resData
[
0
][
'relationword'
];
this
.
relationChart
.
setOption
(
relateOptaion
)
if
(
resData
.
length
!=
0
)
{
let
data
=
[{
name
:
resData
[
0
][
'relationword'
]
,
showName
:
resData
[
0
][
'relationword'
],
category
:
0
}];
let
links
=
[];
resData
.
forEach
(
list
=>
{
let
state
=
Number
(
list
.
state
)
data
.
push
({
name
:
list
.
brelationword
,
showName
:
list
.
brelationword
,
category
:
state
})
links
.
push
({
source
:
list
.
brelationword
,
target
:
resData
[
0
][
'relationword'
],
value
:
list
.
relation
})
})
relateOptaion
.
series
[
0
][
'data'
]
=
data
;
relateOptaion
.
series
[
0
][
'links'
]
=
links
;
relateOptaion
.
series
[
0
].
categories
[
0
][
'name'
]
=
resData
[
0
][
'relationword'
];
this
.
relationChart
.
setOption
(
relateOptaion
)
}
else
{
let
data
=
[{
name
:
this
.
peopleName
,
showName
:
this
.
peopleName
,
category
:
0
}];
relateOptaion
.
series
[
0
][
'data'
]
=
data
;
this
.
relationChart
.
setOption
(
relateOptaion
)
}
}
else
{
this
.
$message
.
error
(
'获取人物关系失败'
)
}
...
...
src/views/submission/infoview/addnewphoto.vue
浏览文件 @
fed3c66b
...
...
@@ -54,8 +54,11 @@
:before-upload="beforeUpload"
class="upload-demo"
drag>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<img
:src=
"`$
{this.domain}${this.requestPath.file}?fileName=${this.formData.fileName}
&
isOnLine=true`" alt="" v-if="formData.fileName" style="width:auto; height:100%;">
<div
v-else
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
style=
"color:rgb(98, 110, 130); font-size:16px; margin-top:-10px;"
>
支持JPEG、PNG、GIF、TIFF等多种格式照片。
</div>
</el-upload>
</el-form-item>
...
...
@@ -97,6 +100,8 @@ export default {
name
:
'photolook'
,
data
()
{
return
{
domain
:
process
.
env
.
BASE_API
,
requestPath
:
requestPath
,
uploadUrl
:
uploadUrl
,
uploadPath
:
uploadPath
,
atlasInfo
:
{},
...
...
src/views/submission/infoview/allresource.vue
浏览文件 @
fed3c66b
...
...
@@ -63,7 +63,7 @@
<img
class=
"tag"
src=
"~@/assets/img/default.png"
alt=
"最后修改者头像"
v-else
:title=
"'最后编辑:' + item.modifierName"
>
<div
class=
"opt_wrap"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"editItem(item)"
>
编辑/挂接
</el-button>
<el-button
type=
"success"
size=
"mini"
icon=
"el-icon-search"
>
查看
</el-button>
<el-button
type=
"success"
size=
"mini"
icon=
"el-icon-search"
@
click=
"goResourceDetail(item)"
>
查看
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"deleteItem(item)"
>
删除
</el-button>
</div>
</div>
...
...
@@ -256,7 +256,20 @@ export default {
})
},
editItem
(
item
)
{
this
.
$router
.
push
({
path
:
'/submission/resourcecommit'
,
query
:
{
oid
:
item
.
id
}
})
},
goResourceDetail
(
item
)
{
this
.
$router
.
push
({
path
:
'/submission/resourcecommit'
,
query
:
{
oid
:
item
.
id
}
})
},
},
beforeDestroy
()
{
...
...
src/views/submission/infoview/browsebycategory.vue
浏览文件 @
fed3c66b
...
...
@@ -81,7 +81,7 @@
<!--
<img
class=
"tag userPhoto"
:src=
"`$
{uploadUrl}?fileName=${item.modifierImg}`" alt="最后修改者头像" v-if="item.modifierImg">
<img
class=
"tag userPhoto"
src=
"../../../assets/img/default.png"
alt=
"头像"
v-else
>
-->
<div
class=
"opt_wrap"
>
<el-button
type=
"primary"
size=
"mini"
plain
icon=
"el-icon-view"
class=
"look_btn"
@
click=
"
richTo(item.id
)"
>
查看
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
icon=
"el-icon-view"
class=
"look_btn"
@
click=
"
goItemDetail(item
)"
>
查看
</el-button>
</div>
</div>
</div>
...
...
@@ -423,6 +423,15 @@ export default {
this
.
loading
=
false
;
},
1000
)
},
goItemDetail
(
item
)
{
this
.
$router
.
push
({
path
:
'/draw/msgPacket'
,
query
:
{
id
:
item
.
id
,
resourceType
:
item
.
resourceType
}
})
}
},
}
</
script
>
...
...
src/views/submission/infoview/photolook.vue
浏览文件 @
fed3c66b
...
...
@@ -57,7 +57,7 @@
</el-carousel>
-->
<div
class=
"swiper-box"
style=
"height: 500px; padding-top:20px;"
>
<!-- swiper1 -->
<swiper
:options=
"swiperOptionTop"
class=
"gallery-top"
ref=
"swiperTop"
>
<swiper
:options=
"swiperOptionTop"
class=
"gallery-top"
ref=
"swiperTop"
@
click=
"callback($event)"
>
<swiper-slide
class=
"slide-1"
v-for=
"(item, key) in photoInfo"
:key=
"key"
:style=
"
{backgroundImage: 'url('+`${uploadUrl}?fileName=${item.fileName}`+')', backgroundRepeat: 'no-repeat', backgroundPosition: '50%', backgroundSize: 'contain'}">
<!--
<img
:src=
"`$
{uploadUrl}?fileName=${item.fileName}`" alt=""> -->
</swiper-slide>
...
...
@@ -72,8 +72,7 @@
<div
class=
"swiper-button-next swiper-button-black"
slot=
"button-next"
></div>
<div
class=
"swiper-button-prev swiper-button-black"
slot=
"button-prev"
></div>
</swiper>
<input
type=
"file"
id=
""
value=
""
accept=
"image/*"
multiple=
"multiple"
name=
"files"
@
change=
"uploadFile"
ref=
"img"
/>
<!--
<img
:src=
"`$
{uploadUrl}?fileName=${exifImgPath}`" alt=""> -->
<!--
<input
type=
"file"
id=
""
value=
""
accept=
"image/*"
multiple=
"multiple"
name=
"files"
@
change=
"uploadFile"
ref=
"img"
/>
-->
</div>
</div>
<div
class=
"atlasBasicInfo"
>
...
...
@@ -81,7 +80,7 @@
<h2
class=
"titleWithIcon"
>
<i
class=
"el-icon-info"
></i>
照片信息
</h2>
<el-button
type=
"primary"
icon=
"el-icon-edit"
size=
"mini"
>
编辑信息
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"goEditPhotoResource(item)"
>
编辑信息
</el-button>
</section>
<table
v-for=
"(item, key) in photoInfo"
:key=
"key"
v-if=
"key === activeIndex"
>
<tr>
...
...
@@ -109,12 +108,6 @@
<td>
{{
item
.
responsibility
}}
</td>
</tr>
<tr>
<th>
照片标签
</th>
<td></td>
<th></th>
<td></td>
</tr>
<tr>
<th>
照片大小
</th>
<td>
{{
item
.
size
}}
</td>
<th>
照片后缀名
</th>
...
...
@@ -126,6 +119,12 @@
<th>
创建时间
</th>
<td>
{{
item
.
createTime
}}
</td>
</tr>
<tr>
<th>
照片标签
</th>
<td
v-for=
"(item1, key) in item.label"
:key=
"key"
style=
"width:90%;"
>
{{
item1
.
name
}}
</td>
<th></th>
<td></td>
</tr>
</table>
</div>
<div
class=
"atlasBasicInfo photoExifInfo"
>
...
...
@@ -185,7 +184,12 @@ export default {
console
.
log
(
this
.
activeIndex
,
"当前索引"
);
let
flag
=
this
.
photoInfo
[
this
.
activeIndex
];
console
.
log
(
flag
,
"不知道是什么"
)
this
.
exifImgPath
=
flag
.
fileName
;
console
.
log
(
this
.
uploadUrl
,
"LL"
)
this
.
exifImgPath
=
this
.
uploadUrl
+
'?fileName='
+
flag
.
fileName
;
console
.
log
(
this
.
exifImgPath
)
var
_this
=
this
;
var
res
=
_this
.
EXIF
.
getAllTags
(
this
.
exifImgPath
);
console
.
log
(
res
,
"22222222222222"
);
}
}
},
...
...
@@ -250,13 +254,27 @@ export default {
swiperThumbs
.
controller
.
control
=
swiperTop
})
},
uploadFile
(
event
)
{
//exif获取照片信息
let
file
=
event
.
target
.
files
[
0
]
let
_this
=
this
this
.
EXIF
.
getData
(
file
,
function
()
{
console
.
log
(
_this
.
EXIF
.
getAllTags
(
this
))
// 此处打印的为选中图片的数据
})
}
goEditPhotoResource
(
item
)
{
this
.
$router
.
push
({
path
:
'editphotoresource'
})
}
// uploadFile (event) {//exif获取照片信息
// let file = event.target.files[0]
// let _this = this
// console.log(file,"IOIOIO**")
// this.EXIF.getData(file, function () {
// console.log(_this.EXIF.getAllTags(this)) // 此处打印的为选中图片的数据
// })
// },
// callback(e) {
// let _this = this
// console.log(e)
// this.EXIF.getData(e.target, function() {
// var res = _this.EXIF.getAllTags(this);
// console.log(res,"11111");
// });
// }
}
}
</
script
>
...
...
@@ -321,6 +339,7 @@ export default {
table {
width:100%;
border-collapse:collapse;
table-layout:fixed;
td,th{
height:40px;
border-bottom:1px solid #eee;
...
...
src/views/submission/resourcecommit/index.vue
浏览文件 @
fed3c66b
...
...
@@ -24,14 +24,23 @@
<el-upload
:action=
"`$
{uploadUrl}/${uploadPath}/info`"
:show-file-list="false"
:limit="1"
:on-success="handleSuccess"
:before-upload="beforeUpload"
class="upload-demo"
drag>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
class=
"el-upload__tip"
slot=
"tip"
>
支持office格式、pdf以及txt。
</div>
<img
:src=
"`$
{this.domain}${this.requestPath.file}?fileName=${this.formData.fileName}
&
isOnLine=true`" alt="" v-if="formData.fileName
&&
this.$route.query.resourceType === '2'" style="width:auto; height:100%;">
<p
v-else-if=
"formData.name && this.$route.query.resourceType === '1'"
>
{{
formData
.
name
}}
</p>
<p
v-else-if=
"formData.name && this.$route.query.resourceType === '3'"
>
{{
formData
.
name
}}
</p>
<p
v-else-if=
"formData.name && this.$route.query.resourceType === '4'"
>
{{
formData
.
name
}}
</p>
<div
v-else
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"this.$route.query.resourceType === '1'"
>
支持office格式、pdf以及txt。
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
v-else-if=
"this.$route.query.resourceType === '2'"
>
支持jpeg格式、png, gif以及jpg。
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
v-else-if=
"this.$route.query.resourceType === '3'"
>
支持mp3格式、mpeg以及wma。
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
v-else-if=
"this.$route.query.resourceType === '4'"
>
支持mp4格式、avi, flv以及mov。
</div>
<div
class=
"el-upload__tip"
slot=
"tip"
v-else
>
支持office格式、pdf以及txt。
</div>
</el-upload>
</el-form-item>
<el-form-item
label=
"描述/摘要:"
>
...
...
@@ -186,6 +195,8 @@ export default {
},
data
()
{
return
{
domain
:
process
.
env
.
BASE_API
,
requestPath
:
requestPath
,
vals
:
[],
val
:
[],
isShowMark
:
false
,
...
...
@@ -325,7 +336,7 @@ export default {
},
// 上传附件有关
beforeUpload
(
file
)
{
console
.
log
(
file
)
console
.
log
(
file
,
'11!!'
)
let
type
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
"."
)
+
1
).
toLowerCase
();
console
.
log
(
type
,
"0000"
)
const
isLt100M
=
file
.
size
/
1024
/
1024
<
100
;
...
...
@@ -343,7 +354,7 @@ export default {
this
.
$message
.
warning
(
"上传中"
);
}
}
else
if
(
this
.
formData
.
resourceType
===
'2'
)
{
isType
=
type
==
"jpeg"
||
type
==
"png"
||
type
==
"gif"
;
isType
=
type
==
"jpeg"
||
type
==
"png"
||
type
==
"gif"
||
type
==
"jpg"
;
if
(
!
isType
)
{
this
.
$message
.
error
(
"上传附件格式工为jpeg, png, gif, jpg!"
);
return
isType
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论