Commit 69323b2f authored by wangxl's avatar wangxl

lllll

parent 02d0e1f7
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<task-edit v-model="value" @close="closeWindow" @load="onLoad" ref="taskCreate" :tabsData.sync="tabsData" /> <task-edit v-model="value" @close="closeWindow" @load="onLoad" ref="taskCreate" :tabsData.sync="tabsData" />
</div> </div>
<div class="page-footer"> <div class="page-footer">
<a-button type="primary" @click="save">保 存</a-button> <a-button type="primary" @click="save" v-if="tabsData[0].isShow">保 存</a-button>
<a-button type="primary" style="margin-left: 40px" @click="submit">完成填写</a-button> <a-button type="primary" style="margin-left: 40px" @click="submit" v-if="tabsData[0].isShow">完成填写</a-button>
</div> </div>
</a-spin> </a-spin>
</div> </div>
......
...@@ -1088,12 +1088,13 @@ import manufactureInfo from '@/views/report/project/components/manufactureInfo' ...@@ -1088,12 +1088,13 @@ import manufactureInfo from '@/views/report/project/components/manufactureInfo'
import projStageGoalsInfo from "@/views/report/project/components/projStageGoalsInfo"; import projStageGoalsInfo from "@/views/report/project/components/projStageGoalsInfo";
import projectSubInfo from '@/views/report/project/components/projectSubInfo' import projectSubInfo from '@/views/report/project/components/projectSubInfo'
import fileInfo from "@/views/report/project/components/fileInfo"; import fileInfo from "@/views/report/project/components/fileInfo";
import documentView from '@/views/components/common/documentView'
import { toTextarea } from '@/views/utils/common' import { toTextarea } from '@/views/utils/common'
export default { export default {
name: 'projectEdit', name: 'projectEdit',
components: { components: {
cooperativeUnitsInfo, projectMemberInfo, projectKpiInfo, budgetInfo, fundPlanInfo, unitPaymentInfo, deviceInfo, manufactureInfo, fileInfo, projStageGoalsInfo, projectSubInfo, participateUnitsInfo cooperativeUnitsInfo, projectMemberInfo, projectKpiInfo, budgetInfo, fundPlanInfo, unitPaymentInfo, deviceInfo, manufactureInfo, fileInfo, projStageGoalsInfo, projectSubInfo, participateUnitsInfo,documentView
}, },
props: { props: {
value: { value: {
......
...@@ -66,15 +66,15 @@ export default { ...@@ -66,15 +66,15 @@ export default {
tabsData: [ tabsData: [
{ title: '全部', key: '0', isShow: true }, { title: '全部', key: '0', isShow: true },
{ title: '项目基本信息', key: '1', isShow: true }, { title: '项目基本信息', key: '1', isShow: true },
{ title: '项目组主要成员', key: '2', isShow: true }, { title: '项目人员情况', key: '2', isShow: true },
{ title: '项目主要实施内容和目标', key: '3', isShow: true }, { title: '项目主要实施内容和目标', key: '3', isShow: true },
{ title: '申请书正文', key: '4', isShow: true }, { title: '申请书正文', key: '4', isShow: true },
{ title: '经费预算及设备明细', key: '5', isShow: true }, { title: '经费预算及设备明细', key: '5', isShow: true },
{ title: '项目实施阶段及任务', key: '6', isShow: true }, { title: '项目实施阶段及任务', key: '6', isShow: true },
{ title: '项目课题设置', key: '7', isShow: true }, { title: '项目课题设置', key: '7', isShow: true },
{ title: '绩效目标表', key: '8', isShow: true }, { title: '绩效目标表', key: '8', isShow: true },
{ title: '附件信息', key: '9', isShow: true }, { title: '附件信息', key: '9', isShow: true },
{ title: '项目审核记录', key: '10', isShow: true }, { title: '审核记录', key: '10', isShow: true },
], ],
formData: { formData: {
id: null, id: null,
...@@ -131,13 +131,13 @@ export default { ...@@ -131,13 +131,13 @@ export default {
}, },
}, },
created () { created () {
this.getProjectInfoById() this.getTaskByProjId()
}, },
methods: { methods: {
getProjectInfoById () { getTaskByProjId () {
if (this.value != null) { if (this.value != null) {
this.loading = true this.loading = true
this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => { this.$api.task.getTaskByProjId({ id: this.value }).then(({ data = {} }) => {
if (data) { if (data) {
this.formData = data this.formData = data
this.loading = false this.loading = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment