| | |
| | | </div> |
| | | |
| | | <div class="end-btn" style="margin-top: 38px"> |
| | | <el-button type="primary" @click="addData" :loading="submitLoading" :disabled="submitLoading">发送</el-button> |
| | | <el-button type="default" @click="saveData" :loading="submitLoading" :disabled="submitLoading">存草稿</el-button> |
| | | <el-button type="primary" @click="addData" :loading="submitLoading" |
| | | :disabled="submitLoading">发送</el-button> |
| | | <el-button type="default" @click="saveData" :loading="submitLoading" |
| | | :disabled="submitLoading">存草稿</el-button> |
| | | </div> |
| | | </el-form> |
| | | </Card> |
| | |
| | | addData() { |
| | | if (this.submitLoading) return; |
| | | this.submitLoading = true; |
| | | console.log('qeqweqeqwqrew', this.form, this.projectData); |
| | | |
| | | this.$refs.form.validate(async (valid) => { |
| | | if (!valid) { this.submitLoading = false; return; } |
| | |
| | | return; |
| | | } |
| | | const params = { |
| | | isDraft: 0, |
| | | isDraft: this.form.isDraft ? this.form.isDraft : 0, |
| | | projectId: this.projectData[0].id, |
| | | experimentId: this.selectedMember[0].userId, |
| | | // reportCode: this.form.reportCode, |
| | |
| | | evaluate: str.join(','), |
| | | reportType: 1 |
| | | }; |
| | | console.log('params', params); |
| | | |
| | | if (this.$route.query.id) { |
| | | params.id = this.$route.query.id |
| | | update(params).then(res => { |