Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
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
徐俊
yn-science-front
Commits
c34c8413
Commit
c34c8413
authored
Dec 16, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
333
parent
2c369ed0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
index.vue
src/views/expert/index.vue
+9
-9
No files found.
src/views/expert/index.vue
View file @
c34c8413
...
...
@@ -14,7 +14,7 @@
<a-select-option
value=
"女"
>
女
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
v-if=
"is
Show
"
>
<a-form-item
v-if=
"is
TopGov
"
>
<a-input
v-model=
"searchForm.unitName"
placeholder=
"单位"
:maxLength=
"100"
style=
"width: 130px"
/>
</a-form-item>
<a-form-item>
...
...
@@ -23,9 +23,6 @@
<a-form-item>
<para-multi-select
v-model=
"searchForm.title"
@
parentChange=
"titleChange"
:title=
"'职称'"
:objType=
"'project'"
:typeId=
"7"
:width=
"150"
/>
</a-form-item>
<a-form-item>
<para-multi-select
v-model=
"searchForm.spec"
@
parentChange=
"specChange"
:title=
"'评审专业'"
:objType=
"'project'"
:typeId=
"57"
:width=
"150"
/>
</a-form-item>
<a-form-item>
<a-button
type=
"primary"
icon=
"search"
@
click=
"search"
>
搜索
</a-button>
<a-button
icon=
"reload"
style=
"margin-left: 10px"
@
click=
"reset"
class=
"bt-normal"
>
重置
</a-button>
...
...
@@ -33,8 +30,8 @@
</a-form>
<a-divider
style=
"height: 1px; background-color: #e8e8e8;"
/>
<div
class=
"submit-btn"
>
<a-button
type=
"primary"
@
click=
"addExpert"
>
添加
专家
</a-button>
<a-button
type=
"primary"
@
click=
"importExcel"
v-if=
"is
Show
"
>
导入
</a-button>
<a-button
type=
"primary"
@
click=
"addExpert"
>
添加
</a-button>
<a-button
type=
"primary"
@
click=
"importExcel"
v-if=
"is
TopGov
"
>
导入
</a-button>
<a-button
type=
"primary"
@
click=
"exporExcel"
>
导出excel
</a-button>
</div>
<a-table
:dataSource=
"tableData"
:columns=
"columns"
rowKey=
"id"
:pagination=
"false"
:loading=
"loading"
>
...
...
@@ -52,6 +49,7 @@
<a-switch
checked-children=
"启用"
un-checked-children=
"停用"
:checked=
"checkedState(record)"
@
change=
"switchChange($event,record)"
/>
</
template
>
<
template
slot=
"option"
slot-scope=
"record"
>
<a-button
type=
"link"
size=
"small"
@
click=
"recordClick(record,'report')"
v-if=
"!isTopGov&&record.reportState!=2"
>
上报
</a-button>
<a-button
type=
"link"
size=
"small"
@
click=
"recordClick(record,'edit')"
>
修改
</a-button>
<a-button
type=
"link"
size=
"small"
@
click=
"recordClick(record,'reset')"
>
重置密码
</a-button>
<a-button
type=
"link"
size=
"small"
@
click=
"recordClick(record,'del')"
>
删除
</a-button>
...
...
@@ -94,7 +92,6 @@ export default {
{
title
:
'单位'
,
dataIndex
:
'unitName'
,
align
:
'center'
},
{
title
:
'用户名'
,
dataIndex
:
'username'
,
align
:
'center'
},
{
title
:
'密码'
,
dataIndex
:
'password'
,
align
:
'center'
},
{
title
:
'上报状态'
,
scopedSlots
:
{
customRender
:
'reportState'
},
align
:
'center'
},
{
title
:
'状态'
,
scopedSlots
:
{
customRender
:
'stateSwitch'
},
align
:
'center'
},
{
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'option'
},
align
:
'center'
,
fixed
:
'right'
,
width
:
'180px'
,
},
],
...
...
@@ -115,7 +112,7 @@ export default {
visibleView
:
false
,
visibleEdit
:
false
,
visibleImport
:
false
,
is
Show
:
false
,
is
TopGov
:
false
,
id
:
null
}
},
...
...
@@ -123,7 +120,10 @@ export default {
let
user
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'user'
))
if
(
user
&&
user
.
roles
)
{
if
(
user
.
roles
.
indexOf
(
"0"
)
!=
-
1
)
{
this
.
isShow
=
true
this
.
isTopGov
=
true
}
else
{
this
.
columns
.
splice
(
8
,
0
,
{
title
:
'上报状态'
,
scopedSlots
:
{
customRender
:
'reportState'
},
align
:
'center'
})
}
}
this
.
getListByPage
()
...
...
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