| | |
| | | <el-card shadow="hover"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="24" class="mb-4"> |
| | | <el-button type="primary" size="small" @click="handlePlanRecord" style="float: right; margin-bottom: 10px; margin-left: 10px">返回</el-button> |
| | | <el-button type="primary" size="small" @click="handleAdd" style="float: right; margin-bottom: 10px">新增</el-button> |
| | | <el-table :data="tableData" border stripe style="width: 100%; margin-bottom: 20px"> |
| | | <el-table-column prop="index" label="序号" width="50" align="center"> |
| | |
| | | // 获取传递过来的项目计划详情 |
| | | getProjectInfoData() { |
| | | // 从查询参数中获取数据 |
| | | this.projectInfoData = this.$route.query.projectInfoData |
| | | this.planInfoData.id = this.$route.query.id; |
| | | this.planInfoData.projectName = this.$route.query.projectName; |
| | | this.planInfoData.projectCode = this.$route.query.projectCode; |
| | | this.planInfoData.planTime = this.$route.query.planTime; |
| | | this.planInfoData.planTimeFlag = this.$route.query.planTimeFlag; |
| | | this.planInfoData.managerFlag = this.$route.query.managerFlag; |
| | | this.projectInfoData = JSON.parse(this.$route.query.projectInfoData) |
| | | this.planInfoData = JSON.parse(this.$route.query.data) |
| | | this.search(); |
| | | }, |
| | | // 获取项目计划项 |
| | |
| | | // 保存当前行数据 |
| | | handleSave(index) { |
| | | this.tableData[index].projectPlanRecordId = this.projectInfoData.id; |
| | | console.log(this.tableData[index]) |
| | | savePlanInfo(this.tableData[index], this.planInfoData.id).then(response => { |
| | | this.$message.success('保存成功'); |
| | | }); |
| | |
| | | this.$router.push({ |
| | | path: '/projectManage/planRecord', |
| | | query: { |
| | | data: this.projectInfoData |
| | | data: JSON.stringify(this.projectInfoData) |
| | | } |
| | | }) |
| | | } |