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
b98bf5b3
Commit
b98bf5b3
authored
Dec 12, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
444444
parent
91aeba09
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
22 deletions
+81
-22
paraMultiSelect.vue
src/views/components/common/paraMultiSelect.vue
+2
-0
upLoad.vue
src/views/components/common/upLoad.vue
+9
-1
projectEdit.vue
src/views/report/project/components/projectEdit.vue
+29
-5
projectKpiEdit.vue
src/views/report/project/components/projectKpiEdit.vue
+41
-16
No files found.
src/views/components/common/paraMultiSelect.vue
View file @
b98bf5b3
...
@@ -111,6 +111,8 @@ export default {
...
@@ -111,6 +111,8 @@ export default {
else
{
else
{
this
.
childArray
=
[
this
.
defaultChild
]
this
.
childArray
=
[
this
.
defaultChild
]
this
.
childValue
=
''
this
.
childValue
=
''
this
.
$emit
(
"input"
,
null
);
this
.
$emit
(
"change"
);
}
}
this
.
$emit
(
'parentChange'
,
value
)
this
.
$emit
(
'parentChange'
,
value
)
this
.
$emit
(
"change"
);
this
.
$emit
(
"change"
);
...
...
src/views/components/common/upLoad.vue
View file @
b98bf5b3
...
@@ -7,13 +7,21 @@
...
@@ -7,13 +7,21 @@
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px 2px;"
/>
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px 2px;"
/>
</div>
</div>
<div
v-else
>
<div
v-else
>
<div
v-if=
"isUpload"
>
<a-form-model-item
:prop=
"name+'downloadUrl'"
:rules=
"
{required: isRequired, message: message,trigger: 'blur',}">
<a-form-model-item
:prop=
"name+'downloadUrl'"
:rules=
"
{required: isRequired, message: message,trigger: 'blur',}">
<input
type=
"file"
ref=
"fileElem
"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<input
type=
"file"
ref=
"fileElem1
"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-button
@
click=
"fileSelect"
>
<a-button
@
click=
"fileSelect"
>
<a-icon
type=
"upload"
/>
选择文件
<a-icon
type=
"upload"
/>
选择文件
</a-button>
</a-button>
</a-form-model-item>
</a-form-model-item>
</div>
</div>
<div
v-else
>
<input
type=
"file"
ref=
"fileElem2"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-button
@
click=
"fileSelect"
>
<a-icon
type=
"upload"
/>
选择文件
</a-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
src/views/report/project/components/projectEdit.vue
View file @
b98bf5b3
...
@@ -311,7 +311,7 @@
...
@@ -311,7 +311,7 @@
</a-col>
</a-col>
<a-col
:span=
"20"
>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"knowledgeId"
>
<a-form-model-item
prop=
"knowledgeId"
>
<cascader-select
v-model=
"formData.knowledgeId"
/>
<cascader-select
v-model=
"formData.knowledgeId"
/>
<!--
<para-multi-select
v-model=
"formData.knowledgeId"
:typeId=
"57"
/>
-->
<!--
<para-multi-select
v-model=
"formData.knowledgeId"
:typeId=
"57"
/>
-->
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
...
@@ -431,16 +431,40 @@
...
@@ -431,16 +431,40 @@
</a-row>
</a-row>
<!-- 项目组成员 -->
<!-- 项目组成员 -->
<project-member-edit
:dataList
.
sync=
"formData.members"
/>
<project-member-edit
:dataList
.
sync=
"formData.members"
/>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
</div>
</a-col>
</a-row>
<!-- 项目绩效指标 -->
<!-- 项目绩效指标 -->
<project-kpi-edit
:projectKPI
.
sync=
"formData.projectKPI"
/>
<project-kpi-edit
:projectKPI
.
sync=
"formData.projectKPI"
/>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
</div>
</a-col>
</a-row>
<!-- 经费预算 -->
<!-- 经费预算 -->
<budget-edit
:budget
.
sync=
"formData.budget"
/>
<budget-edit
:budget
.
sync=
"formData.budget"
/>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
</div>
</a-col>
</a-row>
<!-- 分年度用款计划 -->
<!-- 分年度用款计划 -->
<fund-plan-edit
:fundPlan
.
sync=
"formData.fundPlan"
/>
<fund-plan-edit
:fundPlan
.
sync=
"formData.fundPlan"
/>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
</div>
</a-col>
</a-row>
<a-row>
<a-row>
<a-col
:span=
"24"
style=
"border-top: 0px"
>
<a-col
:span=
"24"
style=
"border-top: 0px"
>
<div
class=
"main-title"
>
<div
class=
"main-title"
>
...
...
src/views/report/project/components/projectKpiEdit.vue
View file @
b98bf5b3
<
template
>
<
template
>
<div
class=
"f
rom-table f
ont-line-space"
>
<div
class=
"font-line-space"
>
<a-row>
<a-row>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
<div
class=
"tb-title"
>
<div
class=
"tb-title"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<td
class=
"bg-title"
>
主管处室
</td>
<td
class=
"bg-title"
>
主管处室
</td>
<td
colspan=
"10"
>
<td
colspan=
"10"
>
<a-form-model-item
:prop=
"'projectKPI.managerDept'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.managerDept'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input
placeholder=
"主管处室"
v-model=
"projectKPI.managerDept"
:maxLength=
"50"
/>
<a-input
placeholder=
"主管处室"
v-model=
"projectKPI.managerDept"
:maxLength=
"50"
style=
"width: 80%;"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
colspan=
"2"
class=
"bg-title"
>
实施单位
</td>
<td
colspan=
"2"
class=
"bg-title"
>
实施单位
</td>
...
@@ -64,9 +64,13 @@
...
@@ -64,9 +64,13 @@
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"10"
rowspan=
"2"
>
<td
colspan=
"10"
rowspan=
"2"
>
<div
class=
"special-middle"
>
<div>
<a-form-model-item
:prop=
"'projectKPI.yearTarget'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.yearTarget'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-textarea
placeholder=
"总体目标"
v-model=
"projectKPI.yearTarget"
:maxLength=
"600"
style=
"width: 9
0%; height: 100px;"
/>
<a-textarea
placeholder=
"总体目标"
v-model=
"projectKPI.yearTarget"
:maxLength=
"600"
style=
"width: 8
0%; height: 100px;"
/>
</a-form-model-item>
</a-form-model-item>
</div>
</div>
</td>
</td>
<td
class=
"target-value"
colspan=
"3"
>
{{
moment
(
projectKPI
.
startDate
).
year
()
}}
年
</td>
<td
class=
"target-value"
colspan=
"3"
>
{{
moment
(
projectKPI
.
startDate
).
year
()
}}
年
</td>
<td
class=
"target-value"
colspan=
"3"
>
{{
moment
(
projectKPI
.
startDate
).
add
(
1
,
'year'
).
year
()
}}
年
</td>
<td
class=
"target-value"
colspan=
"3"
>
{{
moment
(
projectKPI
.
startDate
).
add
(
1
,
'year'
).
year
()
}}
年
</td>
...
@@ -75,17 +79,17 @@
...
@@ -75,17 +79,17 @@
<tr>
<tr>
<td
colspan=
"3"
style=
"margin-top: 10px;"
>
<td
colspan=
"3"
style=
"margin-top: 10px;"
>
<a-form-model-item
:prop=
"'projectKPI.year1Goal'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.year1Goal'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-textarea
v-model=
"projectKPI.year1Goal"
:maxLength=
"200"
style=
"width:
250px
; height: 60px;"
/>
<a-textarea
v-model=
"projectKPI.year1Goal"
:maxLength=
"200"
style=
"width:
80%
; height: 60px;"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
colspan=
"3"
>
<td
colspan=
"3"
>
<a-form-model-item
:prop=
"'projectKPI.year2Goal'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.year2Goal'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-textarea
v-model=
"projectKPI.year2Goal"
:maxLength=
"200"
style=
"width:
250px
; height: 60px;"
/>
<a-textarea
v-model=
"projectKPI.year2Goal"
:maxLength=
"200"
style=
"width:
80%
; height: 60px;"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
colspan=
"3"
>
<td
colspan=
"3"
>
<a-form-model-item
:prop=
"'projectKPI.year3Goal'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.year3Goal'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-textarea
v-model=
"projectKPI.year3Goal"
:maxLength=
"200"
style=
"width:
9
0%; height: 60px;"
/>
<a-textarea
v-model=
"projectKPI.year3Goal"
:maxLength=
"200"
style=
"width:
8
0%; height: 60px;"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
</tr>
</tr>
...
@@ -115,12 +119,12 @@
...
@@ -115,12 +119,12 @@
<td
colspan=
"6"
>
{{
item
.
kpitName
}}
</td>
<td
colspan=
"6"
>
{{
item
.
kpitName
}}
</td>
<td
class=
"target-value"
>
<td
class=
"target-value"
>
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.targetValue'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.targetValue'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.targetValue"
:min=
"0"
:step=
"1"
style=
"width:
9
0%"
/>
<a-input-number
v-model=
"item.targetValue"
:min=
"0"
:step=
"1"
style=
"width:
8
0%"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
class=
"target-value"
>
<td
class=
"target-value"
>
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.performanceStandard'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.performanceStandard'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.performanceStandard"
:min=
"0"
:step=
"1"
style=
"width:
9
0%"
/>
<a-input-number
v-model=
"item.performanceStandard"
:min=
"0"
:step=
"1"
style=
"width:
8
0%"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
class=
"bg-title"
v-if=
"item.towDisplay"
:rowspan=
"item.towRowSpan"
>
<td
class=
"bg-title"
v-if=
"item.towDisplay"
:rowspan=
"item.towRowSpan"
>
...
@@ -129,17 +133,17 @@
...
@@ -129,17 +133,17 @@
<td
colspan=
"5"
>
{{
item
.
kpitName
}}
</td>
<td
colspan=
"5"
>
{{
item
.
kpitName
}}
</td>
<td
class=
"target-value"
>
<td
class=
"target-value"
>
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.yearValue1'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.yearValue1'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.yearValue1"
:min=
"0"
:step=
"1"
style=
"width:
9
0%"
/>
<a-input-number
v-model=
"item.yearValue1"
:min=
"0"
:step=
"1"
style=
"width:
8
0%"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
class=
"target-value"
>
<td
class=
"target-value"
>
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.yearValue2'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.yearValue2'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.yearValue2"
:min=
"0"
:step=
"1"
style=
"width:
9
0%"
/>
<a-input-number
v-model=
"item.yearValue2"
:min=
"0"
:step=
"1"
style=
"width:
8
0%"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
<td
class=
"target-value"
>
<td
class=
"target-value"
>
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.yearValue3'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'projectKPI.threeLevel.' + index + '.yearValue3'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.yearValue3"
:min=
"0"
:step=
"1"
style=
"width:
9
0%"
/>
<a-input-number
v-model=
"item.yearValue3"
:min=
"0"
:step=
"1"
style=
"width:
8
0%"
/>
</a-form-model-item>
</a-form-model-item>
</td>
</td>
</tr>
</tr>
...
@@ -160,7 +164,7 @@ export default {
...
@@ -160,7 +164,7 @@ export default {
},
},
},
},
},
},
data
()
{
data
()
{
return
{
return
{
projAttributes
:
[
projAttributes
:
[
{
id
:
"5b9d6509-aece-11ef-b6cb-0c42a1380f01"
,
name
:
"新增项目"
},
{
id
:
"5b9d6509-aece-11ef-b6cb-0c42a1380f01"
,
name
:
"新增项目"
},
...
@@ -168,13 +172,13 @@ export default {
...
@@ -168,13 +172,13 @@ export default {
],
],
};
};
},
},
created
()
{
created
()
{
//this.getProjectKpitStatistic()
//this.getProjectKpitStatistic()
this
.
LoadParameterInfo
();
this
.
LoadParameterInfo
();
},
},
methods
:
{
methods
:
{
moment
,
moment
,
LoadParameterInfo
()
{
LoadParameterInfo
()
{
let
pars1
=
{
typeId
:
67
};
let
pars1
=
{
typeId
:
67
};
this
.
$api
.
parameter
this
.
$api
.
parameter
.
getParameterListByTypeId
(
pars1
)
.
getParameterListByTypeId
(
pars1
)
...
@@ -182,9 +186,9 @@ export default {
...
@@ -182,9 +186,9 @@ export default {
this
.
projAttributes
=
data
;
this
.
projAttributes
=
data
;
//console.log(this.projAttribute[0].id)
//console.log(this.projAttribute[0].id)
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{
});
},
},
getProjectKpitStatistic
()
{
getProjectKpitStatistic
()
{
this
.
$api
.
statistical
.
getProjectKpitStatistic
().
then
(({
data
=
{}
})
=>
{
this
.
$api
.
statistical
.
getProjectKpitStatistic
().
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
)
{
}
}
...
@@ -195,6 +199,27 @@ export default {
...
@@ -195,6 +199,27 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.tab-content {
::v-deep .ant-row {
border: 0 !important;
}
::v-deep .ant-row .ant-col {
border: 0 !important;
min-height: 30px !important;
}
::v-deep .ant-form-item-control {
line-height: 30px !important;
}
::v-deep .ant-form-item {
margin: 0 !important;
}
::v-deep .ant-input-number {
height: 30px !important;
}
::v-deep .ant-input-number-input {
height: 30px !important;
}
}
table,
table,
tr,
tr,
td {
td {
...
...
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