Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
9
912project
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
CRS
912project
Commits
412a515c
提交
412a515c
authored
4月 08, 2020
作者:
CRS
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'crs' 到 'master'
new 查看合并请求
!106
上级
1f97f62a
11dc5ad1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
44 行增加
和
8 行删除
+44
-8
roleDispose.vue
src/components/roleDispose/roleDispose.vue
+44
-8
没有找到文件。
src/components/roleDispose/roleDispose.vue
浏览文件 @
412a515c
...
@@ -5,8 +5,18 @@
...
@@ -5,8 +5,18 @@
<div
class=
"content"
>
<div
class=
"content"
>
<p
class=
"search"
>
<p
class=
"search"
>
<span
class=
"searchVal"
>
<span
class=
"searchVal"
>
<span>
查询:
</span>
<span>
关键字:
</span>
<el-input
v-model=
"input2"
size=
"medium"
@
change=
"search"
placeholder=
"请输入关键技术"
></el-input>
<el-input
v-model=
"input2"
size=
"medium"
@
change=
"search"
placeholder=
"请输入关键字"
></el-input>
</span>
<span
class=
"searchVal"
>
<span>
关键技术:
</span>
<el-select
v-model=
"searchVal"
@
change=
"search"
placeholder=
"请选择关键技术"
clearable
>
<el-option
v-for=
"item in allList"
:label=
"item.technologyName"
:value=
"item.technologyName"
>
</el-option>
</el-select>
</span>
</span>
<span
class=
"button searchBtn"
@
click=
"search"
>
搜索
</span>
<span
class=
"button searchBtn"
@
click=
"search"
>
搜索
</span>
<span
class=
"button add"
@
click=
"addRole"
><img
src=
"../../assets/img/add.png"
></span>
<span
class=
"button add"
@
click=
"addRole"
><img
src=
"../../assets/img/add.png"
></span>
...
@@ -74,7 +84,9 @@ export default {
...
@@ -74,7 +84,9 @@ export default {
name
:
'roleDispose'
,
name
:
'roleDispose'
,
data
()
{
data
()
{
return
{
return
{
input2
:
''
,
input2
:
''
,
// 关键字
searchVal
:
''
,
// 关键技术
allList
:
[],
// 所有关键技术
tableData
:
[],
tableData
:
[],
tablePageSize
:
0
,
tablePageSize
:
0
,
pageSize
:
9
,
// 每页个数
pageSize
:
9
,
// 每页个数
...
@@ -86,14 +98,33 @@ export default {
...
@@ -86,14 +98,33 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$server
.
getAllList
().
then
(
res
=>
{
// 获取所有关键技术
console
.
log
(
res
)
this
.
allList
=
res
.
data
}).
catch
(
err
=>
{
this
.
$message
.
error
(
'数据请求失败!'
);
})
this
.
search
();
this
.
search
();
},
},
methods
:
{
methods
:
{
// 搜索
// 搜索
search
()
{
search
()
{
console
.
log
(
1222
)
let
obj
;
let
obj
=
{
if
(
this
.
input2
!==
''
&&
this
.
searchVal
!==
''
)
{
technologyName
:
this
.
input2
obj
=
{
'technologyName'
:
this
.
searchVal
,
'target'
:
this
.
input2
}
}
else
if
(
this
.
input2
!==
''
&&
this
.
searchVal
===
''
)
{
obj
=
{
'target'
:
this
.
input2
}
}
else
if
(
this
.
input2
===
''
&&
this
.
searchVal
!==
''
)
{
obj
=
{
'technologyName'
:
this
.
searchVal
}
}
else
{
obj
=
{}
}
}
this
.
$server
.
getConfigPageList
(
this
.
myPage
,
this
.
pageSize
,
obj
).
then
(
res
=>
{
this
.
$server
.
getConfigPageList
(
this
.
myPage
,
this
.
pageSize
,
obj
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
objects
;
this
.
tableData
=
res
.
data
.
objects
;
...
@@ -186,16 +217,21 @@ export default {
...
@@ -186,16 +217,21 @@ export default {
display
:
flex
;
display
:
flex
;
}
}
.roleDispose
.content
.searchVal
{
.roleDispose
.content
.searchVal
{
width
:
28
0px
;
width
:
32
0px
;
display
:
flex
;
display
:
flex
;
font-size
:
18px
;
font-size
:
18px
;
color
:
#4663a6
;
color
:
#4663a6
;
}
}
.roleDispose
.content
.searchVal
>
span
{
.roleDispose
.content
.searchVal
>
span
{
width
:
7
5px
;
width
:
9
5px
;
display
:
inline-block
;
display
:
inline-block
;
line-height
:
34px
;
line-height
:
34px
;
}
}
.roleDispose
.content
.searchVal
:nth-child
(
2
)>
span
{
width
:
150px
;
margin-left
:
20px
;
text-align
:
right
;
}
.roleDispose
.content
.button
{
.roleDispose
.content
.button
{
display
:
inline-block
;
display
:
inline-block
;
width
:
100px
;
width
:
100px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论