From c977c9fb967a080ca56ac46b1f17ce2c57f2122e Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期四, 10 八月 2023 17:53:53 +0800 Subject: [PATCH] new file: src/api/urlEnum/satisfactionSurveys.js modified: src/views/CNAS/satisfactionSurveys/index.vue --- src/views/CNAS/satisfactionSurveys/index.vue | 66 ++++++++++++++------------------- 1 files changed, 28 insertions(+), 38 deletions(-) diff --git a/src/views/CNAS/satisfactionSurveys/index.vue b/src/views/CNAS/satisfactionSurveys/index.vue index 571dd96..ea69569 100644 --- a/src/views/CNAS/satisfactionSurveys/index.vue +++ b/src/views/CNAS/satisfactionSurveys/index.vue @@ -7,11 +7,11 @@ <el-form-item style="width: 800px;"> <el-col style="display: flex; justify-content: space-around;" :span="8"> <el-row>璋冩煡鏃ユ湡:</el-row> - <el-row><el-input type="date" style="width: 130px;" v-model="materialCode" placeholder="璇烽�夋嫨璋冩煡鏃ユ湡"></el-input></el-row> + <el-row><el-input type="date" style="width: 130px;" v-model="surveyDate" placeholder="璇烽�夋嫨璋冩煡鏃ユ湡"></el-input></el-row> </el-col> <el-col style="display: flex; justify-content: space-around;" :span="8"> <el-row>褰曞叆鏃ユ湡:</el-row> - <el-row><el-input style="width: 130px;" v-model="materialName" placeholder="璇烽�夋嫨褰曞叆鏃ユ湡"></el-input></el-row> + <el-row><el-input style="width: 130px;" v-model="entryDate" placeholder="璇烽�夋嫨褰曞叆鏃ユ湡"></el-input></el-row> </el-col> </el-form-item> <el-form-item> @@ -28,31 +28,23 @@ <el-table ref="tableData" :max-height="800" :cell-style="{ textAlign: 'center' }" :header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }" :data="tableData" style="width: 100%"> - <el-table-column type="selection" label="" min-width="5%" /> - <el-table-column label="鏍峰搧缂栧彿" min-width="10%"> - <template slot-scope="scope"> - <a style="color: #3894d1;">{{ scope.row.materialCode }}</a> - </template> + <el-table-column type="index" label="搴忓彿" min-width="5%"> + <template slot-scope="scope"> + <el-checkbox v-model="id" value="scope.row.id" ></el-checkbox> + </template> </el-table-column> - <el-table-column prop="materialName" label="鏍峰搧鍚嶇О" min-width="10%" /> - <el-table-column label="鐢宠鍗曞彿" min-width="10%" > - <template slot-scope="scope"> - <a style="color: #3894d1;">{{ scope.row.inspectionCode }}</a> - </template> - </el-table-column> - <el-table-column prop="createTime" label="鐧昏鏃ユ湡" min-width="10%" /> - <el-table-column prop="testManager" label="妫�楠岃礋璐d汉" min-width="10%" /> - <el-table-column prop="specifications" label="瑙勬牸鍨嬪彿" min-width="10%" /> - <el-table-column prop="inspectionStatus" label="缁撹" min-width="10%"> - <template slot-scope="scope"> - <el-tag type="danger">涓嶅悎鏍�</el-tag> - </template> - </el-table-column> - <el-table-column label="鎿嶄綔" min-width="8%"> - <template slot-scope="scope"> - <el-button type="text" size="small">鎿嶄綔</el-button> - <el-button type="text" size="small">浣滃簾</el-button> - </template> + <el-table-column prop="surveyDate" label="璋冩煡鏃ユ湡" min-width="10%"/> + <el-table-column prop="userUnit" label="瀹㈡埛鍗曚綅鍚嶇О" min-width="10%" /> + <el-table-column prop="projectName" label="椤圭洰鍚嶇О" min-width="10%" /> + <el-table-column prop="fillName" label="濉〃浜哄鍚�" min-width="10%" /> + <el-table-column prop="dateInfo" label="鏃ユ湡" min-width="10%" /> + <el-table-column prop="post" label="鑱屼綅" min-width="10%" /> + <el-table-column prop="telephone" label="鑱旂郴鐢佃瘽" min-width="10%" /> + <el-table-column prop="userName" label="褰曞叆浜�" min-width="10%" /> + <el-table-column label="闄勪欢" min-width="10%" > + <template> + <a style="color: #3894d1;">鏌ョ湅闄勪欢</a> + </template> </el-table-column> </el-table> <!-- 鍒嗛〉鍣� --> @@ -68,7 +60,7 @@ <script> import { get, post } from '@/api/util/requestUtil'; - import urlInfo from '../../../api/urlEnum/nonConformanceReview.js' + import urlInfo from '../../../api/urlEnum/satisfactionSurveys.js' export default { data() { return { @@ -77,9 +69,9 @@ page: 1, total: 0, pageSize: 10, - materialCode: null, - materialName: null, - inspectionCode: null + entryDate: null, + surveyDate: null, + id: 0, } }, created() { @@ -102,21 +94,19 @@ resetData() { this.page = 1 this.pageSize = 10 - this.materialCode=null - this.materialName=null - this.inspectionCode=null + this.surveyDate=null + this.entryDate=null this.getData() }, async getData() { let param = { "currentPage": this.page, 'pageNum': this.pageSize, - "inspectionCode": this.inspectionCode, - "materialCode": this.materialCode, - "materialName": this.materialName + "surveyDate": this.surveyDate, + "entryDate": this.entryDate } - let res = await get(urlInfo.url.getNonConformanceReview, param) - this.tableData = res.data.nonConformanceReviewList + let res = await get(urlInfo.url.getCnasSatisfactionSurvey, param) + this.tableData = res.data.cnasSatisfactionSurveyList this.total = res.data.total } } -- Gitblit v1.9.3