项目场景:
提示:这里简述项目相关背景:
测试上一模块时,使用不同的两个浏览器,登录同一个账号,点击同一条数据的编辑按钮,关联设备列表显示的数据不同
问题描述
提示:这里描述项目中遇到的问题:
测试上一模块时,使用不同的两个浏览器,登录同一个账号,点击同一条数据的编辑按钮,关联设备列表显示的数据不同,使用 vxe-grid 组件
<vxe-grid class="my-vxe-table" keep-source border resizable highlight-current-row max-height="100%" size="mini" ref="pGrid" row-id="id" :toolbar="toolbar" :proxy-config="tableProxy"
:columns="tableColumn" :checkbox-config="{reserve: true}" :edit-config="{trigger: 'click', mode: 'row', showStatus: true}" @current-change='currentChange'
@sort-change="dataListSortChangeHandle">
</vxe-grid>
mixinViewModuleOptions: {
getDataListURL: “/contract/list”,
getDataListIsPage: true,
updateURL: “/contract/update”,
deleteURL: “/contract/delete”,
},
原因分析:
提示:这里填写问题的分析:
页面组件默认自行调用 this.mixinViewModuleOptions.getDataListURL,并没有使用 用户重写的getDeviceList()中获取到的list
解决方案:
提示:这里填写该问题的具体解决方案:
删除 vue-grid 组件中的 :proxy-config=“tableProxy” 属性,
注释掉 this.mixinViewModuleOptions.getDataListURL
问题解决。