Commit 69323b2f authored by wangxl's avatar wangxl

lllll

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