Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
knowledgeServiceAdmin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
quanlili
knowledgeServiceAdmin
Commits
c66a5f83
提交
c66a5f83
authored
11月 15, 2019
作者:
王腾飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1115
上级
bb11a050
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
63 行增加
和
22 行删除
+63
-22
resourcecommit.js
src/api/resourcecommit.js
+8
-0
addnewmetadata.vue
src/views/submission/metadatamange/addnewmetadata.vue
+28
-13
metadataplan.vue
src/views/submission/metadatamange/metadataplan.vue
+17
-8
metadataplan_details.vue
src/views/submission/metadatamange/metadataplan_details.vue
+10
-1
没有找到文件。
src/api/resourcecommit.js
浏览文件 @
c66a5f83
...
...
@@ -133,6 +133,14 @@ export function getMetaDataPlanListAPI(params) { //元数据方案列表
})
}
export
function
updateMetaDataPlanListAPI
(
data
)
{
//更新元数据方案
return
request
({
url
:
`
${
requestPath
.
common
}
/module/update`
,
method
:
'post'
,
data
})
}
...
...
src/views/submission/metadatamange/addnewmetadata.vue
浏览文件 @
c66a5f83
...
...
@@ -7,7 +7,7 @@
<div
class=
"metaDataForm"
>
<h2>
添加元数据方案
</h2>
<el-form
label-width=
"86px"
:model=
"formData"
>
<el-form-item
label=
"资源类型:"
>
<el-form-item
label=
"资源类型:"
v-if=
"!this.$route.query.flag"
>
<el-select
v-model=
"formData.type"
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
...
...
@@ -41,8 +41,10 @@
<
script
>
import
{
addNewPlanAPI
addNewPlanAPI
,
updateMetaDataPlanListAPI
}
from
'@/api/resourcecommit'
import
{
detailsAPI
,
addAPI
}
from
'@/api/metadataPlan/index'
export
default
{
name
:
'addnewmetadata'
,
data
()
{
...
...
@@ -74,23 +76,36 @@ export default {
getStatusVal
(
val
)
{
console
.
log
(
val
,
'22'
)
if
(
val
)
{
alert
(
1
)
this
.
formData
.
status
=
1
;
}
else
{
alert
(
0
)
this
.
formData
.
status
=
0
;
}
},
metaDataDetail
()
{
},
saveInfo
()
{
addNewPlanAPI
(
this
.
formData
)
.
then
(
res
=>
{
console
.
log
(
res
,
'YUIIII'
)
if
(
res
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
'添加元数据方案保存成功'
)
}
else
{
this
.
$message
.
error
(
'添加元数据方案保存失败'
)
}
})
if
(
!
this
.
$route
.
query
.
flag
)
{
addNewPlanAPI
(
this
.
formData
)
.
then
(
res
=>
{
console
.
log
(
res
,
'YUIIII'
)
if
(
res
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
'添加元数据方案保存成功'
)
}
else
{
this
.
$message
.
error
(
'添加元数据方案保存失败'
)
}
})
}
else
{
updateMetaDataPlanListAPI
(
this
.
formData
)
.
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
'更新元数据方案保存成功'
)
}
else
{
this
.
$message
.
error
(
'更新元数据方案保存失败'
)
}
})
}
this
.
$router
.
back
(
-
1
)
}
}
}
...
...
src/views/submission/metadatamange/metadataplan.vue
浏览文件 @
c66a5f83
...
...
@@ -14,7 +14,7 @@
<dl>
<dt>
<!--
<img
src=
"../../../assets/img/default.png"
alt=
""
>
-->
北
{{
item
.
name
.
substring
(
0
,
1
)
}}
</dt>
<dd>
<h3>
{{
item
.
name
}}
</h3>
...
...
@@ -24,7 +24,7 @@
</dl>
<div>
<p>
{{
item
.
createTime
}}
</p>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
>
查看
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
@
click=
"lookDetail(item)"
>
查看
</el-button>
</div>
</li>
</ul>
...
...
@@ -35,7 +35,7 @@
<dl>
<dt>
<!--
<img
src=
"../../../assets/img/default.png"
alt=
""
>
-->
北
{{
item
.
name
.
substring
(
0
,
1
)
}}
</dt>
<dd>
<h3>
{{
item
.
name
}}
</h3>
...
...
@@ -45,7 +45,7 @@
</dl>
<div>
<p>
{{
item
.
createTime
}}
</p>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
>
查看
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
@
click=
"lookDetail(item)"
>
查看
</el-button>
</div>
</li>
</ul>
...
...
@@ -56,7 +56,7 @@
<dl>
<dt>
<!--
<img
src=
"../../../assets/img/default.png"
alt=
""
>
-->
北
{{
item
.
name
.
substring
(
0
,
1
)
}}
</dt>
<dd>
<h3>
{{
item
.
name
}}
</h3>
...
...
@@ -66,7 +66,7 @@
</dl>
<div>
<p>
{{
item
.
createTime
}}
</p>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
>
查看
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
@
click=
"lookDetail(item)"
>
查看
</el-button>
</div>
</li>
</ul>
...
...
@@ -77,7 +77,7 @@
<dl>
<dt>
<!--
<img
src=
"../../../assets/img/default.png"
alt=
""
>
-->
北
{{
item
.
name
.
substring
(
0
,
1
)
}}
</dt>
<dd>
<h3>
{{
item
.
name
}}
</h3>
...
...
@@ -87,7 +87,7 @@
</dl>
<div>
<p>
{{
item
.
createTime
}}
</p>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
>
查看
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-view"
size=
"mini"
@
click=
"lookDetail(item)"
>
查看
</el-button>
</div>
</li>
</ul>
...
...
@@ -142,6 +142,15 @@ export default {
this
.
listData
=
res
.
data
.
data
;
}
})
},
lookDetail
(
item
)
{
console
.
log
(
item
,
'()(((99'
)
this
.
$router
.
push
({
path
:
'metadataplan_details'
,
query
:
{
id
:
item
.
id
}
})
}
}
}
...
...
src/views/submission/metadatamange/metadataplan_details.vue
浏览文件 @
c66a5f83
...
...
@@ -27,7 +27,7 @@
</div>
</div>
<div
class=
"itme_group item_bottom"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
class=
"edit_btn"
>
编辑信息
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
class=
"edit_btn"
@
click=
"goEditFun"
>
编辑信息
</el-button>
</div>
</div>
</div>
...
...
@@ -246,6 +246,15 @@ export default {
}
this
.
$refs
[
'addItemForm'
].
resetFields
();
this
.
getDetail
();
},
goEditFun
()
{
this
.
$router
.
push
({
path
:
'addnewmetadata'
,
query
:
{
flag
:
1
,
id
:
this
.
$route
.
query
.
id
}
})
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论