王震
2023-08-28 a1fda51c880e12a7f5e18a2ed2242dc4f407bb22
src/views/experiment/inspectionApplication/Viewdetails/index.vue
@@ -87,6 +87,7 @@
            <el-card style="margin: 10px;">
                <el-table
                    :data="insProducts"
                    height="calc(80vh - 250px)"
                    border      
                    style="width: 100%">
                    <el-table-column
@@ -136,20 +137,30 @@
</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: {
        //返回
@@ -162,9 +173,10 @@
        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
      }