culture/src/views/strainReportLibrary/reportLibraryOneTWO/components/approval/index.vue
@@ -64,8 +64,8 @@ </div> </div> <el-form-item prop="name" style="margin-top: 38px"> <el-upload action="#" :file-list="fileList" :http-request="handleUpload" :before-upload="beforeUpload" :on-preview="handlePreview" :on-remove="handleRemove"> <el-upload action="#" :file-list="fileList" :on-preview="handlePreview"> <el-button size="small" type="primary">点击上传</el-button> <div slot="tip" class="el-upload__tip">支持任意格式文件上传</div> </el-upload> @@ -279,7 +279,7 @@ }; let arr = data.evaluate.split(',') this.fileList = (data.enclosureUrl ? JSON.parse(data.enclosureUrl) : []) this.fileList = data.enclosureUrl ? JSON.parse(data.enclosureUrl) : [] this.assessmentTable = this.assessmentTable.map((item, index) => { item.selectedScore = Number(arr[index]) return item culture/src/views/strainReportLibrary/reportLibraryOneTWO/components/evaluate/index.vue
@@ -193,6 +193,12 @@ detailData: {} }; }, watch: { type(val) { console.log(val); } }, computed: { currentAssessmentTable() { return this.type == 2 || this.type == '2' ? this.assessmentTable1 : this.assessmentTable2; @@ -216,6 +222,11 @@ this.form.reportCode = res.reportCode || ''; this.form.reportName = res.reportName || ''; this.form.id = res.id || ''; if( res.evaluate.split(',').length == 6){ this.type = 1 } this.currentAssessmentTable = this.currentAssessmentTable.map((item,index)=> { item.selectedScore = res.evaluate.split(',')[index] || 0; return item; culture/src/views/strainReportLibrary/reportLibraryOneTWO/index.vue
@@ -150,6 +150,8 @@ this.showEvaluate = true }, viewDetail(row) { console.log('qweqweqw',row); this.obj = row this.obj.isDetail = true this.showApproval = true