13404089107
2025-06-26 6fd9edb76f4b9ba18c33a3ed161d30c5f2a29732
culture/src/views/strainReportLibrary/reportLibraryOne/add.vue
@@ -143,8 +143,10 @@
                </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>
@@ -283,7 +285,6 @@
        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; }
@@ -308,7 +309,7 @@
                    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,
@@ -318,8 +319,6 @@
                    evaluate: str.join(','),
                    reportType: 1
                };
                console.log('params', params);
                if (this.$route.query.id) {
                    params.id = this.$route.query.id
                    update(params).then(res => {