From b807a12b89dc9126bac49c02a3902bec758f4f9b Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期一, 09 六月 2025 11:55:27 +0800 Subject: [PATCH] 检验标准未带出 --- src/views/CNAS/process/method/standardMethodsChange/index.vue | 60 ++++++++++++++++++++++++++---------------------------------- 1 files changed, 26 insertions(+), 34 deletions(-) diff --git a/src/views/CNAS/process/method/standardMethodsChange/index.vue b/src/views/CNAS/process/method/standardMethodsChange/index.vue index 9a4ac26..9ecbf74 100644 --- a/src/views/CNAS/process/method/standardMethodsChange/index.vue +++ b/src/views/CNAS/process/method/standardMethodsChange/index.vue @@ -1,37 +1,30 @@ <template> <div class="capacity-scope"> - <div class="search"> - <div> - <el-form :model="searchForm" ref="searchForm" size="small" :inline="true"> - <el-form-item label="鏍囧噯鏂规硶" prop="methodName"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.methodName"></el-input> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="searchList">鏌� 璇�</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetSearchForm">閲� 缃�</el-button> - </el-form-item> - </el-form> + <div style="display: flex;justify-content: space-between"> + <div style="display: flex;"> + <div style="margin-bottom: 18px;margin-right: 10px;display: flex;align-items: center;line-height: 32px;"> + <span style="width: 88px;font-size: 14px;font-weight: 700;color: #606266;">鏍囧噯鏂规硶</span> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.methodName" + @keyup.enter.native="searchList"></el-input> + </div> + <div style="line-height: 30px;"> + <el-button type="primary" size="mini" @click="searchList">鏌ヨ</el-button> + <el-button size="mini" @click="resetSearchForm">閲嶇疆</el-button> + </div> </div> - <div> - <el-button size="medium" type="primary" @click="openFormDia('add')">鏂� 澧�</el-button> + <div style="line-height: 30px;"> + <el-button size="small" type="primary" @click="openFormDia('add')">鏂� 澧�</el-button> </div> </div> <div class="table"> - <div> - <TableCard :showForm="false" :showTitle="false"> - <template v-slot:table> - <lims-table :tableData="tableData" :column="tableColumn" :height="'calc(100vh - 250px)'" @pagination="pagination" - :page="page" :tableLoading="tableLoading"></lims-table> - </template> - </TableCard> - </div> + <lims-table :tableData="tableData" :column="tableColumn" :height="'calc(100vh - 250px)'" + @pagination="pagination" :page="page" :tableLoading="tableLoading"></lims-table> </div> <formDIaChange v-if="formDIa" ref="formDIa" :operationType="operationType" @closeDia="closeDia"></formDIaChange> </div> </template> <script> -import TableCard from '@/views/CNAS/externalService/serviceAndSupplyPro/component/index.vue'; import formDIaChange from './component/formDIaChange.vue'; import limsTable from '@/components/Table/lims-table.vue' import { @@ -41,9 +34,9 @@ } from '@/api/cnas/process/method/standardMethodsChange' export default { - name: 'a7-changes-standard-methods', + name: 'StandardMethodschange', // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� - components: { limsTable, formDIaChange, TableCard }, + components: { limsTable, formDIaChange }, data() { // 杩欓噷瀛樻斁鏁版嵁 return { @@ -125,9 +118,9 @@ operationType: this.searchForm.operationType, } this.tableLoading = true - pagesMethodVerify({... this.page,...entity}).then(res => { + pagesMethodVerify({ ... this.page, ...entity }).then(res => { this.tableLoading = false - if (res.code === 200){ + if (res.code === 200) { this.tableData = res.data.records this.page.total = res.data.total } @@ -137,16 +130,16 @@ }) }, // 鍒犻櫎 - deleteRow (row) { + deleteRow(row) { this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ暟鎹�, 鏄惁缁х画?', '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', type: 'warning' }).then(() => { this.tableLoading = true - delMethodVerify({methodVerifyId:row.methodVerifyId}).then(res => { + delMethodVerify({ methodVerifyId: row.methodVerifyId }).then(res => { this.tableLoading = false - if (res.code === 200){ + if (res.code === 200) { this.$message.success('鍒犻櫎鎴愬姛') this.searchList() } @@ -161,7 +154,7 @@ this.searchForm.methodName = ''; this.searchList() }, - openFormDia (type, row) { + openFormDia(type, row) { this.formDIa = true this.operationType = type this.$nextTick(() => { @@ -169,18 +162,17 @@ }) }, // 鍏抽棴寮规 - closeDia () { + closeDia() { this.formDIa = false this.searchList() }, // 瀵煎嚭 downLoadPost(row) { this.outLoading = true - exportMethodVerify({methodVerifyId:row.methodVerifyId}).then(res => { + exportMethodVerify({ methodVerifyId: row.methodVerifyId }).then(res => { this.outLoading = false - const blob = new Blob([res],{ type: 'application/msword' }); + const blob = new Blob([res], { type: 'application/msword' }); this.$download.saveAs(blob, '鏍囧噯锛堟柟娉曪級纭璁板綍.docx') - this.$message.success('瀵煎嚭鎴愬姛') }) }, // 鍒嗛〉鍒囨崲 -- Gitblit v1.9.3