Vue开发者专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>> html: <template><Modalv-model="classStatus"width="900"title="详情:":styles="{top: '80px'}"><Tablestripeclass="task-table":columns="columnsName4":data="taskDetailList"></Table></Modal>点击弹窗按钮</template> AI代码...
将code参数传给code字段。赋给this.query 调用api里面的fetchList方法查询。这里根据code查student_id。在fetchlist括号里把this.query带入。console.log打印出this.query的值。获取后台传过来的数据,把第一个字段的id传给定义的变量id。然后用this.$router.push传值,使用query方法,把变量id传给字段id。
添加点击事件(获取table该行的字段) 传值页面 将code参数传给code字段。赋给this.query 调用api里面的fetchList方法查询。这里根据code查student_id。在fetchlist括号里把this.query带入。console.log打印出this.query的值。 获取后台传过来的数据,把第一个字段的id传给定义的变量id。 然后用this.$router.push传值...
主要介绍了vue实现点击按钮“查看详情”弹窗展示详情列表操作,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧 vue 点击按钮 查看详情 详情列表2020-10-14 上传大小:39KB 所需:50积分/C币 中国省级数据库2025版.xlsx 中国省级数据库2025版.xlsx ...
vue实现点击按钮“查看详情”弹窗展⽰详情列表操作html:<template> <Modal v-model="classStatus" width="900" title="详情:" :styles="{top: '80px'}"> <Table stripe class="task-table" :columns="columnsName4" :data="taskDetailList"></Table> </Modal> 点击弹窗按钮 </template> js: imp...
添加点击事件(获取table该行的字段) 传值页面 将code参数传给code字段。赋给this.query 调用api里面的fetchList方法查询。这里根据code查student_id。在fetchlist括号里把this.query带入。console.log打印出this.query的值。 获取后台传过来的数据,把第一个字段的id传给定义的变量id。