Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
Project
Project
Details
Activity
Releases
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
张伯涛
contractmanage
Commits
39661c2a
Commit
39661c2a
authored
Mar 17, 2022
by
shenyanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目查询,数据调取
parent
1512de96
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
521 additions
and
55 deletions
+521
-55
api.js
src/views/administrative/api.js
+8
-0
index.vue
src/views/administrative/index.vue
+41
-24
addProject.vue
src/views/projectInfo/addProject.vue
+457
-29
api.js
src/views/projectInfo/api.js
+8
-0
index.vue
src/views/projectInfo/index.vue
+7
-2
No files found.
src/views/administrative/api.js
0 → 100644
View file @
39661c2a
import
request
from
'@/utils/request'
export
function
getOrgTree
(
dictType
)
{
return
request
({
url
:
'/sysOrgan/queryOrganByTree'
,
method
:
'get'
})
}
src/views/administrative/index.vue
View file @
39661c2a
...
...
@@ -4,13 +4,10 @@
<div
class=
"search"
>
<el-form
ref=
"administraForm"
inline
:model=
"administraForm"
label-width=
"auto"
label-position=
"right"
>
<el-form-item
label=
"机构主数据编码"
>
<el-input
v-model=
"administraForm.
ZORG
"
placeholder=
"请输入机构主数据编码"
/>
<el-input
v-model=
"administraForm.
OID
"
placeholder=
"请输入机构主数据编码"
/>
</el-form-item>
<el-form-item
label=
"机构全称"
>
<el-input
v-model=
"administraForm.ZORGNAME"
placeholder=
"请输入机构全称"
/>
</el-form-item>
<el-form-item
label=
"机构属性"
>
<el-input
v-model=
"administraForm.ZORGATTR"
placeholder=
"请输入机构属性"
/>
<el-input
v-model=
"administraForm.NAME"
placeholder=
"请输入机构全称"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"queryAdministra"
>
查询
</el-button>
...
...
@@ -19,15 +16,17 @@
</div>
<div
class=
"administraTable"
>
<div
class=
"title"
>
行政组织列表
</div>
<el-table
:data=
"administraData"
border
>
<el-table
:data=
"administraData"
border
row-key=
"OID"
:tree-props=
"
{children: 'child'}"
>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<el-table-column
label=
"机构主数据编码"
prop=
"ZORG"
show-overflow-tooltip
/>
<el-table-column
label=
"机构全称"
prop=
"ZORGNAME"
show-overflow-tooltip
/>
<el-table-column
label=
"机构属性"
prop=
"ZORGATTR"
show-overflow-tooltip
/>
<el-table-column
label=
"国家名称"
prop=
"ZCYNAME"
show-overflow-tooltip
/>
<el-table-column
label=
"机构所在地"
prop=
"ZORGLOC"
show-overflow-tooltip
/>
<el-table-column
label=
"地域属性"
prop=
"ZREGIONAL"
show-overflow-tooltip
/>
<el-table-column
label=
"是否核算单位"
prop=
"ZACORGYESNO"
show-overflow-tooltip
/>
<el-table-column
label=
"机构主数据编码"
prop=
"OID"
show-overflow-tooltip
/>
<el-table-column
label=
"机构全称"
prop=
"NAME"
show-overflow-tooltip
/>
<el-table-column
label=
"机构简称"
prop=
"SHORTNAME"
show-overflow-tooltip
/>
<el-table-column
label=
"机构业务类型"
prop=
"BIZTYPE"
show-overflow-tooltip
/>
<el-table-column
label=
"操作"
>
<template
slot-scope=
""
>
<el-button
type=
"text"
size=
"mini"
@
click=
"queryrow"
>
查看
</el-button>
...
...
@@ -114,22 +113,19 @@
</template>
<
script
>
import
{
getOrgTree
}
from
'@/views/administrative/api'
export
default
{
name
:
'Administrative'
,
data
()
{
return
{
administraForm
:
{
ZORG
:
''
,
// 机构主数据编码
ZORGNAME
:
''
,
// 机构全称
ZORGATTR
:
''
// 机构属性
OID
:
''
,
// 机构主数据编码
NAME
:
''
,
// 机构全称
page
:
1
,
rows
:
10
},
administraData
:
[
{
ZORG
:
'01'
,
ZORGNAME
:
'***机构1'
,
ZORGATTR
:
'人力资源'
,
ZCYNAME
:
'天津'
,
ZORGLOC
:
'天津'
,
ZREGIONAL
:
'直辖市'
,
ZACORGYESNO
:
'是'
},
{
ZORG
:
'02'
,
ZORGNAME
:
'***机构2'
,
ZORGATTR
:
'人力资源'
,
ZCYNAME
:
'北京'
,
ZORGLOC
:
'北京'
,
ZREGIONAL
:
'直辖市'
,
ZACORGYESNO
:
'是'
},
{
ZORG
:
'03'
,
ZORGNAME
:
'***机构3'
,
ZORGATTR
:
'技工教育'
,
ZCYNAME
:
'上海'
,
ZORGLOC
:
'上海'
,
ZREGIONAL
:
'直辖市'
,
ZACORGYESNO
:
'是'
},
{
ZORG
:
'04'
,
ZORGNAME
:
'***机构4'
,
ZORGATTR
:
'技工教育'
,
ZCYNAME
:
'广东'
,
ZORGLOC
:
'广东广州'
,
ZREGIONAL
:
'省'
,
ZACORGYESNO
:
'是'
}
],
total
:
4
,
administraData
:
[],
total
:
0
,
page
:
1
,
rows
:
10
,
// 弹框
...
...
@@ -137,8 +133,21 @@ export default {
dialogForm
:
{}
}
},
mounted
()
{
this
.
getOrgData
()
},
methods
:
{
queryAdministra
()
{},
getOrgData
()
{
this
.
administraForm
.
rows
=
this
.
rows
this
.
administraForm
.
page
=
this
.
page
getOrgTree
(
this
.
administraForm
).
then
(
res
=>
{
this
.
administraData
=
res
.
data
})
},
queryAdministra
()
{
this
.
page
=
1
this
.
getOrgData
()
},
/** 行查看按钮 */
queryrow
(
row
)
{
this
.
dialogForm
=
{
...
...
@@ -164,6 +173,14 @@ export default {
/** 查看弹框关闭 */
handleClose
()
{
this
.
dialogVisible
=
false
},
pageSizeChange
(
row
)
{
this
.
rows
=
row
this
.
getOrgData
()
},
currentPageChange
(
page
)
{
this
.
page
=
page
this
.
getOrgData
()
}
}
}
...
...
src/views/projectInfo/addProject.vue
View file @
39661c2a
This diff is collapsed.
Click to expand it.
src/views/projectInfo/api.js
View file @
39661c2a
...
...
@@ -57,3 +57,11 @@ export function getDictAll(data) {
params
:
data
})
}
// 获取所有数据字典类型
export
function
getUnit
(
data
)
{
return
request
({
url
:
'/sysUnit/queryUnitByPage'
,
method
:
'get'
,
params
:
data
})
}
src/views/projectInfo/index.vue
View file @
39661c2a
...
...
@@ -69,8 +69,9 @@
<el-table-column
label=
"操作"
fixed=
"right"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"editProject(scope.row)"
>
修改
</el-link>
<el-link
:underline=
"false"
type=
"success"
style=
"margin-left: 10px "
@
click=
"handProject(scope.row)"
>
查看
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click=
"delProject(scope.row)"
>
删除
</el-link>
<el-link
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click=
"pushProject(scope.row)"
>
推送
</el-link>
<el-link
:underline=
"false"
type=
"warning"
style=
"margin-left: 10px;color: "
@
click=
"handProject(scope.row)"
>
查看
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px"
@
click=
"delProject(scope.row)"
>
删除
</el-link>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -227,6 +228,10 @@ export default {
message
:
'已取消删除'
})
})
},
/** 项目推送 */
pushProject
(
row
)
{
},
/** 项目查看 */
handProject
(
row
)
{
...
...
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