From aca7c994977ecb1cc8fb3b7740a04192135a40a9 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 04 九月 2023 15:04:20 +0800 Subject: [PATCH] modified: .env.development modified: src/views/CNAS/nonConformanceManage/index.vue modified: src/views/CNAS/reviewAnnualPlan/index.vue modified: src/views/CNAS/satisfactionSurveys/index.vue modified: src/views/experiment/checkTheReport/index.vue modified: src/views/experiment/inspectionApplication/index.vue modified: src/views/experiment/nonConformanceReview/index.vue modified: src/views/experiment/nonConformingFeedback/index.vue modified: src/views/experiment/reportAuditing/index.vue modified: src/views/inspectionManagement/commissionInspection/index.vue modified: src/views/inspectionManagement/reportForInspection/index.vue modified: src/views/laboratory/ledger/index.vue modified: src/views/laboratory/measure/index.vue modified: src/views/laboratory/personnel/index.vue modified: src/views/laboratory/role/index.vue modified: src/views/message/toDo/index.vue --- src/views/inspectionManagement/commissionInspection/index.vue | 29 ++++++++++++++++++----------- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/views/inspectionManagement/commissionInspection/index.vue b/src/views/inspectionManagement/commissionInspection/index.vue index 2fa91e2..b6dec7b 100644 --- a/src/views/inspectionManagement/commissionInspection/index.vue +++ b/src/views/inspectionManagement/commissionInspection/index.vue @@ -58,8 +58,8 @@ </div> </div> <div class="table-box"> - <el-table ref="commisionTable" :max-height="800" :cell-style="{textAlign: 'center'}" - :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" + <el-table ref="commisionTable" :max-height="800" :cell-style="{textAlign: 'left'}" + :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'left'}" :data="commisionTable" @selection-change="handleSelectionChange" style="width: 100%"> <el-table-column type="selection" :selectable="checkSelect" min-width="10%" /> <el-table-column type="index" label="搴忓彿" min-width="10%" /> @@ -71,7 +71,6 @@ <el-table-column prop="inspectionTime" label="閫佹牱鏃堕棿" min-width="8%" /> <el-table-column prop="completionDeadline" label="瀹屾垚鏈熼檺" min-width="8%" /> <el-table-column prop="contacts" label="濮旀墭缂栧埗浜�" min-width="8%" /> - <el-table-column prop="insTime" label="妫�楠屾棩鏈�" min-width="8%" /> <el-table-column prop="inspection_status" label="鐘舵��" min-width="8%"> <template slot-scope="scope"> <div v-if="scope.row.inspection_status === 0"> @@ -255,11 +254,13 @@ }, handleSelectionChange(val) { if (val.length > 1) { + let data = val.pop(); this.$refs.commisionTable.clearSelection(); - this.$refs.commisionTable.toggleRowSelection(val.pop()) + this.$refs.commisionTable.toggleRowSelection(data); + this.checkData = data; + }else{ + this.checkData = val; } - this.checkData = val; - console.log(this.checkData); }, //鐢熸垚鎶ユ鍗曠‘璁ゆ寜閽� confirmBtn(formName) { @@ -289,10 +290,13 @@ }, //鐢熸垚鎶ユ鍗曡姹� async createReport(param) { - let res = await addInspect(param); - if(res.data==null)return - this.$message.success('鎶ユ鎴愬姛') - this.$router.push(`/experiment/Viewdetails/${res.data}`) + await addInspect(param).then(res =>{ + this.search(); + this.$message.success('鎶ユ鎴愬姛') + this.$router.push(`/experiment/Viewdetails/${res.data}`) + }).catch(()=>{ + this.$message.error('鎶ユ澶辫触') + }); }, //鐢熸垚鎶ユ鍗曟寜閽� addReportBtn() { @@ -329,7 +333,10 @@ specifications : specifications, version: version }).then((res)=>{ - console.log(res); + var data = res.data; + for(var i=0;i<data.length;i++){ + data[i].id = "0" + i; + } vm.standardLibraryData = res.data; }) }, -- Gitblit v1.9.3