Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d12ec491
authored
May 29, 2024
by
史敦盼
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sdp-v1'
2 parents
80afc910
1204348b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
13 deletions
src/views/demandManagement/ChoosePrjDialog.vue → src/components/ChoosePrjDialog.vue
src/views/demandManagement/Add.vue
src/
views/demandManagement
/ChoosePrjDialog.vue
→
src/
components
/ChoosePrjDialog.vue
View file @
d12ec49
...
...
@@ -39,7 +39,9 @@ import SearchForm from '@/components/SearchForm.vue'
import
TableConfig
from
'@/components/TableConfig.vue'
import
{
queryProjectInfo
}
from
'@/api/interface'
import
{
getDeptOption
,
getOrgOption
}
from
'@/api/index.js'
import
{
buildType
,
prjPlanClass
}
from
'@/utils/dictionary'
import
{
getDictTypeOptions
}
from
'@/utils'
export
default
{
props
:
{
title
:
{
...
...
@@ -59,6 +61,10 @@ export default {
queryParam
:
{},
},
selectRows
:
[],
buildTypeOptions
:
[],
buildOrgOptions
:
[],
sysDeptOptions
:
[],
sysOrgOptions
:
[],
}
},
components
:
{
ListPage
,
SearchForm
,
TableConfig
},
...
...
@@ -68,16 +74,20 @@ export default {
{
label
:
'单位'
,
// label文字
prop
:
'manageOrgId'
,
// 字段名
element
:
'el-
inpu
t'
,
// 指定elementui组件
element
:
'el-
selec
t'
,
// 指定elementui组件
initValue
:
''
,
// 字段初始值
placeholder
:
'请输入内容'
,
// elementui组件属性
placeholder
:
'请选择'
,
// elementui组件属性
options
:
this
.
sysOrgOptions
,
filterable
:
true
},
{
label
:
'部门'
,
// label文字
prop
:
'manageDeptId'
,
// 字段名
element
:
'el-
inpu
t'
,
// 指定elementui组件
element
:
'el-
selec
t'
,
// 指定elementui组件
initValue
:
''
,
// 字段初始值
placeholder
:
'请输入内容'
,
// elementui组件属性
placeholder
:
'请选择'
,
// elementui组件属性
options
:
this
.
sysDeptOptions
,
filterable
:
true
},
{
label
:
'系统名称'
,
// label文字
...
...
@@ -100,14 +110,26 @@ export default {
return
[
{
type
:
'selection'
,
width
:
'55px'
},
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'单位'
,
prop
:
'manageOrgId'
},
{
label
:
'部门'
,
prop
:
'manageDeptId'
},
{
label
:
'单位'
,
prop
:
'manageOrgId'
,
width
:
'200px'
,
options
:
this
.
sysOrgOptions
,
collectionType
:
true
,
},
{
label
:
'部门'
,
prop
:
'manageDeptId'
,
width
:
'200px'
,
options
:
this
.
sysDeptOptions
,
collectionType
:
true
,
},
{
label
:
'系统名称'
,
prop
:
'appName'
,
width
:
'200px'
},
{
label
:
'建设类型'
,
width
:
'100px'
,
prop
:
'buildType'
,
options
:
buildType
,
options
:
this
.
buildTypeOptions
,
collectionType
:
'buildType'
,
},
{
...
...
@@ -121,10 +143,16 @@ export default {
options
:
prjPlanClass
,
collectionType
:
'prjPlanClass'
,
},
{
label
:
'承建单位'
,
prop
:
'buildOrg'
},
{
label
:
'项目经理'
,
prop
:
'projectManager'
},
{
label
:
'创建人'
,
prop
:
'createMan'
},
{
label
:
'创建时间'
,
prop
:
'createTime'
},
{
label
:
'承建单位'
,
prop
:
'buildOrg'
,
width
:
'200px'
,
options
:
this
.
buildOrgOptions
,
collectionType
:
true
,
},
{
label
:
'项目经理'
,
prop
:
'projectManager'
,
width
:
'100px'
},
{
label
:
'创建人'
,
prop
:
'createMan'
,
width
:
'100px'
},
{
label
:
'创建时间'
,
prop
:
'createTime'
,
width
:
'120px'
},
]
},
showDialog
:
{
...
...
@@ -136,8 +164,38 @@ export default {
},
},
},
mounted
()
{},
created
()
{
this
.
getDicts
()
},
methods
:
{
getDicts
()
{
getDictTypeOptions
(
'build_type'
).
then
((
res
)
=>
{
this
.
buildTypeOptions
=
res
})
getDictTypeOptions
(
'build_company'
).
then
((
res
)
=>
{
this
.
buildOrgOptions
=
res
})
getDeptOption
().
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
sysDeptOptions
=
res
.
data
.
map
((
v
)
=>
{
return
{
label
:
v
.
orgName
,
value
:
v
.
orgId
,
}
})
}
})
getOrgOption
().
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
sysOrgOptions
=
res
.
data
.
map
((
v
)
=>
{
return
{
label
:
v
.
orgName
,
value
:
v
.
orgId
,
}
})
}
})
},
clearSelection
()
{
this
.
$refs
[
'searchTable'
].
clearSelection
()
},
...
...
src/views/demandManagement/Add.vue
View file @
d12ec49
...
...
@@ -37,7 +37,7 @@
<
script
>
import
Form
from
'@/components/Form.vue'
import
ChoosePrjDialog
from
'
.
/ChoosePrjDialog.vue'
import
ChoosePrjDialog
from
'
@/components
/ChoosePrjDialog.vue'
import
{
addNeedInfo
,
editNeedInfo
}
from
'@/api'
import
{
materialOptions
}
from
'@/utils/dictionary'
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment