From dd05e06f8a116c6f14c3c78cfc3113d7787043fd Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 14 三月 2025 14:29:39 +0800 Subject: [PATCH] 管理体系文件bug --- src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue | 31 +++++++++---------------------- 1 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue b/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue index d7b606c..e7341e3 100644 --- a/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue +++ b/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue @@ -3,8 +3,11 @@ <div class="search"> <div> <el-form :model="searchForm" ref="searchForm" size="small" :inline="true"> - <el-form-item label="鏍囧噯鍙�" prop="standardNo"> + <el-form-item label="鏍囧噯鍙�" prop="standardNo" v-if="tabIndex === '0'"> <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.standardNo"></el-input> + </el-form-item> + <el-form-item label="瀛樻。鍚嶇О" prop="archivedName" v-if="tabIndex === '1'"> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.archivedName"></el-input> </el-form-item> <el-form-item> <el-button type="primary" icon="el-icon-search" size="mini" @click="searchList">鏌� 璇�</el-button> @@ -26,7 +29,7 @@ <div> <div class="table"> <div class="table-tab"> - <el-radio-group v-model="tabIndex" @input="searchList"> + <el-radio-group v-model="tabIndex" @change="searchList"> <el-radio-button label="0">浠婂勾鏍囧噯璁板綍</el-radio-button> <el-radio-button label="1">鍘嗗彶妗f</el-radio-button> </el-radio-group> @@ -99,7 +102,7 @@ import {selectUserCondition} from "@/api/performance/class"; export default { - name: 'a7-standard-novelty-retrieval', + name: 'StandardNoveltyRetrieval', // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� components: { FormDialog, @@ -113,6 +116,7 @@ searchForm: { year: '', standardNo: '', + archivedName: '' }, options: [ { label: '涓婂崐骞�', value: '1' }, @@ -485,23 +489,9 @@ methods: { // 鏌ヨ鍒楄〃 searchList() { - let params = {} - if (this.tabIndex === '0') { - params = { - entity: { - standardNo: this.searchForm.standardNo, - }, - page: this.page - } - } else { - params = { - entity: {}, - page: this.oldPage - } - } if (this.tabIndex === '0') { this.tableLoading = true - pageMethodSearchNew({ ...params.oldPage, ...params.entity }).then(res => { + pageMethodSearchNew({ standardNo: this.searchForm.standardNo, ...this.page }).then(res => { this.tableLoading = false if (res.code === 200) { this.tableData = res.data.records @@ -513,12 +503,9 @@ }) } else { this.oldTableLoading = true - pageSearchNewArchived({ - ...params.page, ...params.entity - }).then(res => { + pageSearchNewArchived({archivedName: this.searchForm.archivedName, ...this.oldPage}).then(res => { this.oldTableLoading = false if (res.code === 200) { - console.log('res>>>>>>>>>>>>', res) this.oldTableData = res.data.records this.oldPage.total = res.data.total } -- Gitblit v1.9.3