¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | export function selectAllPlan(params) { |
| | | return request({ |
| | | url: '/plan/selectAllPlan', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | |
| | | <el-button type="primary" @click="getData()">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain @click="resetData()">éç½®</el-button> |
| | | </el-form-item> |
| | | <el-dropdown> |
| | | <span class="el-dropdown-link"> |
| | | é«çº§æç´¢<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item>é«çº§æç´¢</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="rightBtn" type="primary" icon="el-icon-document" @click="exportData">å¯¼åºæ¥å</el-button> |
| | | <el-button |
| | | class="rightBtn" |
| | | type="primary" |
| | | icon="el-icon-document" |
| | | @click="exportData" |
| | | >å¯¼åºæ¥å</el-button |
| | | > |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | |
| | | <el-radio-button label="1">å¾
å®¡æ ¸</el-radio-button> |
| | | <el-radio-button label="2">å·²å®¡æ ¸</el-radio-button> |
| | | </el-radio-group> |
| | | |
| | | <el-checkbox v-model="checked" style="margin-left: 20px" |
| | | >ä»
çæç</el-checkbox |
| | | > |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | |
| | | ref="reportTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :header-cell-style="{ |
| | | border: '0px', |
| | | background: '#f5f7fa', |
| | | color: '#606266', |
| | | boxShadow: 'inset 0 1px 0 #ebeef5', |
| | | textAlign: 'center', |
| | | }" |
| | | :data="reportTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | label="" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column type="selection" label="" min-width="5%" /> |
| | | |
| | | <el-table-column |
| | | prop="materialCode" |
| | |
| | | sortable |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="approver" |
| | | label="审æ¹äºº" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column |
| | | prop="status" |
| | | label="审æ¹ç¶æ" |
| | | min-width="8%" |
| | | > |
| | | <el-table-column prop="approver" label="审æ¹äºº" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="info">{{ scope.row.status == 0 ? 'å¾
æäº¤' : |
| | | scope.row.status == 1 ? 'å¾
å®¡æ ¸' : |
| | | scope.row.status == 2 ? '代ç¾å' :'已宿' }}</el-tag> |
| | | <el-tag type="info" icon="el-icon-user"> |
| | | <i class="el-icon-user">{{ scope.row.approver }}</i> |
| | | </el-tag> |
| | | </span> |
| | | </template></el-table-column> |
| | | <el-table-column |
| | | prop="conclusion" |
| | | label="æ£éªç»è®º" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="ç¼å¶äºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="审æ¹ç¶æ" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">é¢è§</el-button> |
| | | <span> |
| | | <el-tag type="info">{{ |
| | | scope.row.status == 0 |
| | | ? "å¾
æäº¤" |
| | | : scope.row.status == 1 |
| | | ? "å¾
å®¡æ ¸" |
| | | : scope.row.status == 2 |
| | | ? "代ç¾å" |
| | | : "已宿" |
| | | }}</el-tag> |
| | | </span> |
| | | </template></el-table-column |
| | | > |
| | | <el-table-column prop="conclusion" label="æ£éªç»è®º" min-width="8%" /> |
| | | <el-table-column prop="name" label="ç¼å¶äºº" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="info" icon="el-icon-user"> |
| | | <i class="el-icon-user">{{ scope.row.name }}</i> |
| | | </el-tag> |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | @click="handleClick(scope.row)" |
| | | >é¢è§</el-button |
| | | > |
| | | <el-button type="text" size="small">æå°</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectAllReport } from '@/api/experiment/checkTheReport' |
| | | import { selectAllReport } from "@/api/experiment/checkTheReport"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | input: '', |
| | | input: "", |
| | | checkStatus: undefined, |
| | | reportTable: [], |
| | | page: 1, |
| | | total: 0, |
| | | pageSize: 10 |
| | | } |
| | | pageSize: 10, |
| | | checked: true, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | this.getData(); |
| | | }, |
| | | methods: { |
| | | // ç¶ææé® |
| | | handleRadioChange() { |
| | | this.getData() |
| | | this.getData(); |
| | | }, |
| | | // æ¯é¡µæ¡æ°æ¹åæ¶è§¦å éæ©ä¸é¡µæ¾ç¤ºå¤å°è¡ |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`) |
| | | this.pageSize = val |
| | | this.getData() |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | this.pageSize = val; |
| | | this.getData(); |
| | | }, |
| | | // å½å页æ¹åæ¶è§¦å 跳转å
¶ä»é¡µ |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`) |
| | | this.page = val |
| | | this.getData() |
| | | console.log(`å½å页: ${val}`); |
| | | this.page = val; |
| | | this.getData(); |
| | | }, |
| | | // éç½®æé® |
| | | resetData() { |
| | | this.input = undefined |
| | | this.page = 1 |
| | | this.pageSize = 10 |
| | | this.checkStatus = undefined |
| | | this.getData() |
| | | this.input = undefined; |
| | | this.page = 1; |
| | | this.pageSize = 10; |
| | | this.checkStatus = undefined; |
| | | this.getData(); |
| | | }, |
| | | // æ¥è¯¢å表 |
| | | async getData() { |
| | |
| | | page: this.page, |
| | | pageSize: this.pageSize, |
| | | name: this.input ? this.input : undefined, |
| | | status: this.checkStatus ? this.checkStatus : undefined |
| | | } |
| | | const { data } = await selectAllReport(params) |
| | | this.reportTable = data.row |
| | | this.total = data.total |
| | | } |
| | | } |
| | | } |
| | | status: this.checkStatus ? this.checkStatus : undefined, |
| | | }; |
| | | const { data } = await selectAllReport(params); |
| | | this.reportTable = data.row; |
| | | this.total = data.total; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .input-form { |
| | | width: 800px; |
| | | width: 700px; |
| | | } |
| | | .el-dropdown-link { |
| | | cursor: pointer; |
| | | color: #409EFF; |
| | | } |
| | | .el-icon-arrow-down { |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | .library-table{ |
| | |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | |
| | | } |
| | | </style> |
| | |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData"> |
| | | <el-form-item label="设å¤åç§°:" class="sermargin"> |
| | | <el-select v-model="searchData.devicename" placeholder="å
¨é¨" style="width: 100px;"> |
| | | <el-select |
| | | v-model="searchData.devicename" |
| | | placeholder="å
¨é¨" |
| | | style="width: 100px" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | v-for="item in options1" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | type="daterange" |
| | | range-separator="~" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ"> |
| | | end-placeholder="ç»ææ¥æ" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="æ£éªäºº:" style="margin-right: 20px;"> |
| | | <el-select v-model="searchData.person" placeholder="å
¨é¨" style="width: 80px;margin-right: 100px;"> |
| | | <el-form-item label="æ£éªäºº:" style="margin-right: 20px"> |
| | | <el-select |
| | | v-model="searchData.person" |
| | | placeholder="å
¨é¨" |
| | | style="width: 80px; margin-right: 100px" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | v-for="item in options2" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" plain style="margin-right: 10px;">éç½®</el-button> |
| | | <el-button type="primary" plain style="margin-right: 10px" |
| | | >éç½®</el-button |
| | | > |
| | | <el-button type="primary">æ¥è¯¢</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | ref="planTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :header-cell-style="{ |
| | | border: '0px', |
| | | background: '#f5f7fa', |
| | | color: '#606266', |
| | | boxShadow: 'inset 0 1px 0 #ebeef5', |
| | | textAlign: 'center', |
| | | }" |
| | | :data="planTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="device" |
| | | label="æ£éªè®¾å¤" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="samplename" |
| | | label="æ ·ååç§°" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="sampleid" |
| | | label="æ ·åç¼å·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column type="index" label="åºå·" min-width="10%" /> |
| | | <el-table-column prop="device" label="æ£éªè®¾å¤" min-width="8%" /> |
| | | <el-table-column prop="samplename" label="æ ·ååç§°" min-width="8%" /> |
| | | <el-table-column prop="sampleid" label="æ ·åç¼å·" min-width="10%" /> |
| | | <el-table-column |
| | | prop="modelandspecification" |
| | | label="è§æ ¼åå·" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="unit" |
| | | label="åä½" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column |
| | | prop="amount" |
| | | label="æ°é" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column prop="unit" label="åä½" min-width="5%" /> |
| | | <el-table-column prop="amount" label="æ°é" min-width="5%" /> |
| | | <el-table-column |
| | | prop="checkproject" |
| | | label="æ£éªé¡¹ç®" |
| | | min-width="12%" |
| | | /> |
| | | <el-table-column |
| | | prop="checker" |
| | | label="æ£éªäºº" |
| | | min-width="6%" |
| | | /> |
| | | <el-table-column |
| | | prop="duration" |
| | | label="计åå·¥æ/h" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="progress" |
| | | label="æ£éªè¿åº¦" |
| | | min-width="12%"> |
| | | <el-table-column prop="checker" label="æ£éªäºº" min-width="6%" /> |
| | | <el-table-column prop="duration" label="计åå·¥æ/h" min-width="8%" /> |
| | | <el-table-column prop="progress" label="æ£éªè¿åº¦" min-width="12%"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.progress === 100" style="display: flex;"> |
| | | <el-progress :text-inside="true" :stroke-width="15" :percentage="scope.row.progress" status="success" style="width: 70%;"></el-progress> |
| | | <span style="color: rgb(103, 194, 58);">已宿</span> |
| | | <div v-if="scope.row.progress === 100" style="display: flex"> |
| | | <el-progress |
| | | :text-inside="true" |
| | | :stroke-width="15" |
| | | :percentage="scope.row.progress" |
| | | status="success" |
| | | style="width: 70%" |
| | | ></el-progress> |
| | | <span style="color: rgb(103, 194, 58)">已宿</span> |
| | | </div> |
| | | <div v-if="scope.row.progress <100 && scope.row.progress >0" style="display: flex;"> |
| | | <el-progress :text-inside="true" :stroke-width="15" :percentage="scope.row.progress" status="warning" style="width: 70%;"></el-progress> |
| | | <span style="color: rgb(230, 162, 60);">æ£éªä¸</span> |
| | | <div |
| | | v-if="scope.row.progress < 100 && scope.row.progress > 0" |
| | | style="display: flex" |
| | | > |
| | | <el-progress |
| | | :text-inside="true" |
| | | :stroke-width="15" |
| | | :percentage="scope.row.progress" |
| | | status="warning" |
| | | style="width: 70%" |
| | | ></el-progress> |
| | | <span style="color: rgb(230, 162, 60)">æ£éªä¸</span> |
| | | </div> |
| | | <div v-if="scope.row.progress === 0" style="display: flex;"> |
| | | <el-progress :text-inside="true" :stroke-width="15" :percentage="scope.row.progress" style="width: 70%;"></el-progress> |
| | | <div v-if="scope.row.progress === 0" style="display: flex"> |
| | | <el-progress |
| | | :text-inside="true" |
| | | :stroke-width="15" |
| | | :percentage="scope.row.progress" |
| | | style="width: 70%" |
| | | ></el-progress> |
| | | <span style="color: gray">æªåé
</span> |
| | | </div> |
| | | <div v-else> |
| | | </div> |
| | | <div v-else></div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | label="计åç»ææ¶é´" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | <el-table-column label="æä½" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">æ¥ç</el-button> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | @click="handleClick(scope.row)" |
| | | >æ¥ç</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectAllPlan } from "@/api/experiment/planAssignments"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | time: "", |
| | | person: "", |
| | | }, |
| | | options: [ |
| | | { |
| | | value: "é项1", |
| | | label: "é项1", |
| | | }, |
| | | { |
| | | value: "é项2", |
| | | label: "é项2", |
| | | disabled: true, |
| | | }, |
| | | ], |
| | | planTable: [{ |
| | | device: 'æåæº', |
| | | samplename: 'ééé¢ç»çº¿', |
| | | sampleid: 'SN1027401-12937', |
| | | modelandspecification: 'JLHA/G1A-185/30-14/7', |
| | | unit: 'm', |
| | | amount: '200', |
| | | checkproject: 'æå强度ï¼ç»åï¼', |
| | | checker: 'é»å°æ', |
| | | duration: '2', |
| | | progress: 100, |
| | | starttime: '2023-08-04 8:00', |
| | | finishtime: '2023-08-04 10:00', |
| | | },{ |
| | | device: 'æåæº', |
| | | samplename: 'ééé¢ç»çº¿', |
| | | sampleid: 'SN1027401-12937', |
| | | modelandspecification: 'JLHA/G1A-185/30-14/7', |
| | | unit: 'm', |
| | | amount: '200', |
| | | checkproject: 'æå强度ï¼ç»åï¼', |
| | | checker: 'é»å°æ', |
| | | duration: '2', |
| | | progress: 60, |
| | | starttime: '2023-08-04 8:00', |
| | | finishtime: '2023-08-04 10:00', |
| | | },{ |
| | | device: 'æåæº', |
| | | samplename: 'ééé¢ç»çº¿', |
| | | sampleid: 'SN1027401-12937', |
| | | modelandspecification: 'JLHA/G1A-185/30-14/7', |
| | | unit: 'm', |
| | | amount: '200', |
| | | checkproject: 'æå强度ï¼ç»åï¼', |
| | | checker: 'é»å°æ', |
| | | duration: '2', |
| | | progress: 30, |
| | | starttime: '2023-08-04 8:00', |
| | | finishtime: '2023-08-04 10:00', |
| | | },{ |
| | | device: 'æåæº', |
| | | samplename: 'ééé¢ç»çº¿', |
| | | sampleid: 'SN1027401-12937', |
| | | modelandspecification: 'JLHA/G1A-185/30-14/7', |
| | | unit: 'm', |
| | | amount: '200', |
| | | checkproject: 'æå强度ï¼ç»åï¼', |
| | | checker: 'é»å°æ', |
| | | duration: '2', |
| | | progress: 0, |
| | | starttime: '2023-08-04 8:00', |
| | | finishtime: '2023-08-04 10:00', |
| | | }] |
| | | options1: [], |
| | | options2: [], |
| | | planTable: [], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData(); |
| | | }, |
| | | methods: { |
| | | // æ¥è¯¢å表 |
| | | async getData() { |
| | | const params = {}; |
| | | const { data } = await selectAllPlan(params); |
| | | this.planTable = data; |
| | | this.planTable.forEach((res) => { |
| | | let o1 = { |
| | | value: res.device, |
| | | label: res.device, |
| | | }; |
| | | this.options1.push(o1); |
| | | |
| | | if(res.userId == undefined) { |
| | | |
| | | } |
| | | }); |
| | | let d=this.options1.filter((val,index,self)=>{ |
| | | return self.indexOf(val)==index; |
| | | }) |
| | | console.log(d); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | <el-button type="primary" @click="getData()">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain @click="resetData()">éç½®</el-button> |
| | | </el-form-item> |
| | | <el-dropdown> |
| | | <span class="el-dropdown-link"> |
| | | é«çº§æç´¢<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item>é«çº§æç´¢</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button class="rightBtn" type="primary" @click="exportData">å®¡æ ¸</el-button> |
| | | <el-button class="rightBtn" type="primary" @click="exportData" |
| | | >å®¡æ ¸</el-button |
| | | > |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | |
| | | <el-radio-button label="0">å¾
æäº¤</el-radio-button> |
| | | <el-radio-button label="2">å¾
éè¿</el-radio-button> |
| | | </el-radio-group> |
| | | <el-checkbox v-model="checked" style="margin-left: 20px" |
| | | >ä»
çæç</el-checkbox |
| | | > |
| | | </div> |
| | | </div> |
| | | <div class="table-box"> |
| | |
| | | ref="reportTable" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :header-cell-style="{ |
| | | border: '0px', |
| | | background: '#f5f7fa', |
| | | color: '#606266', |
| | | boxShadow: 'inset 0 1px 0 #ebeef5', |
| | | textAlign: 'center', |
| | | }" |
| | | :data="reportTable" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | label="" |
| | | min-width="5%" |
| | | /> |
| | | <el-table-column type="selection" label="" min-width="5%" /> |
| | | <el-table-column |
| | | prop="materialCode" |
| | | label="æ ·åç¼å·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="reportCode" |
| | | label="æ¥ååå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column prop="reportCode" label="æ¥ååå·" min-width="10%" /> |
| | | <el-table-column |
| | | prop="materialName" |
| | | label="æ ·ååç§°" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="status" |
| | | label="审æ¹ç¶æ" |
| | | min-width="8%" |
| | | > |
| | | <el-table-column prop="status" label="审æ¹ç¶æ" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="warning">{{ scope.row.status == 0 ? 'å¾
æäº¤' : 'å·²å®¡æ ¸' }}</el-tag> |
| | | <el-tag type="warning">{{ |
| | | scope.row.status == 0 ? "å¾
æäº¤" : "å¾
éè¿" |
| | | }}</el-tag> |
| | | </span> |
| | | </template></el-table-column> |
| | | <el-table-column |
| | | prop="approver" |
| | | label="审æ¹äºº" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="submitTime" |
| | | label="æäº¤æ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="checkTime" |
| | | label="å®¡æ ¸æ¥æ" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | </template></el-table-column |
| | | > |
| | | <el-table-column prop="approver" label="审æ¹äºº" min-width="8%" /> |
| | | <el-table-column prop="submitTime" label="æäº¤æ¥æ" min-width="8%" /> |
| | | <el-table-column prop="checkTime" label="å®¡æ ¸æ¥æ" min-width="8%" /> |
| | | <el-table-column label="æä½" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handleClick(scope.row)">æ¥ç详ç»</el-button> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | @click="handleClick(scope.row)" |
| | | >æ¥ç详ç»</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectAllReportCheck } from '@/api/experiment/reportAuditing' |
| | | import { selectAllReportCheck } from "@/api/experiment/reportAuditing"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | input: '', |
| | | input: "", |
| | | checkStatus: undefined, |
| | | reportTable: [], |
| | | page: 1, |
| | | total: 0, |
| | | pageSize: 10 |
| | | } |
| | | pageSize: 10, |
| | | checked: true, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | this.getData(); |
| | | }, |
| | | methods: { |
| | | // ç¶ææé® |
| | | handleRadioChange() { |
| | | this.getData() |
| | | this.getData(); |
| | | }, |
| | | // æ¯é¡µæ¡æ°æ¹åæ¶è§¦å éæ©ä¸é¡µæ¾ç¤ºå¤å°è¡ |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`) |
| | | this.pageSize = val |
| | | this.getData() |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | this.pageSize = val; |
| | | this.getData(); |
| | | }, |
| | | // å½å页æ¹åæ¶è§¦å 跳转å
¶ä»é¡µ |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`) |
| | | this.page = val |
| | | this.getData() |
| | | console.log(`å½å页: ${val}`); |
| | | this.page = val; |
| | | this.getData(); |
| | | }, |
| | | // éç½®æé® |
| | | resetData() { |
| | | this.input = undefined |
| | | this.page = 1 |
| | | this.pageSize = 10 |
| | | this.checkStatus = undefined |
| | | this.getData() |
| | | this.input = undefined; |
| | | this.page = 1; |
| | | this.pageSize = 10; |
| | | this.checkStatus = undefined; |
| | | this.getData(); |
| | | }, |
| | | // æ¥è¯¢å表 |
| | | async getData() { |
| | |
| | | page: this.page, |
| | | pageSize: this.pageSize, |
| | | name: this.input ? this.input : undefined, |
| | | status: this.checkStatus ? this.checkStatus : undefined |
| | | } |
| | | const { data } = await selectAllReportCheck(params) |
| | | this.reportTable = data.row |
| | | this.total = data.total |
| | | } |
| | | } |
| | | } |
| | | status: this.checkStatus ? this.checkStatus : undefined, |
| | | }; |
| | | const { data } = await selectAllReportCheck(params); |
| | | this.reportTable = data.row; |
| | | this.total = data.total; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .input-form { |
| | | width: 800px; |
| | | width: 700px; |
| | | } |
| | | .el-dropdown-link { |
| | | cursor: pointer; |
| | | color: #409eff; |
| | | } |
| | | .el-icon-arrow-down { |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | .library-table{ |