| | |
| | | <el-card style="margin: 10px;"> |
| | | <el-table |
| | | :data="insProducts" |
| | | height="calc(80vh - 250px)" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { selectInspectsListById,selectUser} from '@/api/experiment/planAssignments' |
| | | import { selectInspectsListById} from '@/api/experiment/planAssignments' |
| | | export default { |
| | | data(){ |
| | | return { |
| | | searchData:{ }, |
| | | insProducts:[], |
| | | uu:'', |
| | | value:'' |
| | | value:'', |
| | | aaa:{} |
| | | } |
| | | }, |
| | | created(){ |
| | | this.uu = this.$route.query.id; |
| | | // if(this.$route.query){ |
| | | // this.uu = this.$route.query.id; |
| | | // } |
| | | this.aaa = this.$route.query |
| | | // if(this.$route.query){ |
| | | // this.aaa = this.$router.query.data1 |
| | | // console.log(this.aaa); |
| | | // } |
| | | console.log(this.aaa); |
| | | this.selectInspectsListById() |
| | | this.selectUser() |
| | | // this.selectUser() |
| | | |
| | | }, |
| | | methods: { |
| | | //返回 |
| | |
| | | this.ZERENren = res.data |
| | | // console.log(this.ZERENren); |
| | | }, |
| | | //標準庫 |
| | | //检验单表 |
| | | async selectInspectsListById() { |
| | | const res = await selectInspectsListById({id:this.uu}) |
| | | const res = await selectInspectsListById({id:this.aaa.id}) |
| | | this.searchData = res.data |
| | | this.insProducts = res.data.insProducts |
| | | } |